/* Site stylesheet: calm public-records look (owner-approved design).
   Mobile-first; light and dark themes via custom properties.
   Theme: follows the system setting; a manual choice (site.js) sets <html data-theme="light|dark">. */

/* ------------------------------------------------------------------ tokens */
:root {
  --font-body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: "Source Serif 4", Georgia, "Times New Roman", serif;

  --bg: #F6F7F9;
  --surface: #FFFFFF;
  --surface-2: #EEF3F8;      /* fact box header */
  --surface-3: #F6F7F9;      /* inset blocks */
  --ink: #14202B;
  --ink-2: #2D3A47;
  --ink-3: #3B4754;
  --muted: #4B5866;
  --border: #E2E6EB;
  --border-strong: #D5DCE3;
  --divider: #EEF1F4;
  --accent: #1D5C8F;
  --accent-hover: #123E63;
  --on-accent: #FFFFFF;
  --chip-bg: #EEF2F6;
  --chip-ink: #2D3A47;
  --alert-bg: #FDECEC;
  --alert-ink: #8B1D1D;
  --amber-bg: #FFF8EE;
  --amber-border: #F1D5AE;
  --amber-ink: #8A3F05;
  --amber-tag: #FFE9CC;
  --focus: #1D5C8F;
  --dark-card-bg: #14202B;
  --dark-card-ink: #FFFFFF;

  --radius: 14px;
  --radius-sm: 8px;
  --gutter: 16px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E161D;
    --surface: #16212B;
    --surface-2: #1C2A36;
    --surface-3: #1A2631;
    --ink: #E7ECF1;
    --ink-2: #D3DBE3;
    --ink-3: #C2CCD6;
    --muted: #A3B0BD;
    --border: #2A3947;
    --border-strong: #354655;
    --divider: #22313E;
    --accent: #7DB8EA;
    --accent-hover: #A6D0F3;
    --on-accent: #0E161D;
    --chip-bg: #24323F;
    --chip-ink: #D3DBE3;
    --alert-bg: #3B1D21;
    --alert-ink: #FFB3B3;
    --amber-bg: #2A2116;
    --amber-border: #5A4220;
    --amber-ink: #F2BC7A;
    --amber-tag: #3D2D17;
    --focus: #A6D0F3;
    --dark-card-bg: #1C2A36;
    --dark-card-ink: #E7ECF1;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0E161D;
  --surface: #16212B;
  --surface-2: #1C2A36;
  --surface-3: #1A2631;
  --ink: #E7ECF1;
  --ink-2: #D3DBE3;
  --ink-3: #C2CCD6;
  --muted: #A3B0BD;
  --border: #2A3947;
  --border-strong: #354655;
  --divider: #22313E;
  --accent: #7DB8EA;
  --accent-hover: #A6D0F3;
  --on-accent: #0E161D;
  --chip-bg: #24323F;
  --chip-ink: #D3DBE3;
  --alert-bg: #3B1D21;
  --alert-ink: #FFB3B3;
  --amber-bg: #2A2116;
  --amber-border: #5A4220;
  --amber-ink: #F2BC7A;
  --amber-tag: #3D2D17;
  --focus: #A6D0F3;
  --dark-card-bg: #1C2A36;
  --dark-card-ink: #E7ECF1;
  color-scheme: dark;
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  overflow-wrap: break-word;
}
h1, h2, h3 { line-height: 1.2; margin: 0; color: var(--ink); }
p { margin: 0 0 0.75em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
main:focus { outline: none; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.num { font-variant-numeric: tabular-nums; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 10;
  background: var(--accent); color: var(--on-accent); padding: 10px 14px;
  border-radius: var(--radius-sm); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 8px; color: var(--on-accent); }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ------------------------------------------------------------------ header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 16px; padding-top: 14px; padding-bottom: 14px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--accent); }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 22px; color: var(--ink); }
.brand:hover .brand-name { color: var(--ink); }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 15px; font-weight: 500; }
.main-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.main-nav a { color: var(--ink); text-decoration: none; padding: 6px 0; display: inline-block; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; }
.theme-toggle {
  display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 14px;
  color: var(--ink); background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); padding: 6px 10px; cursor: pointer; min-height: 36px;
}
.theme-toggle[hidden] { display: none; }
.theme-toggle:hover { border-color: var(--accent); }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: inline; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: inline; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

