/* OpenCarGuide design tokens (QL-03).
   :root below is copied verbatim from resources/ui-examples/opencarguide-v1/styles.css,
   followed by the additions listed in docs/specs/02-full-build/reference/07 §2.
   Fonts are self-hosted (no third-party requests). */

@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/Barlow-Regular.e42fb205c9.woff2') format('woff2'); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap;
  src: url('/assets/fonts/Barlow-Medium.2678a2313b.woff2') format('woff2'); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap;
  src: url('/assets/fonts/Barlow-Bold.9c9d54ac20.woff2') format('woff2'); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/BarlowCondensed-Regular.96f2c0b90b.woff2') format('woff2'); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/assets/fonts/BarlowCondensed-SemiBold.febe727f4a.woff2') format('woff2'); }

:root {
  --color-bg: #f2f2f3;
  --color-surface: #e9e9ea;
  --color-text: #1d1f20;
  --color-accent: #5980a6;
  --color-accent-2: #728fab;
  --color-divider: color-mix(in srgb, #1d1f20 16%, transparent);

  /* Tonal ramps — generated in OKLCH on one shared lightness scale, so the
     same step of any role matches the others in visual value. */
  --color-neutral-100: #f5f5f8;
  --color-neutral-200: #e7e7ea;
  --color-neutral-300: #d4d4d7;
  --color-neutral-400: #b7b7ba;
  --color-neutral-500: #98989b;
  --color-neutral-600: #7a7a7d;
  --color-neutral-700: #5d5d60;
  --color-neutral-800: #424244;
  --color-neutral-900: #2b2b2d;

  --color-accent-100: #eef6ff;
  --color-accent-200: #d6ebff;
  --color-accent-300: #b5d9fd;
  --color-accent-400: #94bce3;
  --color-accent-500: #749dc4;
  --color-accent-600: #597ea3;
  --color-accent-700: #416180;
  --color-accent-800: #2c455d;
  --color-accent-900: #1d2d3d;

  --color-accent-2-100: #eef6ff;
  --color-accent-2-200: #d6ebff;
  --color-accent-2-300: #bdd8f2;
  --color-accent-2-400: #9ebbd8;
  --color-accent-2-500: #7e9cb8;
  --color-accent-2-600: #627d98;
  --color-accent-2-700: #486077;
  --color-accent-2-800: #314457;
  --color-accent-2-900: #1f2d3a;

  --font-heading: "Barlow Condensed", system-ui, sans-serif;
  --font-heading-weight: 600;
  --font-body: "Barlow", system-ui, sans-serif;

  --space-1: 3.4px;
  --space-2: 6.8px;
  --space-3: 10.2px;
  --space-4: 13.6px;
  --space-6: 20.4px;
  --space-8: 27.2px;

  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 7px;

  /* Elevation — derived from the ground: soft ink-tinted shadows on a
     light theme, a hairline edge + ambient darkness on a dark one. */
  --shadow-sm: 0 1px 2px color-mix(in srgb, #2b2b2d 14%, transparent);
  --shadow-md: 0 3px 10px color-mix(in srgb, #2b2b2d 16%, transparent);
  --shadow-lg: 0 12px 32px color-mix(in srgb, #2b2b2d 22%, transparent);
}

/* ── Additions (07 §2) ─────────────────────────────────────────────── */
:root {
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;

  /* text-alpha consolidation; --text-faint is for decorative / large text only (07 §5) */
  --text-strong: color-mix(in srgb, var(--color-text) 85%, transparent);
  --text-body: color-mix(in srgb, var(--color-text) 78%, transparent);
  --text-muted: color-mix(in srgb, var(--color-text) 70%, transparent);
  --text-faint: color-mix(in srgb, var(--color-text) 55%, transparent);

  /* footer (R8 §2.2) */
  --footer-bg: var(--color-accent-900);
  --footer-text: #e8edf2;
  --footer-muted: #b9c6d3;
  --footer-link: #dbe3ea;

  --header-h: 68px;
}

/* Element styles (from styles.css) + a11y fixes (07 §5). */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; font-size: 15px; line-height: 1.55; font-weight: 400;
  background: var(--color-bg); color: var(--color-text); font-family: var(--font-body);
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 var(--space-2);
}
h1 { font-size: 42px; }
h2 { font-size: 32px; }
h3 { font-size: 25px; }
h4 { font-size: 20px; }
h5 { font-size: 16px; }
h6 { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
p { margin: 0 0 var(--space-3); }
/* a11y: text links use accent-700 (5.8:1 on bg); design's #5980a6 is 3.7:1 */
a { color: var(--color-accent-700); text-underline-offset: 3px; }
a:hover { color: var(--color-accent-700); }
img { display: block; max-width: 100%; }
figure { margin: 0; }
figcaption { font-size: 11px; margin-top: var(--space-1); color: var(--text-muted); }
.text-muted { color: var(--text-muted); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }
main:focus { outline: none; }
code, kbd, samp { font-family: var(--font-mono); }
button { font: inherit; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--color-accent-900); color: #fff; padding: 10px 16px;
  font-family: var(--font-heading); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  text-decoration: none;
}
.skip-link:focus, .skip-link:focus-visible { top: 12px; color: #fff; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .hit:hover .arrow, .toolrow:hover .arrow { transform: none; }
}

/* Components (styles.css) + extracted inline patterns (R8 §2.6). */

/* — blueprint frame + registration corners — */
.blueprint { position: relative; border: 1px solid var(--color-divider); border-radius: 0; }
.blueprint > .corner {
  position: absolute; width: 11px; height: 11px;
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
}
.blueprint > .corner::before, .blueprint > .corner::after { content: ""; position: absolute; background: currentColor; }
.blueprint > .corner::before { left: 5px; top: 0; width: 1px; height: 100%; }
.blueprint > .corner::after  { top: 5px; left: 0; width: 100%; height: 1px; }
.blueprint > .corner.tl { top: -6px; left: -6px; }
.blueprint > .corner.tr { top: -6px; right: -6px; }
.blueprint > .corner.bl { bottom: -6px; left: -6px; }
.blueprint > .corner.br { bottom: -6px; right: -6px; }
.surface { background: var(--color-surface); }

/* — buttons (blueprint frame: square, hairline; uppercase is the design's default use) — */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; text-decoration: none;
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 14px; line-height: 1.2; color: var(--color-text);
  letter-spacing: 0.04em; text-transform: uppercase;
  background: transparent; border: 1px solid var(--color-divider); border-radius: 0;
  padding: var(--space-2) calc(var(--space-3) * 1.2);
}
.btn:hover { color: var(--color-text); }
.btn svg { display: block; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }
/* a11y (07 §5): accent-700 fill. Measured: #f2f2f3 on #416180 = 5.78:1; on #2c455d = 8.87:1; on #1d2d3d = 12.56:1 (design #5980a6 = 3.71:1) */
.btn-primary { background: var(--color-accent-700); border-color: var(--color-accent-700); color: var(--color-bg); letter-spacing: 0.05em; }
.btn-primary:hover { background: var(--color-accent-800); border-color: var(--color-accent-800); color: var(--color-bg); }
.btn-primary:active { background: var(--color-accent-900); border-color: var(--color-accent-900); }
.btn-secondary { border-color: var(--color-divider); }
.btn-secondary:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.btn-secondary:active { background: color-mix(in srgb, var(--color-text) 14%, transparent); }
.btn-block { width: 100%; margin-top: var(--space-2); }
.btn-sm { font-size: 13px; }
.btn-lg { min-height: 48px; padding: 0 26px; font-size: 15px; }

/* — forms — */
.field > label, .field > .label-text {
  display: block; font-size: 12px; margin-bottom: 5px; color: var(--text-muted);
}
.input {
  width: 100%; min-height: 36px; padding: 6px 10px; font: inherit;
  font-size: 14px; color: var(--color-text); caret-color: var(--color-accent);
  background: var(--color-surface);
  border: 1px solid var(--color-divider); border-radius: 0;
}
.input:hover { border-color: color-mix(in srgb, var(--color-text) 45%, transparent); }
.input:focus-visible { border-color: var(--color-accent); outline-offset: 0; }
textarea.input { min-height: 90px; resize: vertical; }
.seg-opt input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
fieldset.seg { margin: 0; padding: 0; min-width: 0; }
.seg { display: inline-flex; overflow: hidden; border: 1px solid var(--color-divider); border-radius: 0; }
.seg-opt { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; font-size: 13px; cursor: pointer; }
.seg-opt + .seg-opt { border-left: 1px solid var(--color-divider); }
/* a11y: the selected segment uses the accent-700 fill (5.78:1) */
.seg-opt:has(input:checked) { background: var(--color-accent-700); color: var(--color-bg); }
.seg-opt:not(:has(input:checked)):hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.seg-opt:has(input:focus-visible) { outline: 2px solid var(--color-accent-900); outline-offset: -3px; }
/* a11y: on the selected (accent-700) segment the inset ring is light: #f2f2f3 on #416180 = 5.78:1 (accent-900 there was 2.2:1) */
.seg-opt:has(input:checked:focus-visible) { outline-color: var(--color-bg); }

/* joined input + button (header, home, search, 404) */
.search-row { display: flex; align-items: stretch; }
.search-row .input { background: var(--color-bg); }
.search-row .btn { flex: none; margin-left: -1px; }

/* — tags — */
.tag {
  display: inline-flex; align-items: center; font-size: 11px;
  letter-spacing: 0.02em; padding: 3px 10px; border-radius: 0;
}
.tag-accent { background: var(--color-accent-100); color: var(--color-accent-800); }
.tag-neutral { background: var(--color-neutral-100); color: var(--color-neutral-800); }
/* a11y: outline tag text uses accent-700 (11px text) */
.tag-outline { border: 1px solid var(--color-accent); color: var(--color-accent-700); }

/* — tables — */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table caption { text-align: left; }
.table th {
  text-align: left; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted); font-weight: 400;
  padding: var(--space-2); border-bottom: 1px solid var(--color-divider);
}
.table td { padding: var(--space-2); border-bottom: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent); }
.table tbody tr:hover { background: color-mix(in srgb, var(--color-text) 4%, transparent); }
.table-wrap { overflow-x: auto; max-width: 100%; }

