/* =========================================================
   The Practitioner's Index — Design System v3
   Editorial precision · Newsreader display · Geist body
   White + warm cream + midnight + a single rust accent.
   No gold confetti, no italic-everywhere tics.
   ========================================================= */

:root {
  /* Color — single accent (rust), single primary blue, restrained */
  --bg: #ffffff;
  --bg-warm: #f8f4ea;        /* warm bone paper */
  --bg-tint: #efe9d8;
  --bg-deep: #0a1628;        /* midnight navy */
  --ink: #0a1628;            /* deep midnight, blue-tinted near-black */
  --ink-2: #1f2a44;
  --ink-soft: #4a566f;
  --blue: #1e3a8a;           /* Yale-like institutional blue */
  --blue-deep: #142c66;
  --blue-pale: #e6ecf8;
  --rust: #b54e2c;           /* warm clay — THE single accent */
  --rust-deep: #8e3b1f;
  --rust-pale: #f5e3da;
  --gold: #b08240;           /* tertiary trust signal — minimal use */
  --gold-pale: #f0e7d2;
  --rule: #e3dfd1;           /* warm hairline */
  --rule-soft: #efebdf;
  --paper-line: #d8d3c2;     /* ruled-paper detail */
  --muted: #5b6470;
  --muted-2: #9aa1ad;
  --success: #15614a;
  --success-pale: #d9eae3;
  --danger: #98342a;
  --danger-pale: #f3e0dd;

  /* Backwards-compat aliases */
  --bg-soft: var(--bg-warm);
  --gold-deep: var(--gold);
  --gold-soft: var(--gold);
  --blue-bright: var(--blue);
  --blue-soft: #6d92c9;

  /* Type families */
  --serif: "Newsreader", "Source Serif 4", Charter, "Iowan Old Style", Georgia, serif;
  --sans: "Geist", "Söhne", -apple-system, "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  /* Type scale */
  --t-display: clamp(56px, 8vw, 112px);
  --t-h1: clamp(40px, 5.4vw, 64px);
  --t-h2: clamp(28px, 3.6vw, 44px);
  --t-h3: 26px;
  --t-h4: 20px;
  --t-body-lg: 18.5px;
  --t-body: 17px;
  --t-small: 14.5px;
  --t-cap: 13px;

  /* Spacing — 8px baseline */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  /* Layout */
  --gutter: clamp(20px, 4vw, 56px);
  --shell: 1320px;
  --shell-narrow: 880px;

  /* Radius — minimal */
  --r-sm: 3px;
  --r: 6px;
  --r-lg: 10px;
  --r-pill: 999px;

  /* Shadow */
  --shadow-1: 0 1px 2px rgba(10,22,40,0.04);
  --shadow-2: 0 4px 14px -4px rgba(10,22,40,0.08);
  --shadow-3: 0 24px 48px -20px rgba(10,22,40,0.16);
  --shadow-sm: var(--shadow-1);
  --shadow-md: var(--shadow-2);
  --shadow-lg: var(--shadow-3);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.55;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "ss01", "cv11";
  font-variant-numeric: tabular-nums;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--rust); }
button { font: inherit; cursor: pointer; }

/* ============== Layout ============== */
.shell { max-width: var(--shell); margin: 0 auto; padding: 0 var(--gutter); }
.shell--narrow { max-width: var(--shell-narrow); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--s-9) 0; }
.section--tight { padding: var(--s-7) 0; }
.section--soft { background: var(--bg-warm); }
.section--ink { background: var(--bg-deep); color: #fff; }
.rule { border: 0; border-top: 1px solid var(--rule); }
.rule-soft { border-top-color: var(--rule-soft); }

/* ============== Typography ============== */

/* Eyebrow — small caps in Geist, with a rust hairline */
.eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rust);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  line-height: 1;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--rust);
}
.eyebrow--gold { color: var(--gold); }
.eyebrow--gold::before { background: var(--gold); }
.eyebrow--white { color: rgba(255,255,255,0.8); }
.eyebrow--white::before { background: rgba(255,255,255,0.45); }

.h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: var(--t-h1);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
  font-variation-settings: "opsz" 72;
}
.h1 em, .h2 em, .h3 em {
  font-style: italic;
  font-weight: 500;
  color: inherit;
  font-variation-settings: "opsz" 72;
}

