:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --ink: #1b2a2f;
  --muted: #5b6b70;
  --line: #e2e0d8;
  --brand: #0f6b5c;
  --brand-ink: #ffffff;
  --brand-soft: #e3f1ec;
  --ok: #157a4a;
  --ok-soft: #e2f4ea;
  --warn: #9a6200;
  --warn-soft: #fbf0d9;
  --bad: #a23b2a;
  --bad-soft: #f9e5e1;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(20, 30, 30, .06), 0 4px 16px rgba(20, 30, 30, .04);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111817; --surface: #182120; --ink: #e8efed; --muted: #9aaba7; --line: #2a3634;
    --brand: #4fc3a8; --brand-ink: #0b1513; --brand-soft: #173a33;
    --ok: #6fd39e; --ok-soft: #173326; --warn: #f0be5a; --warn-soft: #3a2e12; --bad: #f08a77; --bad-soft: #3b1f1a;
    --shadow: none;
  }
}
:root[data-theme="dark"] {
  --bg: #111817; --surface: #182120; --ink: #e8efed; --muted: #9aaba7; --line: #2a3634;
  --brand: #4fc3a8; --brand-ink: #0b1513; --brand-soft: #173a33;
  --ok: #6fd39e; --ok-soft: #173326; --warn: #f0be5a; --warn-soft: #3a2e12; --bad: #f08a77; --bad-soft: #3b1f1a;
  --shadow: none;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font); }
a { color: var(--brand); text-underline-offset: 2px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.75rem, 4vw, 2.6rem); letter-spacing: -.01em; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.05rem; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

/* header / footer */
.top { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); text-decoration: none; font-size: 1.1rem; }
.logo-mark { width: 18px; height: 18px; border-radius: 50%; background: var(--brand-soft); display: grid; place-items: center; }
.logo-mark::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 var(--ok); animation: live 2.4s ease-out infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(21, 122, 74, .45); } 70%, 100% { box-shadow: 0 0 0 7px rgba(21, 122, 74, 0); } }
@media (prefers-reduced-motion: reduce) { .logo-mark::after { animation: none; } }
.top-nav { display: flex; gap: 18px; align-items: center; font-size: .95rem; }
.top-nav a { color: var(--ink); text-decoration: none; }
.top-nav a:hover { color: var(--brand); }
.top-cta { border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; }
@media (max-width: 560px) { .top-nav a:not(.top-cta) { display: none; } }
.foot { margin-top: 64px; background: var(--surface); border-top: 1px solid var(--line); padding: 32px 0 24px; }
.crisis { background: var(--brand-soft); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 24px; }
.foot-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
.foot-cols a { display: block; color: var(--ink); text-decoration: none; padding: 3px 0; font-size: .92rem; }
.foot-cols a:hover { color: var(--brand); }
.foot-brand { font-weight: 700; margin: 0 0 6px; }
.foot-h { font-weight: 600; margin: 0 0 6px; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
@media (max-width: 760px) { .foot-cols { grid-template-columns: 1fr 1fr; } .foot-cols > div:first-child { grid-column: 1 / -1; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--brand); color: var(--brand-ink); border: 1px solid var(--brand); border-radius: 10px; padding: 9px 16px; font: 600 .95rem var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; min-height: 44px; }
.btn:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--line); }
.btn-lg { padding: 12px 22px; font-size: 1rem; }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: .875rem; }

/* home */
.hero { padding: 48px 0 24px; max-width: 820px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
.hero em { font-style: italic; color: var(--brand); }
.lede { font-size: 1.1rem; color: var(--muted); max-width: 70ch; }
.search { display: grid; grid-template-columns: 1.2fr 1.2fr 1fr auto; gap: 10px; align-items: end; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; box-shadow: var(--shadow); margin: 24px 0 10px; }
.search label span { display: block; font-size: .8rem; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
@media (max-width: 760px) { .search { grid-template-columns: 1fr; } }
select, input[type="text"], input[type="email"], input:not([type]), input[inputmode] { width: 100%; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; min-height: 44px; }
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 40px 0; }
.how > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.how .num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 700; margin-bottom: 8px; }
.how p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .how { grid-template-columns: 1fr; } }