/* — extracted patterns (R8 §2.6) — */
.eyebrow {
  font-family: var(--font-heading); font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--color-accent-700); margin-bottom: 12px;
}
.label { /* replaces the design's h6 section labels; same look at any heading level */
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 13px; line-height: 1.12; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted); margin: 0 0 18px;
}
.kicker {
  display: block; font-family: var(--font-heading); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--color-accent-700);
}
.stat { min-width: 0; }
.stat-label {
  font-family: var(--font-heading); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px;
}
.stat-value { font-family: var(--font-heading); font-size: 21px; }

.page-head { padding: 64px 0 44px; border-bottom: 1px solid var(--color-text); }
.page-head h1 { font-size: 56px; line-height: 1.03; letter-spacing: -0.02em; margin: 0 0 18px; }
.lead { font-size: 18px; line-height: 1.6; color: color-mix(in srgb, var(--color-text) 75%, transparent); margin: 0; }

.rule-heading { border-bottom: 1px solid var(--color-text); padding-bottom: 10px; }

.hit { transition: background .18s ease; }
.hit:hover { background: color-mix(in srgb, var(--color-accent) 6%, transparent); }
.arrow { transition: transform .18s ease; }
.hit:hover .arrow { transform: translateX(4px); }

.row-link {
  display: block; padding: 12px 0; border-bottom: 1px solid var(--color-divider);
  text-decoration: none; color: var(--color-text);
}