.h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: var(--t-h2);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variation-settings: "opsz" 36;
}

.h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: var(--t-h3);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-variation-settings: "opsz" 24;
}

.lede {
  font-family: var(--serif);
  font-size: var(--t-body-lg);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 60ch;
  font-variation-settings: "opsz" 18;
}
.lede strong { color: var(--ink); font-weight: 600; }

.muted, .muted-text { color: var(--muted); }

.mono-meta {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: none;
}

/* ============== Buttons — three roles ============== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  border-radius: var(--r);
  cursor: pointer;
  text-decoration: none;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .15s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 14px; height: 14px; flex: 0 0 14px; }

.btn-primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-primary:hover { background: var(--rust); border-color: var(--rust); color: #fff; transform: translateY(-1px); }

.btn-secondary, .btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover, .btn-ghost:hover { background: var(--ink); color: #fff; }

.btn-ink { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-ink:hover { background: var(--rust); border-color: var(--rust); }

.btn-rust { background: var(--rust); color: #fff; border-color: var(--rust); }
.btn-rust:hover { background: var(--rust-deep); border-color: var(--rust-deep); }

.btn-gold { background: var(--rust); color: #fff; border-color: var(--rust); } /* alias */
.btn-gold:hover { background: var(--rust-deep); border-color: var(--rust-deep); color: #fff; }

.btn-white { background: #fff; color: var(--ink); border-color: #fff; }
.btn-white:hover { background: var(--rust); border-color: var(--rust); color: #fff; }

.btn-lg { padding: 17px 30px; font-size: 15.5px; }
.btn-sm { padding: 9px 14px; font-size: 13.5px; }
.btn-pill { border-radius: var(--r-pill); }

/* ============== Top utility bar ============== */
.utility {
  background: var(--ink);
  color: rgba(255,255,255,0.75);
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: -0.005em;
}
.utility a {
  color: #fff;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity .2s, color .2s;
  font-weight: 500;
}
.utility a:hover { opacity: 1; color: var(--rust-pale); }
.utility-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 0; gap: var(--s-5);
}
.utility-left, .utility-right { display: flex; align-items: center; gap: var(--s-5); }
.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--rust);
  display: inline-block;
  margin-right: 6px;
  position: relative;
  top: -1px;
}

/* ============== Header ============== */
.header {
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--rule);
  position: sticky; top: 0; z-index: 50;
}
.header-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--s-6);
  align-items: center;
  padding: 18px 0;
}
.brand {
  display: flex; align-items: baseline; gap: 14px;
  text-decoration: none; color: var(--ink);
}

/* Brand mark — typographic N·R·P (no box, no medallion) */
.brand-mark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.01em;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 1px;
  line-height: 1;
  font-variation-settings: "opsz" 36;
}
.brand-mark .brand-n { color: var(--ink); }
.brand-mark .brand-dot {
  color: var(--rust);
  font-size: 28px;
  position: relative;
  top: -2px;
  margin: 0 1px;
  font-weight: 600;
}

.brand-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 19px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-variation-settings: "opsz" 18;
  align-self: center;
  border-left: 1px solid var(--rule);
  padding-left: 14px;
}
.brand-name em { font-style: italic; color: inherit; font-weight: 500; }
.brand-meta {
  display: none; /* simplified — wordmark stands on its own */
}

.nav {
  display: flex;
  gap: 2px;
  justify-self: center;
}
.nav a {
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  padding: 9px 16px;
  border-radius: var(--r);
  transition: color .2s var(--ease), background .2s var(--ease);
  letter-spacing: -0.005em;
}
.nav a:hover { color: var(--ink); background: var(--bg-warm); }
.nav a.is-active { color: var(--rust); background: var(--rust-pale); }

.header-actions { display: flex; gap: 10px; align-items: center; }