/* ------------------------------------------------------------------ page */
.page { padding-top: 20px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 20px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--muted); }
.page-head { display: flex; flex-direction: column; gap: 10px; }
.page-head h1 { font-family: var(--font-head); font-size: clamp(28px, 6.5vw, 42px); line-height: 1.15; max-width: 900px; }
.eyebrow { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.meta { margin: 0; font-size: 14px; color: var(--muted); }
.lede { font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 760px; }

.layout { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.main-col { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.side-col { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }

/* ------------------------------------------------------------------ cards */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; gap: 12px;
}
.card-tight { padding: 18px; gap: 10px; }
.section-title { font-family: var(--font-head); font-size: 24px; }
.side-title { font-size: 17px; }
.lead-sm { color: var(--ink-3); font-size: 15px; margin: 0; }

/* fact box */
.fact-box { padding: 0; gap: 0; overflow: hidden; border-color: var(--border-strong); }
.fact-box-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px;
  padding: 14px 20px; background: var(--surface-2); border-bottom: 1px solid var(--border-strong);
}
.fact-box-head h2 { font-size: 16px; font-weight: 700; font-family: var(--font-body); }
.fact-box-head span { font-size: 13px; color: var(--ink-2); }
.fact-grid { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.fact { padding: 16px 20px; border-bottom: 1px solid var(--divider); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fact-wide { grid-column: 1 / -1; }
.fact dt { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.fact dd { margin: 0; }
.fact-value-lg { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; }
.fact-value-md { font-size: 18px; font-weight: 600; line-height: 1.3; }
.fact-note { font-size: 14px; color: var(--ink-3); }
.src { font-size: 13px; line-height: 1.45; color: var(--muted); }
.src a { color: var(--muted); }
.src a:hover { color: var(--accent); }
.src-mark { font-size: 12px; color: var(--muted); }
.filed-list { list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.deadline-line { font-weight: 600; color: var(--amber-ink); }
.deadline { font-weight: 600; color: var(--amber-ink); white-space: nowrap; }
.countdown { font-weight: 600; color: var(--amber-ink); }

/* chips */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 14px; font-weight: 500; background: var(--chip-bg); color: var(--chip-ink);
  padding: 5px 10px; border-radius: var(--radius-sm); line-height: 1.35;
}
.chip-alert { background: var(--alert-bg); color: var(--alert-ink); font-weight: 600; }
.chip-more { background: transparent; border: 1px dashed var(--border-strong); color: var(--muted); }
.chips-sm { gap: 5px; }
.chips-sm .chip { font-size: 12px; padding: 3px 8px; border-radius: 6px; }

/* notices (settlement, lawsuit) */
.notice { background: var(--amber-bg); border-color: var(--amber-border); }
.notice-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.notice-head h2 { font-size: 20px; }
.tag {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 4px 8px; border-radius: 6px;
}
.tag-amber { color: var(--amber-ink); background: var(--amber-tag); }
.notice p { color: var(--ink-2); }

/* checklist */
.checklist { list-style: none; display: flex; flex-direction: column; }
.check-item { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--divider); }
.check-item input {
  flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); cursor: pointer;
}
.check-title { font-weight: 600; font-size: 16px; cursor: pointer; display: block; margin-bottom: 4px; }
.check-body { font-size: 15px; line-height: 1.55; color: var(--ink-3); }
.check-item input:checked + div .check-title { text-decoration: line-through; color: var(--muted); }

/* timeline */
.timeline { list-style: none; display: flex; flex-direction: column; }
.timeline li {
  position: relative; display: flex; flex-direction: column; gap: 2px;
  padding: 0 0 16px 26px; border-left: 2px solid var(--border-strong); margin-left: 5px;
}
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--accent);
}
.timeline time { font-size: 13px; font-weight: 600; color: var(--muted); }

