/* ===========================================================================
   TOSPEC — shared.css
   Design system: "calibration certificate / torque card".
   Light = calibration-cert paper. Dark = tool steel.
   Display Archivo 800 · body Public Sans · values IBM Plex Mono.
   Accents: torque orange (--accent) + verify green (--verify).
   Signature: the provenance spec-chip + the diagonal witness mark.

   Contrast floor 4.5:1 in BOTH themes (hexes verified arithmetically; worst
   text pair light 4.69, dark 5.28). Radius <= 4px. No pill buttons, no glow
   shadows, no pure #000. prefers-reduced-motion / forced-colors / prefers-
   contrast all honored below.

   Tokens are defined THREE times: :root (light), the media-dark block, and the
   explicit [data-theme=dark] override — the suite dual-theme contract.
   ========================================================================= */

:root {
  color-scheme: light;

  --paper:        #E4E6E1;  /* page — cert-stock desk */
  --card:         #F6F7F3;  /* raised plate / certificate */
  --card-2:       #EDEFE9;  /* recessed inner surface, table stripes */
  --ink:          #1B1E1C;  /* primary text (never pure #000) */
  --ink-2:        #565B57;  /* secondary text, labels, captions */
  --line:         #C9CCC5;  /* hairlines, dot leaders */
  --line-strong:  #B4B8B0;  /* emphasized borders */
  --accent:       #AD4212;  /* torque orange */
  --accent-fg:    #FFFFFF;  /* text on a filled accent */
  --verify:       #2E6A3C;  /* verify green */
  --amber:        #8A5A0F;  /* community ochre */
  --verify-tint:  #E4EEE6;  /* oem chip fill */
  --amber-tint:   #F1E9D8;  /* community chip fill */
  --orange-tint:  #F5E4DA;  /* alert/pro chip fill */
  --neutral-tint: #EAEBE7;  /* cross-referenced chip fill */

  --font-display: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:    "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --radius:    4px;
  --radius-sm: 3px;
  --maxw:      72rem;
  --prose:     42rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper:        #191C1E;  /* tool steel */
    --card:         #24282B;  /* raised steel plate */
    --card-2:       #1F2325;
    --ink:          #E7E9E5;
    --ink-2:        #9AA09B;
    --line:         #383D40;
    --line-strong:  #474D50;
    --accent:       #EE8A3E;
    --accent-fg:    #17130E;
    --verify:       #5CB570;
    --amber:        #D89A34;
    --verify-tint:  #21332A;
    --amber-tint:   #332E20;
    --orange-tint:  #35281E;
    --neutral-tint: #2B2F32;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper:        #191C1E;
  --card:         #24282B;
  --card-2:       #1F2325;
  --ink:          #E7E9E5;
  --ink-2:        #9AA09B;
  --line:         #383D40;
  --line-strong:  #474D50;
  --accent:       #EE8A3E;
  --accent-fg:    #17130E;
  --verify:       #5CB570;
  --amber:        #D89A34;
  --verify-tint:  #21332A;
  --amber-tint:   #332E20;
  --orange-tint:  #35281E;
  --neutral-tint: #2B2F32;
}

/* ---------- reset + base ---------- */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  /* Flat token background by design — the tiled grain read as banding at
     page scale (2026-07-20 review); textures stay available in /img for
     bounded surfaces only. */
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  color: var(--ink);
}
h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem); }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
h4 { font-size: 1rem; font-weight: 700; letter-spacing: 0; }

p { margin: 0 0 1rem; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }

strong { font-weight: 600; }

.mono { font-family: var(--font-mono); font-variant-ligatures: none; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1rem, 0.5rem + 2vw, 2rem); }

.section { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 0 0.75rem;
}
.eyebrow.accent { color: var(--accent); }

.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;
}

/* ---------- witness mark (signature motif) ---------- */
/* A technician's diagonal paint stroke across a torqued fastener: the brand's
   memory device. Used as a standalone element and stamped onto spec plates. */
.witness-mark {
  display: block;
  width: 22px; height: 3px;
  background: var(--accent);
  border-radius: 2px;
  transform: rotate(-42deg);
}

/* ---------- skip link + focus ---------- */