.tile {
  display: flex; flex-direction: column; padding: 26px;
  text-decoration: none; color: var(--color-text);
}
.tile:hover { color: var(--color-text); }
.tile .kicker { margin-bottom: 14px; }
.tile-title {
  display: block; font-family: var(--font-heading); font-weight: 600;
  font-size: 25px; line-height: 1.15; margin-bottom: 8px;
}
.tile-body { display: block; font-size: 14.5px; line-height: 1.6; color: var(--text-muted); flex: 1; }
.tile-cta {
  display: block; margin-top: 18px; font-family: var(--font-heading); font-size: 13px;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-accent-700);
}
.in-development { opacity: 0.55; }

.callout {
  border-color: var(--color-accent-700); background: var(--color-accent-100);
  color: var(--color-accent-900); padding: 24px 28px;
}
.callout-title {
  font-family: var(--font-heading); font-weight: 600; font-size: 20px; line-height: 1.12;
  margin: 0 0 6px; color: var(--color-accent-900); letter-spacing: -0.015em;
}
.callout p { font-size: 15px; line-height: 1.6; color: var(--color-accent-800); margin: 0 0 8px; }
.callout p:last-child { margin-bottom: 0; }
.callout a { color: var(--color-accent-800); }

.chip {
  display: inline-flex; align-items: center; justify-content: center; min-width: 54px; gap: 6px;
  padding: 5px 10px; border: 1px solid var(--color-divider);
  font-family: var(--font-heading); font-size: 14px; text-decoration: none; color: var(--color-text);
  background: transparent; cursor: pointer;
}
.chip:hover { background: color-mix(in srgb, var(--color-accent) 8%, transparent); color: var(--color-text); }

.numbered-row { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-top: 1px solid var(--color-divider); }
.numbered-row .num { font-family: var(--font-heading); font-size: 22px; color: var(--color-accent-700); line-height: 1.1; }

@keyframes ocg-pulse { 0%, 100% { opacity: .35 } 50% { opacity: .8 } }
.skeleton { background: var(--color-surface); animation: ocg-pulse 1.4s ease-in-out infinite; min-height: 14px; }

/* — recall accordion (details/summary) — */
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
.chev { display: inline-block; transition: transform .18s ease; }
details[open] .chev { transform: rotate(90deg); }
.recall { padding: 18px 20px; margin-bottom: 14px; transition: background .15s ease; }
.recall:hover { background: color-mix(in srgb, var(--color-accent) 4%, transparent); }
.recall > summary { display: flex; align-items: flex-start; gap: 14px; }
.recall .chev { font-family: var(--font-heading); color: var(--color-accent-700); line-height: 1.3; flex: none; }
.recall-main { flex: 1; min-width: 0; }
.recall-head { display: block; font-family: var(--font-heading); font-weight: 600; font-size: 20px; line-height: 1.2; letter-spacing: -0.015em; margin: 0; }
.recall-sub { display: block; font-size: 14px; line-height: 1.45; margin: 3px 0 0; color: var(--text-muted); }
.recall-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 8px; font-size: 12px; color: var(--text-muted); }
.recall-meta .mono { font-family: var(--font-mono); }
.recall-body { padding: 18px 0 4px 28px; display: flex; flex-direction: column; gap: 16px; }
.recall-body .label { color: var(--color-accent-700); margin: 0 0 5px; }
.recall-body p { margin: 0; font-size: 14.5px; line-height: 1.6; }

/* — pills (quick links, Search "Try") — */
.pill {
  display: inline-flex; align-items: center; font-size: 13px; padding: 4px 10px;
  border: 1px solid var(--color-divider); text-decoration: none; color: var(--color-text);
}
.pill:hover { background: color-mix(in srgb, var(--color-accent) 10%, transparent); color: var(--color-text); }

/* — sources box, byline, corrections — */
.sources-box { padding: 26px 28px; }
.sources-box ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 14.5px; line-height: 1.55; }
.byline { display: flex; flex-wrap: wrap; gap: 6px 28px; margin-top: 22px; font-size: 13px; color: var(--text-muted); }
.corrections { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--color-divider); }
.corrections ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 14.5px; }
.corrections time { font-family: var(--font-heading); letter-spacing: 0.04em; margin-right: 10px; color: var(--text-muted); }
.noscript-note { margin-top: 16px; padding: 14px 18px; border: 1px solid var(--color-divider); font-size: 14.5px; background: var(--color-bg); }

/* Consent banner (QL-09; moved from consent_banner.html) */
#ocg-consent{position:fixed;left:16px;right:16px;bottom:16px;z-index:60;max-width:960px;margin:0 auto;background:var(--color-bg,#f2f2f3);padding:16px 20px;display:flex;flex-wrap:wrap;gap:12px 20px;align-items:center;justify-content:space-between}
#ocg-consent[hidden]{display:none}
#ocg-consent .consent-actions [hidden]{display:none}
#ocg-consent p{margin:0;flex:1 1 320px}
#ocg-consent .consent-actions{display:flex;gap:8px;flex-wrap:wrap}

/* Containers, grids, header/footer, page layouts + ALL media queries (07 §4). */

