/* Fonts loaded via HTML link tags */

/* =========================================================
   Free Laptop Finder — Design Tokens
   Palette: deep navy ink (institutional trust) + paper white
   + signal amber (the one "active tool" accent) + success green
   Type: Source Serif for headings (documentary gravity),
   system humanist sans for body/UI, mono for data/tag labels
   ========================================================= */
:root {
  /* ---- Professional palette: White / Light Gray / Blue / Red ---- */
  /* Ink — text color only, never used as a full-bleed section background */
  --ink: #14181F;
  --ink-soft: #3F4652;
  --ink-softer: #6B7280;

  /* White & light gray — the dominant backgrounds on this site */
  --paper: #FFFFFF;
  --paper-dim: #F5F7FA;
  --paper-dim-2: #EEF1F6;
  --white: #FFFFFF;

  /* Blue — primary brand color, used for backgrounds, CTAs, links, accents */
  --blue: #2563EB;
  --blue-deep: #1D4ED8;
  --blue-deeper: #1E3A8A;
  --blue-pale: #EAF1FE;
  --blue-pale-2: #DCE9FD;

  /* Gradient tokens — used sparingly (hero, a few accent surfaces) */
  --gradient-blue: linear-gradient(135deg, #1E3A8A 0%, #2563EB 55%, #3B82F6 100%);
  --gradient-blue-soft: linear-gradient(135deg, #EAF1FE 0%, #F5F7FA 100%);

  /* Neutral lines */
  --line: #E2E5EA;
  --line-strong: #C7CCD4;

  /* Red — reserved for warnings/errors and sparing emphasis */
  --danger: #C21F2B;
  --danger-pale: #FBE9EA;

  /* Trust green is intentionally NOT part of the palette per brief (white,
     light gray, blue, red only) — verified/trust badges use blue + a
     checkmark glyph instead of green, to stay within the 4-color system. */
  --success: var(--blue-deep);
  --success-pale: var(--blue-pale);

  /* Legacy alias layer so every existing component (many still reference
     --amber*) inherits the new blue-led palette from one place. */
  --amber: var(--blue);
  --amber-deep: var(--blue-deep);
  --amber-pale: var(--blue-pale);

  --font-display: "Lora", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(20, 24, 31, 0.06), 0 1px 1px rgba(20, 24, 31, 0.04);
  --shadow-md: 0 6px 16px rgba(20, 24, 31, 0.08), 0 2px 6px rgba(20, 24, 31, 0.05);
  --shadow-lg: 0 16px 40px rgba(20, 24, 31, 0.12), 0 6px 12px rgba(20, 24, 31, 0.06);
  --shadow-blue: 0 12px 28px rgba(37, 99, 235, 0.22);
  --content-max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
a { color: var(--ink); }
ul, ol { padding-left: 1.3em; }
.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; background: var(--ink); color: var(--white);
  padding: 10px 16px; z-index: 1000; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--amber-deep);
  outline-offset: 2px;
}

/* ===================== Header ===================== */
.site-header {
  background: var(--white);
  color: var(--ink);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(20,24,31,0.02);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 68px;
}
.site-header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  white-space: nowrap;
}
.site-header__logo-img {
  height: 28px;
  width: 28px;
  display: block;
  object-fit: contain;
}
.site-header__mark { color: var(--blue); display: inline-flex; }
.site-header__nav {
  display: none;
  gap: 22px;
  margin-left: 8px;
  flex: 1;
}
.site-header__nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.site-header__nav a:hover { color: var(--blue); }
.site-header__cta { display: none; white-space: nowrap; margin-left: auto; }
.site-header__menu-toggle {
  margin-left: auto;
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 8px 24px 16px;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
}
@media (min-width: 960px) {
  .site-header__nav { display: flex; align-items: center; }
  .site-header__cta { display: inline-flex; }
  .site-header__menu-toggle { display: none; }
}

/* ===================== Breadcrumbs ===================== */
.breadcrumbs { padding: 14px 24px 0; }
.breadcrumbs__list {
  list-style: none; display: flex; flex-wrap: wrap; gap: 6px;
  padding: 0; margin: 0; font-size: 0.85rem; color: var(--ink-softer);
  font-family: var(--font-mono);
}
.breadcrumbs__item a { color: var(--ink-softer); text-decoration: none; }
.breadcrumbs__item a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumbs__item [aria-current] { color: var(--ink); }
.breadcrumbs__sep { color: var(--line-strong); }

