/* ============================================================
   SPECSHEET — design system, one file, no framework.
   RE-SKIN = edit the :root tokens below + the Google-Fonts pair
   in <head>. Everything else derives from these tokens.
   ============================================================ */

:root {
  /* ---- brand ------------------------------------------------ */
  --brand:        #14324f;   /* header, footer, primary surfaces */
  --brand-deep:   #0d2338;   /* darker step for gradients/hover  */
  --brand-ink:    #dce8f4;   /* text on brand surfaces           */
  --accent:       #b45309;   /* text-safe amber — highlights     */
  --accent-soft:  #fdf1e2;   /* amber wash for sample tags       */
  --data:         #2b6cb8;   /* chart marks — CVD-validated      */

  /* ---- ink ramp --------------------------------------------- */
  --ink:          #1a222c;
  --ink-2:        #46525f;
  --ink-3:        #7a8694;

  /* ---- surfaces --------------------------------------------- */
  --paper:        #f4f6f8;
  --surface:      #ffffff;
  --surface-2:    #eef1f5;
  --line:         #e2e7ed;
  --line-strong:  #c9d2db;

  /* ---- status (reserved — never for data series) ------------ */
  --serious:      #b3261e;   /* recalls  */
  --serious-soft: #fbeae9;
  --warn:         #8a5a00;   /* TSBs     */
  --warn-soft:    #fdf4e0;
  --good:         #1e6f42;   /* verified */
  --good-soft:    #e7f4ec;

  /* ---- type ------------------------------------------------- */
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body:    'Inter', -apple-system, 'Segoe UI', sans-serif;
  /* one consolidated scale (was ~8 ad-hoc sizes) — used across components */
  --fs-eyebrow:   12px;    /* tiny caps / tags            */
  --fs-cap:       13px;    /* captions, meta, crumbs      */
  --fs-sm:        14px;    /* dense UI, table cells        */
  --fs-base:      16px;    /* body                         */
  --fs-lead:      18px;    /* lead / at-a-glance values    */
  --measure:      68ch;    /* reading width for prose      */

  /* ---- geometry --------------------------------------------- */
  --radius:       10px;
  --radius-sm:    6px;
  --shadow:       0 1px 2px rgba(16,24,32,.05), 0 4px 14px rgba(16,24,32,.06);
  --maxw:         1200px;
}

/* ---- reset / base ------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.62;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--data); text-decoration: none; }
a:hover { text-decoration: underline; }
/* headings: tighter line-height + slight negative tracking on large display type
   (the refinement that separates editorial from generic-template typography) */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(32px, 4.2vw, 42px); font-weight: 700; letter-spacing: -.022em; }
h2 { font-size: clamp(23px, 2.6vw, 29px); font-weight: 700; letter-spacing: -.015em; }
h3 { font-size: 18px; font-weight: 600; letter-spacing: -.005em; }
/* readable prose: generous leading + a real measure so lines don't run edge-to-edge */
.prose, .band-summary, .section-summary { line-height: 1.7; }
.prose p, .band-summary, .section-summary { max-width: var(--measure); }

/* fluid container: scales with the viewport, capped for readability, with
   side padding that grows on desktop and tightens on phones. */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(16px, 3vw, 40px); }