.container, .container-1200 { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.container-1280 { max-width: 1280px; margin: 0 auto; padding: 0 28px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }

/* ── header (SiteNav) ─────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(242, 242, 243, 0.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-divider);
}
.site-header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--color-text); flex: none; }
.brand:hover { color: var(--color-text); }
.brand svg { display: block; flex: none; }
.brand-word { font-family: var(--font-heading); font-weight: 600; font-size: 21px; letter-spacing: 0.01em; line-height: 1; }
.brand-accent { color: var(--color-accent-700); }
.site-search { flex: 1; max-width: 460px; }
.site-search .input { min-height: 38px; font-size: 14px; border-right: none; }
.site-search .btn { min-height: 38px; padding: 0 16px; font-size: 13px; margin-left: 0; }
.site-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; flex: none; }
.site-nav a, .nav-menu-panel a {
  font-family: var(--font-heading); font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase;
  text-decoration: none; color: var(--color-text);
}
.site-nav a:hover { color: var(--color-accent-700); }
.site-nav a[aria-current="page"] { color: var(--color-accent-700); box-shadow: inset 0 -2px 0 var(--color-accent); }
.nav-menu { display: none; margin-left: auto; position: relative; }
.nav-menu > summary { min-height: 38px; padding: 0 14px; }
.nav-menu-panel {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px; z-index: 70;
  display: flex; flex-direction: column; background: var(--color-bg);
  border: 1px solid var(--color-divider); box-shadow: var(--shadow-md);
}
.nav-menu-panel a { padding: 12px 16px; border-bottom: 1px solid var(--color-divider); }
.nav-menu-panel a:last-child { border-bottom: 0; }
.nav-menu-panel a[aria-current="page"] { color: var(--color-accent-700); }

/* ── footer (SiteFooter) ──────────────────────────────────────────── */
.site-footer { background: var(--footer-bg); color: var(--footer-text); margin-top: 96px; }
.site-footer-inner { padding-top: 64px; padding-bottom: 28px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); gap: 40px; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo svg { display: block; flex: none; }
.footer-logo .brand-word { font-size: 19px; letter-spacing: 0; }
.footer-accent { color: var(--color-accent-400); }
.footer-about { font-size: 14px; line-height: 1.6; max-width: 34ch; color: var(--footer-muted); margin-bottom: 16px; }
.footer-mail {
  font-family: var(--font-body); font-size: 14px; color: var(--color-accent-300); text-decoration: none;
  border-bottom: 1px solid rgba(148, 188, 227, 0.4); padding-bottom: 1px;
}
.footer-title { color: #8fa3b6; margin-bottom: 14px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; font-size: 14px; line-height: 1.55; }
.footer-links a, .footer-button { color: var(--footer-link); text-decoration: none; }
.footer-button { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-size: 14px; text-align: left; }
.site-footer a:hover, .footer-button:hover { color: #fff; }
.footer-bottom {
  margin-top: 56px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: baseline; justify-content: space-between;
  font-size: 12.5px; color: #8fa3b6;
}
.footer-disclaimer { max-width: 58ch; }
.site-footer :focus-visible { outline-color: var(--color-accent-300); }

/* ══ Responsive (07 §4). Everything >=1200px renders as the export. ══
   Selectors are prefixed with "html" so these rules outrank the base rules in pages.css,
   which is concatenated after this file (ocg/assets.py CSS_ORDER). */
@media (max-width: 1199px) {
  html .grid-4, html .cols-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  html .cols-4 .col:nth-child(3n) { border-right: 0; padding-right: 0; }
  html .cols-4 .col:nth-child(3n + 1) { padding-left: 0; }
  html .hero { gap: 40px; }
  html .toc-layout { gap: 48px; }
  html .about-layout, html .contact-layout { gap: 48px; }
  html .vin-positions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  html .vin-pos:nth-child(3n) { border-right: 0; padding-right: 0; }
  html .vin-pos:nth-child(3n + 1) { padding-left: 0; }
  html .vin-pos:nth-child(n + 4) { border-top: 1px solid var(--color-divider); }
}

@media (max-width: 1023px) {
  :root { --header-h: 116px; }
  html /* header: logo + Menu on row 1, html full-width search on row 2 */
  .site-header-inner { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 12px; gap: 12px 16px; }
  html .site-nav { display: none; }
  html .nav-menu { display: block; order: 2; }
  html .site-search { order: 3; flex: 1 0 100%; max-width: none; }

  html .hero, html .data-gets-here, html .about-layout, html .contact-layout, html .toc-layout, html .search-layout, html .rc-result-grid, html .error-layout, html .two-col, html .source-grid { grid-template-columns: minmax(0, 1fr); }
  html .hero { padding: 56px 0 48px; }
  html .grid-3, html .grid-4, html .cols-3, html .cols-4, html .highlights, html .idle-grid, html .year-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html .cols-3 .col, html .cols-4 .col { padding: 22px 18px; border-right: 1px solid var(--color-divider); border-bottom: 1px solid var(--color-divider); }
  html .cols-3 .col:nth-child(2n), html .cols-4 .col:nth-child(2n) { border-right: 0; padding-right: 0; }
  html .cols-3 .col:nth-child(2n + 1), html .cols-4 .col:nth-child(2n + 1) { padding-left: 0; }
  html .toc, html .sticky-aside, html .rc-aside { position: static; }
  html .search-aside { position: relative; top: auto; }
  html .source-meta { border-left: 0; padding-left: 0; border-top: 1px solid var(--color-divider); padding-top: 18px; }
  html .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html .footer-brand { grid-column: 1 / -1; }
  html .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html .stat-strip .stat { padding: 18px 16px; }
  html .stat-strip .stat:nth-child(2n + 1) { padding-left: 0; border-left: 0; }
  html .stat-strip .stat:nth-child(n + 3) { border-top: 1px solid var(--color-divider); }
  html .toolrow { grid-template-columns: 64px minmax(0, 1fr); gap: 20px; }
  html .toolrow-cta { grid-column: 2; text-align: left; }
  html .ymm-form { grid-template-columns: 1fr 1fr; }
  html .ymm-form .btn-tool { grid-column: 1 / -1; }
}

@media (max-width: 719px) {
  html .container, html .container-1200, html .container-1280 { padding: 0 16px; }
  html .hero-title, html .error-code { font-size: 40px; }
  html .page-head h1, html .page-head-trust h1, html .tool-head h1 { font-size: 36px; }
  html .search-head h1, html .error-layout h1 { font-size: 36px; }
  html .h2-38, html .h2-34, html .section-h2, html .section-title-24, html .cta-band h2, html .best-card h2 { font-size: 28px; }
  html .page-head, html .page-head-legal { padding: 40px 0 28px; }
  html .section, html .section-56, html .section-72, html .section-80, html .section-88 { padding-top: 48px; }
  html .grid-2, html .grid-3, html .grid-4, html .cols-3, html .cols-4, html .idle-grid, html .year-grid, html .footer-grid { grid-template-columns: minmax(0, 1fr); }
  html .cols-3 .col, html .cols-4 .col { padding: 20px 0; border-right: 0; }
  html .highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html .result-groups { grid-template-columns: minmax(0, 1fr); }
  html .vin-positions { min-width: 640px; grid-template-columns: repeat(6, minmax(0, 1fr)); }
  html .vin-pos { padding: 16px 10px; border-top: 0 !important; border-right: 1px solid var(--color-divider) !important; }
  html .vin-pos:first-child { padding-left: 0; }
  html .vin-pos:last-child { border-right: 0 !important; }
  html .vin-form, html .ymm-form { grid-template-columns: minmax(0, 1fr); }
  html .vin-form .btn, html .ymm-form .btn, html .error-box .btn, html .pick-form .btn { width: 100%; }
  html .hero-form, html .search-big { flex-wrap: wrap; }
  html .hero-form .input, html .search-big .input { flex: 1 0 100%; }
  html .hero-form .btn, html .search-big .btn { flex: 1 0 100%; margin-left: 0; min-height: 48px; }
  html .hero-buttons { grid-template-columns: minmax(0, 1fr); }
  html .hero-search, html .sources-panel, html .email-box, html .error-box, html .source-card, html .tool-panel { padding: 20px; }
  html .email-big { font-size: 26px; }
  html .cta-band { padding: 32px 20px; }
  html .toolrow { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 28px 0; }
  html .toolrow-num { font-size: 32px; }
  html .toolrow-cta { grid-column: 1; }
  html .toolrow-title { font-size: 28px; }
  html .vin-input { font-size: 18px; letter-spacing: 0.08em; }
  html .rc-result-grid { gap: 32px; }
  html .seg { display: flex; }
  html .seg-opt { flex: 1; justify-content: center; }
  html .source-title { flex-wrap: wrap; }
  html .kv-row { flex-wrap: wrap; }
  html .footer-bottom { flex-direction: column; }
  html .site-footer-inner { padding-top: 48px; }
}

@media (max-width: 359px) {
  html .brand-word { font-size: 18px; }
  html .hero-title { font-size: 34px; }
  html .page-head h1, html .page-head-trust h1, html .tool-head h1, html .search-head h1, html .error-layout h1 { font-size: 30px; }
  html .highlights, html .stat-strip { grid-template-columns: minmax(0, 1fr); }
  html .stat-strip .stat { padding-left: 0; border-left: 0; border-top: 1px solid var(--color-divider); }
  html .stat-strip .stat:first-child { border-top: 0; }
}

/* Page-level rules moved from the per-page <style> blocks and inline styles of the export. */

/* ── breadcrumbs (eyebrow style) ──────────────────────────────────── */
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 8px; }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: var(--text-muted); }
.breadcrumbs a { color: var(--color-accent-700); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--color-accent-700); }

