/* ==========================================================================
   bikereliability.co.uk — "workshop-grade data instrument"
   Dark instrument-cluster panels, warm paper body, safety-orange accent,
   Martian Mono numerals over Archivo UI text.
   ========================================================================== */

:root {
  --ink:        #16150f;
  --ink-soft:   #4c4a40;
  --paper:      #f4f1ea;
  --paper-deep: #ebe7dc;
  --panel:      #191813;
  --panel-edge: #2c2a22;
  --panel-text: #e8e4d8;
  --panel-dim:  #8d8a7c;
  --accent:     #e8490f;
  --pass:       #2e7d4f;
  --prs:        #b07c1f;
  --fail:       #c43325;
  --hairline:   #d8d2c2;
  --mono: "Martian Mono", ui-monospace, monospace;
  --sans: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --display: "Saira Condensed", "Archivo", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; max-width: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "tnum" 1;
}
a { color: inherit; text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* --- masthead: black instrument band ------------------------------------ */
.masthead { background: var(--panel); color: var(--panel-text); }
.masthead-inner {
  display: flex; align-items: center; gap: 32px;
  padding-top: 18px; padding-bottom: 18px;
}
.wordmark { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.wordmark:hover { color: var(--panel-text); }
/* tachometer mark: tick ring, redline arc, needle buried in the red */
.wordmark-mark {
  position: relative;
  width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid var(--panel-dim);
  background:
    conic-gradient(from 150deg,
      transparent 0 200deg,
      var(--fail) 200deg 240deg,      /* redline zone */
      transparent 240deg),
    repeating-conic-gradient(from 150deg,
      var(--panel-dim) 0 4deg, transparent 4deg 33deg),
    var(--panel);
}
.wordmark-mark::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 10px; height: 2px; transform-origin: 0 50%;
  transform: rotate(65deg);           /* needle pinned in the redline */
  background: var(--accent);
}
.wordmark-mark::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%;
  background: var(--accent);
}
.wordmark-text {
  font-family: var(--display); font-weight: 800; font-size: 21px;
  letter-spacing: .035em; text-transform: uppercase; line-height: 1;
}
.wordmark-text em { font-style: normal; color: var(--accent); }
.mast-nav { display: flex; gap: 22px; font-size: 14px; font-weight: 500; }
.mast-nav a { text-decoration: none; color: var(--panel-dim); }
.mast-nav a:hover { color: var(--panel-text); }
.mast-tag {
  margin-left: auto; font-family: var(--mono); font-size: 10px;
  letter-spacing: .12em; color: var(--panel-dim);
}
/* tick ruler under the masthead — the instrument motif */
.ruler {
  height: 10px;
  background:
    repeating-linear-gradient(90deg,
      var(--panel-edge) 0 1px, transparent 1px 12px),
    repeating-linear-gradient(90deg,
      var(--accent) 0 2px, transparent 2px 96px),
    var(--panel);
  border-bottom: 1px solid var(--hairline);
}

/* --- instrument cluster (dark hero) ------------------------------------- */
.cluster {
  background:
    linear-gradient(180deg, transparent 0 96%, rgba(232, 73, 15, .06)),
    repeating-linear-gradient(0deg, transparent 0 23px, rgba(255,255,255,.025) 23px 24px),
    repeating-linear-gradient(90deg, transparent 0 23px, rgba(255,255,255,.025) 23px 24px),
    var(--panel);
  color: var(--panel-text);
  padding: 56px 0 48px;
}
.cluster h1 {
  margin: 0 0 6px; font-size: clamp(38px, 6vw, 64px); line-height: .98;
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  letter-spacing: .005em; max-width: 24ch;
}
.cluster .kicker {
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em;
  color: var(--accent); margin-bottom: 18px; text-transform: uppercase;
}
.cluster .sub { color: var(--panel-dim); max-width: 60ch; margin: 10px 0 0; }

