/* CalciumCT — hand-written, committed, no CDN.
 *
 * The old site pulled Tailwind from a public CDN at runtime, which meant a
 * change on someone else's CDN could restyle a health directory. This file is
 * the whole stylesheet: no build step, no network request, nothing to pin.
 *
 * Structure: tokens → fonts → base → utilities → components → page blocks.
 * Every margin, padding, size, radius and shadow comes from a token. If you
 * find yourself typing a raw rem value, add a token instead — that is how the
 * old file ended up with 40 one-off spacing values and no rhythm.
 */

/* ------------------------------------------------------------------ tokens */

:root {
  /* --- brand ramp. One hue. Used sparingly, never as a page background. --- */
  --red-50:  #fef2f2;
  --red-100: #fee2e2;
  --red-200: #fecaca;
  --red-300: #fca5a5;
  --red-600: #dc2626;
  --red-700: #b91c1c;
  --red-800: #991b1b;
  --red-900: #7f1d1d;

  /* --- neutrals --- */
  --ink:       #111827;  /* 17.7:1 on white */
  --ink-soft:  #4b5563;  /*  7.6:1 on white — safe at any size */
  --ink-mute:  #6b7280;  /*  4.8:1 on white — 14px and up ONLY */
  --line:      #e5e7eb;
  --line-2:    #d1d5db;
  --bg:        #ffffff;
  --bg-soft:   #f9fafb;
  --bg-sink:   #f3f4f6;

  --amber-bg:   #fffbeb;
  --amber-line: #fcd34d;
  --amber-ink:  #78350f;  /* 9.1:1 on white, 8.8:1 on --amber-bg */

  /* --- semantic colour. Change these, not the ramp. ---------------------
   * --brand       fills that carry white text        white on it = 6.47:1
   * --brand-text  red TEXT and icons on a light bg   on white    = 8.31:1
   * --on-brand    text on --brand / on --ink-deep
   * Splitting fill from text is what lets the header go white without
   * every red link going with it. The old file used #b91c1c for both,
   * which is why the header CTA sat at 1.28:1 against its own bar.
   */
  --brand:        var(--red-700);
  --brand-hover:  var(--red-800);
  --brand-text:   var(--red-800);
  --brand-tint:   var(--red-50);
  --brand-line:   var(--red-200);
  --on-brand:     #ffffff;

  /* Dark band. One per page, for rhythm. Red is not a background colour. */
  --ink-deep:     #111827;
  --on-ink:       #ffffff;  /* 17.7:1 */
  --on-ink-soft:  #9ca3af;  /*  7.0:1 */
  --on-ink-accent:#fca5a5;  /*  9.4:1 */

  /* --- type ------------------------------------------------------------
   * One display face (Source Serif 4 SemiBold, self-hosted, 600 only) and
   * the system UI stack. NEVER set font-weight:700 on --font-display: only
   * the 600 file ships, so 700 would be a synthesised fake bold.
   */
  --font-ui: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Source Serif 4", "Source Serif 4 Fallback", Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --fs-2xs:  0.75rem;    /* 12 — badges, ad labels, overline */
  --fs-xs:   0.8125rem;  /* 13 — card meta, fine print */
  --fs-sm:   0.875rem;   /* 14 — secondary UI */
  --fs-ui:   0.9375rem;  /* 15 — buttons, nav, dense body */
  --fs-body: 1.0625rem;  /* 17 — body copy */
  --fs-lede: 1.1875rem;  /* 19 — page ledes */
  --fs-h3:   1.25rem;    /* 20 */
  --fs-h2:   clamp(1.5rem, 1.15rem + 1.5vw, 2rem);
  --fs-h1:   clamp(1.875rem, 1.35rem + 2.3vw, 2.75rem);
  --fs-hero: clamp(2.125rem, 1.4rem + 3.2vw, 3.5rem);
  --fs-price:clamp(1.875rem, 1.55rem + 1.4vw, 2.375rem);
  --fs-stat: clamp(3rem, 2rem + 4.4vw, 4.5rem);

  --lh-tight: 1.15;
  --lh-head:  1.2;
  --lh-body:  1.6;
  --measure:  46rem;   /* ~68 characters at 17px */

  /* --- space. 4px grid. --- */
  --s-1: 0.25rem;  /*  4 */
  --s-2: 0.5rem;   /*  8 */
  --s-3: 0.75rem;  /* 12 */
  --s-4: 1rem;     /* 16 */
  --s-5: 1.5rem;   /* 24 */
  --s-6: 2rem;     /* 32 */
  --s-7: 3rem;     /* 48 */
  --s-8: 4rem;     /* 64 */

  /* --- shape + elevation. Three tiers = a language. ---
   * 1 resting surface · 2 raised card · 3 the one control that matters.
   * The ZIP finder is the only --shadow-3 on the site.
   */
  --radius-sm:   8px;
  --radius:      12px;
  --radius-lg:   16px;
  --radius-pill: 999px;

  --shadow-1: 0 1px 2px rgba(17, 24, 39, .06);
  --shadow-2: 0 1px 2px rgba(17, 24, 39, .05), 0 6px 16px -4px rgba(17, 24, 39, .10);
  --shadow-3: 0 2px 4px rgba(17, 24, 39, .06), 0 18px 36px -10px rgba(17, 24, 39, .18);

  --wrap: 1120px;
  --header-h: 60px;

  /* Breakpoints are documented here but written literally in @media, which
   * cannot read custom properties. Keep the two in step.
   *   sm 560px  — form rows go horizontal
   *   md 760px  — two-up card grids, three-up steps
   *   lg 960px  — desktop nav, hero two-column
   */
}