/* sources */
.source-list { list-style: none; display: flex; flex-direction: column; }
.source-list li { padding: 12px 0; border-top: 1px solid var(--divider); display: flex; flex-direction: column; gap: 4px; }
.source-list li:target { background: var(--surface-2); margin: 0 -12px; padding-left: 12px; padding-right: 12px; border-radius: var(--radius-sm); }
.source-main { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 15px; font-weight: 500; }
.source-detail { font-size: 14px; color: var(--ink-3); }

/* lists */
.link-list { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.plain-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.plain-list li { padding-top: 12px; border-top: 1px solid var(--divider); }
.breach-list { list-style: none; display: flex; flex-direction: column; }
.breach-row {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px;
  padding: 14px 0; border-top: 1px solid var(--divider);
}
.breach-row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 320px; }
.breach-row-title { font-weight: 600; color: var(--ink); }
.breach-row-title:hover { color: var(--accent); }
.breach-row-main .muted { font-size: 13px; }
.breach-row-facts { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; flex: 0 1 260px; font-size: 14px; }
.phone { white-space: nowrap; }

/* ------------------------------------------------------------------ footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); }
.footer-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px;
  padding-top: 28px; padding-bottom: 28px; font-size: 14px; color: var(--muted);
}
.footer-text { max-width: 620px; }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-links a { display: inline-block; padding: 4px 0; }

/* ------------------------------------------------------------------ larger screens */
@media (min-width: 720px) {
  :root { --gutter: 24px; }
  .page { padding-top: 28px; padding-bottom: 56px; gap: 24px; }
  .card { padding: 26px; }
  .card.fact-box { padding: 0; }
  .card-tight { padding: 22px; }
  .fact { padding: 18px 24px; }
  .fact-box-head { padding: 14px 24px; }
  .main-col { gap: 24px; }
  .lede { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

@media print {
  .site-header nav, .theme-toggle, .side-col, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  .card { border-color: #999; }
}

/* opt-out + static + guides */
.action-button {
  display: inline-block; background: var(--accent); color: var(--on-accent); text-decoration: none;
  padding: 12px 18px; border-radius: var(--radius-sm); font-weight: 600; line-height: 1.3; max-width: 100%;
}
.action-button:hover { background: var(--accent-hover); color: var(--on-accent); }
.status-badge {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin: 0;
  font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: 6px; line-height: 1.4;
}
.status-ok { color: #14532D; background: #E8F3EC; }
.status-unchecked { color: var(--ink-2); background: var(--chip-bg); font-weight: 500; }
:root[data-theme="dark"] .status-ok { color: #A7E3BC; background: #173326; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .status-ok { color: #A7E3BC; background: #173326; }
}
.glance-grid { grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); }
.url-line { font-size: 15px; overflow-wrap: anywhere; }
.url-list a, .url-line a { overflow-wrap: anywhere; word-break: break-word; }
.sub-title { font-size: 17px; margin-top: 4px; }
.guidance-note {
  margin: 0; font-size: 14px; color: var(--ink-3); background: var(--surface-3);
  border-left: 3px solid var(--border-strong); padding: 8px 12px; border-radius: 4px;
}
.steps { list-style: none; display: flex; flex-direction: column; }
.step { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--divider); }
.step-n {
  flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--surface-2); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.step > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.step-title { font-weight: 600; font-size: 16px; }
.step-body { font-size: 15px; line-height: 1.5; color: var(--ink-3); }
.drop-box { border-color: var(--border-strong); }
.registry-details summary { cursor: pointer; font-weight: 600; color: var(--accent); padding: 4px 0; }
.table-scroll { overflow-x: auto; max-width: 100%; }
.answer-table, .data-table { border-collapse: collapse; width: 100%; font-size: 14px; margin-top: 12px; }
.answer-table caption { text-align: left; font-weight: 600; padding: 6px 0; color: var(--ink-2); }
.answer-table th, .answer-table td, .data-table th, .data-table td {
  text-align: left; vertical-align: top; padding: 8px 10px; border-top: 1px solid var(--divider);
}
.answer-table th { font-weight: 500; }
.answer-table td { white-space: nowrap; width: 1%; }
.data-table thead th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.broker-search { display: flex; flex-direction: column; gap: 6px; }
.broker-search[hidden] { display: none; }
.broker-search label { font-weight: 600; }
.broker-search input {
  font: inherit; font-size: 16px; width: 100%; max-width: 480px; padding: 10px 12px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
}
.az-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; }
.az-nav[hidden] { display: none; }
.az-nav a {
  display: inline-flex; align-items: center; justify-content: center; min-width: 34px; min-height: 34px;
  border: 1px solid var(--border-strong); border-radius: 6px; text-decoration: none; font-weight: 600;
}
.az-group[hidden], .broker-list li[hidden] { display: none; }
.az-letter { font-family: var(--font-head); font-size: 22px; padding-top: 10px; scroll-margin-top: 12px; }
.broker-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 0 24px; }
.broker-list li { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-top: 1px solid var(--divider); min-width: 0; }
.broker-list a { font-weight: 600; }
.mini-badge { align-self: flex-start; font-size: 12px; color: #14532D; background: #E8F3EC; padding: 2px 6px; border-radius: 5px; }
:root[data-theme="dark"] .mini-badge { color: #A7E3BC; background: #173326; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mini-badge { color: #A7E3BC; background: #173326; }
}
.draft-note {
  margin: 0; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--amber-bg);
  border: 1px solid var(--amber-border); color: var(--amber-ink); font-size: 15px;
}
.prose { font-size: 16px; line-height: 1.65; }
.prose h2 { font-family: var(--font-head); font-size: 22px; margin-top: 8px; }
.prose h3 { font-size: 18px; margin-top: 4px; }
.prose ul, .prose ol { padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.prose p, .prose ul, .prose ol { margin: 0; }
.guide-link { font-weight: 600; font-size: 17px; }

/* settlements + hubs */
:root {
  --open-bg: #E8F3EC; --open-ink: #14532D;
  --soon-bg: #FFF4E5; --soon-ink: #8A3F05;
  --closed-bg: #EEF1F4; --closed-ink: #3B4754;
  --paid-bg: #E7F0F8; --paid-ink: #123E63;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --open-bg: #17301F; --open-ink: #9DDBB0;
    --soon-bg: #3D2D17; --soon-ink: #F2BC7A;
    --closed-bg: #22313E; --closed-ink: #C2CCD6;
    --paid-bg: #1C2A36; --paid-ink: #A6D0F3;
  }
}
:root[data-theme="dark"] {
  --open-bg: #17301F; --open-ink: #9DDBB0;
  --soon-bg: #3D2D17; --soon-ink: #F2BC7A;
  --closed-bg: #22313E; --closed-ink: #C2CCD6;
  --paid-bg: #1C2A36; --paid-ink: #A6D0F3;
}