/* ── trust / legal: prose + toc ───────────────────────────────────── */
.page-head-legal { padding: 64px 0 40px; }
.page-head-legal h1 { max-width: 20ch; }
.byline-row { display: flex; flex-wrap: wrap; gap: 6px 28px; font-size: 13.5px; color: var(--text-muted); }
.page-head .byline { margin-top: 0; font-size: 13.5px; }
.legal-intro { padding: 44px 0 0; }
.intro-box { padding: 28px 30px; max-width: 88ch; }
.intro-box p { margin: 0; font-size: 17px; line-height: 1.65; }
.intro-box strong { font-weight: 700; }
.intro-box.callout p { color: var(--color-accent-900); }
.intro-box .callout-title { margin-bottom: 8px; }
.intro-box.callout .callout-title + p { font-size: 16.5px; color: var(--color-accent-800); }
.toc-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 72px; padding: 48px 0 0; align-items: start; }
.toc { position: sticky; top: 96px; }
.toc .label { margin-bottom: 8px; }
.toc a {
  display: block; font-size: 14px; padding: 7px 0; text-decoration: none;
  color: color-mix(in srgb, var(--color-text) 72%, transparent); border-top: 1px solid var(--color-divider);
}
.toc a:hover { color: var(--color-accent-700); }
.prose { max-width: 72ch; overflow-wrap: break-word; }
.prose a { overflow-wrap: anywhere; }
.prose h2 { font-size: 28px; margin: 48px 0 10px; scroll-margin-top: 96px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 20px; margin: 24px 0 8px; }
.prose p { font-size: 16.5px; line-height: 1.7; color: var(--text-strong); margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 20px; }
.prose li { font-size: 16.5px; line-height: 1.7; color: var(--text-strong); margin-bottom: 7px; }
.prose strong { font-weight: 700; color: var(--color-text); }

/* ── About ─────────────────────────────────────────────────────────── */
.page-head-trust h1 { font-size: 60px; line-height: 1.02; max-width: 22ch; }
.page-head-trust .lead { max-width: 66ch; }
.about-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 72px; padding: 56px 0 0; align-items: start; }
.about-body { max-width: 68ch; }
.about-body h2 { font-size: 32px; margin: 44px 0 12px; }
.about-body h2:first-child { margin-top: 0; }
.about-body p { font-size: 16.5px; line-height: 1.7; margin-bottom: 16px; color: var(--text-strong); }
.about-body p:last-child { margin-bottom: 0; }
.sticky-aside { display: flex; flex-direction: column; gap: 22px; position: sticky; top: 90px; }
.aside-box { padding: 24px; }
.aside-box .label { margin-bottom: 14px; }
.kv-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--color-divider); font-size: 14px; }
.kv-row .k { color: var(--text-muted); }
.kv-row .v { font-weight: 500; text-align: right; }
.kv-row a.v { font-weight: 400; font-size: 13.5px; }
.read-next { display: flex; flex-direction: column; gap: 9px; font-size: 15px; }
.read-next a { text-decoration: none; }
.aside-box .label + .read-next { margin-top: -2px; }