/* ------------------------------------------------------------------- fonts */

/* One file, latin subset, 52 KB, same origin, preloaded in head.html.
 * font-display:swap renders the fallback immediately so the h1 is painted on
 * the first frame — the hero LCP is text, not a webfont round trip. */
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/source-serif-4-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Metric-matched fallback. Source Serif 4's x-height is ~98.7% of Georgia's,
 * so a 99% size-adjust makes the swap a near-invisible change of shape rather
 * than a reflow. Headings also carry an explicit line-height, so vertical
 * metrics cannot move the line box. */
@font-face {
  font-family: "Source Serif 4 Fallback";
  src: local("Georgia"), local("Times New Roman");
  size-adjust: 99%;
  ascent-override: 105%;
  descent-override: 34%;
  line-gap-override: 0%;
}

/* -------------------------------------------------------------------- base */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--lh-head);
  letter-spacing: -0.01em;
  margin: 0 0 var(--s-3);
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); letter-spacing: -0.02em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-body); }

p { margin: 0 0 var(--s-4); }
p:last-child { margin-bottom: 0; }

a { color: var(--brand-text); text-underline-offset: 2px; }
a:hover { color: var(--red-900); }

img { max-width: 100%; height: auto; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-6) 0; }

code {
  font-family: var(--font-mono);
  font-size: .9em;
  background: var(--bg-sink);
  padding: .1em .35em;
  border-radius: 4px;
}

:focus-visible {
  outline: 3px solid var(--red-600);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: var(--red-100); color: var(--ink); }

/* --------------------------------------------------------------- utilities */

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--s-5); }
@media (max-width: 480px) { .wrap { padding-inline: var(--s-4); } }

/* Cap the TEXT, never the box. Grids and rules keep their full width. */
.measure { max-width: var(--measure); }
/* Three small utilities that replace the only inline style= attributes left
 * in the markup (metro intros, the /about/ portrait, a "read more" link). */
.intro { max-width: var(--measure); padding-block: var(--s-4) 0; }
.link-more { margin-top: var(--s-5); }
.portrait {
  border-radius: var(--radius); display: block;
  margin: 0 0 var(--s-4);
}
@media (min-width: 560px) { .portrait { float: right; margin-left: var(--s-5); } }

.sr-only {
  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: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--on-ink); padding: var(--s-3) var(--s-4);
}
.skip-link:focus { left: 0; color: var(--on-ink); }

.muted { color: var(--ink-soft); }
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-family: var(--font-ui);
  text-transform: uppercase; letter-spacing: .1em; font-size: var(--fs-2xs);
  font-weight: 700; color: var(--brand-text); margin: 0 0 var(--s-3);
}
.lede { font-size: var(--fs-lede); color: var(--ink-soft); max-width: var(--measure); }
.tnum { font-variant-numeric: tabular-nums; }

/* ----------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  font-family: var(--font-ui); font-size: var(--fs-ui); font-weight: 600;
  line-height: 1.2;
  min-height: 44px;                       /* WCAG 2.5.8 floor, comfortably */
  padding: var(--s-3) var(--s-4);
  border: 1px solid transparent; border-radius: var(--radius-sm);
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn--primary { background: var(--brand); color: var(--on-brand); }
.btn--primary:hover { background: var(--brand-hover); color: var(--on-brand); }
.btn--primary[disabled] {
  background: var(--bg-sink); color: var(--ink-soft);
  border-color: var(--line-2); cursor: not-allowed;
}
.btn--ghost { background: var(--bg); color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--bg-soft); color: var(--ink); border-color: var(--ink-soft); }
.btn--sm { min-height: 40px; padding: var(--s-2) var(--s-3); font-size: var(--fs-sm); }
.btn--lg { min-height: 48px; padding: var(--s-3) var(--s-5); font-size: var(--fs-body); }
.btn--block { width: 100%; }

.linkish {
  background: none; border: 0; padding: 0; font: inherit;
  color: var(--brand-text); text-decoration: underline; cursor: pointer;
}

/* ------------------------------------------------------------------ header
 * White, not red. Three reasons: the red-on-red CTA measured 1.28:1 against
 * WCAG 1.4.11's 3:1 floor; a solid red bar plus a pink hero plus a red stat
 * band meant nothing on the page could be emphasised; and a white bar lets
 * the single red button be the loudest thing above the fold.
 */

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
@supports not (backdrop-filter: blur(8px)) { .site-header { background: var(--bg); } }