/* ===================== Buttons ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  font-family: var(--font-body);
}
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--blue-deep); color: var(--white); box-shadow: var(--shadow-sm); }
.btn--outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn--outline:hover { border-color: var(--white); }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: var(--ink-soft); }
.btn--small { padding: 9px 16px; font-size: 0.88rem; }
.btn--block { width: 100%; }

/* ===================== Tag / Pill system (signature element) ===================== */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--paper-dim);
  color: var(--ink-soft);
  border: 1px solid var(--line);
  text-decoration: none;
  white-space: nowrap;
}
a.tag:hover { border-color: var(--ink-soft); color: var(--ink); }
.tag--amber { background: var(--amber-pale); color: var(--amber-deep); border-color: #C7D9FB; }
.tag--ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tag--on-dark { background: rgba(255,255,255,0.16); color: var(--white); border-color: rgba(255,255,255,0.32); }
a.tag--on-dark:hover { background: rgba(255,255,255,0.26); color: var(--white); border-color: rgba(255,255,255,0.5); }
.tag--success { background: var(--success-pale); color: var(--success); border-color: #C7D9FB; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ===================== Layout helpers ===================== */
.section { padding: 56px 0; }
.section--tight { padding: 36px 0; }
.section--ink { background: var(--gradient-blue); color: var(--white); }
.section--ink h2, .section--ink h3 { color: var(--white); }
.section--dim { background: var(--paper-dim); }
.section--white { background: var(--white); }
main > section:last-child, main > .section:last-child {
  margin-bottom: 0 !important;
  padding-bottom: 36px;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin-bottom: 10px;
  display: block;
}
.section--ink .eyebrow,
.hero .eyebrow,
.page-header--ink .eyebrow { color: var(--white); }
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 62ch; }
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ===================== Cards (redesigned) ===================== */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--amber), var(--amber-deep));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
a.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--ink-softer);
}
a.card:hover::before { transform: scaleX(1); }
.card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--amber-pale);
  color: var(--amber-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 4px;
  transition: background 0.2s ease, color 0.2s ease;
}
a.card:hover .card__icon { background: var(--ink); color: var(--amber); }
.card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.card__title-arrow {
  color: var(--line-strong);
  font-size: 1.1rem;
  transition: transform 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}
a.card:hover .card__title-arrow { transform: translateX(3px); color: var(--amber-deep); }
.card__desc { color: var(--ink-soft); font-size: 0.95rem; margin: 0; flex: 1; line-height: 1.5; }
.card__meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--amber-deep);
}
.card--flush { padding: 0; overflow: hidden; }
.card--flush .card__body { padding: 18px 20px 20px; }

/* Compact card variant for dense directory grids (organizations, states, etc.) */
.card--compact { padding: 18px 20px; gap: 8px; }
.card--compact .card__title { font-size: 1.02rem; }
.card--compact .card__desc { font-size: 0.88rem; -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }

/* Stat card — used for the homepage keyword/coverage stat sections */
.card--stat {
  align-items: flex-start;
  gap: 4px;
}
.card--stat .card__stat-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  margin: 4px 0 2px;
}
.card--stat .card__stat-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ink-softer);
}

/* ===================== Bar chart (pure CSS, no JS dependency) ===================== */
.barchart { display: flex; flex-direction: column; gap: 14px; margin: 20px 0; }
.barchart__row { display: grid; grid-template-columns: 160px 1fr 56px; align-items: center; gap: 12px; }
.barchart__label { font-size: 0.88rem; color: var(--ink-soft); font-weight: 600; }
.barchart__track {
  background: var(--paper-dim);
  border-radius: 999px;
  height: 14px;
  overflow: hidden;
  position: relative;
  display: block;
}
.barchart__fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue-deep), var(--blue));
  width: 0%;
  transition: width 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}
.barchart__row.is-revealed .barchart__fill,
.is-revealed .barchart__fill { width: var(--bar-value, 0%); }
.barchart__value { font-family: var(--font-mono); font-size: 0.85rem; color: var(--ink); font-weight: 700; text-align: right; }
@media (max-width: 620px) {
  .barchart__row { grid-template-columns: 1fr; gap: 4px; }
  .barchart__value { text-align: left; }
}

/* ===================== Donut / segmented ring (pure SVG) ===================== */
.donut-wrap { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.donut-legend { display: flex; flex-direction: column; gap: 10px; }
.donut-legend__item { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--ink-soft); }
.donut-legend__swatch { width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; }