/* ---- topbar -------------------------------------------------- */
.topbar { background: var(--brand); color: var(--brand-ink); }
.topbar .wrap { display: flex; align-items: center; gap: 22px; height: 62px; }
.logo {
  font-family: var(--font-display); font-size: 26px; font-weight: 700;
  color: #fff; letter-spacing: .5px; text-transform: uppercase;
}
a.logo, a.logo:hover { text-decoration: none; }
.logo em { font-style: normal; color: #f0a84b; }
.searchbox { flex: 1; max-width: 460px; position: relative; margin: 0; }
.searchbox input {
  width: 100%; height: 38px; border-radius: 19px; border: 0;
  padding: 0 18px; font: 14px var(--font-body);
  background: rgba(255,255,255,.14); color: #fff;
}
.searchbox input::placeholder { color: rgba(255,255,255,.65); }
.searchbox input:focus { outline: 2px solid rgba(255,255,255,.4); background: rgba(255,255,255,.2); }
/* live search dropdown */
.search-results {
  position: absolute; top: 46px; left: 0; right: 0; z-index: 200;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(16,24,32,.16); overflow: hidden; max-height: 60vh; overflow-y: auto;
}
.sr-item { display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 10px 16px; border-top: 1px solid var(--line); color: var(--ink); }
.sr-item:first-child { border-top: 0; }
.sr-item:hover { background: var(--surface-2); text-decoration: none; }
.sr-t { font-weight: 500; font-size: 14px; }
.sr-k { font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .5px; white-space: nowrap; }
.sr-empty { padding: 14px 16px; color: var(--ink-3); font-size: 14px; }

.topnav { display: flex; gap: 18px; margin-left: auto; align-items: center; }
.topnav a { color: var(--brand-ink); font-size: 14px; font-weight: 500; }
.topnav a:hover { color: #fff; text-decoration: none; }

/* CSS-only mobile menu */
.navtoggle, .navburger { display: none; }
.navburger { margin-left: auto; width: 30px; height: 24px; flex-direction: column; justify-content: space-between; cursor: pointer; }
.navburger span { display: block; height: 3px; background: #fff; border-radius: 2px; transition: .2s; }

/* ---- mock notice --------------------------------------------- */
.mocknote {
  background: var(--accent-soft); border-bottom: 1px solid #f0ddc0;
  color: var(--warn); font-size: 13px; padding: 8px 0; text-align: center;
}
.mocknote strong { color: var(--accent); }

/* ---- breadcrumb + anchor nav ---------------------------------- */
.crumbs { padding: 16px 0 0; font-size: 13px; color: var(--ink-3); }
.crumbs a { color: var(--ink-3); }
.crumbs .sep { margin: 0 6px; color: var(--line-strong); }
.crumbs .url { float: right; font-family: ui-monospace, Consolas, monospace; font-size: 12px; color: var(--ink-3); background: var(--surface-2); padding: 2px 8px; border-radius: 4px; }

.anchor-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line); margin-top: 18px;
}
.anchor-nav .wrap {
  display: flex; gap: 2px; overflow-x: auto;
  scrollbar-width: none; -ms-overflow-style: none;   /* hide the scrollbar track */
}
.anchor-nav .wrap::-webkit-scrollbar { display: none; }
.anchor-nav a {
  padding: 13px 11px; font-size: 13.5px; font-weight: 500; color: var(--ink-2);
  border-bottom: 2px solid transparent; white-space: nowrap;
}
.anchor-nav a:hover { color: var(--ink); text-decoration: none; border-color: var(--line-strong); }

/* ---- hero ----------------------------------------------------- */
.hero { padding: 26px 0 6px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.hero-main { min-width: 0; }
.hero .kicker {
  font-size: 13px; font-weight: 600; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--accent); margin-bottom: 6px;
}
.hero p.sub { color: var(--ink-2); max-width: 720px; margin: 12px 0 0; }
.hero .overview { padding: 0; margin-top: 18px; }
.hero .overview p { max-width: 760px; }

/* at-a-glance spec panel (hero top-right) */
.glance { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 0 20px 6px; }
.gl-h { font-family: var(--font-display); font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .6px; color: var(--ink-3); padding: 14px 0 4px; }
.gl-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0;
  border-top: 1px solid var(--line); font-size: 14px; }
.gl-k { color: var(--ink-2); white-space: nowrap; }
.gl-v { font-weight: 600; color: var(--ink); text-align: right; }
.gl-foot { display: block; margin-top: 2px; padding: 12px 0 8px; border-top: 1px solid var(--line);
  font-size: 13px; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip {
  font-size: 12.5px; font-weight: 500; color: var(--ink-2);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 12px;
}
.chip b { color: var(--ink); font-weight: 600; }

/* ---- source tags ---------------------------------------------- */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .6px;
  text-transform: uppercase; border-radius: 4px; padding: 2px 7px;
}
.tag-gov    { color: var(--good);   background: var(--good-soft); }
.tag-oem    { color: var(--brand);  background: var(--surface-2); }
.tag-sample { color: var(--warn);   background: var(--warn-soft); border: 1px dashed #e5c98a; }
.tag-tool   { color: var(--warn);   background: var(--warn-soft); }

/* OE part number chip */
.pn {
  font-family: ui-monospace, Consolas, monospace; font-size: 13px; font-weight: 700;
  color: var(--brand); background: var(--surface-2); padding: 2px 8px;
  border-radius: 4px; white-space: nowrap;
}

/* ---- quick answers -------------------------------------------- */
.section { padding: 34px 0 8px; }
.section-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; }
.section-head h2, .section-head h3 { flex-shrink: 0; text-wrap: balance; }
.section-head p { margin: 0; color: var(--ink-3); font-size: 14px; flex: 1 1 auto; min-width: 0; }

