/* Breakdown Choices — single stylesheet, no build step.
   Palette: tarmac / stone / hazard amber / verge green / signal red. */

:root {
  --bg: #F3F4F1;
  --bg-header: #1F2328;
  --ink: #1F2328;
  --ink-2: #4A5560;
  --amber: #F5A623;
  --amber-ink: #8A5400;
  --green: #2E7D5B;
  --red: #C8372D;
  --line: #D9DBD6;
  --white: #FFFFFF;
  --font: "Archivo", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wrap: 1180px;
  --narrow: 72ch;
  --radius: 3px;
}

* { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
}

a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--amber-ink); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid var(--amber); outline-offset: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--font);
  font-variation-settings: "wdth" 80;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-top: 1.8em; }
h3 { font-size: 1.2rem; margin-top: 1.4em; }
p, ul, ol, dl { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: 0.35em; }
strong { font-weight: 700; }

.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--amber); color: var(--ink); padding: 0.5rem 1rem; z-index: 100; }
.skip:focus { left: 0.5rem; top: 0.5rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: var(--wrap); }
.narrow > :not(.tablewrap):not(.pcards):not(.cards):not(.hubs) { max-width: var(--narrow); }
.page-head h1 { max-width: 22ch; }
.small { font-size: 0.875rem; color: var(--ink-2); }

