/* Inter, self-hosted (SIL Open Font License) so no request goes to Google. */
@font-face { font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/inter-latin-wght-normal.woff2) format("woff2"); }
:root {
  --bg: #f4f6fa; --card: #fff; --text: #0f172a; --muted: #64748b; --line: #e2e8f0; --soft: #f8fafc;
  --brand: #1d4ed8; --brand-dark: #1e40af; --navy: #0b1b3a; --navy-2: #13294f;
  --ok: #15803d; --okbg: #dcfce7; --bad: #b91c1c; --badbg: #fee2e2; --warn: #a16207; --warnbg: #fef3c7;
  --radius: 14px; --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 16px rgba(15, 23, 42, .05);
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* Header */
.top { background: var(--navy); color: #fff; }
.top .wrap { display: flex; gap: 20px; align-items: center; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; color: inherit; }
.logo:hover { text-decoration: none; }
.topnav { display: flex; gap: 18px; margin-left: auto; font-size: 14px; font-weight: 500; }
.topnav a { color: #cbd5e1; }
.topnav a:hover { color: #fff; text-decoration: none; }

/* Search */
.search { display: flex; flex: 1; min-width: 240px; max-width: 520px; background: #fff; border-radius: 10px; padding: 4px; box-shadow: var(--shadow); }
.search input { flex: 1; min-width: 0; border: 0; outline: none; padding: 8px 12px; font: inherit; font-size: 15px; color: var(--text); background: transparent; }
.search button { border: 0; background: var(--brand); color: #fff; border-radius: 7px; padding: 8px 18px; font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; }
.search button:hover { background: var(--brand-dark); }
.search.big { max-width: 680px; margin: 0 auto; padding: 6px; border-radius: 14px; }
.search.big input { padding: 14px 16px; font-size: 17px; }
.search.big button { padding: 12px 26px; font-size: 16px; border-radius: 10px; }

/* Hero */
.hero { background: radial-gradient(1200px 400px at 50% -10%, #1f3d7a 0%, var(--navy) 60%); color: #fff; text-align: center; padding: 56px 0 64px; }
.hero h1 { font-size: 44px; line-height: 1.12; letter-spacing: -.03em; margin: 8px auto 14px; max-width: 760px; }
.hero .lead { color: #cbd5e1; font-size: 18px; max-width: 640px; margin: 0 auto 28px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #93c5fd; background: rgba(59, 130, 246, .15); padding: 4px 12px; border-radius: 999px; margin: 0; }
.hint { font-size: 14px; color: #94a3b8; margin: 14px 0 0; }
.hint a { color: #bfdbfe; }
.hero-stats { display: flex; justify-content: center; gap: 40px; list-style: none; padding: 0; margin: 36px 0 0; color: #94a3b8; font-size: 14px; }
.hero-stats b { display: block; color: #fff; font-size: 26px; font-weight: 700; letter-spacing: -.02em; }

/* Content */
main.wrap { padding-top: 28px; padding-bottom: 56px; }
h1 { font-size: 32px; line-height: 1.2; letter-spacing: -.025em; margin: 8px 0 8px; }
h2 { font-size: 19px; letter-spacing: -.01em; margin: 0 0 14px; }
h2 small { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 6px; }
h3 { font-size: 15px; margin: 18px 0 8px; }
section { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 16px 0; box-shadow: var(--shadow); }
section.flush { padding: 0; overflow: hidden; }
section.flush .list th:first-child, section.flush .list td:first-child { padding-left: 18px; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sec-head a { font-size: 14px; font-weight: 600; white-space: nowrap; }
.lead-sm { color: var(--muted); margin: 0 0 8px; }
.crumbs { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.crumbs .sep { margin: 0 8px; color: #cbd5e1; }
.crumbs a { color: var(--muted); }
.sub { color: var(--muted); font-size: 13px; margin: 0; }
.prose { max-width: 760px; }

/* Status pills */
.st { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: #eef2f7; color: #334155; white-space: nowrap; }
.st-active { background: var(--okbg); color: var(--ok); }
.st-inactive, .st-not, .st-revocation { background: var(--badbg); color: var(--bad); }
.st-pending, .st-withdrawn { background: var(--warnbg); color: var(--warn); }

/* Home */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: -48px 0 8px; position: relative; }
.features > div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.features h3 { margin: 10px 0 4px; font-size: 16px; }
.features p { margin: 0; color: var(--muted); font-size: 14px; }
.fi { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: #dbeafe; color: var(--brand); font-weight: 800; }
.city-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.city-grid a { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); font-size: 14.5px; font-weight: 500; }
.city-grid a:hover { border-color: #93c5fd; background: #eff6ff; text-decoration: none; }
.n { color: var(--muted); font-size: 12.5px; font-weight: 500; }

.cityfind input { width: 100%; max-width: 420px; padding: 11px 14px; font: inherit; font-size: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); outline: 0; }
.cityfind input:focus { border-color: #93c5fd; background: #fff; box-shadow: 0 0 0 3px #dbeafe; }
.az { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; position: sticky; top: 0; background: var(--card); padding: 8px 0; z-index: 2; }
.az a { display: inline-grid; place-items: center; min-width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.az a:hover { background: #eff6ff; text-decoration: none; }
.az-h { font-size: 18px; margin: 20px 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line); scroll-margin-top: 56px; }
.az-list { list-style: none; padding: 0; margin: 0; columns: 4 180px; column-gap: 24px; }
.az-list li { padding: 3px 0; break-inside: avoid; font-size: 14.5px; }

/* Tables */
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
.num { font-variant-numeric: tabular-nums; }
.kv th { width: 38%; color: var(--muted); font-weight: 500; padding-left: 0; }
.kv td { font-weight: 500; }
.list thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; background: var(--soft); }
.list tbody tr:hover { background: var(--soft); }
.list .name { font-weight: 600; }
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.scroll .list { min-width: 560px; }

/* Carrier page header */
.phead { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 12px 0 0; box-shadow: var(--shadow); }
.phead-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.phead h1 { margin: 0 0 2px; }
.idline { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.idline span + span::before { content: "•"; margin-right: 16px; color: #cbd5e1; }
.btn { display: inline-block; white-space: nowrap; background: var(--soft); border: 1px solid var(--line); color: var(--text); font-weight: 600; font-size: 14px; padding: 9px 14px; border-radius: 10px; }
.btn:hover { background: #eef2f7; text-decoration: none; }
.checks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 20px 0 10px; }
.chk { display: flex; gap: 12px; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--soft); }
.chk .ic { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 800; color: #fff; background: #94a3b8; }
.chk .ic::before { content: "–"; }
.chk-ok { background: #f0fdf4; border-color: #bbf7d0; } .chk-ok .ic { background: var(--ok); } .chk-ok .ic::before { content: "✓"; }
.chk-warn { background: #fffbeb; border-color: #fde68a; } .chk-warn .ic { background: #d97706; } .chk-warn .ic::before { content: "!"; }
.chk-bad { background: #fef2f2; border-color: #fecaca; } .chk-bad .ic { background: var(--bad); } .chk-bad .ic::before { content: "✕"; }
.chk-label { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
.chk-value { font-size: 18px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
.chk-note { font-size: 12.5px; color: var(--muted); }
.toc { position: sticky; top: 0; z-index: 5; display: flex; gap: 4px; overflow-x: auto; background: rgba(244, 246, 250, .92); backdrop-filter: blur(6px); padding: 10px 0; margin-top: 4px; }
.toc a { flex: none; padding: 6px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--muted); }
.toc a:hover { background: var(--card); color: var(--text); text-decoration: none; }

/* Two-column carrier layout */
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.grid2 section:first-child { margin-top: 4px; }
.side { position: sticky; top: 60px; display: grid; gap: 16px; margin-top: 4px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); font-size: 14px; }
.card h3 { margin: 0 0 10px; }
.card dl { margin: 0; }
.card dt { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; margin-top: 10px; }
.card dt:first-child { margin-top: 0; }
.card dd { margin: 2px 0 0; font-weight: 500; }
.card.tip { background: #eff6ff; border-color: #bfdbfe; }
.card.tip ul { margin: 0; padding-left: 18px; }
.card.tip li { margin-bottom: 6px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stats div { background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.stats b { display: block; font-size: 24px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stats span { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.chips span { display: inline-block; background: #eef2f7; border-radius: 999px; padding: 3px 11px; margin: 0 6px 6px 0; font-size: 13px; font-weight: 500; }
details { border-bottom: 1px solid var(--line); padding: 4px 0; }
details:last-child { border-bottom: 0; }
summary { cursor: pointer; font-weight: 600; padding: 8px 0; }
details p { margin: 0 0 10px; color: #334155; }
.asof { font-size: 12.5px; color: var(--muted); }
.note { background: var(--warnbg); border: 1px solid #fde68a; border-radius: 12px; padding: 14px 16px; margin-top: 16px; font-size: 14px; }
.pager { display: flex; gap: 16px; justify-content: center; align-items: center; margin: 20px 0; font-weight: 500; }

/* Footer */
.foot { background: var(--navy); color: #94a3b8; font-size: 13.5px; padding: 40px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.foot .logo { color: #fff; margin-bottom: 8px; }
.foot h4 { color: #fff; font-size: 13px; margin: 4px 0 10px; }
.foot-grid a:not(.logo) { display: block; color: #cbd5e1; margin-bottom: 6px; }

@media (max-width: 900px) {
  .grid2 { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; }
  .checks { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  h1 { font-size: 25px; }
  .hero { padding: 40px 0 56px; }
  .hero h1 { font-size: 30px; }
  .hero .lead { font-size: 16px; }
  .hero-stats { gap: 22px; }
  .hero-stats b { font-size: 21px; }
  .topnav { display: none; }
  .search.in-header { order: 3; flex-basis: 100%; max-width: none; }
  .search.big input { padding: 12px; font-size: 16px; }
  .search.big button { padding: 10px 16px; }
  .features { grid-template-columns: 1fr; margin-top: -36px; }
  section, .phead { padding: 16px; }
  .phead-top { flex-direction: column; }
  /* Summary checks as a compact one-column checklist. */
  .checks { grid-template-columns: 1fr; gap: 8px; margin-top: 14px; }
  .chk { gap: 10px; padding: 10px 12px; }
  .chk .ic { width: 22px; height: 22px; font-size: 12px; }
  .chk-label { font-size: 11px; }
  .chk-value { font-size: 16px; }
  .chk-note, .chk-src { font-size: 12.5px; }
  .idline span + span::before { margin-right: 8px; }
  .idline { gap: 4px 8px; }
  .kv th { width: 45%; }
  .foot-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* Source dates and freshness */
.chk-src { font-size: 12.5px; color: var(--muted); margin-top: 4px; font-weight: 500; }
.chk-stale { background: #fffbeb; border-color: #fcd34d; border-style: dashed; } .chk-stale .ic { background: #b45309; } .chk-stale .ic::before { content: "?"; }
.chk-stale .chk-src { color: #92400e; font-weight: 600; }
.chk-neutral .ic::before { content: "i"; font-style: italic; font-family: Georgia, serif; }
.srcchip { display: inline-block; vertical-align: middle; margin-left: 8px; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.srcchip.fresh { background: var(--okbg); color: var(--ok); }
.srcchip.old { background: var(--warnbg); color: #92400e; }
.verify { font-size: 13.5px; background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 14px 0 0; }
.stale-note { font-size: 13.5px; background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; padding: 10px 12px; margin: 4px 0 0; }
.ext { font-weight: 600; white-space: nowrap; }
.phead-btns { display: flex; flex-direction: column; gap: 8px; }
.method { margin-top: 14px; font-size: 13.5px; color: #334155; border: 0; }
.method summary { font-weight: 500; color: var(--brand); padding: 4px 0; }

/* City filters */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 14px 0 4px; font-size: 14.5px; }
.filters select { font: inherit; font-size: 14.5px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.filters label { display: inline-flex; gap: 6px; align-items: center; font-weight: 500; }
.filters button { font: inherit; font-weight: 600; font-size: 14.5px; border: 0; background: var(--brand); color: #fff; border-radius: 8px; padding: 7px 16px; cursor: pointer; }

/* Mobile menu */
.mnav { display: none; margin-left: auto; position: relative; }
.mnav summary { list-style: none; cursor: pointer; color: #fff; font-weight: 600; font-size: 14px; padding: 6px 12px; border: 1px solid rgba(255,255,255,.3); border-radius: 8px; }
.mnav summary::-webkit-details-marker { display: none; }
.mnav nav { position: absolute; right: 0; top: 42px; z-index: 20; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 8px; min-width: 200px; }
.mnav nav a { display: block; padding: 8px 12px; color: var(--text); border-radius: 8px; }

/* Keyboard focus */
a:focus-visible, button:focus-visible, select:focus-visible, summary:focus-visible, input[type=checkbox]:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; border-radius: 4px; }
.search:focus-within { box-shadow: 0 0 0 3px #93c5fd, var(--shadow); }
.hero .search:focus-within { box-shadow: 0 0 0 4px #60a5fa; }

@media (max-width: 640px) {
  .mnav { display: block; }
  .phead-btns { flex-direction: row; flex-wrap: wrap; }
  .filters select { flex: 1 1 140px; }
}

/* Roles and violation bars */
.role { display: inline-block; margin: 6px 0 0; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #6d28d9; background: #ede9fe; padding: 2px 10px; border-radius: 999px; }
.bar { display: inline-block; width: 60px; height: 6px; background: #e2e8f0; border-radius: 3px; margin-right: 8px; vertical-align: middle; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--brand); }
.nowrap { white-space: nowrap; }

/* Last-known (pre-Motus) status in lists: same colour family, visibly marked as old */
.st.st-old { background: transparent; border: 1px dashed currentColor; }
.st-other { background: var(--warnbg); color: var(--warn); }

/* Report actions, next steps */
.actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.act { font: inherit; font-size: 13px; font-weight: 600; color: var(--text); background: var(--soft); border: 1px solid var(--line); border-radius: 8px; padding: 5px 10px; cursor: pointer; text-decoration: none; }
.act:hover { background: #eef2f7; text-decoration: none; }
.assure { font-size: 13px; color: var(--muted); margin: 2px 0 12px; }
.next { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 12px; padding: 14px 18px; margin: 0 0 12px; }
.next h2 { font-size: 16px; margin: 0 0 6px; }
.next ol { margin: 0; padding-left: 20px; font-size: 14.5px; }
.next li { margin: 3px 0; }

@media print {
  .top, .foot, .toc, .actions, .phead-btns, .side .tip, .filters, .mnav, .search { display: none !important; }
  body { background: #fff; font-size: 12px; }
  section, .phead, .card { box-shadow: none; break-inside: avoid; }
  .grid2 { grid-template-columns: 1fr; }
  a { color: inherit; }
  .chk { break-inside: avoid; }
}

/* Home: sample report preview */
.hint .sample-link { color: #fff; font-weight: 600; text-decoration: underline; }
.sample .sample-frame { border: 1px dashed #cbd5e1; border-radius: var(--radius); padding: 8px; background: var(--soft); }
.sample .sample-frame .phead { margin: 0; box-shadow: none; }
.features { margin-top: 16px; }
.sample { margin-top: -76px; position: relative; }
@media (max-width: 640px) { .sample { margin-top: -64px; } main.wrap { padding-top: 20px; } }

/* Phones: every list table becomes a stack of cards, so nothing scrolls sideways.
   The first cell is the card title; the others show their column name from data-label. */
@media (max-width: 640px) {
  .scroll .list { min-width: 0; }
  .list thead { display: none; }
  .list, .list tbody { display: block; }
  .list tr { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 12px; border-bottom: 1px solid var(--line); }
  .list tbody tr:hover { background: none; }
  .list td, section.flush .list td:first-child { display: block; padding: 0; border: 0; font-size: 14px; }
  .list td::before { content: attr(data-label); display: block; margin-bottom: 1px; font-size: 10.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
  .list td { flex: 0 1 auto; min-width: 56px; overflow-wrap: anywhere; }
  .list td:first-child { flex-basis: 100%; font-size: 15px; font-weight: 600; }
  .list td:first-child::before { display: none; }
  /* Cells with a second line (insurer + policy, status + source) get the full width. */
  .list td:has(.sub) { flex-basis: 100%; }
  .list td.num { font-variant-numeric: tabular-nums; }
  .list .bar { display: none; }
  /* Keep values on one baseline even when a label wraps to two lines. */
  .list td:not(:first-child):not(:has(.sub)) { display: flex; flex-direction: column; align-items: flex-start; }
  .list td:not(:first-child):not(:has(.sub))::before { flex: 1; }
}

/* Report header: copyable IDs, one meta line, a main call action. */
.ids { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.idchip { font: inherit; font-size: 13.5px; font-weight: 600; color: var(--text); background: var(--soft); border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px 4px 10px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.idchip .cp { color: var(--muted); font-size: 12px; }
.idchip:hover { background: #eef2f7; }
.idmeta { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.act-main { background: var(--brand); color: #fff; border-color: var(--brand); }
.act-main:hover { background: var(--brand-dark); }

/* Foldable detail sections */
details.fold { border: 0; padding: 0; margin: 8px 0 0; }
details.fold > summary { font-weight: 600; font-size: 14px; color: var(--brand); padding: 6px 0; }
.filt > summary { display: none; }
.toc { scrollbar-width: none; }
.toc::-webkit-scrollbar { display: none; }
.sample .actions, .sample .phead-btns { display: none; }
.cityfind { margin: 12px 0 4px; }

@media (max-width: 640px) {
  .hide-m { display: none !important; }
  .actions { margin-top: 10px; }
  .act { padding: 8px 12px; font-size: 14px; }
  .act-main { flex: 1; text-align: center; }
  details.fold > summary { background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; color: var(--text); }
  details.fold[open] > summary { margin-bottom: 8px; }
  #faq details.fold > summary { background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 10px 0; }
  .filt > summary { display: list-item; }
  .city-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
  .city-grid a { padding: 8px 10px; font-size: 14px; }
  .az-list { columns: 2; }
  .stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stats div { padding: 10px; }
  .stats b { font-size: 20px; }
}
@media (max-width: 640px) { .lead-sm { font-size: 15px; } }