/* --- big bike search -------------------------------------------------------- */
.bike-search { position: relative; display: flex; max-width: 640px; margin: 30px 0 6px; }
.bike-search input {
  flex: 1; font-family: var(--mono); font-size: 15px; padding: 15px 18px;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--ink); border-right: 0; border-radius: 0;
  outline-offset: -3px;
}
.bike-search input:focus { outline: 2px solid var(--accent); }
.bike-search input::placeholder { color: var(--ink-soft); opacity: .75; }
.bike-search button {
  font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .08em;
  background: var(--accent); color: #fff; border: 1px solid var(--ink);
  padding: 0 26px; cursor: pointer;
}
.bike-search button:hover { background: color-mix(in srgb, var(--accent) 86%, black); }
.suggest {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 20;
  background: var(--paper); border: 1px solid var(--ink); border-top: 0;
  box-shadow: 0 10px 24px rgba(22,21,15,.25);
}
.suggest a {
  display: flex; justify-content: space-between; gap: 16px; align-items: baseline;
  padding: 10px 18px; text-decoration: none; border-bottom: 1px solid var(--hairline);
  /* the dropdown sits inside the dark .cluster, so links would inherit --panel-text (pale)
     onto the paper background — pin to ink */
  color: var(--ink);
}
.suggest a:hover, .suggest a:focus { background: var(--paper-deep); outline: none; }
.suggest .s-label { font-weight: 600; font-size: 14.5px; }
.suggest .s-detail { font-family: var(--mono); font-size: 11px; color: var(--ink-soft); white-space: nowrap; }

.dials { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 28px; margin-top: 44px; }
.dial { border-left: 1px solid var(--panel-edge); padding-left: 18px; min-width: 0; }
.dial-value {
  font-family: var(--mono); font-weight: 800;
  font-size: clamp(28px, 4vw, 44px); line-height: 1; letter-spacing: -.02em;
  overflow-wrap: anywhere;
}

/* one-line conclusion shown ABOVE a chart */
.takeaway {
  margin: 0 0 14px; font-size: 15px; line-height: 1.5; max-width: 62ch;
  border-left: 3px solid var(--accent); padding-left: 14px;
}
.takeaway strong { font-weight: 700; }
.dial-value .unit { font-size: .45em; font-weight: 600; color: var(--panel-dim); margin-left: 2px; }
.dial-label { font-size: 13px; color: var(--panel-dim); margin-top: 8px; }
.dial--accent .dial-value { color: var(--accent); }
.dial--pass .dial-value { color: #5cb883; }
.dial--fail .dial-value { color: #e06a56; }

/* --- section scaffolding ------------------------------------------------- */
.section { padding: 44px 0; }
.section + .section { border-top: 1px solid var(--hairline); }
.section-head { margin-bottom: 18px; }
.section-head h2 {
  font-family: var(--display); font-size: 28px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .01em; margin: 0;
  display: flex; align-items: center; gap: 12px;
}
/* speed-stripe tick before section titles */
.section-head h2::before {
  content: ""; width: 22px; height: 16px; flex: none;
  background: linear-gradient(105deg,
    var(--accent) 0 30%, transparent 30% 45%,
    var(--accent) 45% 75%, transparent 75%);
}
h1 { font-family: var(--display); text-transform: uppercase; font-weight: 800; letter-spacing: .005em; }
.section-head .note { font-family: var(--mono); font-size: 11px; color: var(--ink-soft); margin-top: 4px; }

/* --- data tables ---------------------------------------------------------- */
/* wrapper so only the table scrolls on narrow screens, never the whole page.
   A right-edge fade hints there's more to swipe to. */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; position: relative;
  background:
    linear-gradient(to right, var(--paper) 30%, rgba(244,241,234,0)) left / 24px 100% no-repeat,
    linear-gradient(to left, var(--paper) 30%, rgba(244,241,234,0)) right / 24px 100% no-repeat,
    var(--paper);
  background-attachment: local, local, scroll;
}
.data-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.data-table th {
  text-align: left; font-family: var(--mono); font-size: 10px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft);
  padding: 8px 12px 8px 0; border-bottom: 2px solid var(--ink);
}
.data-table td { padding: 9px 12px 9px 0; border-bottom: 1px solid var(--hairline); vertical-align: middle; }
.data-table tr:hover td { background: var(--paper-deep); }
.data-table .num { text-align: right; font-family: var(--mono); font-size: 13px; font-weight: 500; }
.data-table th.num { text-align: right; }
/* race-plate position numbers */
.data-table .pos { width: 3em; padding-right: 6px; }
.data-table .pos span {
  display: inline-block; min-width: 26px; text-align: center;
  font-family: var(--display); font-weight: 800; font-size: 14px; line-height: 1;
  padding: 4px 4px 3px; background: var(--paper-deep);
  border: 1.5px solid var(--ink); border-radius: 3px;
}
.data-table tr:nth-child(-n+3) .pos span { background: var(--ink); color: var(--paper); }
.data-table .name a { text-decoration: none; font-weight: 600; }
.data-table .name a:hover { text-decoration: underline; text-decoration-color: var(--accent); }