/* listing */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .85rem; color: var(--muted); padding: 18px 0 0; }
.crumbs a { color: var(--muted); }
.hero-sm { padding: 18px 0 8px; }
.stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.stats > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; min-width: 140px; }
.stats strong { display: block; font-size: 1.25rem; }
.stats span { font-size: .82rem; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin: 18px 0; position: sticky; top: 68px; z-index: 3; }
.filters label { font-size: .8rem; font-weight: 600; color: var(--muted); display: flex; flex-direction: column; gap: 4px; flex: 1 1 140px; }
.filters label.check { flex: 0 0 auto; flex-direction: row; align-items: center; gap: 6px; min-height: 44px; font-size: .9rem; color: var(--ink); font-weight: 500; }
.filter-count { margin: 0 0 0 auto; font-size: .85rem; color: var(--muted); align-self: center; }
@media (max-width: 640px) { .filters { position: static; } .filters label { flex: 1 1 45%; } }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.card { display: flex; justify-content: space-between; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.card[hidden] { display: none; }
.card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.card h3 { margin: 0; font-size: 1.08rem; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--brand); text-decoration: underline; }
.card p { margin: 4px 0 0; }
.card-sub { color: var(--muted); font-size: .92rem; }
.card-ins { font-size: .95rem; }
.card-loc { font-size: .88rem; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-right: 6px; vertical-align: middle; }
.card-act { display: flex; flex-direction: column; gap: 8px; justify-content: center; }
@media (max-width: 640px) { .card { flex-direction: column; } .card-act { flex-direction: row; } .card-act .btn { flex: 1; } }
.conf { font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.conf-lg { font-size: .85rem; padding: 5px 12px; }
.conf-high { background: var(--ok-soft); color: var(--ok); }
.conf-medium { background: var(--warn-soft); color: var(--warn); }
.conf-low, .conf-none { background: var(--bad-soft); color: var(--bad); }
.empty, .noresults { padding: 24px; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }
.pager { display: flex; justify-content: center; align-items: center; gap: 18px; margin: 20px 0; }
.links { margin: 32px 0; }
.links ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.links li { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.links li a { font-weight: 600; text-decoration: none; }
.links li .muted { display: block; font-size: .85rem; }
.faq { margin: 32px 0; max-width: 760px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin-bottom: 8px; }
.faq summary { cursor: pointer; font-weight: 600; }
.partner { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 24px 0; }
.tag { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 6px; font-weight: 700; }

/* provider */
.prov-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 18px 0 10px; flex-wrap: wrap; }
.prov-cta { display: flex; flex-direction: column; gap: 8px; min-width: 240px; }
@media (max-width: 640px) { .prov-cta { width: 100%; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 14px 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.two .panel { margin: 0; }
@media (max-width: 760px) { .two { grid-template-columns: 1fr; gap: 14px; } }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.pill { font-size: .8rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.pill-ok { background: var(--ok-soft); color: var(--ok); }
.pill-no { background: var(--bad-soft); color: var(--bad); }
.pill-unk { background: var(--bg); color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding: 6px 0; display: flex; gap: 10px; }
.checks li span { font-weight: 700; width: 18px; flex: none; }
.checks li.ok span { color: var(--ok); }
.checks li.no { color: var(--muted); }
.plain { padding-left: 18px; }
.script { background: var(--bg); border-radius: 10px; padding: 12px; font-size: .93rem; }
.claim { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--brand-soft); border-radius: var(--radius); padding: 18px; margin: 24px 0; flex-wrap: wrap; }
.claim h2 { margin: 0 0 4px; }
.claim p { margin: 0; }

/* prose & forms */
.prose { max-width: 720px; padding-top: 18px; }
.prose li { margin-bottom: 6px; }
.stack { display: grid; gap: 14px; max-width: 520px; }
.stack label { display: grid; gap: 4px; font-weight: 600; font-size: .9rem; }
.stack label.check { display: flex; font-weight: 500; }
fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: grid; gap: 6px; }
legend { font-weight: 600; padding: 0 4px; }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 20px 0; }
.tier { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; }
.tier ul { padding-left: 18px; flex: 1; }
.tier-main { border: 2px solid var(--brand); }
.price { font-size: 2rem; font-weight: 700; margin: 0; }
.price span { font-size: 1rem; color: var(--muted); font-weight: 500; }
@media (max-width: 760px) { .tiers { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .table-wrap table, .table-wrap tbody, .table-wrap tr, .table-wrap th, .table-wrap td { display: block; }
  .table-wrap thead { display: none; }
  .table-wrap tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .table-wrap th, .table-wrap td { border: 0; padding: 4px 0; }
  .table-wrap td::before { content: attr(data-label); display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
}
@media (max-width: 640px) {
  .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .stats > div { min-width: 0; padding: 8px 10px; }
  .stats strong { font-size: 1rem; }
  .stats span { font-size: .72rem; }
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