.site-header__inner {
  display: flex; align-items: center; gap: var(--s-4);
  min-height: var(--header-h); flex-wrap: wrap;
}
.brand {
  display: flex; align-items: center; gap: var(--s-2);
  color: var(--ink); text-decoration: none; margin-right: auto;
  font-family: var(--font-display); font-weight: 600; font-size: 1.3125rem;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--ink); }
.brand__mark { border-radius: 6px; display: block; }
.brand__tld { color: var(--ink-mute); font-weight: 600; }

.site-nav { display: flex; align-items: center; gap: var(--s-5); }
.site-nav a {
  color: var(--ink-soft); text-decoration: none;
  font-weight: 600; font-size: var(--fs-ui);
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--brand); }
.site-nav .btn { background: var(--brand); color: var(--on-brand); }
.site-nav .btn:hover { background: var(--brand-hover); color: var(--on-brand); }

.nav-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;          /* was ~41x20 — half the AA floor */
  background: none; border: 1px solid var(--line-2);
  border-radius: var(--radius-sm); cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle:hover { background: var(--bg-soft); }
.nav-toggle[aria-expanded="true"] { background: var(--bg-sink); border-color: var(--ink-soft); }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ''; position: absolute; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after  { top: 6px; }

@media (max-width: 959.98px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; width: 100%; flex-direction: column;
    align-items: stretch; gap: 0; padding-bottom: var(--s-3);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a {
    padding: var(--s-3) var(--s-1); min-height: 44px; display: flex; align-items: center;
    border-top: 1px solid var(--line);
  }
  .site-nav a[aria-current="page"] { box-shadow: none; color: var(--brand-text); }
  .site-nav .btn { margin-top: var(--s-3); justify-content: center; }
}

/* -------------------------------------------------------------------- hero
 * No image. The right column is the Agatston score scale, built from
 * _data/score_bands.yml — real site data, drawn in CSS, answering the
 * question every visitor actually has. Nothing to fetch, nothing synthetic.
 */

.hero {
  background:
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
  padding: var(--s-7) 0 var(--s-7);
}
.hero__grid { display: grid; gap: var(--s-6); align-items: start; }
@media (min-width: 960px) {
  .hero { padding: var(--s-8) 0; }
  .hero__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: var(--s-7); }
}
.hero h1 {
  font-size: var(--fs-hero);
  letter-spacing: -0.025em;
  margin-bottom: var(--s-4);
  max-width: 15ch;
}
.hero__sub { font-size: var(--fs-lede); color: var(--ink-soft); max-width: 36ch; margin-bottom: var(--s-5); }
.hero__sub strong { color: var(--ink); font-weight: 600; }

/* ---------------------------------------------------------- the spec strip
 * Four hard facts, directly under the hero. Typographic, no icons, no art.
 * This is what stops the page reading as "a hole where a picture was".
 */
.specs {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
@media (min-width: 560px) { .specs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 760px) { .specs { grid-template-columns: repeat(4, 1fr); } }
.specs__item { background: var(--bg); padding: var(--s-5) var(--s-4); }
.specs__k {
  display: block; font-family: var(--font-display); font-weight: 600;
  font-size: var(--fs-h3); line-height: 1.1; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.specs__v { display: block; margin-top: var(--s-1); font-size: var(--fs-sm); color: var(--ink-soft); }

/* ------------------------------------------------------------- score scale
 * The hero's data graphic, and reused on /scores/ and geo pages.
 */
.scale {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: var(--s-5);
  box-shadow: var(--shadow-2);
}
.scale__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-4); }
.scale__title { font-size: var(--fs-h3); margin: 0; }
.scale__more { font-size: var(--fs-sm); white-space: nowrap; }
.scale__bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; margin-bottom: var(--s-3); }
.scale__seg { height: 8px; border-radius: 2px; background: var(--red-100); }
.scale__seg:nth-child(2) { background: var(--red-200); }
.scale__seg:nth-child(3) { background: var(--red-300); }
.scale__seg:nth-child(4) { background: var(--red-600); }
.scale__seg:nth-child(5) { background: var(--red-800); }
.scale__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.scale__row {
  display: grid; grid-template-columns: 5.25rem 1fr; gap: var(--s-3);
  align-items: baseline;
  padding-block: var(--s-2);
  border-top: 1px solid var(--line);
}
.scale__row:first-child { border-top: 0; padding-top: 0; }
.scale__n {
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-body);
  font-variant-numeric: tabular-nums; color: var(--ink);
}
.scale__what { font-size: var(--fs-sm); color: var(--ink-soft); }
.scale__note { margin: var(--s-4) 0 0; font-size: var(--fs-xs); color: var(--ink-soft); }

/* ----------------------------------------------------------------- finder
 * The single most important control on the site. It is the only element
 * that carries --shadow-3.
 */