/* make logos + typographic fallback */
.make-link { display: flex; align-items: center; gap: 10px; }
/* FAQ blocks + glossary */
.faq-list { max-width: 72ch; }
.faq-item { padding: 18px 0; border-bottom: 1px solid var(--hairline); }
.faq-item:last-child { border-bottom: 0; }
.faq-item h2, .faq-item h3 {
  margin: 0 0 8px; font-family: var(--display); font-weight: 800;
  font-size: 19px; text-transform: none; letter-spacing: 0;
}
.faq-item p { margin: 0; color: var(--ink-soft); }
.glossary { max-width: 72ch; margin: 0; }
.glossary-entry { padding: 14px 0; border-bottom: 1px solid var(--hairline); }
.glossary-entry:last-child { border-bottom: 0; }
.glossary dt { font-family: var(--display); font-weight: 800; font-size: 17px; }
.glossary dt a { text-decoration: none; }
.glossary dt a:hover { color: var(--accent); }
.glossary dd { margin: 6px 0 0; color: var(--ink-soft); }
.glossary-entry:target dt a { color: var(--accent); }

/* rank chips — race-plate position markers in the model hero */
.rank-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.rank-chip {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .02em;
  padding: 4px 10px; text-decoration: none;
  background: var(--paper); color: var(--ink); border: 1px solid var(--ink);
}
.rank-chip b { color: var(--accent); font-weight: 800; }
a.rank-chip:hover { outline: 2px solid var(--accent); outline-offset: -1px; }

/* plated like the make-page hero so dark marks (MZ, Triumph) survive dark table rows
   and pale marks survive paper — the race-plate treatment either way */
.make-logo {
  height: 22px; width: 44px; object-fit: contain; flex: none;
  background: var(--paper); padding: 2px 4px; box-sizing: content-box;
}
.make-roundel {
  flex: none; width: 24px; height: 24px; display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 14px;
  background: var(--ink); color: var(--paper); border-radius: 50%;
}
/* model spec badges */
.spec-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.spec-badges .badge {
  font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .04em;
  padding: 4px 10px; border: 1px solid var(--panel-edge); color: var(--panel-text);
  background: rgba(255,255,255,.03);
}
.spec-badges .badge--ev { color: #5cb883; border-color: #2e7d4f; }

.make-hero { display: flex; align-items: center; gap: 22px; }
.model-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.model-photo { margin: 0; flex: none; }
.model-photo img {
  display: block; width: 300px; height: 190px; object-fit: cover;
  border: 1px solid var(--panel-edge); filter: saturate(.92);
}
.model-photo figcaption {
  font-family: var(--mono); font-size: 9px; letter-spacing: .04em;
  color: var(--panel-dim); margin-top: 6px; text-align: right;
}
.model-photo figcaption a { color: var(--panel-dim); }
@media (max-width: 900px) { .model-photo img { width: 100%; height: auto; max-height: 220px; } }
.make-hero-logo {
  flex: none; display: grid; place-items: center;
  background: var(--paper); padding: 10px 14px; border: 1px solid var(--panel-edge);
}
.make-hero-logo img { height: 44px; max-width: 150px; object-fit: contain; display: block; }
.pct-pass { color: var(--pass); font-weight: 700; }
.pct-fail { color: var(--fail); }
.pct-prs  { color: var(--prs); }

/* in-cell gauge bar with tick texture */
.gauge { display: flex; align-items: center; gap: 10px; min-width: 180px; }
.gauge-track {
  flex: 1; height: 12px; position: relative;
  background:
    repeating-linear-gradient(90deg, var(--hairline) 0 1px, transparent 1px 10%),
    var(--paper-deep);
  border: 1px solid var(--hairline);
}
.gauge-fill {
  position: absolute; inset: 1px auto 1px 1px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--pass) 78%, var(--paper)), var(--pass));
}
.gauge--fail .gauge-fill { background: linear-gradient(90deg, color-mix(in srgb, var(--fail) 70%, var(--paper)), var(--fail)); }