/* ============== Footer ============== */
.footer {
  background: var(--ink);
  color: #c8cfdb;
  padding: var(--s-8) 0 var(--s-6);
  margin-top: var(--s-9);
  font-family: var(--sans);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: var(--s-7);
  padding-bottom: var(--s-7);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer .brand-mark { color: #fff; }
.footer .brand-mark .brand-n { color: #fff; }
.footer .brand-mark .brand-dot { color: var(--rust-pale); }
.footer .brand-name { color: #fff; border-left-color: rgba(255,255,255,0.15); }
.footer .brand-name em { color: #fff; }
.footer-tagline {
  margin-top: var(--s-4);
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1.45;
  color: rgba(255,255,255,0.72);
  max-width: 28ch;
  font-variation-settings: "opsz" 18;
}
.footer-col-title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust-pale);
  margin-bottom: var(--s-4);
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-family: var(--serif);
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: color .2s var(--ease);
  font-variation-settings: "opsz" 16;
}
.footer-col a:hover { color: var(--rust-pale); }
.footer-base {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  font-family: var(--sans);
  font-size: 12.5px;
  color: rgba(255,255,255,0.55);
}
.footer-base a { color: rgba(255,255,255,0.7); margin-left: 16px; text-decoration: none; }
.footer-base a:hover { color: var(--rust-pale); }

/* ============== Hero ============== */
.hero {
  padding: var(--s-9) 0 var(--s-8);
  border-bottom: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(30,58,138,0.04), transparent 60%),
    radial-gradient(ellipse 80% 50% at 0% 100%, rgba(181,78,44,0.05), transparent 60%);
}
/* Subtle grain texture for editorial paper feel */
.hero::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.04  0 0 0 0 0.08  0 0 0 0 0.16  0 0 0 0.04 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.hero-inner { position: relative; z-index: 1; text-align: center; }
.hero-eyebrow { justify-content: center; margin-bottom: var(--s-5); }

.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: var(--t-display);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--ink);
  max-width: 16ch;
  margin: 0 auto;
  font-variation-settings: "opsz" 72;
}
.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--rust);
  font-variation-settings: "opsz" 72;
}

.hero-sub {
  margin: var(--s-5) auto var(--s-7);
  font-family: var(--serif);
  font-size: var(--t-body-lg);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 56ch;
  font-variation-settings: "opsz" 18;
}
.hero-sub strong { color: var(--ink); font-weight: 600; }

/* ============== Search ============== */
.search {
  background: #fff;
  border: 1px solid var(--ink);
  border-radius: var(--r);
  padding: 6px;
  display: grid;
  grid-template-columns: 1.4fr 1px 1fr 1px 1fr auto;
  align-items: stretch;
  max-width: 920px;
  margin: 0 auto;
  box-shadow:
    0 1px 0 var(--ink),
    0 18px 36px -16px rgba(10,22,40,0.18);
  transition: box-shadow .25s var(--ease);
}
.search:focus-within {
  box-shadow:
    0 1px 0 var(--rust),
    0 24px 44px -16px rgba(181,78,44,0.22);
  border-color: var(--rust);
}
.search-divider { background: var(--rule); }
.search-field {
  display: flex; flex-direction: column; gap: 3px;
  padding: 11px 18px;
}
.search-field label {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.search-field .control {
  display: flex; align-items: center; gap: 10px;
  font-size: 17px;
  color: var(--ink);
}
.search-field input,
.search-field select {
  border: 0; outline: 0; background: transparent;
  font: inherit;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink); width: 100%;
  -webkit-appearance: none; appearance: none;
  font-variation-settings: "opsz" 18;
}
.search-field input::placeholder { color: var(--muted-2); font-style: italic; }
.search-field svg { width: 16px; height: 16px; color: var(--rust); flex: 0 0 16px; }
.search .btn-search {
  margin: 0;
  background: var(--ink);
  color: #fff;
  border: 0;
  border-radius: var(--r-sm);
  padding: 0 26px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14.5px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .2s var(--ease);
  white-space: nowrap;
  cursor: pointer;
  letter-spacing: -0.005em;
}
.search .btn-search:hover { background: var(--rust); }
.search .btn-search svg { width: 16px; height: 16px; }

.search-quicks {
  margin: var(--s-5) auto 0;
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
}
.quick {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13.5px;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: var(--r-pill);
  padding: 6px 14px;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s var(--ease);
}
.quick:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.quick.is-active { background: var(--rust); color: #fff; border-color: var(--rust); }

/* ============== Trust strip ============== */
.trust-strip {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--bg-warm);
  padding: 22px 0;
  position: relative;
}
.trust-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-6); flex-wrap: wrap;
}
.trust-label {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.trust-logos {
  display: flex; align-items: center; gap: var(--s-7); flex-wrap: wrap;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
  font-weight: 500;
  font-variation-settings: "opsz" 18;
}
.trust-logos span { display: inline-flex; align-items: center; gap: 10px; }
.trust-logos span::before {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--rust);
}