.finder { margin: var(--s-5) 0 0; }
.finder__form {
  display: grid; gap: var(--s-3); align-items: end;
  background: var(--bg); border: 1px solid var(--line-2);
  border-radius: var(--radius-lg); padding: var(--s-4);
  box-shadow: var(--shadow-3);
}
@media (min-width: 560px) {
  .finder__form { grid-template-columns: minmax(0, 1fr) 9rem auto; padding: var(--s-5); }
  .finder__error { grid-column: 1 / -1; }
}
.finder__form .btn { min-height: 48px; }
@media (max-width: 559.98px) { .finder__form .btn[type="submit"] { width: 100%; } }

.field { display: flex; flex-direction: column; gap: var(--s-1); min-width: 0; }
.field label { font-size: var(--fs-sm); font-weight: 600; color: var(--ink-soft); }
.field__opt { font-weight: 400; color: var(--ink-mute); }
.field input, .field select {
  font-family: var(--font-ui);
  font-size: var(--fs-body);        /* >=16px: stops iOS zooming the page */
  padding: var(--s-3);
  min-height: 48px;
  border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--ink); min-width: 0; width: 100%;
}
.field input::placeholder { color: var(--ink-mute); }
.field input:disabled, .field select:disabled { background: var(--bg-sink); color: var(--ink-soft); }
.field--zip input { font-variant-numeric: tabular-nums; letter-spacing: .04em; }

.finder__error {
  margin: 0; color: var(--red-900); background: var(--red-50);
  border: 1px solid var(--brand-line); border-radius: var(--radius-sm);
  padding: var(--s-3); font-size: var(--fs-ui);
}
.finder__geo { margin: var(--s-3) 0 0; font-size: var(--fs-ui); }
.finder__noscript {
  margin-top: var(--s-4); padding: var(--s-4); background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: var(--radius);
}

.finder__results { margin-top: var(--s-6); }
.finder__results-head { margin-bottom: var(--s-4); }
.finder__count { font-size: var(--fs-h2); margin: 0 0 var(--s-3); }
.finder__count:empty { display: none; }     /* never ship an empty heading */
.finder__count:focus { outline: none; }
.finder__empty {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--s-4); margin: 0 0 var(--s-4);
}

/* ------------------------------------------------------------------- cards
 * The price is the product. It leads, in the display face, at ~34px, with
 * tabular figures. Everything else is support.
 */

.cards { display: grid; gap: var(--s-4); }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(2, 1fr); } }

.card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: var(--s-5);
  box-shadow: var(--shadow-1);
  transition: box-shadow .15s ease, border-color .15s ease;
}
.card:hover { box-shadow: var(--shadow-2); }

/* Featured reads as chosen, not as an error: a red top rail plus a tinted
 * border. No dashes, no warning colours. */
.card--featured { border-color: var(--brand-line); box-shadow: var(--shadow-2); }
.card--featured::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--brand);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* Unverified is 100% of current inventory, so it must not look like an empty
 * drop zone. Same card, amber left rule, amber badge. The honesty lives in
 * the badge and the meta line, not in a dashed grey box. */
.card--unverified { border-left: 3px solid var(--amber-line); }

.card__head {
  display: flex; align-items: flex-start; gap: var(--s-3);
  margin-bottom: var(--s-1);
}
.card__name { margin: 0; flex: 1 1 auto; font-size: var(--fs-h3); }
.card__distance {
  flex: 0 0 auto;
  font-family: var(--font-ui); font-size: var(--fs-xs); font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft); background: var(--bg-sink);
  border-radius: var(--radius-pill); padding: .25em .6em;
  white-space: nowrap;
}
.card__where { margin: 0 0 var(--s-4); color: var(--ink-soft); font-size: var(--fs-sm); }
.card__badges { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: 0 0 var(--s-3); }

/* Badges carry text, never colour alone. */
.badge {
  display: inline-block; font-family: var(--font-ui);
  font-size: var(--fs-2xs); font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  padding: .3em .7em; border-radius: var(--radius-pill); white-space: nowrap;
}
.badge--featured   { background: var(--brand); color: var(--on-brand); }
.badge--unverified { background: var(--amber-bg); color: var(--amber-ink); border: 1px solid var(--amber-line); }

/* --- the price ------------------------------------------------------- */
.card__price { margin: 0 0 var(--s-4); }
.card__price b {
  display: block;
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--fs-price); line-height: 1.05;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.card__price small {
  display: block; margin-top: var(--s-1);
  font-size: var(--fs-xs); font-weight: 400; color: var(--ink-soft);
}
/* No published number: quiet it right down. 20 of 33 current rows are here,
 * so this branch is the common case, not the exception. */
.card__price--unknown b {
  font-family: var(--font-ui); font-size: var(--fs-body);
  font-weight: 600; letter-spacing: 0; color: var(--ink-soft);
}

/* --- the supporting facts -------------------------------------------- */
/* dt/dd live inside a .fact wrapper so a pair stays together as one grid
 * item. auto-fit + max-content means the label column is exactly as wide as
 * "HSA / FSA" — the old fixed 6.5rem dt column spent 23% of a 460px card on
 * four grey words. */