/* --- verdict block (model page) ------------------------------------------ */
.verdict { display: grid; grid-template-columns: minmax(240px, 1fr) 2fr; gap: 40px; align-items: start; }
.verdict-dial { border: 1px solid var(--panel-edge); background: var(--panel); color: var(--panel-text); padding: 26px; }
.verdict-dial .dial-value { font-size: clamp(44px, 6vw, 64px); }
.breakdown { display: grid; gap: 10px; }
.breakdown-row { display: grid; grid-template-columns: 4.5em 1fr 5.5em; gap: 14px; align-items: center; font-size: 14px; }
.breakdown-row .lbl { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; color: var(--ink-soft); }
.breakdown-row .val { font-family: var(--mono); font-size: 13px; font-weight: 600; text-align: right; }

/* --- trend line chart (inline SVG) ----------------------------------------- */
.trend { margin: 0 0 8px; }
.trend-svg { width: 100%; height: auto; display: block; background: var(--paper-deep); border: 1px solid var(--hairline); }
.trend-grid { stroke: var(--hairline); stroke-width: 1; }
.trend-ylab, .trend-xlab { font-family: var(--mono); font-size: 11px; fill: var(--ink-soft); }
.trend-line { stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.trend-line--petrol { stroke: var(--ink-soft); stroke-dasharray: 5 4; }
.trend-dot { fill: var(--panel); stroke: var(--accent); stroke-width: 1.5; }
.trend-dot--petrol { stroke: var(--ink-soft); }
.chart-legend { display: flex; gap: 18px; margin-bottom: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; }
.chart-legend .lg { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-soft); }
.chart-legend .lg::before { content: ""; width: 16px; height: 3px; }
.chart-legend .lg--ev::before { background: var(--accent); }
.chart-legend .lg--petrol::before { background: var(--ink-soft); }