.qa-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(212px, 1fr));
}
.qa-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 15px 18px 14px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 3px; min-width: 0;
}
.qa-card .q {
  font-size: 12px; font-weight: 600; letter-spacing: .3px; text-transform: uppercase;
  color: var(--ink-3); display: flex; align-items: center; gap: 7px;
}
.qa-card .qa-ico { color: var(--brand); display: inline-flex; }
.qa-card .qa-ico .ic { width: 16px; height: 16px; }

/* year-selector strip (KBB / Car and Driver pattern) */
.year-strip { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 18px 0 4px; }
.year-strip .ys-lbl { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--ink-3); margin-right: 4px; }
.yr-box {
  min-width: 56px; text-align: center; padding: 8px 12px; font-weight: 600; font-size: 14px;
  color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-variant-numeric: tabular-nums;
}
a.yr-box:hover { border-color: var(--data); color: var(--data); text-decoration: none; }
.yr-box.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.qa-card .a {
  font-family: var(--font-display); font-size: clamp(21px, 2.1vw, 28px); font-weight: 700;
  line-height: 1.05; color: var(--ink); font-variant-numeric: tabular-nums;
  margin: 3px 0 2px; overflow-wrap: anywhere;
}
.qa-card .a small { font-size: .58em; font-weight: 600; color: var(--ink-2); }
.qa-card .a a { font-family: var(--font-body); font-size: 14px; }
.qa-card .src { margin-top: auto; padding-top: 10px; }