.card__facts {
  display: grid; gap: var(--s-3) var(--s-5);
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  margin: 0 0 var(--s-4); padding: var(--s-4) 0;
  border-block: 1px solid var(--line);
}
.card__facts .fact { min-width: 0; }
.card__facts dt {
  font-size: var(--fs-2xs); color: var(--ink-soft);
  text-transform: uppercase; letter-spacing: .06em; font-weight: 700;
  margin-bottom: 2px;
}
.card__facts dd { margin: 0; font-size: var(--fs-ui); font-weight: 600; }

.card__notes { font-size: var(--fs-sm); color: var(--ink-soft); margin: 0 0 var(--s-4); }

.card__actions {
  display: flex; flex-wrap: wrap; gap: var(--s-2);
  margin-top: auto; padding-top: var(--s-4);
  border-top: 1px solid var(--line);
}
.card__actions .btn { flex: 1 1 auto; }
/* Two nowrap buttons in a 295px card is a squeeze. Stack them on a phone. */
@media (max-width: 559.98px) { .card__actions .btn { width: 100%; } }
.card__meta { margin: var(--s-3) 0 0; font-size: var(--fs-xs); color: var(--ink-soft); }

/* ------------------------------------------------------------- disclosure */

.disclosure {
  background: var(--amber-bg); border: 1px solid var(--amber-line);
  border-radius: var(--radius); padding: var(--s-4);
  font-size: var(--fs-ui); color: var(--amber-ink); margin: 0 0 var(--s-5);
}
.disclosure p { margin: 0; max-width: var(--measure); }
.disclosure__more { margin-top: var(--s-2) !important; font-size: var(--fs-sm); }
.disclosure a { color: var(--amber-ink); }
.disclosure--compact {
  background: transparent; border: 0; border-top: 1px solid var(--line);
  border-radius: 0; color: var(--ink-soft); padding: var(--s-5) 0 0;
}
.disclosure--compact a { color: var(--ink-soft); }

/* --------------------------------------------------------------- ad slots */

/* Deliberately unlike a clinic card: flat, grey, labeled. */
.ad-slot {
  border: 1px dashed var(--line-2); background: var(--bg-sink);
  border-radius: var(--radius-sm); padding: var(--s-3); text-align: center;
}
.ad-slot--in-feed { grid-column: 1 / -1; }
.ad-slot__label {
  display: block; font-size: var(--fs-2xs); text-transform: uppercase;
  letter-spacing: .08em; color: var(--ink-soft);   /* was --ink-mute: 4.39:1, under AA */
  font-weight: 700; margin-bottom: var(--s-1);
}
.ad-slot__mount { min-height: 90px; }

/* ---------------------------------------------------------------- content */

.section { padding: var(--s-8) 0; }
.section--soft { background: var(--bg-soft); border-block: 1px solid var(--line); }
.section--tight { padding: var(--s-7) 0; }
.section__head { max-width: 42rem; margin: 0 auto var(--s-6); text-align: center; }
.section__head p { color: var(--ink-soft); }

.steps { display: grid; gap: var(--s-4); padding: 0; margin: 0; list-style: none; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: var(--s-5);
  box-shadow: var(--shadow-1);
}
.step h3 { margin-bottom: var(--s-2); }
.step p { font-size: var(--fs-ui); color: var(--ink-soft); }
/* Ordinals are structure, not brand. Red is spent on the CTA instead. */
.step__n {
  display: block; font-family: var(--font-display); font-weight: 600;
  font-size: var(--fs-h3); line-height: 1; color: var(--ink-mute);
  font-variant-numeric: tabular-nums; margin-bottom: var(--s-3);
}
.step__n::after { content: ''; display: block; width: 1.75rem; height: 2px; background: var(--brand); margin-top: var(--s-2); }

/* One dark band per page for rhythm. Red is an accent, not a backdrop. */
.stat { background: var(--ink-deep); color: var(--on-ink); padding: var(--s-8) 0; }
.stat .wrap { display: grid; gap: var(--s-4); align-items: center; max-width: 52rem; text-align: center; }
@media (min-width: 760px) { .stat .wrap { grid-template-columns: auto 1fr; text-align: left; gap: var(--s-6); } }
.stat__n {
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--fs-stat); line-height: .95; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--on-ink-accent); margin: 0;
}
.stat__label { margin: 0; font-size: var(--fs-lede); color: var(--on-ink-soft); }
.stat__label strong { color: var(--on-ink); font-weight: 600; }
.stat a { color: var(--on-ink); text-decoration-color: rgba(255,255,255,.45); }
.stat a:hover { color: var(--on-ink); text-decoration-color: currentColor; }