/* ============== Section heads ============== */
.section-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: var(--s-6);
  margin-bottom: var(--s-6);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--ink);
}
.section-head-left .h2 { margin-top: var(--s-2); }
.section-head a.text-link {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--rust);
  display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none;
  transition: gap .25s var(--ease);
  letter-spacing: -0.005em;
}
.section-head a.text-link:hover { gap: 12px; color: var(--rust-deep); }

/* Editorial section number */
.section-num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 18px;
  color: var(--rust);
  margin-right: 12px;
  font-variation-settings: "opsz" 18;
}

/* ============== Program card ============== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }

.program-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--r);
  padding: var(--s-5);
  display: flex; flex-direction: column;
  gap: var(--s-4);
  text-decoration: none;
  color: var(--ink-2);
  position: relative;
  transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.program-card:hover {
  border-color: var(--ink);
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
}
.program-card-top {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
}
.org-meta {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.org-logo {
  width: 36px; height: 36px; flex: 0 0 36px;
  border-radius: 4px;
  background: var(--bg-warm);
  border: 1px solid var(--rule);
  display: grid; place-items: center;
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  font-size: 16px;
  font-variation-settings: "opsz" 16;
}
.bookmark {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  transition: all .2s var(--ease);
}
.bookmark:hover { color: var(--rust); border-color: var(--rust); }
.bookmark svg { width: 14px; height: 14px; }
.bookmark.is-saved { color: var(--rust); border-color: var(--rust); background: var(--rust-pale); }

.program-card .program-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
  font-variation-settings: "opsz" 24;
}
.program-card .org-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15.5px;
  color: var(--ink-soft);
  margin-top: 4px;
  font-variation-settings: "opsz" 16;
}

.card-meta-row {
  display: flex; flex-wrap: wrap; gap: 10px 18px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-soft);
  border-top: 1px solid var(--rule-soft);
  padding-top: var(--s-4);
}
.card-meta-row .item {
  display: inline-flex; align-items: center; gap: 6px;
}
.card-meta-row svg { width: 13px; height: 13px; color: var(--rust); }

.tag-row {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.tag {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  padding: 3px 10px;
  background: var(--bg-warm);
  border: 1px solid var(--rule);
  color: var(--ink-soft);
  border-radius: var(--r-pill);
  letter-spacing: -0.005em;
}
.tag--blue { background: var(--blue-pale); border-color: transparent; color: var(--blue-deep); }
.tag--gold, .tag--rust { background: var(--rust-pale); border-color: transparent; color: var(--rust-deep); }
.tag--green { background: var(--success-pale); border-color: transparent; color: var(--success); }
.tag--red { background: var(--danger-pale); border-color: transparent; color: var(--danger); }

.card-bottom {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: auto;
  padding-top: var(--s-3);
  border-top: 1px solid var(--rule-soft);
}
.deadline-pill {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 4px;
  letter-spacing: -0.005em;
}
.deadline-pill .urgent { color: var(--rust); font-weight: 600; }
.deadline-pill strong { color: var(--ink); font-weight: 600; }
.card-cta {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap .25s var(--ease), color .25s var(--ease);
  letter-spacing: -0.005em;
}
.program-card:hover .card-cta { gap: 12px; color: var(--rust); }

/* Verified flag — pressed-stamp aesthetic */
.verified-flag {
  position: absolute;
  top: 14px; right: 14px;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px;
  background: var(--rust-pale);
  border: 1px solid var(--rust);
  color: var(--rust-deep);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--r-sm);
}
.verified-flag svg { width: 11px; height: 11px; }

.featured-flag {
  position: absolute;
  top: -1px; left: 22px;
  transform: translateY(-50%);
  background: var(--ink);
  color: #fff;
  padding: 3px 11px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 0;
}