/* ===================== Scroll-reveal ===================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal].is-revealed { opacity: 1; transform: translateY(0); }
[data-reveal="1"] { transition-delay: 0.05s; }
[data-reveal="2"] { transition-delay: 0.12s; }
[data-reveal="3"] { transition-delay: 0.19s; }
[data-reveal="4"] { transition-delay: 0.26s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .barchart__fill { transition: none; width: var(--bar-value, 0%); }
}

/* ===================== Marquee / logo strip (subtle motion accent) ===================== */
.marquee { overflow: hidden; position: relative; padding: 4px 0; }
.marquee::before, .marquee::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--paper-dim), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--paper-dim), transparent); }
.marquee__track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: marquee-scroll 32s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}
.marquee__chip {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 10px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  flex-shrink: 0;
}

/* ===================== Image placeholder ===================== */
.img-placeholder {
  width: 100%;
  aspect-ratio: var(--ph-ratio, 16 / 9);
  background: repeating-linear-gradient(135deg, var(--paper-dim), var(--paper-dim) 10px, var(--line) 10px, var(--line) 20px);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--ink-softer);
}
.img-placeholder__icon { width: 28px; height: 28px; opacity: 0.55; }
.img-placeholder__label { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; }

/* ===================== Hero / Finder ===================== */
.hero {
  background: var(--gradient-blue);
  color: var(--paper);
  padding: 56px 0 64px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 85% 15%, rgba(255,255,255,0.16), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(255,255,255,0.08), transparent 40%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; }
.hero__title { color: var(--white); max-width: 18ch; }
.hero__lede { color: rgba(255,255,255,0.86); font-size: 1.15rem; max-width: 56ch; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 22px; }
.hero__trust-item { font-family: var(--font-mono); font-size: 0.82rem; color: rgba(255,255,255,0.75); display: flex; align-items: center; gap: 6px; }
.hero__trust-item svg { color: var(--amber); }

/* Two-column hero split: copy left, image right. Finder sits full-width
   below both columns (see .hero__finder-row), never squeezed by the grid. */
.hero__split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero__split { grid-template-columns: 1.15fr 0.85fr; gap: 48px; }
}
.hero__media {
  width: 100%;
  max-width: 460px;
  justify-self: center;
}
@media (min-width: 900px) { .hero__media { justify-self: end; max-width: 100%; } }
.hero__media .img-placeholder {
  border-radius: var(--radius-lg);
  border-color: rgba(255,255,255,0.3);
  background: repeating-linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.06) 10px, rgba(255,255,255,0.02) 10px, rgba(255,255,255,0.02) 20px);
  color: rgba(255,255,255,0.55);
}
.hero__finder-row { margin-top: 34px; }

/* Finder panel */
.finder {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 26px;
  margin-top: 34px;
  color: var(--ink);
}
.finder__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  display: block;
  margin-bottom: 8px;
}
.finder__row { display: grid; gap: 16px; grid-template-columns: 1fr; margin-bottom: 18px; }
@media (min-width: 720px) {
  .finder__row--split { grid-template-columns: 1fr 1fr; }
}
.finder select, .finder input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 0.98rem;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
}
.finder select:focus, .finder input:focus { border-color: var(--ink); outline: none; }
.finder__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.finder__chip {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink-soft);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  transition: all 0.12s ease;
}
.finder__chip:hover { border-color: var(--ink); }
.finder__chip.is-active {
  background: var(--blue);
  border-color: var(--blue-deep);
  color: var(--white);
}
.finder__actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; flex-wrap: wrap; }
.finder__count { font-family: var(--font-mono); font-size: 0.85rem; color: var(--ink-soft); }
.finder__count strong { color: var(--ink); font-size: 1.1rem; }

/* Static homepage preview variant — illustrative only, not interactive.
   Clicking anywhere useful routes to the real /laptop-finder/ tool rather
   than filtering in place, per design decision to avoid a confusing
   duplicate-interaction pattern between the homepage and the tool page. */
.finder--preview { padding: 28px 26px; }
.finder__preview-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.finder__preview-title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; margin: 0; color: var(--ink); }
.finder__preview-count { font-family: var(--font-mono); font-size: 0.85rem; color: var(--ink-softer); }
.finder__preview-count strong { color: var(--blue-deep); font-size: 1rem; }
.finder__chip--static {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: var(--paper-dim);
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  cursor: default;
}
.finder__chip--more { background: var(--blue-pale); border-color: var(--blue-pale-2); color: var(--blue-deep); }