.bands { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-3); }
.band {
  display: grid; gap: var(--s-1) var(--s-5); align-items: start;
  background: var(--bg); border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius); padding: var(--s-4) var(--s-5);
}
@media (min-width: 560px) { .band { grid-template-columns: 7rem 1fr; } }
.band__label { margin: 0; }
.band__num { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h3); font-variant-numeric: tabular-nums; }
.band__summary { margin: 0; font-weight: 600; }
.band__detail { margin: var(--s-2) 0 0; color: var(--ink-soft); font-size: var(--fs-ui); }
.bands__note { margin-top: var(--s-4); font-size: var(--fs-ui); color: var(--ink-soft); max-width: var(--measure); }

.quotes { display: grid; gap: var(--s-4); list-style: none; padding: 0; margin: 0; }
@media (min-width: 860px) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quote {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: var(--s-5); margin: 0;
}
.quote blockquote { margin: 0 0 var(--s-4); font-size: var(--fs-ui); color: var(--ink-soft); }
.quote figcaption { display: flex; align-items: center; gap: var(--s-2); }
.quote img { width: 36px; height: 36px; border-radius: 50%; }
.quote__handle { font-weight: 700; font-size: var(--fs-sm); }

.faq { display: grid; gap: 0; }
.faq__item { border-top: 1px solid var(--line); padding: var(--s-5) 0; }
@media (min-width: 860px) {
  .faq__item { grid-template-columns: 2fr 3fr; gap: var(--s-6); display: grid; }
}
.faq__q { margin: 0; font-size: var(--fs-body); }
.faq__a { margin: var(--s-2) 0 0; color: var(--ink-soft); max-width: var(--measure); }
@media (min-width: 860px) { .faq__a { margin-top: 0; } }

/* --------------------------------------------------------- email capture */

.email-capture {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: var(--s-5); margin: var(--s-6) 0;
}
.email-capture.is-hidden { display: none; }
.email-capture__title { margin: 0 0 var(--s-2); font-size: var(--fs-h3); }
.email-capture__copy p { margin: 0 0 var(--s-4); color: var(--ink-soft); font-size: var(--fs-ui); max-width: var(--measure); }
.email-capture__form { display: grid; gap: var(--s-3); align-items: end; }
@media (min-width: 700px) {
  .email-capture__form { grid-template-columns: minmax(0, 1fr) 8rem auto; }
}
.email-capture__fine { margin: var(--s-3) 0 0; font-size: var(--fs-xs); color: var(--ink-soft); max-width: var(--measure); }

/* ------------------------------------------------------------------ metro */

.metro__head { padding: var(--s-7) 0 var(--s-2); max-width: var(--measure); }
.metro__finder { padding-bottom: var(--s-4); }
.metro__listings { padding: var(--s-6) 0 var(--s-4); }
.metro__listings > p, .metro__unverified > p { max-width: var(--measure); }
.metro__unverified { margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.callout {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: var(--s-5); max-width: var(--measure);
}

/* ------------------------------------------------- geo index (/cities/ …)
 * Built to hold 51 states, then 412 metros, then 533 cities, on one page,
 * without becoming a wall. Region groups + a type-to-filter box.
 */

.geo-toolbar {
  position: sticky; top: var(--header-h); z-index: 10;
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3);
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  padding: var(--s-3) 0; margin-bottom: var(--s-5);
}
.geo-toolbar__field { flex: 1 1 16rem; max-width: 22rem; }
.geo-toolbar__field input {
  width: 100%; min-height: 44px; padding: var(--s-2) var(--s-3);
  font-family: var(--font-ui); font-size: var(--fs-body);
  border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--bg);
}
.geo-toolbar__count { font-size: var(--fs-sm); color: var(--ink-soft); margin: 0; }
.geo-toolbar__jump { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-left: auto; }
.geo-toolbar__jump a {
  font-size: var(--fs-sm); font-weight: 600; text-decoration: none;
  color: var(--ink-soft); border: 1px solid var(--line);
  border-radius: var(--radius-pill); padding: .35em .85em;
}
.geo-toolbar__jump a:hover { color: var(--ink); border-color: var(--ink-soft); background: var(--bg-soft); }
@media (max-width: 719.98px) { .geo-toolbar__jump { display: none; } }

.geo-region { margin: 0 0 var(--s-7); scroll-margin-top: calc(var(--header-h) + 72px); }
.geo-region__head {
  display: flex; align-items: baseline; gap: var(--s-3);
  border-bottom: 1px solid var(--line); padding-bottom: var(--s-2); margin-bottom: var(--s-4);
}
.geo-region__head h2 { margin: 0; font-size: var(--fs-h3); }
.geo-region__n { font-size: var(--fs-sm); color: var(--ink-soft); font-variant-numeric: tabular-nums; }

.geo-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
@media (min-width: 420px) { .geo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 720px) { .geo-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .geo-grid { grid-template-columns: repeat(4, 1fr); } }