/* ============== Specialty card ============== */
.specialty-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--r);
  padding: var(--s-5);
  display: flex; flex-direction: column; gap: var(--s-4);
  text-decoration: none;
  color: var(--ink);
  transition: all .25s var(--ease);
  position: relative;
  min-height: 180px;
}
.specialty-card:hover {
  border-color: var(--ink);
  background: var(--bg-warm);
  transform: translateY(-2px);
}
.specialty-icon-box {
  width: 46px; height: 46px;
  border-radius: var(--r);
  background: var(--bg-warm);
  border: 1px solid var(--rule);
  display: grid; place-items: center;
  color: var(--rust);
  transition: all .25s var(--ease);
}
.specialty-card:hover .specialty-icon-box { background: var(--ink); color: #fff; border-color: var(--ink); }
.specialty-icon-box svg { width: 22px; height: 22px; }
.specialty-card .name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.18;
  margin-top: auto;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 20;
}
.specialty-card .count {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  display: flex; justify-content: space-between; align-items: center;
}
.specialty-card .count em { color: var(--rust); font-style: normal; font-weight: 600; }

/* ============== Stat tiles — editorial numerals ============== */
.stat-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.stat-tile {
  padding: var(--s-6) var(--s-5);
  border-right: 1px solid var(--rule);
}
.stat-tile:last-child { border-right: 0; }
.stat-tile .num {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 56px;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.03em;
  display: flex; align-items: baseline; gap: 8px;
  font-variation-settings: "opsz" 60;
  font-variant-numeric: tabular-nums;
}
.stat-tile .num span {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--rust);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.stat-tile .label {
  margin-top: 12px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.stat-tile .sub {
  margin-top: 12px;
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.5;
  font-variation-settings: "opsz" 16;
}

/* ============== Cohort Calendar — THE showpiece ============== */
.cohort-calendar {
  background: var(--bg-warm);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: var(--s-7);
  position: relative;
  overflow: hidden;
}
.cohort-cal-head {
  display: flex; justify-content: space-between; align-items: end;
  gap: var(--s-5);
  margin-bottom: var(--s-6);
}
.cohort-cal-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 32px;
  line-height: 1.05;
  color: var(--ink);
  letter-spacing: -0.02em;
  max-width: 24ch;
  font-variation-settings: "opsz" 36;
}
.cohort-cal-title em { font-style: italic; color: var(--rust); }
.cohort-cal-legend {
  display: flex; gap: 18px;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
}
.cohort-cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cohort-cal-legend i {
  width: 12px; height: 4px; border-radius: 2px; display: inline-block;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 8px;
  position: relative;
  padding: 24px 0 8px;
}
.cal-month {
  position: relative;
  display: flex; flex-direction: column; gap: 4px;
  padding-top: 18px;
}
.cal-month::before {
  content: attr(data-month);
  position: absolute;
  top: 0; left: 0;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
.cal-month::after {
  content: attr(data-count);
  position: absolute;
  bottom: -22px; left: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 12.5px;
  color: var(--muted);
  font-variation-settings: "opsz" 12;
}
.cal-bar {
  width: 100%;
  background: var(--rule);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.cal-bar.tier-1 { height: 56px; background: var(--ink); }   /* 80+ */
.cal-bar.tier-2 { height: 44px; background: var(--rust); }  /* 40-79 */
.cal-bar.tier-3 { height: 28px; background: var(--rust-pale); border: 1px solid var(--rust); } /* 10-39 */
.cal-bar.tier-4 { height: 16px; background: var(--bg-tint); border: 1px solid var(--rule); } /* 1-9 */

.cal-baseline {
  position: absolute;
  bottom: 26px; left: 0; right: 0;
  height: 1px;
  background: var(--ink);
}
.cohort-cal-foot {
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; align-items: center;
  gap: var(--s-5); flex-wrap: wrap;
}
.cohort-cal-foot p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 56ch;
  line-height: 1.5;
  font-variation-settings: "opsz" 16;
}

/* ============== Sidebar / filters ============== */
.layout-with-sidebar {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--s-7);
  align-items: start;
}
.sidebar {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--r);
  padding: var(--s-5);
  position: sticky;
  top: 100px;
}
.filter-block { padding: 14px 0; border-bottom: 1px solid var(--rule-soft); }
.filter-block:last-child { border-bottom: 0; }
.filter-block:first-child { padding-top: 0; }
.filter-title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 12px;
  display: flex; justify-content: space-between; align-items: center;
}
.filter-title .clear {
  font-family: var(--sans); font-style: normal;
  font-size: 11px; color: var(--rust); cursor: pointer; font-weight: 600; letter-spacing: 0;
}
.filter-options { display: flex; flex-direction: column; gap: 8px; }
.checkbox-row {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-2);
  cursor: pointer;
}
.checkbox-row input { accent-color: var(--rust); width: 16px; height: 16px; }
.checkbox-row .count {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  font-family: var(--mono);
}
.checkbox-row:hover { color: var(--rust); }
.range-inputs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.range-inputs input {
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  padding: 8px 10px;
  font: inherit;
  font-family: var(--serif);
  font-size: 14px;
  width: 100%;
}
.range-inputs input:focus { outline: 2px solid var(--rust-pale); border-color: var(--rust); }