/* ── Contact ───────────────────────────────────────────────────────── */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 64px; padding: 56px 0 0; align-items: start; }
.email-box { padding: 36px; }
.email-box .label { margin-bottom: 14px; }
.email-big {
  display: block; font-family: var(--font-heading); font-weight: 600; font-size: 34px; line-height: 1.15;
  text-decoration: none; color: var(--color-accent-700); overflow-wrap: anywhere; margin-bottom: 18px;
}
.email-box p { font-size: 14.5px; line-height: 1.6; color: var(--text-muted); margin: 0 0 20px; }
.section-h2 { font-size: 32px; margin-bottom: 12px; }
.body-p { font-size: 16.5px; line-height: 1.7; color: color-mix(in srgb, var(--color-text) 82%, transparent); margin-bottom: 20px; }
.steps { border-top: 1px solid var(--color-text); list-style: none; margin: 0; padding: 0; }
.step { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--color-divider); }
.step .num { font-family: var(--font-heading); font-size: 18px; color: var(--color-accent-700); }
.step strong { font-weight: 700; }
.step .step-note { display: block; font-size: 14.5px; color: var(--text-muted); margin-top: 3px; }
.after-steps { font-size: 15px; line-height: 1.7; color: color-mix(in srgb, var(--color-text) 72%, transparent); margin-top: 20px; }
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--color-text); }
.cols-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--color-text); }
.col { padding: 26px 22px; border-right: 1px solid var(--color-divider); }
.col:first-child { padding-left: 0; }
.col:last-child { padding-right: 0; border-right: 0; }
.col h3 { font-size: 19px; margin-bottom: 8px; }
.col p { font-size: 14.5px; line-height: 1.6; color: var(--text-muted); margin: 0; }
.section { padding: 64px 0 0; }
.section-56 { padding: 56px 0 0; }
.section-title-24 { font-size: 32px; margin-bottom: 24px; }
.callout-narrow { max-width: 74ch; padding: 26px; }
.callout-narrow .callout-title { font-size: 19px; }
.callout-narrow p { font-size: 14.5px; }