.geo-tile {
  position: relative; height: 100%;
  display: flex; flex-direction: column; gap: var(--s-1);
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--s-4);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.geo-tile:hover { border-color: var(--line-2); box-shadow: var(--shadow-2); }
.geo-tile:has(a:focus-visible) { box-shadow: var(--shadow-2); }
.geo-tile__name { margin: 0; font-size: var(--fs-body); }
.geo-tile__name a { color: var(--ink); text-decoration: none; }
.geo-tile__name a:hover { color: var(--brand-text); }
/* Stretched link: the whole tile is clickable, but the anchor text Google
 * reads is exactly the place name — not "Ohio 0 verified 41 metros". */
.geo-tile__name a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.geo-tile__meta {
  margin: 0; font-size: var(--fs-xs); color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.geo-tile__live {
  align-self: flex-start; margin-top: var(--s-1);
  font-size: var(--fs-2xs); font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--brand-text); background: var(--brand-tint);
  border: 1px solid var(--brand-line); border-radius: var(--radius-pill);
  padding: .2em .6em;
}
.geo-empty {
  margin: var(--s-5) 0; padding: var(--s-5);
  background: var(--bg-soft); border: 1px dashed var(--line-2);
  border-radius: var(--radius-lg); text-align: center; color: var(--ink-soft);
}
.geo-empty[hidden] { display: none; }
.geo-region[hidden], .geo-grid li[hidden] { display: none; }

/* ------------------------------------------------------------------ prose */

.prose { max-width: var(--measure); padding-block: var(--s-7) var(--s-8); }
/* `wide: true` in front matter for pages that hold a grid rather than prose —
 * /cities/ and the state pages. Same header treatment, full --wrap width. */
.page-wide { padding-block: var(--s-7) var(--s-8); }
/* /find/ is one column of prose wrapped around one very important control. */
.finder-page { max-width: 52rem; padding-block: var(--s-7) var(--s-8); }
.finder-page__browse { margin-top: var(--s-7); }
.finder-page__browse .geo-grid { margin-top: var(--s-4); }
.page-wide > p { max-width: var(--measure); }
.prose__head { margin-bottom: var(--s-6); }
.prose h2 { margin-top: var(--s-7); }
.prose h3 { margin-top: var(--s-5); }
.prose ul, .prose ol { padding-left: var(--s-5); }
.prose li { margin-bottom: var(--s-2); }
.prose__updated { margin-top: var(--s-7); font-size: var(--fs-sm); color: var(--ink-soft); }
.prose blockquote {
  margin: var(--s-5) 0; padding: var(--s-3) var(--s-5);
  border-left: 4px solid var(--brand); background: var(--bg-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* A price, stated once, as a block. Replaces the per-metro rate table. */
.price-card {
  background: var(--bg); border: 1px solid var(--line-2);
  border-radius: var(--radius-lg); padding: var(--s-5);
  box-shadow: var(--shadow-2); margin: var(--s-5) 0;
}
.price-card__n {
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--fs-price); line-height: 1.05; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums; margin: 0;
}
.price-card__n small { font-family: var(--font-ui); font-size: var(--fs-body); font-weight: 600; color: var(--ink-soft); }
.price-card__terms { list-style: none; margin: var(--s-4) 0; padding: 0; display: grid; gap: var(--s-2); }
.price-card__terms li { font-size: var(--fs-ui); color: var(--ink-soft); padding-left: 1.4em; position: relative; }
.price-card__terms li::before { content: '—'; position: absolute; left: 0; color: var(--line-2); }
.price-card .btn { width: 100%; }
@media (min-width: 560px) { .price-card .btn { width: auto; } }

/* Any table must be able to scroll rather than blow out a 375px screen. */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: var(--s-5) 0; }
.rate-table { width: 100%; border-collapse: collapse; font-size: var(--fs-ui); min-width: 30rem; }
.rate-table th, .rate-table td { text-align: left; padding: var(--s-3) var(--s-2); border-bottom: 1px solid var(--line); }
.rate-table th { font-size: var(--fs-2xs); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); font-weight: 700; }
.rate-table td:not(:first-child) { font-variant-numeric: tabular-nums; }

/* ----------------------------------------------------------------- footer */

.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); margin-top: var(--s-8); padding: var(--s-6) 0 var(--s-7); }
.footer-nav { display: grid; gap: var(--s-5); margin: var(--s-5) 0; }
@media (min-width: 700px) { .footer-nav { grid-template-columns: repeat(4, 1fr); } }
.footer-nav__col { display: flex; flex-direction: column; gap: var(--s-2); }
.footer-nav h2 {
  font-family: var(--font-ui);
  font-size: var(--fs-2xs); text-transform: uppercase; letter-spacing: .08em;
  color: var(--ink-soft); margin: 0 0 var(--s-1); font-weight: 700;
}
.footer-nav a { font-size: var(--fs-sm); color: var(--ink-soft); text-decoration: none; }
.footer-nav a:hover { color: var(--brand-text); text-decoration: underline; }

.site-footer__base { border-top: 1px solid var(--line); padding-top: var(--s-5); font-size: var(--fs-xs); color: var(--ink-soft); }
.site-footer__base p { margin: 0 0 var(--s-1); max-width: var(--measure); }
.credit a { color: var(--ink-soft); }