.skip-link {
  position: absolute;
  left: 0.75rem; top: -3rem;
  z-index: 100;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 0.5rem 0.9rem;
  transition: top 120ms ease;
}
.skip-link:focus { top: 0.75rem; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
main:focus { outline: none; }

/* ===========================================================================
   Masthead
   ========================================================================= */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.site-header .row {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 60px;
  padding-block: 0.6rem;
}
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  text-decoration: none;
}
.brand-lockup:hover { text-decoration: none; }
.brand-mark { width: 27px; height: 27px; flex: none; color: var(--ink); }

.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}
.wm-slash { color: var(--accent); }

.site-header nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
}
.site-header nav::-webkit-scrollbar { display: none; }
.site-header nav a {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}
.site-header nav a:hover { color: var(--ink); text-decoration: none; }
.site-header nav a[aria-current] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.theme-switch {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0.45rem 0.7rem;
  min-height: 32px;
  cursor: pointer;
}
.theme-switch:hover { color: var(--ink); border-color: var(--accent); }
.theme-switch[aria-checked="true"] {
  color: var(--accent);
  border-color: var(--accent);
}

.nav-cta {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-fg);
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 0.5rem 0.95rem;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.nav-cta:hover { text-decoration: none; filter: brightness(1.06); }

/* ===========================================================================
   Buttons (shared — never pill-shaped)
   ========================================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  padding: 0.7rem 1.2rem;
  min-height: 44px;
  cursor: pointer;
  border: 1px solid var(--accent);
}
.btn-primary { background: var(--accent); color: var(--accent-fg); }
.btn-primary:hover { text-decoration: none; filter: brightness(1.06); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { text-decoration: none; border-color: var(--accent); color: var(--accent); }

/* ===========================================================================
   Provenance chip — the signature element
   ========================================================================= */

.fact-chip {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem 0.6rem;
  font-size: 0.8rem;
}
.fact-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.fact-dot { width: 7px; height: 7px; flex: none; background: currentColor; }

.fact-oem       .fact-badge { color: var(--verify); background: var(--verify-tint);  border-color: var(--verify); }
.fact-cross     .fact-badge { color: var(--ink);    background: var(--neutral-tint); border-color: var(--line-strong); }
.fact-cross     .fact-dot   { background: var(--ink-2); }
.fact-community .fact-badge { color: var(--amber);  background: var(--amber-tint);   border-color: var(--amber); }
.fact-unverified .fact-badge { color: var(--accent); background: transparent;        border-color: var(--accent); }

.fact-cites { color: var(--ink-2); }
.fact-cites .cite { color: var(--accent); text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 2px; }
.fact-cites .cite:hover { text-decoration-style: solid; }
.fact-cites .cite + .cite { margin-left: 0.3rem; }
.cite-ref { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-2); }

.fact-checked {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-2);
  letter-spacing: 0.02em;
}

/* the full-citation fold: closed it is one quiet summary word on the chip
   line; open it takes its own full-width row below */
.prov-more { font-size: 0.78rem; min-width: 0; }
.prov-more summary {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-2);
  cursor: pointer;
  letter-spacing: 0.02em;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 2px;
}
.prov-more summary:hover { color: var(--accent); }
.prov-more[open] { flex-basis: 100%; }
.prov-list { margin: 0.35rem 0 0; padding-left: 1.1rem; }
.prov-list li { margin: 0.4rem 0; color: var(--ink-2); }
.prov-quote { font-style: italic; font-size: 0.78rem; color: var(--ink-2); margin: 0.15rem 0 0; max-width: 44rem; }

/* ---------- DIY gate chips ---------- */

.tier-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  min-height: 26px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
}
.tier-dot { width: 7px; height: 7px; flex: none; background: currentColor; }
.tier-beginner   { color: var(--verify); background: var(--verify-tint); border-color: var(--verify); }
.tier-experience { color: var(--amber);  background: var(--amber-tint);  border-color: var(--amber); }
.tier-pro        { color: var(--accent); background: var(--orange-tint); border-color: var(--accent); }

/* ===========================================================================
   Spec plate — the torque card, with dot leaders + mono values
   ========================================================================= */