/* --- verdict panel (verdict-first summary, dark instrument slab) ------------ */
.verdict {
  background: var(--panel); color: var(--panel-text); border: 1px solid var(--panel-edge);
  border-left: 4px solid var(--accent); padding: 22px 24px; margin: 0 0 8px;
}
.verdict-headline { margin: 0 0 16px; font-size: clamp(16px, 2vw, 20px); line-height: 1.4; max-width: 68ch; }
.verdict-headline strong { color: #fff; }
.verdict-chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 18px 24px; }
.verdict-chip { display: flex; flex-direction: column; gap: 3px; border-left: 1px solid var(--panel-edge); padding-left: 14px; }
.chip-value { font-family: var(--mono); font-weight: 800; font-size: clamp(22px, 3vw, 30px); line-height: 1; letter-spacing: -.02em; }
.chip-label { font-size: 11px; color: var(--panel-dim); text-transform: uppercase; letter-spacing: .06em; }
.chip--pass .chip-value { color: #5cb883; }
.chip--fail .chip-value { color: #e06a56; }
.chip--accent .chip-value { color: var(--accent); }
.verdict-foot { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: baseline; margin-top: 16px;
  padding-top: 14px; border-top: 1px solid var(--panel-edge); }
.verdict-caveat { font-size: 13px; color: var(--panel-dim); flex: 1 1 320px; }
.verdict-link { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--accent); text-decoration: none; white-space: nowrap; }
.verdict-link:hover { text-decoration: underline; }

/* --- static/content pages -------------------------------------------------- */
.lead { font-size: 1.12rem; line-height: 1.6; color: var(--ink); border-left: 3px solid var(--accent);
  padding-left: 16px; margin: 8px 0 26px; }
.section h2 + p, .wrap > h2 { margin-top: 0; }

/* --- footnotes ------------------------------------------------------------ */
.fn { font-family: var(--mono); font-size: 11px; color: var(--ink-soft); margin-top: 10px; }
.fn::before { content: "† "; color: var(--accent); }

/* --- monetisation: affiliate CTA panels ----------------------------------- */
/* Styled as part of the instrument — bordered tool-panel, never banner-ish.  */
.cta-panel {
  border: 1px solid var(--ink);
  background: var(--paper-deep);
  padding: 20px 22px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px;
  margin: 28px 0;
}
.cta-panel .cta-copy { flex: 1 1 320px; }
.cta-panel .cta-title { font-weight: 700; font-size: 16px; margin: 0 0 2px; }
.cta-panel .cta-sub { font-size: 13.5px; color: var(--ink-soft); margin: 0; }
.cta-button {
  font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .06em;
  background: var(--accent); color: #fff; text-decoration: none;
  padding: 12px 20px; border: 1px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .08s ease, box-shadow .08s ease;
  white-space: nowrap;
}
.cta-button:hover { color: #fff; transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--ink); }
.cta-disclosure { flex-basis: 100%; font-family: var(--mono); font-size: 10px; color: var(--ink-soft); }

/* --- monetisation: display ad slots ---------------------------------------
   Fixed-height reservations so ads never shift layout (CLS = 0).
   Placeholder styling disappears once an ad network fills the slot.        */
.ad-slot {
  margin: 32px 0;
  display: grid; place-items: center;
  background:
    repeating-linear-gradient(45deg, transparent 0 10px, rgba(22,21,15,.03) 10px 20px),
    var(--paper-deep);
  border: 1px dashed var(--hairline);
}
.ad-slot::before {
  content: "advertisement";
  font-family: var(--mono); font-size: 9px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-soft); opacity: .6;
}
.ad-slot:not(:empty)::before { display: none; }
.ad-slot--leaderboard { min-height: 90px; }   /* 728x90 / responsive leaderboard */
.ad-slot--incontent   { min-height: 250px; }  /* 300x250 / responsive rectangle  */

/* --- homepage highlight cards ---------------------------------------------- */
.highlight-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.highlight {
  display: flex; flex-direction: column; gap: 4px; padding: 20px 22px;
  text-decoration: none; color: var(--ink); background: var(--paper-deep);
  border: 1px solid var(--hairline); border-top: 3px solid var(--ink);
  transition: transform .08s ease;
}
.highlight:hover { transform: translateY(-2px); color: var(--ink); }
.highlight--pass { border-top-color: var(--pass); }
.highlight--fail { border-top-color: var(--fail); }
.highlight--accent { border-top-color: var(--accent); }
.highlight-label { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.highlight-make { font-family: var(--display); font-weight: 800; font-size: clamp(20px, 2.4vw, 26px); text-transform: uppercase; line-height: 1.05; }
.highlight-val { font-family: var(--mono); font-size: 13px; font-weight: 600; }
.highlight--pass .highlight-val { color: var(--pass); }
.highlight--fail .highlight-val { color: var(--fail); }
.highlight--accent .highlight-val { color: var(--accent); }
@media (max-width: 640px) { .highlight-row { grid-template-columns: 1fr; } }

/* --- homepage "what the data says" editorial band ------------------------- */
/* Deliberately NOT another beige card: a full-width band ruled top and bottom,
   three columns split by hairlines, oversized display numerals. Reads as
   editorial analysis rather than navigation. */
.dataspeak {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
}
.dataspeak-item {
  display: flex; flex-direction: column; gap: 8px;
  padding: 26px 28px 24px; text-decoration: none; color: var(--ink);
  border-left: 1px solid var(--hairline); transition: background .12s ease;
}
.dataspeak-item:first-child { border-left: none; }
.dataspeak-item:hover { background: var(--paper-deep); color: var(--ink); }
.dataspeak-num {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(40px, 6vw, 62px); line-height: .9; letter-spacing: -.01em;
}
.dataspeak-num .unit {
  font-size: .34em; color: var(--accent); margin-left: 4px; vertical-align: baseline;
  font-family: var(--mono); font-weight: 700; letter-spacing: 0; text-transform: none;
}
.dataspeak-label {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-soft);
}
.dataspeak-note { font-size: 14px; line-height: 1.5; color: var(--ink-soft); margin-top: 2px; }
.dataspeak-link {
  margin-top: auto; padding-top: 10px;
  font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--accent);
}
.dataspeak-item:hover .dataspeak-link { text-decoration: underline; }
@media (max-width: 640px) {
  .dataspeak { grid-template-columns: 1fr; }
  .dataspeak-item { border-left: none; border-top: 1px solid var(--hairline); }
  .dataspeak-item:first-child { border-top: none; }
}