/* ============== Toolbar ============== */
.toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  flex-wrap: wrap;
}
.toolbar-left { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.toolbar-right { display: flex; align-items: center; gap: 12px; }
.results-count {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink-soft);
  font-variation-settings: "opsz" 18;
}
.results-count strong { color: var(--ink); font-weight: 600; }
.active-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  background: var(--rust-pale);
  border: 1px solid transparent;
  color: var(--rust-deep);
  border-radius: var(--r-pill);
  font-family: var(--sans);
  font-size: 12px; font-weight: 500;
}
.filter-chip button { background: none; border: 0; color: inherit; cursor: pointer; font-size: 14px; line-height: 1; padding: 0; opacity: 0.6; }
.filter-chip button:hover { opacity: 1; }
.sort-select {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  background: #fff;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-2);
  cursor: pointer;
}
.sort-select svg { width: 12px; height: 12px; }
.view-toggle {
  display: inline-flex;
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.view-toggle button {
  padding: 8px 12px;
  background: #fff;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  border-right: 1px solid var(--rule);
}
.view-toggle button:last-child { border-right: 0; }
.view-toggle button.is-active { background: var(--rust-pale); color: var(--rust); }
.view-toggle svg { width: 14px; height: 14px; }

/* ============== Pagination ============== */
.pagination {
  display: flex; justify-content: center; align-items: center; gap: 6px;
  margin: var(--s-6) 0 var(--s-2);
}
.pagination button, .pagination a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--ink-2);
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all .2s var(--ease);
  font-variation-settings: "opsz" 18;
}
.pagination button:hover, .pagination a:hover { border-color: var(--ink); color: var(--ink); }
.pagination .is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination .is-disabled { opacity: 0.4; cursor: not-allowed; }

/* ============== How it works steps ============== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}
.step {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--r);
  padding: var(--s-6);
  position: relative;
}
.step-num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 48px;
  color: var(--rust);
  margin-bottom: 16px;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 48;
}
.step h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  margin-bottom: 8px;
  color: var(--ink);
  line-height: 1.18;
  font-variation-settings: "opsz" 24;
}
.step p {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.55;
  font-variation-settings: "opsz" 16;
}

/* ============== CTA strip ============== */
.cta-strip {
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-lg);
  padding: var(--s-7) var(--s-8);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s-6);
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(181,78,44,0.18), transparent 60%);
  pointer-events: none;
}
.cta-strip-inner { position: relative; z-index: 1; }
.cta-strip h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.022em;
  color: #fff;
  max-width: 22ch;
  font-variation-settings: "opsz" 48;
}
.cta-strip h2 em { font-style: italic; color: var(--rust-pale); font-weight: 500; }
.cta-strip p {
  margin-top: 14px;
  color: rgba(255,255,255,0.78);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.5;
  max-width: 56ch;
  font-variation-settings: "opsz" 18;
}

/* ============== Tier card (pricing) ============== */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}
.tier-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--r);
  padding: var(--s-6);
  display: flex; flex-direction: column;
  position: relative;
}
.tier-card.is-featured {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px var(--rust-pale);
}
.tier-card .ribbon-tag {
  position: absolute; top: -1px; right: 22px;
  transform: translateY(-50%);
  background: var(--rust);
  color: #fff;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--r-pill);
}
.tier-card .tier-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 24px;
  color: var(--ink);
  font-variation-settings: "opsz" 24;
}
.tier-card .tier-price {
  margin-top: 18px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 64px;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.03em;
  display: flex; align-items: baseline; gap: 6px;
  font-variation-settings: "opsz" 72;
  font-variant-numeric: tabular-nums;
}
.tier-card .tier-price small {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14.5px;
  color: var(--muted);
  font-weight: 400;
  font-variation-settings: "opsz" 14;
}
.tier-card .tier-blurb {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: 15.5px;
  color: var(--ink-soft);
  line-height: 1.55;
  min-height: 52px;
  font-variation-settings: "opsz" 16;
}
.tier-card .tier-features {
  list-style: none;
  display: flex; flex-direction: column;
  gap: 12px;
  margin: 28px 0;
  padding: 22px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  flex: 1;
}
.tier-card .tier-features li {
  display: flex; align-items: flex-start; gap: 10px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-2);
}
.tier-card .tier-features svg {
  width: 16px; height: 16px;
  color: var(--rust);
  flex: 0 0 16px;
  margin-top: 2px;
}
.tier-card .tier-features li.muted-li { color: var(--muted-2); }
.tier-card .tier-features li.muted-li svg { color: var(--muted-2); }
.tier-card .tier-cta { width: 100%; justify-content: center; }