.spec-plate {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem 1.4rem;
}
.spec-plate::after {
  content: "";
  position: absolute; top: 12px; right: 16px;
  width: 3px; height: 30px;
  background: var(--accent);
  border-radius: 2px;
  transform: rotate(38deg);
  transform-origin: top center;
  opacity: 0.85;
  pointer-events: none;
}
.spec-plate .plate-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
  padding-right: 2rem; /* clear the witness mark */
}
.spec-plate .plate-title { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; }
.spec-plate .plate-serial { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-2); letter-spacing: 0.04em; }

.spec-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.4rem 0;
}
.spec-row + .spec-row { border-top: 1px solid var(--line); }
.spec-row .k { color: var(--ink-2); font-weight: 500; white-space: nowrap; }
.spec-row .leader {
  flex: 1;
  align-self: center;
  border-bottom: 1px dotted var(--line-strong);
  min-width: 1.5rem;
}
.spec-row .v {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--ink);
  text-align: right;
  white-space: nowrap;
}
.spec-row .v .unit { color: var(--ink-2); font-weight: 400; }
.spec-note { font-size: 0.82rem; color: var(--ink-2); margin-top: 0.5rem; }

/* generic surface card */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
}

/* ===========================================================================
   Job cards
   ========================================================================= */

.job-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
}
.job-card + .job-card { margin-top: 1rem; }
.job-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.job-head h3 { margin: 0; }
.job-tools { font-size: 0.88rem; color: var(--ink-2); margin: 0.5rem 0; }
.job-tools .mono { color: var(--ink); }

.cost-math {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 0.75rem 0;
}
.cost-item { display: flex; flex-direction: column; gap: 0.1rem; }
.cost-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-2); font-family: var(--font-mono); }
.cost-figure { font-family: var(--font-mono); font-weight: 600; font-size: 1.05rem; }
.cost-dealer .cost-figure { color: var(--ink-2); }
.cost-diy .cost-figure { color: var(--verify); }

/* ===========================================================================
   Buy rows
   ========================================================================= */

.buy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0 0.4rem;
}
.buy-link {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--card-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0.45rem 0.85rem;
  min-height: 34px;
}
.buy-link:hover { text-decoration: none; color: var(--accent); border-color: var(--accent); }
.affiliate-note {
  font-size: 0.76rem;
  color: var(--ink-2);
  margin: 0.3rem 0 0;
  max-width: var(--prose);
}

/* ===========================================================================
   Intervals + generic data tables (guides use .data-table)
   ========================================================================= */

.data-table, .intervals {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.data-table th, .data-table td,
.intervals th, .intervals td {
  text-align: left;
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.data-table thead th, .intervals thead th {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  background: var(--card-2);
  font-weight: 600;
}
.data-table tbody tr:last-child td,
.intervals tbody tr:last-child td { border-bottom: 0; }
.data-table td.num, .intervals td.num,
.data-table .mono, .intervals .v { font-family: var(--font-mono); font-weight: 600; }

.table-wrap { overflow-x: auto; }

/* ===========================================================================
   Notes & corrections panel (the honest feature) — kind-grouped, calm.
   Only a true source conflict carries the warning tint; a correction is the
   verify-green brand moment; gaps and notes stay neutral.
   ========================================================================= */

.notes-panel { display: grid; gap: 1rem; }
.notes-group {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  scroll-margin-top: 5rem; /* row markers anchor here under the sticky header */
}
.ng-conflict { border-left-color: var(--accent); border-color: var(--accent); background: var(--orange-tint); }
.ng-correction { border-left-color: var(--verify); }
.ng-head {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-2);
  margin: 0 0 0.2rem;
}
.ng-conflict .ng-head { color: var(--accent); }
.ng-correction .ng-head { color: var(--verify); }
.ng-dek { font-size: 0.85rem; color: var(--ink-2); margin: 0 0 0.4rem; }
.note-item { padding: 0.5rem 0; }
.note-item + .note-item { border-top: 1px solid var(--line); }
.note-item .claim { font-weight: 600; margin: 0; }
.note-item .who { font-family: var(--font-mono); font-size: 0.76rem; color: var(--ink-2); margin: 0; }
.note-item .note { font-size: 0.9rem; color: var(--ink); margin: 0.2rem 0 0; }

/* callout (guides) */
.callout {
  border: 1px solid var(--line);
  border-left: 3px solid var(--verify);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  background: var(--card);
}
.callout.accent { border-left-color: var(--accent); }
.callout.gold { border-left-color: var(--amber); }

/* ===========================================================================
   Verdict table (The Oil Check): ok / conditional / no
   ========================================================================= */

.verdict-group { margin-bottom: 1.5rem; }
.verdict-group > h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.verdict-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
}
.v-ok          .verdict-badge { color: var(--verify); background: var(--verify-tint); border-color: var(--verify); }
.v-conditional .verdict-badge { color: var(--amber);  background: var(--amber-tint);  border-color: var(--amber); }
.v-no          .verdict-badge { color: var(--accent-fg); background: var(--accent);    border-color: var(--accent); }