/* ---- spec tables ----------------------------------------------- */
.spec-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.spec-cols.three { grid-template-columns: repeat(3, 1fr); }
.spec-cols.three .spec-block > table td { padding: 8px 14px; font-size: 13.5px; }
.spec-cols.three .spec-block h3 { padding: 11px 14px; font-size: 15px; }
@media (max-width: 980px) { .spec-cols.three { grid-template-columns: 1fr 1fr; } }
.spec-block {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.spec-block h3 {
  padding: 13px 18px; border-bottom: 1px solid var(--line);
  background: var(--surface-2); font-size: 16px; letter-spacing: .3px;
  display: flex; align-items: center; justify-content: space-between;
}
.spec-block > table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.spec-block > table td { padding: 9px 18px; border-top: 1px solid var(--line); vertical-align: top; }
.spec-block > table tr:first-child td { border-top: 0; }
.spec-block > table td:first-child { color: var(--ink-2); width: 46%; }
.spec-block > table td:last-child { font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---- maintenance schedule ----------------------------------------- */
.spec-block > table.maint-table td:first-child {
  width: 190px; color: var(--brand); font-family: var(--font-display);
  font-weight: 700; font-size: 16.5px; white-space: nowrap;
}
.spec-block > table.maint-table td:last-child { font-weight: 400; color: var(--ink-2); font-size: 14px; }
.spec-block > table.maint-table td:last-child b { color: var(--ink); font-weight: 600; }

/* ---- procedure expanders (multi-step OEM fields) ----------------- */
.proc-block { margin-top: 18px; }
.proc-block details { border-top: 1px solid var(--line); }
.proc-block details:first-of-type { border-top: 0; }
.proc-block summary {
  cursor: pointer; list-style: none; padding: 12px 18px;
  font-size: 14.5px; font-weight: 600; display: flex; align-items: center; gap: 10px;
}
.proc-block summary::-webkit-details-marker { display: none; }
.proc-block summary::after { content: "+"; margin-left: auto; color: var(--ink-3); font-size: 17px; }
.proc-block details[open] summary::after { content: "–"; }
.proc-block summary .hint { font-weight: 400; font-size: 12.5px; color: var(--ink-3); }
.proc-block .prep-line {
  margin: 0 18px 10px; padding: 8px 12px; font-size: 13px; color: var(--warn);
  background: var(--warn-soft); border-radius: var(--radius-sm);
}
.proc-block .prep-line b { text-transform: uppercase; font-size: 11px; letter-spacing: .6px; margin-right: 6px; }
.step-table { width: calc(100% - 36px); margin: 0 18px 16px; border-collapse: collapse; font-size: 14px; table-layout: fixed; }
.step-table td { padding: 8px 10px; border-top: 1px solid var(--line); vertical-align: top; }
.step-table tr:first-child td { border-top: 0; }
.step-table .stepn {
  width: 44px; font-family: var(--font-display); font-weight: 700; font-size: 16px;
  color: var(--data); text-align: center; white-space: nowrap;
}
.step-table .target { color: var(--ink-2); }
.step-table .spec { width: 130px; padding-right: 16px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.step-table .spec small { font-weight: 500; color: var(--ink-3); }
.step-table .instr { color: var(--ink-2); }
.proc-block .proc-note {
  margin: 0; padding: 0 18px 14px; font-size: 12.5px; color: var(--ink-3); font-style: italic;
}

/* fact rows for gated / facts-only how-to entries */
.fact-table { width: calc(100% - 36px); margin: 4px 18px 16px; border-collapse: collapse; font-size: 14px; }
.fact-table td { padding: 8px 10px; border-top: 1px solid var(--line); vertical-align: top; }
.fact-table tr:first-child td { border-top: 0; }
.fact-table td:first-child { width: 190px; color: var(--ink-2); }
.fact-table td:last-child { font-weight: 600; }

/* ---- safety band ------------------------------------------------ */
.band {
  background: var(--brand); color: var(--brand-ink);
  margin-top: 40px; padding: 38px 0 42px;
}
.band h2 { color: #fff; }
.band .section-head p { color: rgba(220,232,244,.75); }
/* analyst read (left) + stat tiles 2x2 (right) so the band fills the width */
.band-top { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: start; margin: 4px 0 26px; }
.band-top .band-summary { max-width: none; margin: 0; }
.band-top .band-stats { grid-template-columns: 1fr 1fr; margin: 0; }
.stat-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px; margin: 22px 0 6px;
}
.stat {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 16px 18px;
}
.stat .n {
  font-family: var(--font-display); font-size: 40px; font-weight: 700;
  color: #fff; line-height: 1; font-variant-numeric: tabular-nums;
}
.stat .l { font-size: 13px; font-weight: 600; margin-top: 6px; }
.stat .c { font-size: 12px; color: rgba(220,232,244,.68); margin-top: 2px; }

/* NHTSA NCAP crash-star ratings (in the navy band) */
.ncap-card { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 16px 20px; margin: 0 0 26px; }
.ncap-h { font-size: 13px; font-weight: 700; color: #fff; }
.ncap-h span { font-weight: 400; color: rgba(220,232,244,.5); margin-left: 8px; }
.ncap-grid { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 12px; }
.ncap { display: flex; flex-direction: column; gap: 3px; }
.ncap-l { font-size: 12px; color: rgba(220,232,244,.72); }
.ncap-stars { font-size: 18px; color: #f0a84b; letter-spacing: 2px; line-height: 1; }
.ncap-empty { color: rgba(255,255,255,.18); }

/* ---- chart: complaint bar list ---------------------------------- */
.chart-card {
  background: var(--surface); color: var(--ink);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px 22px 16px; margin-top: 20px;
}
.chart-card h3 { font-size: 17px; }
.chart-card .chart-sub { font-size: 13px; color: var(--ink-3); margin: 2px 0 16px; }
.barlist { display: grid; gap: 7px; }
.bar-row {
  display: grid; grid-template-columns: 190px 1fr 52px;
  align-items: center; gap: 12px; border-radius: 4px; padding: 2px 4px;
}
.bar-row:hover { background: var(--surface-2); }
.bar-row .bl { font-size: 13px; color: var(--ink-2); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-row .bt { display: block; height: 14px; background: var(--surface-2); border-radius: 0 4px 4px 0; overflow: hidden; }
.bar-row .bf { display: block; height: 100%; background: var(--data); border-radius: 0 4px 4px 0; min-width: 3px; }
.bar-row .bv { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.chart-note { font-size: 12px; color: var(--ink-3); margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }

/* ---- recall / tsb lists ------------------------------------------ */
.issue-card {
  background: var(--surface); border: 1px solid var(--line);
  border-left: 4px solid var(--serious); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); padding: 16px 18px; margin-top: 14px;
}
.issue-card.tsb { border-left-color: #d9a53f; }
.issue-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 6px; }
.issue-id {
  font-family: ui-monospace, Consolas, monospace; font-size: 13px; font-weight: 700;
  color: var(--brand); background: var(--surface-2); padding: 2px 8px; border-radius: 4px;
}
.issue-comp { font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--serious); }
.issue-card.tsb .issue-comp { color: var(--warn); }
.issue-date { font-size: 12.5px; color: var(--ink-3); margin-left: auto; }
.issue-card p { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); }
.issue-card p b { color: var(--ink); }
.more-link { display: inline-block; margin-top: 16px; font-size: 14px; font-weight: 600; }

.tsb-table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-top: 14px; }
.tsb-table th {
  text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .6px;
  text-transform: uppercase; color: var(--ink-3);
  background: var(--surface-2); padding: 10px 16px;
}
.tsb-table td { padding: 11px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.tsb-table td:first-child { font-family: ui-monospace, Consolas, monospace; font-size: 13px; font-weight: 600; color: var(--brand); white-space: nowrap; }
.tsb-table .d { color: var(--ink-3); font-size: 13px; white-space: nowrap; }
.tsb-table tr:hover td { background: #fafbfc; }
/* wide tables scroll inside their own box rather than widening the page */
.table-scroll { overflow-x: auto; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.table-scroll .tsb-table { min-width: 440px; margin-top: 0; }
.table-scroll .pf-table { min-width: 520px; margin-top: 0; }

/* ---- performance & power (0-60specs) ------------------------------- */
.pf-tiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin: 4px 0 22px; }
.pf-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px 18px; display: flex; flex-direction: column; gap: 3px; }
.pf-tile .pf-n { font-family: var(--font-display); font-size: 27px; font-weight: 700; color: var(--brand); line-height: 1.1; }
.pf-tile .pf-l { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.pf-tile .pf-c { font-size: 11.5px; color: var(--ink-3, var(--ink-2)); opacity: .82; }
.pf-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.pf-table th { text-align: left; font-weight: 600; color: var(--ink-2); border-bottom: 1px solid var(--line);
  padding: 8px 12px; white-space: nowrap; }
.pf-table td { padding: 8px 12px; border-bottom: 1px solid var(--line); }
.pf-table tr.pf-exact td { background: rgba(255,214,10,.06); }
.pf-table tr.pf-exact td:first-child { box-shadow: inset 3px 0 0 var(--brand); font-weight: 600; }
.pf-table .pf-eng { color: var(--ink-2); opacity: .8; font-size: 12.5px; }

/* ---- static / legal content pages --------------------------------- */
.legal { max-width: 760px; }
.legal h1 { margin-bottom: 6px; }
.legal h2 { font-size: 19px; margin: 28px 0 8px; }
.legal p { color: var(--ink-2); margin: 0 0 12px; line-height: 1.65; }
.legal a { color: var(--brand); text-decoration: none; border-bottom: 1px solid rgba(255,214,10,.4); }
.legal a:hover { border-bottom-color: var(--brand); }
.legal strong { color: var(--ink); }

/* ---- contextual in-prose internal links --------------------------- */
.prose a.ilink, .band-summary a.ilink, .section-summary a.ilink,
.prose a, .band-summary a, .section-summary a {
  color: inherit; text-decoration: none;
  border-bottom: 1px solid rgba(255,214,10,.45); transition: border-color .15s, color .15s;
}
.prose a.ilink:hover, .band-summary a.ilink:hover, .section-summary a.ilink:hover,
.prose a:hover, .band-summary a:hover, .section-summary a:hover {
  color: var(--brand); border-bottom-color: var(--brand);
}

/* ---- dtc cards ----------------------------------------------------- */
.dtc-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.dtc-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px;
}
.dtc-card .code {
  font-family: var(--font-display); font-size: 27px; font-weight: 700; color: var(--brand);
}
.dtc-card .def { font-size: 13.5px; color: var(--ink-2); margin-top: 2px; min-height: 40px; }
.dtc-card a { font-size: 13px; font-weight: 600; }

/* ---- faq ------------------------------------------------------------ */
.faq details {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); margin-top: 10px; box-shadow: var(--shadow);
}
.faq summary {
  cursor: pointer; padding: 14px 18px; font-weight: 600; font-size: 15px;
  list-style: none; position: relative;
}
.faq summary::after { content: "+"; position: absolute; right: 18px; color: var(--ink-3); font-size: 18px; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 18px 16px; font-size: 14.5px; color: var(--ink-2); }

/* ---- related vehicles ------------------------------------------------- */
.rel-group { margin-bottom: 16px; }
.rel-group h3 { font-size: 14px; color: var(--ink-2); margin-bottom: 10px; }
.rel-links { display: flex; flex-wrap: wrap; gap: 8px; }
.rel-link {
  font-size: 14px; font-weight: 500; color: var(--data);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 14px;
}
.rel-link:hover { border-color: var(--data); text-decoration: none; }

/* ---- model hub: year grid (single spec per year — 94% of models) ------- */
.year-grid {
  display: grid; gap: 10px; margin: 24px 0 8px;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
}
.year-tile {
  display: flex; align-items: center; justify-content: center;
  padding: 18px 8px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  font-family: var(--font-display); font-weight: 600; font-size: 19px;
  letter-spacing: -.01em; color: var(--ink);
  transition: border-color .12s, color .12s, transform .12s, box-shadow .12s;
}
.year-tile:hover {
  border-color: var(--data); color: var(--data); text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(16,24,32,.06), 0 8px 20px rgba(16,24,32,.08);
}

/* ---- model hub: variant rows (years with more than one engine) --------- */
.var-list { margin: 24px 0 8px; border-top: 1px solid var(--line); }
.var-row {
  display: flex; gap: 20px; align-items: baseline;
  padding: 14px 2px; border-bottom: 1px solid var(--line);
}
.var-row .yr {
  font-family: var(--font-display); font-weight: 600; font-size: 19px;
  letter-spacing: -.01em; color: var(--ink); min-width: 58px; flex: none;
}
.var-row .engs { display: flex; flex-wrap: wrap; gap: 8px; }
.var-row a.yr-link { color: var(--ink); transition: color .12s; }
.var-row a.yr-link:hover { color: var(--data); text-decoration: none; }

/* ---- in-page filter bar (hubs, DTC index, browse) --------------------- */
.filterbar { display: flex; align-items: center; gap: 12px; margin: 20px 0 6px; }
.filterbar .filter-input {
  flex: 1 1 auto; max-width: 460px; font: inherit; font-size: 15px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 10px 14px;
}
.filterbar .filter-input:focus { outline: 2px solid var(--data); outline-offset: 1px; }
.filterbar .filter-count { font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.dtc-sys { margin: 18px 0 6px; }
.dtc-sys > h3 {
  font-family: var(--font-display); font-size: 15px; color: var(--ink-2);
  margin: 0 0 10px; font-weight: 600;
}
.dtc-sys .code-chips { margin: 0; }
.vh { display: none; }   /* in the DOM for text-filtering, hidden on screen */

/* ---- topic-hub glossary ("What the terms mean") ----------------------- */
.glossary { max-width: var(--measure); }
.glossary .gl { margin: 0 0 12px; font-size: 15px; line-height: 1.62; color: var(--ink-2); }
.glossary .gl strong { color: var(--ink); font-weight: 600; }

/* ---- trouble-codes hub: code reference table -------------------------- */
.code-table { margin: 22px 0 8px; border-top: 1px solid var(--line); }
.code-row {
  display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; align-items: baseline;
  padding: 12px 2px; border-bottom: 1px solid var(--line);
}
.code-row .cc {
  font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--data);
  letter-spacing: .01em;
}
.code-row .cd { color: var(--ink); font-size: 15px; }
.code-row .cg {
  font-size: 12px; font-weight: 600; color: var(--ink-3); text-transform: uppercase;
  letter-spacing: .04em; white-space: nowrap;
}
@media (max-width: 560px) {
  .code-row { grid-template-columns: 72px 1fr; }
  .code-row .cg { grid-column: 2; }
}

/* ---- index / directory pages ------------------------------------------ */
.idx-hero { padding: 40px 0 10px; }
.idx-hero h1 { font-size: clamp(30px, 5vw, 46px); }
.idx-hero p { color: var(--ink-2); max-width: 640px; margin: 12px 0 0; font-size: 16px; }
.idx-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin: 26px 0; }
.idx-card {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 18px; box-shadow: var(--shadow); font-weight: 600; color: var(--ink);
}
.idx-card:hover { border-color: var(--data); text-decoration: none; }
.idx-card .n { font-size: 12px; font-weight: 500; color: var(--ink-3); }
.idx-section-h { font-family: var(--font-display); font-size: 22px; font-weight: 600; margin: 30px 0 4px; }

/* make cards with brand logos (self-hosted in /assets/logos) */
.make-card { flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; padding: 20px 14px; }
.make-logo { height: 44px; width: auto; max-width: 88%; object-fit: contain; }
.make-card .mk-name { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--ink); }
.make-card .n { font-size: 12px; }
.idx-hero.with-logo { display: flex; flex-direction: column; align-items: flex-start; }
.make-logo-lg { height: 58px; width: auto; object-fit: contain; margin-bottom: 12px; }

/* ---- homepage hero (flat, selector-first) ----------------------------- */
.home-hero { background: var(--brand); color: #fff; padding: 54px 0 58px; text-align: center; }
.home-hero h1 { font-size: clamp(30px, 4.6vw, 46px); color: #fff; letter-spacing: .2px; }
.home-hero .hsub { color: rgba(220,232,244,.78); font-size: clamp(15px, 1.8vw, 18px); max-width: 600px; margin: 14px auto 0; }

/* Year/Make/Model selector card */
.ymm {
  max-width: 720px; margin: 26px auto 0; background: var(--surface);
  border-radius: var(--radius); box-shadow: 0 12px 34px rgba(0,0,0,.25);
  padding: 18px; display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 10px;
}
.ymm select {
  height: 46px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 0 12px; font: 15px var(--font-body); color: var(--ink); background: var(--surface);
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%237a8694' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.ymm select:disabled { color: var(--ink-3); background-color: var(--surface-2); }
.ymm select:focus { outline: none; border-color: var(--data); }
.ymm-go {
  height: 46px; padding: 0 22px; border: 0; border-radius: var(--radius-sm);
  background: var(--accent); color: #fff; font: 600 15px var(--font-body); cursor: pointer; white-space: nowrap;
}
.ymm-go:disabled { background: var(--line-strong); cursor: not-allowed; }
.ymm-go:not(:disabled):hover { background: #9a460a; }

.home-alt-search { margin-top: 16px; font-size: 14px; color: rgba(220,232,244,.7); }
.home-alt-search a { color: #fff; text-decoration: underline; }
.home-hero .trust-inline { margin-top: 20px; font-size: 13px; color: rgba(220,232,244,.65); letter-spacing: .3px; }
.home-hero .trust-inline b { color: #f0a84b; font-weight: 600; }

/* clean line icons */
.ic { width: 22px; height: 22px; }

/* ---- hero popular chips ----------------------------------------------- */
.hero-chips { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; }
.hero-chips .lbl { font-size: 13px; color: rgba(220,232,244,.6); }
.hero-chips a {
  font-size: 13px; color: #fff; background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.16); border-radius: 999px; padding: 5px 13px;
}
.hero-chips a:hover { background: rgba(255,255,255,.22); text-decoration: none; }

/* ---- index hero + prose ----------------------------------------------- */
.idx-hero { padding: 36px 0 8px; }
.idx-hero h1 { font-size: clamp(28px, 4vw, 40px); }
.idx-hero > p { color: var(--ink-2); font-size: 16px; margin: 10px 0 0; max-width: 720px; }
.idx-hero .ih-meta { margin-top: 12px; font-size: 13px; font-weight: 600; letter-spacing: .3px;
  text-transform: uppercase; color: var(--ink-3); }
.prose { padding: 6px 0 0; }
.prose p { max-width: 760px; color: var(--ink-2); font-size: 15px; line-height: 1.7; margin: 0; }

/* factual section summaries (lead prose above the data boxes) */
.section-summary { max-width: 820px; margin: 0 0 20px; color: var(--ink-2); font-size: 15px; line-height: 1.7; }
.section-summary a { font-weight: 600; }
.band-summary { max-width: 820px; margin: 0 0 22px; color: rgba(220,232,244,.86); font-size: 15px; line-height: 1.7; }

/* year-by-year complaint trend (in the reliability band) */
.ytrend { margin: 0 0 26px; }
.ytrend-h { font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 12px; }
.ytrend-h span { font-weight: 400; color: rgba(220,232,244,.5); text-transform: none; letter-spacing: 0; margin-left: 6px; }
.ytrend-bars { display: flex; align-items: flex-end; gap: 6px; height: 104px;
  overflow-x: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.3) transparent; padding-bottom: 2px; }
.ytc { flex: 1 0 16px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; }
.ytc-bar { width: 100%; max-width: 34px; background: rgba(255,255,255,.28); border-radius: 3px 3px 0 0; transition: .15s; }
.ytc:hover .ytc-bar { background: rgba(255,255,255,.5); }
.ytc.active .ytc-bar { background: var(--accent); }
.ytc-yr { font-size: 11px; color: rgba(220,232,244,.6); font-variant-numeric: tabular-nums; }
.ytc.active .ytc-yr { color: #f0a84b; font-weight: 700; }

/* ---- section heading (directory) -------------------------------------- */
.dir-section { padding: 40px 0 8px; }
.dir-section > h2 { margin-bottom: 4px; }
.dir-section > .lead { color: var(--ink-3); font-size: 15px; margin: 0 0 22px; }
.band-alt { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-cta { display: inline-block; margin-top: 18px; font-weight: 600; font-size: 14px; }

/* ---- value / how-it-works strip --------------------------------------- */
.feat-strip { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); margin: 22px 0; }
.feat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; box-shadow: var(--shadow); }
.feat-card .fi { width: 44px; height: 44px; border-radius: 10px; background: var(--surface-2); color: var(--brand); display: flex; align-items: center; justify-content: center; }
.feat-card .fi .ic { width: 24px; height: 24px; }
.feat-card h3 { margin: 14px 0 6px; font-size: 18px; }
.feat-card p { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.55; }

/* ---- DTC code chips --------------------------------------------------- */
.code-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.code-chip {
  font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--brand);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 10px 16px; box-shadow: var(--shadow);
}
.code-chip:hover { border-color: var(--serious); color: var(--serious); text-decoration: none; }
.code-chip small { display: block; font-family: var(--font-body); font-size: 11px; font-weight: 500; color: var(--ink-3); margin-top: 2px; }

/* ---- featured vehicle cards ------------------------------------------- */
.feat-vehicles { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.fv-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; color: var(--ink); }
.fv-card:hover { border-color: var(--data); text-decoration: none; transform: translateY(-2px); transition: .15s; }
.fv-head { padding: 16px 18px 12px; border-bottom: 1px solid var(--line); }
.fv-head .yr { font-size: 12px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--accent); }
.fv-head .nm { font-family: var(--font-display); font-size: 20px; font-weight: 700; margin-top: 2px; }
.fv-stats { display: flex; }
.fv-stats .fs { flex: 1; padding: 12px 14px; text-align: center; border-right: 1px solid var(--line); }
.fv-stats .fs:last-child { border-right: 0; }
.fv-stats .fs b { display: block; font-family: var(--font-display); font-size: 18px; color: var(--ink); font-variant-numeric: tabular-nums; }
.fv-stats .fs span { font-size: 11px; color: var(--ink-3); }

/* ---- category tiles --------------------------------------------------- */
.cat-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.cat-tile {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow); color: var(--ink);
}
.cat-tile:hover { border-color: var(--data); text-decoration: none; }
.cat-tile .ico {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 10px;
  background: var(--surface-2); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
}
.cat-tile .ico .ic { width: 22px; height: 22px; }
.cat-tile > span:last-child { display: block; }
.cat-tile .ct-t { display: block; font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.cat-tile .ct-d { display: block; font-size: 13px; color: var(--ink-3); margin-top: 3px; }

/* ---- trust strip ------------------------------------------------------ */
.trust { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 44px; padding: 26px 0; }
.trust .wrap { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: center; text-align: center; }
.trust .t-item { font-size: 14px; color: var(--ink-2); }
.trust .t-item b { display: block; font-family: var(--font-display); font-size: 20px; color: var(--brand); }

/* ---- footer ----------------------------------------------------------- */
footer.site { background: var(--brand-deep); color: rgba(220,232,244,.7); margin-top: 44px; padding: 40px 0 26px; font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.footer-grid .fcol .fcol-h { color: #fff; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; margin: 0 0 12px; }
.footer-grid .fcol a { display: block; color: rgba(220,232,244,.7); padding: 3px 0; }
.footer-grid .fcol a:hover { color: #fff; }
.footer-grid .fcol p { margin: 10px 0 0; line-height: 1.5; }
.footer-grid .fcol .logo { font-size: 22px; }
.fbottom { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); color: rgba(220,232,244,.5); }
footer.site a { color: var(--brand-ink); }

/* ---- responsive (ordered largest → smallest) -------------------------- */
/* Fixed-count grids (4 quick-spec cards, 4 stat tiles) collapse straight to
   two even columns before they can pass through a lonely 3+1 layout. */
@media (max-width: 980px) {
  .qa-grid  { grid-template-columns: 1fr 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .feat-strip { grid-template-columns: 1fr; }
  .band-top { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .spec-cols, .spec-cols.three { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 120px 1fr 46px; }
  .bar-row .bl { font-size: 11.5px; }
  .crumbs .url { display: none; }
  .spec-block > table.maint-table td:first-child { width: 120px; white-space: normal; }
  .fact-table td:first-child { width: 120px; }
  /* search shrinks but stays; mobile menu drawer appears */
  .topbar .wrap { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; gap: 12px; }
  .searchbox { order: 3; flex-basis: 100%; max-width: none; }
  .navburger { display: flex; }
  .topnav {
    order: 4; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0;
    max-height: 0; overflow: hidden; transition: max-height .25s ease; margin-left: 0;
  }
  .topnav a { padding: 12px 4px; border-top: 1px solid rgba(255,255,255,.1); }
  .navtoggle:checked ~ .topnav { max-height: 420px; }
  .navtoggle:checked ~ .navburger span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
  .navtoggle:checked ~ .navburger span:nth-child(2) { opacity: 0; }
  .navtoggle:checked ~ .navburger span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 4px; }
}
@media (max-width: 620px) {
  .ymm { grid-template-columns: 1fr 1fr; }
  .ymm .ymm-go { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  .qa-grid { grid-template-columns: 1fr; }
}