/* ------------------------------------------------------------------ motion */

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* The header is sticky, so anything we scroll to needs to clear it. */
[data-finder-results], :target, h1[id], h2[id], h3[id] {
  scroll-margin-top: calc(var(--header-h) + var(--s-3));
}

/* ------------------------------------------------------- geo: state index */

/* The /cities/ hub lists all 51 states, and every state page lists its metros
 * and cities. At that scale a flat <ul> of links is unreadable, so both use a
 * responsive grid with the count carried as text next to each name — never as
 * colour alone (docs/rebuild-spec.md §12). */

.alpha-jump {
  display: flex; flex-wrap: wrap; gap: .25rem;
  margin: 0 0 1.5rem; padding: .5rem 0;
  border-block: 1px solid var(--line);
}
.alpha-jump a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2rem; min-height: 2rem; padding: 0 .4rem;
  border-radius: var(--radius-sm); font-weight: 600; font-size: .9375rem;
  text-decoration: none; color: var(--red-700);
}
.alpha-jump a:hover { background: var(--red-50); }

.state-index {
  list-style: none; margin: 0 0 2rem; padding: 0;
  display: grid; gap: .5rem;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.state-index__item a {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "name meta" "sub meta";
  gap: 0 .75rem;
  align-items: center;
  padding: .7rem .9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--ink);
  background: var(--bg);
  transition: border-color .15s ease, background-color .15s ease;
}
.state-index__item a:hover { border-color: var(--red-200); background: var(--red-50); }
.state-index__name { grid-area: name; font-weight: 650; }
.state-index__sub  { grid-area: sub; font-size: .8125rem; color: var(--ink-mute); }
.state-index__meta {
  grid-area: meta; font-size: .8125rem; font-weight: 600;
  color: var(--red-700); white-space: nowrap;
}
.state-index__item.is-empty a { background: var(--bg-soft); }
.state-index__item.is-empty .state-index__meta { color: var(--ink-mute); font-weight: 400; }

/* --------------------------------------------------- geo: metros + cities */

.geo-grid {
  list-style: none; margin: 0 0 2rem; padding: 0;
  display: grid; gap: .5rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.geo-grid a {
  display: flex; justify-content: space-between; align-items: baseline; gap: .75rem;
  padding: .7rem .9rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  text-decoration: none; color: var(--ink);
  transition: border-color .15s ease, background-color .15s ease;
}
.geo-grid a:hover { border-color: var(--red-200); background: var(--red-50); }
.geo-grid__name { font-weight: 650; }
.geo-grid__meta { font-size: .8125rem; color: var(--ink-mute); white-space: nowrap; }

.pill-list {
  list-style: none; margin: 0 0 2rem; padding: 0;
  display: flex; flex-wrap: wrap; gap: .4rem;
}
.pill-list a {
  display: inline-block; padding: .35rem .75rem;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: .9375rem; text-decoration: none; color: var(--ink);
}
.pill-list a:hover { border-color: var(--red-200); background: var(--red-50); }

/* ------------------------------------------------------------ breadcrumbs */

.crumbs {
  font-size: .875rem; color: var(--ink-mute);
  margin: 1rem 0 .5rem;
}
.crumbs a { color: var(--ink-mute); }
.crumbs a:hover { color: var(--red-700); }
.crumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }

.geo__nearby { margin-block: 2rem; }

.stat-line { font-size: 1.0625rem; margin-bottom: .5rem; }

/* -------------------------------------------------------- /advertise/ buy */

.buy {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.75rem 0;
  background: var(--bg-soft);
}
.buy__price { margin: 0 0 1.25rem; font-size: 1.0625rem; }
.buy .field { max-width: 14rem; margin-bottom: .75rem; }

.buy__status {
  margin: 0 0 1rem;
  font-size: .9375rem;
  color: var(--ink-soft);
  min-height: 1.5em;
}
.buy__status--open { color: #166534; }
.buy__status--sold { color: var(--amber-ink); }
.buy__status--bad  { color: var(--red-800); }
.buy__status--warn { color: var(--amber-ink); }

.buy__warn {
  margin: .75rem 0 0;
  padding: .75rem .9rem;
  border: 1px solid var(--amber-line);
  border-radius: var(--radius-sm);
  background: var(--amber-bg);
  color: var(--amber-ink);
  font-size: .9375rem;
}
.buy__fine {
  margin: 1rem 0 0;
  font-size: .875rem;
  color: var(--ink-mute);
  max-width: 44rem;
}

/* The disabled button was #d1d5db-on-white at 1.47:1. Darken the track and
 * use ink rather than white text so the "not wired up" state is still
 * readable — a control nobody can read is not a clearer signal, just a worse
 * one. */
.btn--primary[disabled],
.btn[disabled] {
  background: var(--line-2);
  color: var(--ink-soft);
  border-color: var(--line-2);
  cursor: not-allowed;
}