.oil-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem 1rem;
  padding: 0.85rem 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-left-width: 3px;
  border-radius: var(--radius);
}
.oil-row + .oil-row { margin-top: 0.5rem; }
.v-ok          .oil-row { border-left-color: var(--verify); }
.v-conditional .oil-row { border-left-color: var(--amber); }
.v-no          .oil-row { border-left-color: var(--accent); }
.oil-name { font-weight: 600; }
.oil-meta { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-2); }
.oil-reason { grid-column: 1 / -1; font-size: 0.88rem; color: var(--ink); }

/* ===========================================================================
   Hero + landing
   ========================================================================= */

.hero { padding-block: clamp(3rem, 2rem + 5vw, 6rem); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.5rem, 1rem + 3vw, 3.5rem);
  align-items: center;
}
.hero h1 { margin-bottom: 0.75rem; }
.hero-lede { font-size: 1.15rem; color: var(--ink-2); max-width: 34rem; margin-bottom: 1.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.stat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.stat { display: flex; flex-direction: column; gap: 0.15rem; }
.stat-num { font-family: var(--font-mono); font-weight: 600; font-size: 1.6rem; color: var(--ink); }
.stat-label { font-size: 0.78rem; color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.06em; }

.bike-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}
.bike-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  color: var(--ink);
}
.bike-card:hover { text-decoration: none; border-color: var(--accent); }
.bike-card .bc-name { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
.bike-card .bc-meta { display: block; font-family: var(--font-mono); font-size: 0.74rem; color: var(--ink-2); margin-top: 0.2rem; }

/* ===========================================================================
   Footer
   ========================================================================= */

.footer {
  background: var(--card);
  border-top: 1px solid var(--line);
  margin-top: clamp(3rem, 2rem + 4vw, 5rem);
  padding-block: clamp(2.5rem, 1.5rem + 3vw, 3.5rem);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 1.5rem 2rem;
}
.footer-brand p { font-size: 0.9rem; color: var(--ink-2); max-width: 24rem; margin-top: 0.75rem; }
.footer-h {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-2);
  margin: 0 0 0.6rem;
}
.footer-links { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-links a { color: var(--ink); font-size: 0.9rem; }
.footer-links a:hover { color: var(--accent); }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--ink-2);
}
.footer-legal .mono { letter-spacing: 0.1em; color: var(--ink); }

/* ===========================================================================
   Responsive
   ========================================================================= */

@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .site-header .row { flex-wrap: wrap; }
  .nav-cta { display: none; } /* the Oil Check lives in the nav on small screens */
}
@media (max-width: 460px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ===========================================================================
   Accessibility floors
   ========================================================================= */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

@media (prefers-contrast: more) {
  :root {
    --ink-2: #3C403C;
    --line: var(--line-strong);
  }
  :root[data-theme="dark"], :root:not([data-theme="light"]) {
    --ink-2: #C2C7C1;
  }
  a { text-decoration: underline; }
  .site-header nav a { color: var(--ink); }
}

@media (forced-colors: active) {
  .fact-badge, .tier-chip, .verdict-badge, .buy-link, .nav-cta, .btn,
  .spec-plate, .job-card, .card, .callout, .notes-group, .oil-row, .fact-mark {
    border: 1px solid CanvasText;
  }
  .fact-dot, .tier-dot { background: CanvasText; }
  .spec-plate::after, .witness-mark { background: Highlight; }
  .site-header nav a[aria-current] { border-bottom-color: Highlight; }
  :focus-visible { outline: 2px solid Highlight; }
}