/* ---------- header ---------- */
.site-header {
  background: var(--bg-header);
  color: var(--white);
  border-top: 4px solid var(--amber);
}
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--white); text-decoration: none; font-weight: 700; font-size: 1.25rem; font-variation-settings: "wdth" 85; letter-spacing: -0.01em; }
.brand .mark { width: 28px; height: 28px; color: var(--amber); }
.brand b { color: var(--amber); font-weight: 700; }
.primary { margin-left: auto; }
.primary ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.1rem; flex-wrap: wrap; }
.primary a { color: var(--white); text-decoration: none; padding: 0.55rem 0.8rem; display: block; border-bottom: 2px solid transparent; font-size: 0.98rem; }
.primary a:hover { color: var(--amber); }
.primary a[aria-current="page"] { border-bottom-color: var(--amber); }
.navtoggle { display: none; margin-left: auto; background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.35); border-radius: var(--radius); padding: 0.45rem 0.9rem; font: inherit; cursor: pointer; }
@media (max-width: 860px) {
  .navtoggle { display: inline-block; }
  .primary { display: none; width: 100%; margin: 0; }
  .primary.open { display: block; }
  .primary ul { flex-direction: column; padding-bottom: 0.75rem; }
  .primary a { padding: 0.65rem 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
}

/* hazard band: the one decorative device on the site */
.hero, .page-head { position: relative; }
.hero::before, .page-head::before {
  content: ""; display: block; height: 8px;
  background: repeating-linear-gradient(135deg, var(--amber) 0 18px, var(--bg-header) 18px 36px);
}

/* ---------- hero (home) ---------- */
.hero { background: var(--bg-header); color: var(--white); padding-bottom: 2.5rem; }
.hero .wrap { padding-top: 2.5rem; max-width: 960px; }
.hero h1 { color: var(--white); max-width: 18ch; }
.hero .lede { color: #D6D9DC; font-size: 1.15rem; max-width: 62ch; }
.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 66ch; }
.hero .lede { color: #D6D9DC; }

.finder { background: var(--white); color: var(--ink); padding: 1.25rem 1.5rem 1rem; margin-top: 1.75rem; border-left: 6px solid var(--amber); }
.finder h2 { margin-top: 0; font-size: 1.25rem; }
.finder-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 2rem; }
.finder fieldset { border: 0; padding: 0; margin: 0; }
.finder legend { font-weight: 700; margin-bottom: 0.4rem; padding: 0; }
.finder label { display: inline-flex; align-items: center; gap: 0.4rem; margin: 0 1rem 0.4rem 0; cursor: pointer; }
.finder input[type="radio"] { accent-color: var(--amber-ink); width: 1.1rem; height: 1.1rem; }
.finder-actions { grid-column: 1 / -1; margin: 0.25rem 0 0; }
@media (max-width: 640px) { .finder-form { grid-template-columns: 1fr; } }

/* ---------- page head ---------- */
.page-head { background: var(--white); border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; }
.page-head .wrap { padding-top: 1.75rem; padding-bottom: 1.5rem; }
.kicker { color: var(--amber-ink); font-weight: 700; margin: 0 0 0.4rem; font-variation-settings: "wdth" 85; }
.meta { color: var(--ink-2); font-size: 0.9rem; margin: 0.5rem 0 0; }

.crumbs { font-size: 0.9rem; max-width: var(--wrap); margin: 0.75rem auto 0; padding: 0 1.25rem; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.crumbs li + li::before { content: "/"; color: var(--ink-2); margin-right: 0.35rem; }
.crumbs a { color: var(--ink-2); }
.crumbs [aria-current] { color: var(--ink); }

/* ---------- buttons ---------- */
.btn { display: inline-block; background: var(--amber); color: var(--ink); font-weight: 700; text-decoration: none; padding: 0.7rem 1.2rem; border-radius: var(--radius); border: 2px solid var(--amber); font: inherit; font-weight: 700; cursor: pointer; line-height: 1.2; }
.btn:hover { background: #FFB63A; color: var(--ink); border-color: #FFB63A; }
.btn-small { padding: 0.4rem 0.75rem; font-size: 0.9rem; }
.btn-ghost { background: transparent; border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.more { font-weight: 700; }

/* ---------- prose ---------- */
.prose { padding-top: 0.5rem; padding-bottom: 1.5rem; }
.prose h2 { padding-top: 0.2em; }
.prose ul.levels { list-style: none; padding: 0; }
.prose ul.levels li { padding: 0.65rem 0; border-top: 1px solid var(--line); }
.prose ul.levels li:last-child { border-bottom: 1px solid var(--line); }
.prose ol.steps { counter-reset: s; list-style: none; padding: 0; }
.prose ol.steps li { counter-increment: s; position: relative; padding-left: 2.6rem; margin-bottom: 0.7rem; }
.prose ol.steps li::before { content: counter(s); position: absolute; left: 0; top: 0.05rem; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--amber); color: var(--ink); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-size: 0.95rem; }

/* ---------- hub link lists / cards (rule-separated, not boxed) ---------- */
.hubs, .cards { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 2rem; }
.hubs li, .cards li { border-top: 2px solid var(--ink); }
.hubs a, .cards a { display: block; padding: 0.9rem 0 1.1rem; text-decoration: none; color: var(--ink); }
.hubs a:hover strong, .cards a:hover strong { color: var(--amber-ink); text-decoration: underline; }
.hubs strong, .cards strong { display: block; font-size: 1.12rem; margin-bottom: 0.3rem; font-variation-settings: "wdth" 85; }
.hubs span, .cards span { color: var(--ink-2); font-size: 0.95rem; display: block; }
.qa-list { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* provider summary cards */
.pcards { list-style: none; padding: 0; margin: 1rem 0 2rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.pcard { background: var(--white); border: 1px solid var(--line); padding: 1.1rem 1.25rem 1rem; display: flex; flex-direction: column; }
.pcard h3 { margin-top: 0; font-size: 1.25rem; }
.pcard h3 a { text-decoration: none; }
.pcard h3 a:hover { text-decoration: underline; }
.pcard dl { display: grid; grid-template-columns: auto 1fr; gap: 0.2rem 0.75rem; font-size: 0.92rem; margin: 0.25rem 0 0.9rem; }
.pcard dt { color: var(--ink-2); }
.pcard dd { margin: 0; }
.pcard-actions { margin-top: auto; margin-bottom: 0; display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* ---------- comparison table ---------- */
.tablewrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); margin: 1rem 0 1.5rem; -webkit-overflow-scrolling: touch; }
table.compare { border-collapse: collapse; width: 100%; min-width: 900px; font-size: 0.95rem; }
table.compare caption { caption-side: bottom; text-align: left; padding: 0.75rem 1rem; color: var(--ink-2); font-size: 0.85rem; border-top: 1px solid var(--line); }
table.compare th, table.compare td { padding: 0.65rem 0.75rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
table.compare thead th { background: var(--bg-header); color: var(--white); font-weight: 700; font-variation-settings: "wdth" 85; position: sticky; top: 0; }
table.compare tbody th { font-weight: 700; position: sticky; left: 0; background: var(--white); min-width: 180px; }
table.compare tbody tr:hover td, table.compare tbody tr:hover th { background: #FBF7EE; }
table.compare td:nth-child(n+4):nth-child(-n+10) { text-align: center; }
table.compare .act { text-align: right; white-space: nowrap; }
.yes { color: var(--green); font-weight: 700; font-size: 1.15rem; }
.no { color: var(--ink-2); }

/* ---------- provider profile split ---------- */
.split { display: grid; grid-template-columns: minmax(0, 72ch) 300px; gap: 2.5rem; align-items: start; }
.facts { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--amber); padding: 1.1rem 1.25rem; position: sticky; top: 1rem; }
.facts h2 { margin-top: 0; font-size: 1.15rem; }
.facts dl { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 0.75rem; font-size: 0.93rem; }
.facts dt { color: var(--ink-2); }
.facts dd { margin: 0; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .facts { position: static; } }

/* ---------- Q&A ---------- */
.question { margin: 0 0 1.5rem; padding: 1rem 1.25rem; background: var(--white); border-left: 6px solid var(--amber); font-size: 1.1rem; }
.question p { margin: 0 0 0.4rem; font-style: italic; }
.question footer { color: var(--ink-2); font-size: 0.9rem; }
.ask { border-top: 1px solid var(--line); padding-top: 1rem; color: var(--ink-2); }

/* ---------- related / faq ---------- */
.related { border-top: 2px solid var(--ink); margin: 1rem 0 2.5rem; padding-top: 0.75rem; }
.related h2 { font-size: 1.1rem; margin-top: 0; }
.related ul { list-style: none; padding: 0; }
.faq { margin-top: 2rem; }
.faq details { background: var(--white); border: 1px solid var(--line); margin-bottom: 0.5rem; padding: 0 1rem; }
.faq summary { font-weight: 700; padding: 0.8rem 0; cursor: pointer; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq details p { padding: 0.75rem 0 0.25rem; }

/* ---------- glossary / sitemap ---------- */
.glossary dt { font-weight: 700; margin-top: 1rem; }
.glossary dd { margin: 0.2rem 0 0; color: var(--ink-2); }
.sitemap-list ul { list-style: none; padding: 0; columns: 2; column-gap: 2rem; }
@media (max-width: 600px) { .sitemap-list ul { columns: 1; } }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-header); color: #C9CDD1; margin-top: 3rem; padding: 2.5rem 0 1.5rem; font-size: 0.93rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--amber); text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.5rem; }
.foot-grid h2 { color: var(--white); font-size: 1rem; margin: 0 0 0.6rem; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-legal { border-top: 1px solid rgba(255,255,255,0.15); margin-top: 2rem; padding-top: 1.25rem; font-size: 0.82rem; }
.foot-legal p { margin-bottom: 0.6rem; }
.foot-legal .linkbtn { color: var(--white); }

/* ---------- cookie notice ---------- */
.cookie { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; max-width: 560px; margin: 0 auto; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--amber); padding: 1rem 1.25rem; box-shadow: 0 6px 24px rgba(31,35,40,0.18); z-index: 50; font-size: 0.93rem; }
.cookie p { margin: 0 0 0.6rem; }
.cookie p:last-child { margin: 0; display: flex; gap: 0.5rem; }

@media print {
  .site-header, .site-footer, .cookie, .finder, .btn { display: none !important; }
  body { background: #fff; }
}