/* --- browse-by-make rail (CSS-only horizontal scroll) ---------------------- */
.section--tight { padding-bottom: 20px; }
.make-rail {
  display: flex; gap: 12px; overflow-x: auto; padding: 4px 24px 16px;
  max-width: 1080px; margin: 0 auto; scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
.make-tile {
  flex: 0 0 auto; width: 132px; height: 96px; scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: var(--paper); border: 1px solid var(--hairline); text-decoration: none;
  transition: border-color .1s ease, transform .1s ease;
}
.make-tile:hover { border-color: var(--accent); transform: translateY(-2px); }
.make-tile img { max-width: 92px; max-height: 40px; object-fit: contain; }
.make-tile-pct { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--pass); }

/* --- contact grid ---------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 32px; margin: 26px 0; }
.contact-grid p { margin: 4px 0 0; font-size: 14px; }
@media (max-width: 560px) { .contact-grid { grid-template-columns: 1fr; } }

/* --- stat hub cards -------------------------------------------------------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-bottom: 34px; }
.stat-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 18px 20px; text-decoration: none; color: var(--ink);
  background: var(--paper-deep); border: 1px solid var(--hairline);
  border-left: 3px solid var(--accent); transition: transform .08s ease, border-color .08s ease;
}
.stat-card:hover { transform: translateX(2px); border-left-color: var(--ink); color: var(--ink); }
.stat-card-q { font-weight: 700; font-size: 15px; line-height: 1.25; }
.stat-card-blurb { font-size: 13px; color: var(--ink-soft); }

/* --- breadcrumb ------------------------------------------------------------ */
.crumbs { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--ink-soft); margin-bottom: 26px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs .sep { color: var(--accent); padding: 0 6px; }

/* --- colophon --------------------------------------------------------------- */
.colophon { background: var(--panel); color: var(--panel-dim); margin-top: 64px; font-size: 13px; }
.colophon a { color: var(--panel-text); }
.colophon-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px; padding: 40px 0 48px;
}
.colophon-title {
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}
.colophon p { margin: 0; }
.colophon-brand { display: flex; align-items: center; gap: 11px; padding-top: 36px; }
.colophon-brand .wordmark-text { font-family: var(--display); font-weight: 800; font-size: 20px;
  letter-spacing: .035em; text-transform: uppercase; color: var(--panel-text); }
.colophon-brand .wordmark-text em { font-style: normal; color: var(--accent); }
.colophon-grid { padding-top: 24px; padding-bottom: 28px; }
.colophon-links { list-style: none; margin: 0; padding: 0; }
.colophon-links li { margin-bottom: 6px; }
.colophon-links a { color: var(--panel-text); text-decoration: none; }
.colophon-links a:hover { color: var(--accent); }
.colophon-legal { border-top: 1px solid var(--panel-edge); padding: 18px 0 44px;
  font-family: var(--mono); font-size: 10.5px; line-height: 1.6; color: var(--panel-dim); }
.colophon-legal a { color: var(--panel-dim); }

/* --- page-load reveal ------------------------------------------------------- */
/* dials only — headline copy must be visible before (and without) animation */
@media (prefers-reduced-motion: no-preference) {
  .dial { animation: rise .45s cubic-bezier(.2,.7,.2,1) both; }
  .dial:nth-child(2) { animation-delay: .07s; }
  .dial:nth-child(3) { animation-delay: .14s; }
  .dial:nth-child(4) { animation-delay: .21s; }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } }
}