/* buttons */
.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px;
  padding: 10px 18px; border-radius: var(--radius-sm); font: inherit; font-weight: 600; text-align: center;
  text-decoration: none; border: 1.5px solid var(--border-strong); background: var(--surface); color: var(--ink);
}
.cta:hover { border-color: var(--accent); color: var(--accent); }
.cta-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.cta-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.cta-secondary { border-color: var(--accent); color: var(--accent); }
.cta-lg { font-size: 17px; padding: 13px 24px; min-height: 52px; }
.cta[disabled] { opacity: 0.6; cursor: not-allowed; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* status badges and day counts */
.sett-badge {
  display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px;
  text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; font-family: var(--font-body);
}
.sett-badge-open { background: var(--open-bg); color: var(--open-ink); }
.sett-badge-closing-soon { background: var(--soon-bg); color: var(--soon-ink); }
.sett-badge-closed, .sett-badge-unknown { background: var(--closed-bg); color: var(--closed-ink); }
.sett-badge-payments-sent { background: var(--paid-bg); color: var(--paid-ink); }
.days-left { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* settlement cards (hub) */
.sett-list { display: flex; flex-direction: column; gap: 14px; }
.sett-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; display: flex; flex-wrap: wrap; gap: 16px 20px; align-items: center;
}
.sett-days {
  flex: 0 0 88px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 10px 6px; border-radius: 10px; background: var(--open-bg); color: var(--open-ink);
}
.sett-days-closing-soon { background: var(--soon-bg); color: var(--soon-ink); }
.sett-days-num { font-size: 28px; font-weight: 700; line-height: 1.1; }
.sett-days-num .days-left { font-weight: 700; }
.sett-days-unit { font-size: 12px; font-weight: 600; }
.sett-main { flex: 999 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.sett-head { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.sett-title { font-size: 19px; line-height: 1.3; }
.sett-title a { color: var(--ink); }
.sett-title a:hover { color: var(--accent); }
.sett-who { margin: 0; font-size: 15px; color: var(--ink-2); }
.sett-label { font-weight: 600; }
.sett-meta { margin: 0; font-size: 13px; color: var(--muted); }
.sett-side { flex: 1 1 200px; display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.sett-deadline { font-size: 14px; color: var(--muted); text-align: center; }
.sett-deadline strong { color: var(--ink); }
.sett-more { font-size: 14px; text-align: center; }

/* settlement page */
.deadline-big { font-family: var(--font-head); font-size: 30px; font-weight: 700; line-height: 1.2; color: var(--ink); margin: 0; }
.quote {
  margin: 0; padding: 14px 18px; border-left: 4px solid var(--border-strong); background: var(--surface-3);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink-2); font-size: 15px; line-height: 1.6;
  white-space: pre-line;
}
.steps-list { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }

/* tables (hubs, key dates, home) */
.table-wrap { width: 100%; }
.hub-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.hub-table th, .hub-table td { text-align: left; vertical-align: top; padding: 12px 10px 12px 0; border-top: 1px solid var(--divider); }
.hub-table thead th {
  border-top: 0; border-bottom: 1px solid var(--border); padding-top: 4px; font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted);
}
.hub-table tbody th { font-weight: 600; }
.hub-table .col-name a { color: var(--ink); }
.hub-table .col-name a:hover { color: var(--accent); }
.hub-table .col-num { white-space: nowrap; }
.hub-table .col-rank { color: var(--muted); width: 2.5em; }
.cell-note { display: block; font-size: 12px; color: var(--muted); white-space: normal; }
.dates-table tbody th { font-weight: 500; }
@media (max-width: 719px) {
  .hub-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .hub-table, .hub-table tbody, .hub-table tr { display: block; width: 100%; }
  .hub-table tr { padding: 12px 0; border-top: 1px solid var(--divider); display: flex; flex-direction: column; gap: 6px; }
  .hub-table th, .hub-table td { display: flex; gap: 10px; padding: 0; border: 0; min-width: 0; }
  .hub-table td[data-label]::before {
    content: attr(data-label); flex: 0 0 40%; font-size: 12px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.04em; color: var(--muted); padding-top: 2px;
  }
  .hub-table .col-num { white-space: normal; }
  .hub-table td > * { min-width: 0; }
  .hub-table .col-rank { width: auto; }
}

/* pager, link chips, hub cards */
.h1-page { font-size: 0.6em; color: var(--muted); font-family: var(--font-body); font-weight: 500; }
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding-top: 8px; font-size: 15px; }
.pager-list { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.pager-list a, .pager-list span {
  display: inline-flex; min-width: 40px; min-height: 40px; align-items: center; justify-content: center;
  padding: 0 8px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); text-decoration: none;
}
.pager-list span[aria-current] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.pager-gap { align-self: center; color: var(--muted); }
.pager-step { font-weight: 600; }
.link-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.link-chips a {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); font-size: 14px; min-height: 40px;
}
.link-chips a:hover { border-color: var(--accent); color: var(--accent); }
.link-count { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.search-results[hidden] { display: none; }

/* home */
.home-hero { display: flex; flex-direction: column; gap: 16px; padding: 12px 0 8px; }
.home-hero h1 { font-family: var(--font-head); font-size: clamp(30px, 7vw, 52px); line-height: 1.1; max-width: 820px; }
.home-hero .lede { font-size: 18px; max-width: 700px; }
.search-form { position: relative; display: flex; flex-wrap: wrap; gap: 10px; max-width: 680px; }
.search-form input[type=search] {
  flex: 1 1 240px; min-width: 0; font: inherit; font-size: 17px; padding: 13px 16px; min-height: 52px;
  border: 1.5px solid var(--border-strong); border-radius: 10px; background: var(--surface); color: var(--ink);
}
.search-form input[type=search]:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.search-suggest {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 5; margin-top: 6px; list-style: none;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 10px; overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.search-suggest[hidden] { display: none; }
.search-suggest a { display: block; padding: 10px 14px; color: var(--ink); text-decoration: none; border-top: 1px solid var(--divider); }
.search-suggest li:first-child a { border-top: 0; }
.search-suggest a:hover, .search-suggest li.is-active a { background: var(--surface-2); color: var(--accent); }
.source-pills { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); }
.source-pills li { background: var(--chip-bg); color: var(--chip-ink); padding: 5px 10px; border-radius: 999px; }
.card-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 12px; }
.closing-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.closing-list a {
  display: flex; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid var(--border);
  border-radius: 10px; text-decoration: none; color: var(--ink);
}
.closing-list a:hover { border-color: var(--accent); }
.closing-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.closing-name { font-weight: 600; }
.closing-date { font-size: 13px; color: var(--muted); }
.closing-days { align-self: center; font-size: 13px; color: var(--soon-ink); background: var(--soon-bg); padding: 5px 9px; border-radius: 6px; }
.digest-box { background: var(--dark-card-bg); border-color: var(--dark-card-bg); color: var(--dark-card-ink); }
.digest-box .side-title, .digest-box p, .digest-box label { color: var(--dark-card-ink); }
.digest-form { display: flex; flex-direction: column; gap: 8px; }
.digest-form input { font: inherit; padding: 12px 14px; border-radius: var(--radius-sm); border: 0; min-height: 44px; }
.digest-form .cta { background: #FFFFFF; color: #14202B; border-color: #FFFFFF; }
.digest-note { opacity: 0.85; }
.home-steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.home-steps li { display: flex; flex-direction: column; gap: 8px; padding: 18px; background: var(--surface-3); border-radius: 10px; }
.home-steps h3 { font-size: 18px; }
.home-steps p { font-size: 15px; color: var(--ink-3); margin: 0; }
.step-num {
  width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--on-accent);
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.browse-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 20px; }
/* settlements + hubs: pager groups, company links */
.pager { flex-direction: column; align-items: stretch; }
.pager-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.pager-groups { display: flex; flex-direction: column; gap: 8px; }
.pager-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.pager-group-label { flex: 0 0 64px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pager-group .pager-list a, .pager-group .pager-list span { min-width: 36px; min-height: 36px; font-size: 14px; }
.hub-table .col-name .company-link { color: var(--muted); font-weight: 400; font-size: 13px; }
.hub-table .col-name .company-link:hover { color: var(--accent); }
@media (max-width: 719px) { .hub-table .col-name { flex-direction: column; gap: 2px; } }

/* ------------------------------------------------------------------ civic theme (owner request:
   "a bit colourful, like a trustworthy government site"). Public-service palette: navy, blue,
   red, cyan and gold. Never imitates a real government site: no flag, seal or ".gov" banner. */
:root {
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: Merriweather, Georgia, "Times New Roman", serif;
  --navy: #162E51;
  --navy-2: #1A4480;
  --blue: #005EA2;
  --red: #B50909;
  --cyan-bg: #E7F6F8;
  --cyan-ink: #0E5763;
  --gold: #FFBE2E;
  --gold-bg: #FAF3D1;
  --green-bg: #ECF3EC;
  --green-ink: #19451A;
  --bg: #F0F2F5;
  --surface-2: #E1EBF5;
  --accent: #005EA2;
  --accent-hover: #1A4480;
  --chip-bg: #E1EBF5;
  --chip-ink: #162E51;
  --alert-bg: #F8E1DE;
  --alert-ink: #8B0A03;
  --amber-bg: #FAF3D1;
  --amber-border: #FFBE2E;
  --amber-tag: #FFBE2E;
  --amber-ink: #5C3A00;
  --focus: #2491FF;
  --dark-card-bg: #162E51;
  --radius: 6px;
  --radius-sm: 4px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --navy: #0B1A2E; --navy-2: #12305A; --bg: #0B141E; --surface: #13202E; --surface-2: #1A3050;
    --accent: #73B3E7; --accent-hover: #A8D2F5; --chip-bg: #1D3350; --chip-ink: #D9E8F6;
    --cyan-bg: #0E3640; --cyan-ink: #9BE3EE; --gold-bg: #3A2F0C; --green-bg: #183019; --green-ink: #B4DCB5;
    --alert-bg: #4A1410; --alert-ink: #FFB8B0; --amber-bg: #3A2F0C; --amber-tag: #6B5310; --amber-ink: #FFE29A;
  }
}
:root[data-theme="dark"] {
  --navy: #0B1A2E; --navy-2: #12305A; --bg: #0B141E; --surface: #13202E; --surface-2: #1A3050;
  --accent: #73B3E7; --accent-hover: #A8D2F5; --chip-bg: #1D3350; --chip-ink: #D9E8F6;
  --cyan-bg: #0E3640; --cyan-ink: #9BE3EE; --gold-bg: #3A2F0C; --green-bg: #183019; --green-ink: #B4DCB5;
  --alert-bg: #4A1410; --alert-ink: #FFB8B0; --amber-bg: #3A2F0C; --amber-tag: #6B5310; --amber-ink: #FFE29A;
}