/* ============== Pills ============== */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  background: var(--blue-pale);
  color: var(--blue-deep);
  letter-spacing: -0.005em;
}
.pill--gold, .pill--rust { background: var(--rust-pale); color: var(--rust-deep); }
.pill--green { background: var(--success-pale); color: var(--success); }
.pill--red { background: var(--danger-pale); color: var(--danger); }
.pill--ghost { background: transparent; border: 1px solid var(--rule); color: var(--ink-soft); }

/* ============== Tables ============== */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.data-table th {
  text-align: left;
  padding: 14px 16px;
  background: var(--bg-warm);
  border-bottom: 1px solid var(--ink);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}
.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--rule-soft);
  color: var(--ink-2);
  vertical-align: top;
  font-family: var(--sans);
}
.data-table tr:hover td { background: var(--bg-warm); }
.data-table strong { color: var(--ink); font-weight: 600; }

/* ============== Form ============== */
.form-group { margin-bottom: var(--s-5); }
.form-label {
  display: block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 6px;
}
.form-help {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 6px;
  font-variation-settings: "opsz" 14;
}
.form-control {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-family: var(--serif);
  font-size: 16.5px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  font-variation-settings: "opsz" 18;
}
.form-control:focus {
  outline: 0;
  border-color: var(--rust);
  box-shadow: 0 0 0 3px var(--rust-pale);
}
textarea.form-control { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ============== Tabs ============== */
.tabs {
  display: flex; gap: 4px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 24px;
}
.tabs button {
  padding: 12px 18px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all .2s var(--ease);
}
.tabs button:hover { color: var(--rust); }
.tabs button.is-active {
  color: var(--rust);
  border-bottom-color: var(--rust);
}

/* ============== Step indicator ============== */
.step-indicator {
  display: flex; align-items: center; gap: 12px;
  margin: 0 auto var(--s-6);
  max-width: 720px;
  justify-content: center;
}
.step-indicator .stepi {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.step-indicator .stepi-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg-warm);
  border: 1px solid var(--rule);
  display: grid; place-items: center;
  font-family: var(--serif);
  font-size: 14px;
  color: var(--muted);
  font-variation-settings: "opsz" 14;
}
.step-indicator .is-active .stepi-num { background: var(--rust); color: #fff; border-color: var(--rust); }
.step-indicator .is-active { color: var(--ink); }
.step-indicator .is-done .stepi-num { background: var(--success); color: #fff; border-color: var(--success); }
.step-indicator .is-done { color: var(--ink); }
.step-indicator .stepi-line {
  width: 36px; height: 1px; background: var(--rule);
}

/* ============== Hero variations ============== */
.hero--page {
  padding: var(--s-7) 0 var(--s-6);
  border-bottom: 1px solid var(--rule);
  text-align: left;
}
.hero--page .hero-inner { text-align: left; }
.hero--page .h1 {
  font-size: var(--t-h1);
  max-width: 30ch;
  margin: 0;
}
.hero--page .lede { margin-top: var(--s-4); }

/* ============== Helpers ============== */
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.gap-sm { gap: 8px; }
.gap-md { gap: 16px; }
.gap-lg { gap: 24px; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.mt-xs { margin-top: 6px; }
.mt-sm { margin-top: 12px; }
.mt-md { margin-top: 24px; }
.mt-lg { margin-top: 48px; }
.mb-xs { margin-bottom: 6px; }
.mb-sm { margin-bottom: 12px; }
.mb-md { margin-bottom: 24px; }
.mb-lg { margin-bottom: 48px; }
.divider { height: 1px; background: var(--rule); margin: 24px 0; }

/* ============== Skip link ============== */
.skip-link {
  position: absolute;
  left: -9999px;
  background: var(--rust);
  color: #fff;
  padding: 12px 20px;
  z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ============== Animations ============== */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(8px); animation: reveal .8s var(--ease) forwards; }
  .reveal-1 { animation-delay: .05s; }
  .reveal-2 { animation-delay: .15s; }
  .reveal-3 { animation-delay: .25s; }
  .reveal-4 { animation-delay: .35s; }
  .reveal-5 { animation-delay: .50s; }
  .reveal-6 { animation-delay: .65s; }
  @keyframes reveal { to { opacity: 1; transform: none; } }

  .cal-bar { animation: rise 1.2s var(--ease) backwards; transform-origin: bottom; }
  .cal-month:nth-child(1) .cal-bar { animation-delay: .05s; }
  .cal-month:nth-child(2) .cal-bar { animation-delay: .10s; }
  .cal-month:nth-child(3) .cal-bar { animation-delay: .15s; }
  .cal-month:nth-child(4) .cal-bar { animation-delay: .20s; }
  .cal-month:nth-child(5) .cal-bar { animation-delay: .25s; }
  .cal-month:nth-child(6) .cal-bar { animation-delay: .30s; }
  .cal-month:nth-child(7) .cal-bar { animation-delay: .35s; }
  .cal-month:nth-child(8) .cal-bar { animation-delay: .40s; }
  .cal-month:nth-child(9) .cal-bar { animation-delay: .45s; }
  .cal-month:nth-child(10) .cal-bar { animation-delay: .50s; }
  .cal-month:nth-child(11) .cal-bar { animation-delay: .55s; }
  .cal-month:nth-child(12) .cal-bar { animation-delay: .60s; }
  @keyframes rise {
    from { transform: scaleY(0); opacity: 0; }
    to { transform: scaleY(1); opacity: 1; }
  }
}

/* ============== Responsive ============== */
@media (max-width: 1100px) {
  .nav { display: none; }
  .header-row { grid-template-columns: 1fr auto; }
  .card-grid, .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .layout-with-sidebar { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stat-tiles { grid-template-columns: repeat(2, 1fr); }
  .stat-tile:nth-child(1), .stat-tile:nth-child(2) { border-bottom: 1px solid var(--rule); }
  .stat-tile:nth-child(2) { border-right: 0; }
  .tier-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .cta-strip { grid-template-columns: 1fr; padding: 32px; }
  .search { grid-template-columns: 1fr; }
  .search-divider { display: none; }
  .search .btn-search { width: 100%; padding: 14px; justify-content: center; }
  .cal-grid { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 640px) {
  .card-grid, .card-grid--2, .card-grid--4 { grid-template-columns: 1fr; }
  .stat-tiles { grid-template-columns: 1fr; }
  .stat-tile { border-right: 0; border-bottom: 1px solid var(--rule); }
  .stat-tile:last-child { border-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-base { flex-direction: column; align-items: flex-start; gap: 12px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .form-row { grid-template-columns: 1fr; }
  .step-indicator .stepi-line { display: none; }
  .cal-grid { grid-template-columns: repeat(4, 1fr); }
  .brand-name { display: none; }
}


/* ===== a11y contrast tightening (added 2026-05-03) ===== */
.result-body .meta { color: var(--ink-soft); }
.result-card .meta .sep { color: #c8c5b9; }
.cohort-cal-legend span,
.trust-row .trust-label,
.utility-left span { color: #4a566f; }

/* ===== minimum text size for SEO mobile-readability ===== */
.compare-table th, .compare-table td { font-size: 14px; }
.muted-text, p.muted-text { font-size: 14px; }


/* additional contrast — final pass */
.utility-left, .utility-left span, .utility-right a { color: #2c3a55 !important; }
.tier-card .muted-li { color: #5a6275 !important; }
.tier-card .muted-li svg { color: #5a6275; }
.badge-acc { background: #d4ba75 !important; color: #2a1f08 !important; }
.footer-tagline, .footer-grid p, .footer-grid p strong { color: rgba(255,255,255,0.85) !important; }
.footer-base { color: rgba(255,255,255,0.75) !important; }