/* ── Data Sources ──────────────────────────────────────────────────── */
.source-list { padding: 52px 0 0; display: flex; flex-direction: column; gap: 22px; }
.source-card { padding: 34px; }
.source-card.planned { opacity: 0.62; }
.source-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 44px; align-items: start; }
.source-title { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.source-title h2 { font-size: 30px; margin: 0; }
.source-desc { font-size: 16px; line-height: 1.65; color: color-mix(in srgb, var(--color-text) 80%, transparent); margin-bottom: 12px; }
.source-desc:last-child { margin-bottom: 0; }
.source-limit { font-size: 15px; line-height: 1.6; color: var(--text-muted); margin: 0; }
.source-limit strong { font-weight: 700; color: var(--color-text); }
.source-meta { border-left: 1px solid var(--color-divider); padding-left: 28px; display: flex; flex-direction: column; gap: 14px; }
.source-meta .stat-label { margin-bottom: 3px; }
.source-meta .v { font-size: 14.5px; }
.source-meta a { font-size: 14.5px; text-decoration: none; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
.two-col h2 { font-size: 30px; margin-bottom: 12px; }
.two-col p { font-size: 16px; line-height: 1.65; color: color-mix(in srgb, var(--color-text) 80%, transparent); margin-bottom: 14px; }
.two-col p:last-child { margin-bottom: 0; }

/* -- Tools index -- */
.h1-20ch, .page-head .h1-20ch { max-width: 20ch; }
.page-head .lead-64 { max-width: 64ch; }
.page-head .h1-22ch { max-width: 22ch; }
.page-head-trust .lead-gap { margin-bottom: 20px; }
.toolrow {
  display: grid; grid-template-columns: 90px minmax(0, 1fr) 220px; gap: 32px; align-items: center;
  padding: 40px 24px 40px 0; border-bottom: 1px solid var(--color-divider);
  text-decoration: none; color: var(--color-text); transition: background .18s ease;
}
a.toolrow:hover { background: color-mix(in srgb, var(--color-accent) 5%, transparent); color: var(--color-text); }
a.toolrow:hover .arrow { transform: translateX(5px); }
.toolrow-num { font-family: var(--font-heading); font-size: 48px; line-height: 1; color: var(--color-accent-400); }
.toolrow.in-development .toolrow-num { color: var(--color-neutral-400); }
.toolrow-title { display: block; font-family: var(--font-heading); font-weight: 600; font-size: 34px; line-height: 1.1; margin-bottom: 8px; }
.toolrow-text { display: block; font-size: 16px; line-height: 1.6; max-width: 58ch; color: color-mix(in srgb, var(--color-text) 72%, transparent); margin-bottom: 14px; }
.toolrow.in-development .toolrow-text { margin-bottom: 0; }
.toolrow-cta { display: block; text-align: right; font-family: var(--font-heading); font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-accent-700); }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.section-72 { padding: 72px 0 0; }
.two-col .p-gap { margin-bottom: 18px; }

.section-72.two-col h2 { font-size: 32px; }
.section-72.two-col p { color: color-mix(in srgb, var(--color-text) 75%, transparent); }

/* -- shared section/heading sizes (from inline styles) -- */
.section-80 { padding: 80px 0 0; }
.section-88 { padding: 88px 0 0; }
.h2-24 { font-size: 24px; margin-bottom: 16px; }
.h2-26 { font-size: 26px; margin-bottom: 6px; }
.h2-34 { font-size: 34px; margin-bottom: 8px; }
.h2-38 { font-size: 38px; margin-bottom: 8px; }
.h3-22 { font-size: 22px; margin: 0 0 6px; }
.mb-14 { margin-bottom: 14px; }
.section-intro { font-size: 16px; color: var(--text-muted); max-width: 64ch; margin-bottom: 34px; }
.body-16 { font-size: 16px; line-height: 1.65; color: color-mix(in srgb, var(--color-text) 75%, transparent); margin-bottom: 24px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* -- Home -- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 64px; align-items: center; padding: 80px 0 72px; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-heading); font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-accent-700);
  border: 1px solid var(--color-divider); padding: 5px 10px; margin-bottom: 24px;
}
.hero-title { font-size: 64px; line-height: 1.02; letter-spacing: -0.02em; margin: 0 0 20px; max-width: 15ch; }
/* launch copy is longer than the design copy (PAGE-CONTENT); widen so it keeps the design's 2-line h1 / 3-line lead */
.hero-title.launch-copy { max-width: 22ch; }
.hero-lead.launch-copy { max-width: 66ch; }
.hero-lead { font-size: 18px; line-height: 1.6; max-width: 50ch; color: var(--text-body); margin-bottom: 26px; }
.hero-search { padding: 34px; }
.hero-search-text { font-size: 14.5px; color: color-mix(in srgb, var(--color-text) 65%, transparent); margin-bottom: 18px; }
.hero-form { margin-bottom: 14px; }
.hero-form .input { min-height: 56px; font-size: 17px; }
.hero-form .btn { min-height: 56px; padding: 0 24px; }
.quick-links { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 22px; }
.hero-buttons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding-top: 18px; border-top: 1px solid var(--color-divider); }
.stat-strip { border-top: 1px solid var(--color-divider); border-bottom: 1px solid var(--color-divider); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-strip .stat { padding: 22px 24px; border-left: 1px solid var(--color-divider); }
.stat-strip .stat:first-child { padding-left: 0; border-left: 0; }
.stat-strip .stat:last-child { padding-right: 0; }
.field-cols .col h3 { font-size: 19px; margin-bottom: 12px; }
.field-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; font-size: 14px; color: color-mix(in srgb, var(--color-text) 72%, transparent); }
.data-gets-here { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
.sources-panel { padding: 30px; }
.source-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.source-rows li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--color-divider); }
.source-rows li:last-child { border-bottom: 0; }
.source-name { font-family: var(--font-heading); font-size: 18px; }
.source-rows .planned .source-name { color: color-mix(in srgb, var(--color-text) 45%, transparent); }
.source-what { font-size: 13px; color: var(--text-muted); text-align: right; }
.cta-band {
  background: var(--color-accent-900); color: var(--footer-text); padding: 56px 48px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px;
}
.cta-band h2 { font-size: 36px; margin-bottom: 8px; color: #fff; }
.cta-band p { font-size: 16px; color: var(--footer-muted); margin: 0; max-width: 52ch; }
.cta-band :focus-visible { outline-color: var(--color-accent-300); }
.grid-4 > .tile, .grid-3 > .tile { min-width: 0; }

/* -- Tool pages -- */
.tool-head { padding: 56px 0 0; }
.tool-head h1 { font-size: 58px; line-height: 1.03; letter-spacing: -0.02em; margin: 0 0 16px; max-width: 18ch; }
.tool-head .h1-20ch, .page-head .h1-20ch { max-width: 20ch; }
.page-head .lead-64 { max-width: 64ch; }
.page-head .h1-22ch { max-width: 22ch; }
.tool-head .lead { max-width: 64ch; margin-bottom: 32px; }
.tool-panel { padding: 26px; }
.vin-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.ymm-form { display: grid; grid-template-columns: 150px minmax(0, 1fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.ymm-form[hidden], .vin-form[hidden] { display: none; }
.vin-input {
  min-height: 56px; font-size: 22px; letter-spacing: 0.16em; text-transform: uppercase;
  font-family: var(--font-mono); background: var(--color-bg);
}
.rc-vin-input { min-height: 52px; font-size: 20px; letter-spacing: 0.15em; }
.ymm-form .input { min-height: 52px; font-size: 16px; }
.ymm-form input.input { background: var(--color-bg); }
.btn-tool { min-height: 56px; padding: 0 30px; font-size: 15px; }
.rc-form .btn-tool { min-height: 52px; padding: 0 28px; }
fieldset.seg.rc-seg { margin-bottom: 18px; }
.recent-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
/* the design always renders the (empty) recent row: keep its 16px when hidden */
.recent-row[hidden] { display: block; height: 0; overflow: hidden; }
.recent-row .label, .pill-label { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin: 0 4px 0 0; }
.recent-row .btn { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; padding: 4px 9px; text-transform: none; }
.tool-status:empty { display: none; }
.tool-status { margin: 16px 0 0; font-size: 14px; color: var(--text-muted); }
.tool-error { margin-top: 32px; padding: 24px 26px; }
.tool-error[hidden], .tool-result[hidden] { display: none; }
.tool-result { padding: 48px 0 0; }
.result-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 22px; border-bottom: 1px solid var(--color-text); }
.result-head .kicker { margin-bottom: 8px; }
.result-title { font-size: 38px; line-height: 1.08; margin: 0; max-width: 22ch; }
.result-vin { font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.14em; margin-top: 10px; color: var(--text-muted); }
.highlights { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--color-divider); }
.highlights .stat { padding: 20px 20px 20px 0; }
.highlights .stat-value { font-size: 24px; line-height: 1.15; }
.result-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; margin-top: 8px; }
.result-group { padding: 34px 0 10px; min-width: 0; }
.result-group h3 { font-size: 22px; margin-bottom: 12px; }
.result-group .table th[scope="row"], .result-group .table td:first-child { width: 46%; color: var(--text-muted); padding-left: 0; font-size: 14px; font-weight: 400; letter-spacing: 0; text-transform: none; border-bottom: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent); }
.result-group .table td { font-weight: 500; }
.footnote { font-size: 13px; color: var(--text-muted); margin-top: 28px; max-width: 80ch; }
.rc-result-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 56px; padding-top: 40px; align-items: start; }
.rc-count { text-align: right; }
.rc-count .stat-value { font-size: 40px; line-height: 1; }
.rc-aside { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 24px; }
.ratings-box { padding: 24px; }
.ratings-overall { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.ratings-overall .num { font-family: var(--font-heading); font-size: 52px; line-height: 1; }
.ratings-overall .of { font-size: 14px; color: var(--text-muted); }
.ratings-trim { font-size: 12.5px; color: var(--text-muted); margin-bottom: 16px; }
.confirm-box { padding: 24px; }
.confirm-box .btn-secondary { border-color: var(--color-accent-700); color: var(--color-accent-900); }
.vin-positions { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--color-text); }
.vin-pos { padding: 22px 18px; border-right: 1px solid var(--color-divider); }
.vin-pos:first-child { padding-left: 0; }
.vin-pos:last-child { padding-right: 0; border-right: 0; }
.vin-pos-num { font-family: var(--font-mono); font-size: 13px; color: var(--color-accent-700); margin-bottom: 8px; }
.vin-pos h3 { font-size: 17px; margin-bottom: 6px; }
.vin-pos p { font-size: 13px; line-height: 1.55; color: var(--text-muted); margin: 0; }
.info-cards { gap: 28px; margin-top: 64px; }
.info-card { padding: 26px; }
.info-card h3 { font-size: 19px; margin-bottom: 8px; }
.info-card p { font-size: 14px; line-height: 1.6; color: color-mix(in srgb, var(--color-text) 72%, transparent); margin: 0; }
.numbered-cols .col-num { font-family: var(--font-heading); font-size: 34px; color: var(--color-accent-700); line-height: 1; margin-bottom: 12px; }
.numbered-cols .col p { font-size: 14px; }
.sources-section { padding: 56px 0 0; }