/* strip + header + footer: navy bands */
.site-strip { background: #0B1A2E; color: #DCE4EF; font-size: 13px; }
.site-strip-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; padding-top: 6px; padding-bottom: 6px; }
.site-strip strong { color: #FFFFFF; font-weight: 600; }
.site-header { background: var(--navy); border-bottom: 5px solid var(--red); }
.brand, .brand-name, .brand:hover .brand-name { color: #FFFFFF; }
.brand svg { color: var(--gold); }
.main-nav a { color: #FFFFFF; font-weight: 600; border-bottom: 3px solid transparent; text-decoration: none; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: #FFFFFF; text-decoration: none; border-bottom-color: var(--gold); }
.theme-toggle { background: transparent; color: #FFFFFF; border-color: rgba(255,255,255,.45); }
.theme-toggle:hover { border-color: #FFFFFF; }
.site-footer { background: var(--navy); border-top: 5px solid var(--navy-2); color: #DCE4EF; }
.site-footer .footer-inner, .site-footer .muted { color: #DCE4EF; }
.site-footer a { color: #FFFFFF; }
.site-footer a:hover { color: var(--gold); }

/* headings and cards: blue top rule, serif titles */
h1, .page-head h1, .home-hero h1 { font-weight: 900; }
.section-title { color: var(--navy-2); font-weight: 700; }
.card { border-top: 4px solid var(--blue); }
.card.fact-box { border-top: 0; }
.eyebrow { color: var(--red); }
:root[data-theme="dark"] .section-title { color: #A8D2F5; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .section-title { color: #A8D2F5; } }

/* fact box: blue title band */
.fact-box-head { background: var(--navy-2); border-bottom: 0; }
.fact-box-head h2, .fact-box-head span { color: #FFFFFF; }
.fact dt { color: var(--navy-2); }
:root[data-theme="dark"] .fact dt { color: #A8D2F5; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fact dt { color: #A8D2F5; } }

/* home hero: navy panel with gold accent */
.home-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #FFFFFF;
  border-radius: var(--radius); padding: 28px 20px; border-bottom: 5px solid var(--gold);
}
.home-hero h1, .home-hero .lede { color: #FFFFFF; }
.home-hero .eyebrow { color: var(--gold); }
.home-hero .search-form input { border-color: #FFFFFF; }
.home-hero .cta-primary { background: var(--gold); border-color: var(--gold); color: #1B1B1B; }
.home-hero .cta-primary:hover { background: #FFD369; border-color: #FFD369; color: #1B1B1B; }
.home-hero .source-pills { color: #DCE4EF; }
.home-hero .source-pills li { background: rgba(255,255,255,.12); color: #FFFFFF; }
@media (min-width: 720px) { .home-hero { padding: 44px 40px; } }

/* page titles on inner pages get a coloured underline */
.page-head h1 { padding-bottom: 12px; border-bottom: 4px solid var(--gold); }

/* chips by kind: red = SSN/medical (already), blue default, cyan for contact data */
.chip { border: 1px solid transparent; }
.chip-alert { border-color: #E59393; }

/* settlement and lawsuit notices: gold band */
.notice { border-top: 4px solid var(--gold); }
.tag-amber { color: #1B1B1B; background: var(--gold); }

/* buttons: solid blue, square-ish */
.cta { border-radius: var(--radius-sm); font-weight: 700; }

/* checklist, timeline: blue markers */
.check-item input { accent-color: var(--blue); }
.timeline li::before { background: var(--red); }

/* step numbers on home in red circles */
.step-num { background: var(--red) !important; color: #FFFFFF !important; }

/* tables: navy header row */
.hub-table thead th { background: var(--navy-2); color: #FFFFFF; padding-left: 10px; padding-top: 10px; padding-bottom: 10px; }
.hub-table thead th:first-child { border-top-left-radius: var(--radius-sm); }
.hub-table thead th:last-child { border-top-right-radius: var(--radius-sm); }

/* monetisation: affiliate boxes, ad slots, email alert forms (generator/monetize.py).
   Breakpoint 960px: at or above it the sidebar always sits beside the main column, below it the
   sidebar always stacks underneath, so exactly one copy of an affiliate box is visible:
   .mon-desktop (sidebar) on wide screens, .mon-mobile (right after the checklist) on phones. */
@media (max-width: 959px) {
  .layout > .main-col, .layout > .side-col { flex-basis: 100%; }
  .mon-desktop { display: none !important; }
}
@media (min-width: 960px) {
  .layout { flex-wrap: nowrap; }
  .mon-mobile { display: none !important; }
}
.aff-box { border-top-color: var(--border-strong); background: var(--surface); }
.aff-label { margin: 0; }
.aff-tag {
  display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 3px 8px; border-radius: var(--radius-sm); background: var(--surface-3); color: var(--ink-3);
  border: 1px solid var(--border-strong);
}
.aff-compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 10px; }
.aff-compare-col { padding: 12px; border-radius: var(--radius-sm); background: var(--surface-3); display: flex; flex-direction: column; gap: 6px; }
.aff-compare-col p { margin: 0; }
.aff-compare-h { font-size: 15px; font-family: var(--font-body); }
.aff-disclosure { color: var(--ink-3); border-top: 1px solid var(--divider); padding-top: 10px; }
.aff-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.aff-item { display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.aff-item .cta { align-self: flex-start; }
.aff-features { padding-left: 20px; color: var(--ink-3); }
.aff-features-src { margin: 0; }

.ad-slot { display: flex; flex-direction: column; gap: 4px; contain: layout; }
.ad-label { margin: 0; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }

.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.alert-form { display: flex; flex-direction: column; gap: 6px; position: relative; }
.alert-row { display: flex; flex-wrap: wrap; gap: 8px; }
.alert-email {
  flex: 1 1 200px; min-width: 0; font: inherit; padding: 10px 12px; min-height: 44px;
  border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink);
}
.alert-submit { flex: 0 0 auto; }
.alert-note { margin: 0; color: var(--ink-3); }
.digest-box .alert-email { border: 0; }
.digest-box .alert-submit { background: #FFFFFF; color: #14202B; border-color: #FFFFFF; }
.digest-box .alert-note, .digest-box .alert-note a { color: var(--dark-card-ink); }
.footer-alerts { padding-top: 24px; }
.alert-inline { display: flex; flex-direction: column; gap: 8px; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,.18); max-width: 620px; }
.site-footer .alert-inline .side-title, .site-footer .alert-inline .alert-label, .site-footer .alert-inline .alert-note { color: #FFFFFF; }
.site-footer .alert-submit { background: var(--gold); border-color: var(--gold); color: #1B1B1B; }
.site-footer .alert-email { border-color: #FFFFFF; }
@media print { .aff-box, .ad-slot, .alert-box, .footer-alerts { display: none !important; } }