@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .masthead-inner { flex-wrap: wrap; gap: 10px 16px; padding-top: 14px; padding-bottom: 14px; }
  .mast-nav { gap: 16px; font-size: 13px; }
  .mast-tag { flex-basis: 100%; margin-left: 0; }
  .cluster { padding: 34px 0 30px; }
  .verdict { grid-template-columns: 1fr; }

  /* dials: two-up, and shrink the big mono numbers so they never clip */
  .dials { grid-template-columns: 1fr 1fr; gap: 20px 16px; margin-top: 28px; }
  .dial { padding-left: 12px; }
  .dial-value { font-size: clamp(22px, 7vw, 30px); }
  .verdict-dial .dial-value { font-size: clamp(34px, 12vw, 48px); }

  /* search: keep on one row, let the input shrink instead of overflowing */
  .bike-search { max-width: 100%; }
  .bike-search input { min-width: 0; font-size: 14px; padding: 13px 14px; }
  .bike-search button { padding: 0 16px; }

  /* model hero: photo stacks under the title */
  .model-hero { flex-direction: column; align-items: stretch; gap: 16px; }
  .model-photo img { width: 100%; height: auto; }

  /* tables scroll horizontally inside .table-scroll rather than widening the page */
  .data-table th, .data-table td { padding-right: 10px; white-space: nowrap; }
  .data-table { font-size: 13.5px; }
  .gauge { min-width: 90px; }

  .make-hero { gap: 14px; }
  .make-hero-logo img { height: 32px; }
  .stat-grid { grid-template-columns: 1fr; }

  /* tighter footer: 2-col link grid, condensed */
  .colophon-grid { grid-template-columns: 1fr 1fr; gap: 22px 20px; padding: 26px 0 22px; }
  .colophon { font-size: 12.5px; }
  .colophon-brand { padding-top: 26px; }
  .colophon-legal { padding-bottom: 32px; }

  /* takeaways a touch smaller on mobile */
  .takeaway { font-size: 14px; }
}

/* --- mobile: data tables become stacked cards, no horizontal scroll -------- */
/* Below 560px a desktop table forces a horizontal swipe that hides the pass/
   fail/test columns. Instead each row becomes a compact card: position + name
   on top, the numeric readouts wrapping below with their column labels, and the
   pass-rate gauge full-width last. Desktop and tablet keep the real table. */
@media (max-width: 560px) {
  .table-scroll { overflow: visible; background: none; }
  .data-table thead {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
  }
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; }
  .data-table tr {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px 16px;
    padding: 13px 14px; margin-bottom: 10px; background: var(--paper);
    border: 1px solid var(--hairline); border-left: 3px solid var(--ink);
  }
  .data-table tr:nth-child(-n+3) { border-left-color: var(--accent); }
  .data-table tr:hover td { background: none; }
  .data-table td {
    padding: 0; border: none; white-space: normal;
    font-family: var(--mono); font-size: 13px;
  }
  /* race-plate position + model name share the top line */
  .data-table td.pos { order: 1; width: auto; padding: 0; }
  .data-table td.name {
    order: 2; flex: 1 1 0; min-width: 0;
    font-family: var(--body); font-size: 16px; font-weight: 600;
  }
  .data-table td.name a { white-space: normal; }
  /* numeric readouts wrap below, each labelled from its column header */
  .data-table td.num {
    order: 4; flex: 0 0 auto; text-align: left;
    display: inline-flex; align-items: baseline; gap: 5px;
  }
  .data-table td.num::before {
    content: attr(data-label); font-size: 9.5px; letter-spacing: .07em;
    text-transform: uppercase; color: var(--ink-soft); font-weight: 700;
  }
  /* the pass-rate gauge cell (no class) spans full width, last */
  .data-table td:not(.pos):not(.name):not(.num) {
    order: 5; flex: 0 0 100%; margin-top: 2px;
  }
  .data-table .gauge { min-width: 0; width: 100%; }
}