/* -- Search -- */
.search-head { padding: 44px 0 0; }
.search-head h1 { font-size: 44px; line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 6px; }
.search-lead { font-size: 16px; color: var(--text-muted); margin-bottom: 22px; max-width: 70ch; min-height: calc(2 * 1.55em); /* design lead is 2 lines; keep the rhythm */ }
.search-big { display: flex; align-items: stretch; }
.search-big .input, .search-row .input { min-width: 0; }
.search-big .input { min-height: 62px; font-size: 20px; border: none; background: transparent; padding-left: 20px; }
.search-big .btn { min-height: 62px; padding: 0 30px; font-size: 15px; flex: none; border: none; }
.pill-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.pill-row .pill { padding: 4px 11px; }
.search-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; padding: 44px 0 0; align-items: start; }
.search-aside { padding: 22px; position: sticky; top: 96px; }
.search-aside .label { margin-bottom: 14px; }
.pick-form { display: flex; flex-direction: column; gap: 12px; }
.pick-form .btn-block { min-height: 40px; }
.search-main { min-width: 0; }
.idle-grid { padding-top: 26px; }
.idle-tile { display: block; padding: 24px; text-decoration: none; color: var(--color-text); }
.idle-tile:hover { color: var(--color-text); }
.idle-tile h3 { font-size: 20px; margin-bottom: 6px; }
.idle-tile p { font-size: 14px; line-height: 1.55; color: var(--text-muted); margin: 0; }
.best-card { padding: 30px; margin-bottom: 34px; border-color: var(--color-accent-700); }
.best-card h2 { font-size: 40px; line-height: 1.05; margin: 0 0 8px; }
.best-card p { font-size: 15.5px; line-height: 1.6; color: color-mix(in srgb, var(--color-text) 72%, transparent); margin-bottom: 20px; max-width: 60ch; }
.result-section { margin-bottom: 38px; }
.result-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--color-text); padding-bottom: 10px; margin-bottom: 6px; }
.result-section-head h3 { font-size: 22px; margin: 0; }
.year-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.year-grid a, .hit-row { display: block; padding: 13px 14px; border-bottom: 1px solid var(--color-divider); text-decoration: none; color: var(--color-text); font-size: 15px; }
.nothing-card { padding: 30px; margin-bottom: 34px; }
.nothing-card h3 { font-size: 24px; margin-bottom: 8px; }
.nothing-card p { font-size: 15.5px; line-height: 1.6; color: color-mix(in srgb, var(--color-text) 72%, transparent); margin: 0 0 6px; max-width: 64ch; }

/* -- 404 / 410 -- */
.error-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; padding: 96px 0 80px; }
.error-code { font-family: var(--font-heading); font-size: 96px; line-height: 1; color: var(--color-accent-400); margin-bottom: 12px; }
.error-layout h1 { font-size: 48px; line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 16px; max-width: 18ch; }
.error-p { font-size: 17px; line-height: 1.65; max-width: 54ch; color: color-mix(in srgb, var(--color-text) 75%, transparent); margin-bottom: 14px; }
.error-p:last-of-type { margin-bottom: 26px; }
.error-box { padding: 30px; }
.error-box .field { margin-bottom: 12px; }
.error-box .input { min-height: 50px; font-size: 16px; background: var(--color-bg); }
.error-box .btn-block { min-height: 46px; }
/* reserve the design's three-link footprint; Parts/Guides links return from nav_items when they launch */
.error-links { min-height: calc(3 * 15px * 1.55 + 16px + 19px); }
.error-box .label { margin-bottom: 14px; }
.error-links { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--color-divider); display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.error-links a { text-decoration: none; }
.still-link { display: block; padding: 14px 0; border-top: 1px solid var(--color-divider); text-decoration: none; color: var(--color-text); }
.still-link:hover { color: var(--color-text); }
.still-title { display: block; font-family: var(--font-heading); font-weight: 600; font-size: 20px; }
.still-text { display: block; font-size: 13.5px; color: var(--text-muted); }

/* launch lead is longer than the design lead (PAGE-CONTENT): widen so it keeps the design's 3 lines */
.tool-head .lead.launch-copy { max-width: 80ch; }

/* Recent-VIN row helpers (vin-decoder.js) */
.recent-row .recent-note { font-size: 12px; color: var(--text-muted); }
.recent-row .recent-clear { background: none; border: 0; padding: 0; font: inherit; font-size: 12px; color: var(--color-accent-700); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.recent-row .recent-clear:hover { color: var(--color-accent-800); }