/* ===================== Results ===================== */
.results-list { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.result-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  text-decoration: none;
  color: var(--ink);
  transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  animation: result-fade-in 0.35s ease both;
}
@keyframes result-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .result-card { animation: none; }
}
@media (min-width: 720px) {
  .result-card { grid-template-columns: 2.2fr 1fr auto; align-items: center; }
}
.result-card:hover { box-shadow: var(--shadow-md); border-color: var(--ink-softer); }
.result-card__title { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; margin: 0 0 4px; }
.result-card__desc { color: var(--ink-soft); font-size: 0.92rem; margin: 0; }
.result-card__type { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; color: var(--ink-softer); letter-spacing: 0.03em; margin-bottom: 6px; display: block; }
.result-card__cost { font-family: var(--font-mono); font-size: 0.85rem; color: var(--success); font-weight: 700; }
.result-card__arrow { color: var(--amber-deep); font-size: 1.3rem; justify-self: end; }
.no-js-note { display: none; }
.no-js .no-js-note { display: block; }
.no-js .finder-js-only { display: none; }

/* ===================== Info blocks ===================== */
.info-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .info-grid { grid-template-columns: 2fr 1fr; } }
.info-block {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 20px;
}
.info-block h2, .info-block h3 { margin-top: 0; }
.info-block ol, .info-block ul { margin-bottom: 0; }
.info-block li { margin-bottom: 8px; }
.sidebar-block {
  background: var(--paper-dim);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
}
.sidebar-block h3 { font-size: 1rem; margin-bottom: 12px; }
.sidebar-block dl { margin: 0; }
.sidebar-block dt { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; color: var(--ink-softer); margin-top: 12px; letter-spacing: 0.03em; }
.sidebar-block dt:first-child { margin-top: 0; }
.sidebar-block dd { margin: 4px 0 0; font-size: 0.95rem; }

.callout {
  background: var(--blue-pale);
  border: 1px solid #C7D9FB;
  border-left: 4px solid var(--blue-deep);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 20px 0;
}
.callout--warning {
  background: var(--danger-pale);
  border-color: #F0C2C5;
  border-left-color: var(--danger);
}
.callout--success {
  background: var(--paper-dim);
  border-color: var(--line-strong);
  border-left-color: var(--ink);
}
.callout p:last-child { margin-bottom: 0; }
.callout h4 { margin-top: 0; }

/* ===================== FAQ (accordion via <details>) ===================== */
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 6px 0;
}
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer;
  padding: 14px 4px;
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-body);
  font-size: 1.4rem;
  color: var(--amber-deep);
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item__answer { padding: 0 4px 16px; color: var(--ink-soft); }
.faq-item__answer p:last-child { margin-bottom: 0; }

/* ===================== Steps ===================== */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 4px 0 20px 44px;
  margin: 0;
}
.steps li:last-child { padding-bottom: 4px; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 2px;
  width: 30px; height: 30px;
  background: var(--ink);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
}
.steps li::after {
  content: "";
  position: absolute;
  left: 15px; top: 32px; bottom: 0;
  width: 1px;
  background: var(--line-strong);
}
.steps li:last-child::after { display: none; }

/* ===================== Comparison table ===================== */
.compare-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.compare-table th, .compare-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 0.94rem;
}
.compare-table th {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ink-softer);
  background: var(--paper-dim);
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table-wrap { overflow-x: auto; }

/* ===================== Table of contents ===================== */
.toc {
  background: var(--paper-dim);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 24px 0;
}
.toc__title { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-softer); margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 1.2em; columns: 2; column-gap: 24px; }
.toc li { break-inside: avoid; margin-bottom: 6px; font-size: 0.92rem; }
.toc a { text-decoration: none; color: var(--ink-soft); }
.toc a:hover { color: var(--ink); text-decoration: underline; }

/* ===================== Trust badges ===================== */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 10px;
  background: var(--blue-pale);
  border: 1px solid var(--blue-pale-2);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue-deeper);
}
.trust-badge__icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.trust-badge--on-dark {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.28);
  color: var(--white);
}
.trust-badge--on-dark .trust-badge__icon { background: var(--white); color: var(--blue-deep); }

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Larger "reviewed by our team" card used on org/program detail pages */
.review-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--blue-pale);
  border: 1px solid var(--blue-pale-2);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin: 20px 0;
}
.review-card__icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gradient-blue);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-blue);
}
.review-card__title { font-weight: 700; color: var(--ink); margin: 0 0 3px; font-size: 0.95rem; }
.review-card__desc { color: var(--ink-soft); font-size: 0.88rem; margin: 0; }

/* ===================== Application form ===================== */
.app-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 32px; }
.app-form__section { margin-bottom: 32px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.app-form__section:last-of-type { border-bottom: none; margin-bottom: 8px; padding-bottom: 0; }
.app-form__section-title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--ink); margin: 0 0 4px; }
.app-form__section-desc { font-size: 0.88rem; color: var(--ink-softer); margin: 0 0 20px; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 18px; margin-bottom: 18px; }
@media (min-width: 640px) {
  .form-row--2 { grid-template-columns: 1fr 1fr; }
  .form-row--3 { grid-template-columns: 1fr 1fr 1fr; }
}
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.form-field label .required { color: var(--danger); margin-left: 2px; }
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 0.98rem;
  font-family: var(--font-body);
  background: var(--white);
  color: var(--ink);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--blue);
  outline: 3px solid var(--blue-pale);
  outline-offset: 0;
}
.form-field textarea { resize: vertical; min-height: 100px; }
.form-field__hint { font-size: 0.8rem; color: var(--ink-softer); }

.checkbox-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--ink-soft);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.checkbox-item:hover { border-color: var(--blue); background: var(--blue-pale); }
.checkbox-item input { width: 17px; height: 17px; accent-color: var(--blue); flex-shrink: 0; }
.checkbox-item:has(input:checked) { border-color: var(--blue); background: var(--blue-pale); color: var(--ink); font-weight: 600; }

.radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--ink-soft);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.radio-item:hover { border-color: var(--blue); }
.radio-item input { accent-color: var(--blue); }
.radio-item:has(input:checked) { border-color: var(--blue); background: var(--blue-pale); color: var(--ink); font-weight: 600; }

.app-form__submit-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.app-form__consent { font-size: 0.82rem; color: var(--ink-softer); max-width: 60ch; }

/* Simple step indicator */
.form-steps { display: flex; gap: 8px; margin-bottom: 28px; flex-wrap: wrap; }
.form-steps__item {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600;
  color: var(--ink-softer);
}
.form-steps__num {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--paper-dim); color: var(--ink-softer);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.72rem;
}
.form-steps__item--active { color: var(--blue-deep); }
.form-steps__item--active .form-steps__num { background: var(--blue); color: var(--white); }

/* ===================== Filter bar (directory listing pages) ===================== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 26px;
}

/* ===================== Related / interlink strip ===================== */
.related-strip { margin-top: 12px; }
.related-strip__title { font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--ink-softer); margin-bottom: 12px; }

/* ===================== Footer ===================== */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.75); padding: 48px 0 0; }
.site-footer__grid { display: grid; gap: 32px; grid-template-columns: 1fr; padding-bottom: 36px; }
@media (min-width: 720px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer__brand { font-family: var(--font-display); color: var(--white); font-size: 1.15rem; font-weight: 700; margin: 0 0 10px; }
.site-footer__brand-link { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-bottom: 10px; white-space: nowrap; }
.site-footer__brand-link .site-footer__brand { margin: 0; }
.site-footer__logo-img {
  height: 28px;
  width: 28px;
  display: block;
  object-fit: contain;
}
.site-footer__tagline { font-size: 0.9rem; max-width: 34ch; }
.site-footer__heading { font-family: var(--font-body); font-size: 1rem; font-weight: bold; color: var(--amber); margin: 0 0 12px; }
.site-footer__col a { display: block; color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.9rem; padding: 5px 0; }
.site-footer__col a:hover { color: var(--white); }
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 20px 0 28px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}
.site-footer__bottom p { margin: 0 0 6px; }

/* ===================== Misc page furniture ===================== */
.page-header { padding: 44px 0 8px; }
.page-header--ink { background: var(--gradient-blue); color: var(--paper); padding: 44px 0 40px; }
.page-header--ink h1 { color: var(--white); }
.page-header--ink .lede { color: rgba(255,255,255,0.86); }
.stat-strip { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 20px; }
.stat__num { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; color: var(--amber); display: block; }
.stat__label { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.03em; color: rgba(255,255,255,0.6); }
.section--white .stat__num, .section--dim .stat__num { color: var(--amber-deep); }
.section--white .stat__label, .section--dim .stat__label { color: var(--ink-softer); }

.divider { border: none; border-top: 1px solid var(--line); margin: 40px 0; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }

/* ===================== Live Dashboard & Charts ===================== */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 30px;
  margin-bottom: 40px;
}
.metric-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}
.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-blue);
}
.metric-header {
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: center;
  margin-bottom: 15px;
}
.metric-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.live-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #ef4444;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}
.metric-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--ink);
  font-family: var(--font-display);
  line-height: 1.2;
}
.metric-sub {
  font-size: 0.85rem;
  color: var(--ink-softer);
  margin-top: 4px;
}
.chart-container {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
.chart-wrapper {
  position: relative;
  height: 300px;
  width: 100%;
}
.chart-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--ink);
  text-align: center;
}
