/* ── Outfit, self-hosted (2 Nov 2026) ──────────────
   Served from /fonts/ instead of Google Fonts, which is blocked in China and
   held up first paint there. Files from @fontsource/outfit 5.1.0 (SIL OFL,
   fonts/OFL.txt). Weights match the old Google request: 400, 600, 700, 800. */
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/outfit-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/outfit-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/outfit-latin-ext-600-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/outfit-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/outfit-latin-ext-700-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/outfit-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 800; font-display: swap; src: url('/fonts/outfit-latin-ext-800-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 800; font-display: swap; src: url('/fonts/outfit-latin-800-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ── Reset & Base ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── Theme tokens ───────────────────────────────────────────────────────────
   Blueprint Authority (BRAND.md §1). The site is DARK ONLY — deep-navy
   industrial mass is the brand. Every rule in this file is written against the
   semantic tokens below rather than a literal colour, so the palette lives in
   exactly one place.

   Accent has two roles, and they stay distinct even though both are cyan:
     --accent        the cyan used as TEXT, icons and borders
     --accent-solid  the cyan SIGNATURE FILL (buttons, badges), whose label is
                     always --on-accent. */
:root {
  /* ── Surfaces & text (dark) ─────────────────────────────────── */
  --bg:        #0A1A2B;   /* base / page background         */
  --surface:   #102A42;   /* cards / panels                 */
  --surface-2: #17364F;   /* inputs / tags / icon tiles      */
  --ink:       #E8F0F8;   /* primary text                   */
  --muted:     #8AA6C0;   /* secondary text                 */
  --steel:     #5C7C9C;   /* low-emphasis text (footer meta) */
  --line:      #21405C;   /* borders / hairlines            */

  /* ── Accent (dark) ──────────────────────────────────────────────
     Two roles, because they behave differently on a light ground:
       --accent        the cyan used as TEXT, icons and borders — must stay
                       legible on --bg / --surface, so the light theme darkens it.
       --accent-solid  the cyan SIGNATURE FILL (buttons, badges). Identical in
                       both themes — always paired with --on-accent for its label. */
  --accent:             #43C1E4;
  --accent-hover:       #2AA5C8;
  --accent-solid:       #43C1E4;
  --accent-solid-hover: #2AA5C8;
  --on-accent:          #0A1A2B;

  /* Accent washes — faint cyan fills / hairlines derived from the accent. */
  --accent-wash:        rgba(67,193,228,0.08);
  --accent-wash-strong: rgba(67,193,228,0.13);
  --accent-line:        rgba(67,193,228,0.35);

  /* Incidental surfaces that sit *on* a surface (category cards, the search
     clear button) — a wash in dark, a solid panel in light. */
  --card-bg: rgba(255,255,255,0.05);
  --chip-bg: rgba(255,255,255,0.06);

  /* Chrome */
  --header-bg: rgba(10,26,43,0.92);
  --shadow:    0 14px 40px -20px rgba(0,0,0,0.7);
  --nav-shadow: 0 12px 24px rgba(0,0,0,0.45);
  --body-glow:
    radial-gradient(1200px 600px at 80% -10%, rgba(67,193,228,0.06), transparent 60%),
    radial-gradient(900px 500px at -10% 0%, rgba(67,193,228,0.03), transparent 55%);

  /* Status colours (functional only — never decorative). */
  --green:        #42d787;
  --coral:        #ff4d74;
  --success-wash: rgba(66,215,135,0.12);
  --error-text:   #ff9d9d;

  /* Legacy aliases — kept so existing rules restyle without churn. */
  --navy:    var(--bg);
  --navy-2:  var(--surface);
  --mid:     var(--surface-2);
  --black:   var(--bg);
  --dark:    var(--surface);
  --light:   var(--surface);
  --white:   var(--ink);
  --border:  var(--line);
  --accent2: var(--accent-solid-hover);

  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body:    'Outfit', system-ui, sans-serif;
  --font-mono:    ui-monospace, 'SF Mono', 'Roboto Mono', 'JetBrains Mono', monospace;
  --radius: 12px;
  --radius-lg: 16px;
  --max-w: 1160px;

  /* Faint cyan blueprint grid (≈26px) for hero + CTA bands. */
  --blueprint-ink: rgba(67,193,228,0.05);
  --blueprint:
    linear-gradient(var(--blueprint-ink) 1px, transparent 1px),
    linear-gradient(90deg, var(--blueprint-ink) 1px, transparent 1px);
  --blueprint-size: 26px 26px;

  /* Native form controls / scrollbars render dark. */
  color-scheme: dark;
}

/* Tyre sizes are ALWAYS monospace — a hard brand rule, everywhere they appear. */
.mono, .size { font-family: var(--font-mono); letter-spacing: 0.02em; }

/* Eyebrow: small, tracked, cyan, with a short leading rule — per the comp. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--body-glow), var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ── Utilities ───────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 52px 0; border-top: 1px solid var(--line); }
.section-dark { }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 48px;
  color: var(--ink);
}

/* ── Buttons ─────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  background: var(--accent-solid);
  color: var(--on-accent);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 11px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--accent-solid-hover); color: var(--on-accent); }

.btn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  color: currentColor;
  margin-left: 16px;
  font-size: 14px;
  line-height: 22px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 11px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid var(--line);
  transition: border-color 0.2s, background 0.2s;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-wash); }

.btn-lg { padding: 14px 32px; font-size: 16px; }

/* ── Header ──────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  height: 64px;
}

.logo {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
  color: var(--ink);
  text-transform: uppercase;
  white-space: nowrap;
}
.logo span { color: var(--accent); }

.main-nav {
  display: flex;
  gap: 32px;
  margin-left: auto;
}
.main-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-transform: none;
  transition: color 0.2s;
}
.main-nav a:hover,
.main-nav a.active { color: var(--accent); }
/* The in-menu CTA only appears in the mobile dropdown (see the ≤600 block). */
.nav-mobile-cta { display: none; }

/* ── Hero (comp composition — TYR-202) ───────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  /* Near-viewport height so the divider sits close to the fold, with the
     centred content held a little tighter (less dead space top/bottom). */
  min-height: calc(100vh - 120px);
  min-height: calc(100svh - 120px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 0;
  background-color: var(--bg);
  background-image: var(--blueprint);
  background-size: var(--blueprint-size);
  border-bottom: 1px solid var(--line);
}
.hero > .container { position: relative; z-index: 1; width: 100%; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero-eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 16px;
  max-width: 640px;
}
.hero-title .hilite { color: var(--accent); }

/* Mono reference tag, top-right of the hero — a blueprint signature. */
.hero-ref {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--muted);
  opacity: 0.7;
}

.hero-sub {
  font-size: 17px;
  font-weight: 400;
  color: var(--muted);
  max-width: 460px;
  line-height: 1.6;
  margin-bottom: 18px;
}

/* Mono callout box — the size-range signature. */
.hero-callout {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 12px;
  margin-bottom: 26px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Stats Strip ─────────────────────────────────── */
.stats-strip {
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 20px;
  border-right: 1px solid var(--border);
  gap: 4px;
}
.stat:last-child { border-right: none; }
.stat-number {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.stat-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
}

/* ── Category Cards ──────────────────────────────── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 16px;
}
.cat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  display: block;
}
.cat-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.cat-icon { font-size: 34px; margin-bottom: 16px; }
.cat-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  color: var(--ink);
}
.cat-card p { font-size: 15px; font-weight: 400; color: var(--muted); line-height: 1.6; }

/* ── Section header (small, muted, tracked) — comp ────────────────── */
.section-h {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 24px;
}

/* ── How It Works — bordered mono-number rows (comp) ──────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  max-width: 620px;
}
.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 14px 0;
}
.step-num {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: 6px;
  min-width: 34px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 0;
}
.step h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 4px;
  color: var(--ink);
}
.step p { font-size: 15px; font-weight: 400; color: var(--muted); line-height: 1.6; }

/* ── Compact listing card (comp — TYR-202) ────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.card-head { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.card-brand { font-size: 16px; font-weight: 700; color: var(--ink); }
.card-brand .cb-pattern { color: var(--muted); font-weight: 400; }
.card-size { font-family: var(--font-mono); font-size: 19px; color: var(--accent); font-weight: 600; white-space: nowrap; }
/* Category pill — same solid-pill treatment as .search-results-count (padding,
   radius, weight, uppercase) for a consistent pill system, in a dark slate-grey
   (var(--line)) fill with light text instead of the cyan accent. */
.card-cat { flex: none; padding: 3px 9px; border-radius: 20px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; line-height: 1.4; }
.card-meta { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 14px; }
.chip { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 20px; padding: 3px 9px; white-space: nowrap; }
.card-bottom { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 12px; gap: 12px; }
.enquire {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 8px 15px;
  border-radius: 8px;
  background: transparent;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
}
.enquire:hover { background: var(--accent-solid); color: var(--on-accent); }

/* Whole-card navigation to the detail page (stretched link). The card is the
   positioning context; the cover fills it; the Enquire button sits above it. */
.card { position: relative; }
.card-cover { position: absolute; inset: 0; z-index: 0; border-radius: inherit; }
.card-cover:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.card .enquire { position: relative; z-index: 1; }

/* ── Per-listing detail page (TYR-203) ─────────────────────────────────────── */
.ld-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 15px; color: var(--muted); }
.ld-breadcrumb a { color: var(--muted); text-decoration: none; }
.ld-breadcrumb a:hover { color: var(--accent); }
.ld-breadcrumb span[aria-current] { color: var(--ink); }
.ld-page-hero h1 { margin-top: 6px; }

.ld-layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: start; margin: 8px 0 36px; }
.ld-media { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.ld-hero-svg { display: block; width: 100%; height: auto; }

.ld-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 22px 24px; }
.ld-banner { background: var(--accent-wash); border: 1px solid var(--accent); border-radius: 10px; padding: 12px 14px; font-size: 15.5px; color: var(--ink); margin-bottom: 18px; }
.ld-banner strong { display: block; margin-bottom: 3px; }
.ld-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }

.ld-spec { display: grid; gap: 0; margin: 0 0 20px; border-top: 1px solid var(--line); }
.ld-spec-row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.ld-spec-row dt { color: var(--muted); font-size: 15px; }
.ld-spec-row dd { margin: 0; color: var(--ink); font-size: 16px; font-weight: 600; text-align: right; }
.ld-spec-row dd.mono { font-family: var(--font-mono); color: var(--accent); }

.ld-cta { width: 100%; justify-content: center; }
.ld-note { font-size: 14.5px; color: var(--muted); margin: 14px 0 0; line-height: 1.55; }

.ld-about { max-width: 760px; margin: 0 0 64px; }
.ld-about h2 { font-size: 22px; margin-bottom: 12px; }
.ld-about p { color: var(--muted); font-size: 17px; line-height: 1.7; margin-bottom: 12px; }
.ld-about a { color: var(--accent); text-decoration: none; }
.ld-about a:hover { text-decoration: underline; }

@media (max-width: 760px) {
  /* minmax(0, …): the column may shrink to the screen — a bare 1fr kept the "email me"
     form's min width and the out-of-stock tyre page scrolled sideways on 320–360px phones. */
  .ld-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}

/* Homepage "Available now" preview grid. */
.available-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 14px; }
.available-more { margin-top: 20px; }

/* ── CTA Band (comp — navy-2 grid, centered) ──────────────────────── */
.cta-band {
  position: relative;
  overflow: hidden;
  background-color: var(--surface);
  background-image: var(--blueprint);
  background-size: var(--blueprint-size);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 56px 0;
}
.cta-card {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.cta-card h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}
.cta-card p {
  font-size: 15.5px;
  font-weight: 400;
  color: var(--muted);
  margin: 0 0 8px;
  max-width: 420px;
}
.cta-band .btn-primary { white-space: nowrap; }

/* ── Footer ──────────────────────────────────────── */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 56px 0 28px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}
.footer-brand .logo { display: inline-block; margin-bottom: 16px; }
.footer-tagline {
  font-size: 15.5px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 400px;
  margin-bottom: 22px;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  font-size: 15.5px;
  line-height: 1.5;
  padding: 6px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
  padding-top: 22px;
}
.footer-copy {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 400;
  color: var(--steel);
  margin: 0;
}

@media (max-width: 820px) {
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 520px) {
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ── Listings Page ───────────────────────────────── */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--line);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--blueprint);
  background-size: var(--blueprint-size);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.7), transparent 90%);
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.7), transparent 90%);
  pointer-events: none;
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--ink);
}
.page-hero p { font-size: 17px; font-weight: 400; color: var(--muted); line-height: 1.6; max-width: 560px; }

.listings-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 48px 0 80px;
}

.catalogue-search {
  width: 100%;
}
.catalogue-search-field {
  position: relative;
}
.catalogue-search input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--ink);
  padding: 14px 52px 14px 20px;
  font-size: 17px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s;
}
.catalogue-search input::placeholder { color: var(--muted); }
.catalogue-search input:focus { border-color: var(--accent); }

/* Clear (×) — appears inside the field only when there is a query */
.search-clear {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--chip-bg);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.search-clear:hover { color: var(--ink); border-color: var(--accent); background: var(--accent-wash-strong); }
.search-clear[hidden] { display: none; }

.search-results-count {
  display: inline-block;
  margin-top: 18px;
  padding: 3px 9px;
  border-radius: 20px;
  background: var(--accent-solid);
  color: var(--on-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
}

@media (max-width: 640px) {
  .catalogue-search input { font-size: 18px; }
  .footer-col a { padding: 10px 0; }
}

.catalogue-note {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 820px;
  margin: -4px 0 4px;
}
.catalogue-note strong { color: var(--ink); font-weight: 600; }
.catalogue-note a { color: var(--accent); text-decoration: none; }
.catalogue-note a:hover { text-decoration: underline; }

.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 14px;
}

.tyre-desc {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 12px;
}

.tyre-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.tyre-tag {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--border);
}
.tyre-tag.accent {
  background: var(--accent-wash-strong);
  color: var(--accent);
  border-color: var(--accent-line);
}

.badge-new {
  flex-shrink: 0;
  display: inline-block;
  padding: 3px 9px;
  border-radius: 20px;
  background: var(--accent-solid);
  color: var(--on-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
}

/* ── Collapsible card details ────────────────────── */
.card-details {
  display: none;
  margin-top: 4px;
}
.card-details.open { display: block; }

.card-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.card-toggle:hover { border-color: var(--accent); color: var(--accent); }
.card-toggle .toggle-arrow { transition: transform 0.2s; display: inline-block; }
.card-toggle.open .toggle-arrow { transform: rotate(180deg); }

/* ── Contact Page ────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  padding: 44px 0 56px;
  align-items: start;
}
.contact-info h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--ink);
}
.contact-info p { font-size: 16px; font-weight: 400; color: var(--muted); line-height: 1.7; margin-bottom: 32px; }
.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.contact-item-icon {
  width: 40px;
  height: 40px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.contact-item-text span {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}
.contact-item-text p { font-size: 16px; font-weight: 400; color: var(--ink); margin: 0; }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.contact-form h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
  color: var(--ink);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--ink);
  padding: 11px 14px;
  font-size: 16px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 120px; }

/* ── About Page ──────────────────────────────────── */
.about-layout { padding: 40px 0 56px; max-width: 760px; }
.about-layout > :first-child { margin-top: 0; }
.about-layout h2 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 36px 0 12px;
  color: var(--ink);
}
.about-layout p { font-size: 16.5px; font-weight: 400; color: var(--muted); line-height: 1.8; margin-bottom: 16px; }
.about-layout ul { padding-left: 20px; margin-bottom: 16px; }
.about-layout li { font-size: 16.5px; font-weight: 400; color: var(--muted); line-height: 1.8; margin-bottom: 6px; }

/* ── Brand Values Strip ──────────────────────────── */
.brand-values {
  background: var(--bg);
  padding: 60px 0;
}
.brand-values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.brand-value {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 40px;
  border-right: 1px solid var(--border);
  gap: 16px;
}
.brand-value:last-child { border-right: none; }
.brand-value-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
}
.brand-value-desc {
  font-size: 19px;
  color: var(--muted);
  line-height: 1.7;
}

/* ── Responsive ──────────────────────────────────── */

@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: none; border-bottom: 1px solid var(--border); }
  .stat:nth-child(odd) { border-right: 1px solid var(--border); }
  .stat:last-child, .stat:nth-last-child(2):nth-child(odd) { border-bottom: none; }
  .header-inner .btn-primary { display: none; }
  .form-row { grid-template-columns: 1fr; }
}

/* ── Mobile nav toggle ───────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 14px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }

@media (max-width: 600px) {
  .contact-form { padding: 20px 16px; }
  .contact-layout { padding: 32px 0 48px; gap: 32px; }
  .form-group input,
  .form-group select,
  .form-group textarea { font-size: 18px; }
  .brand-values { padding: 40px 0; }
  .brand-values-grid { grid-template-columns: 1fr; }
  .brand-value { border-right: none; border-bottom: 1px solid var(--border); padding: 28px 16px; }
  .brand-value:last-child { border-bottom: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-copy { margin-left: 0; }
  /* Fill the small viewport minus the 60px header so the hero's bottom divider
     sits on the fold (the -120px desktop offset left a dead band on phones). */
  .hero { padding: 28px 0; min-height: calc(100vh - 60px); min-height: calc(100svh - 60px); }
  .hero-eyebrow { margin-bottom: 16px; }
  .hero-title { font-size: clamp(30px, 8vw, 40px); margin-bottom: 14px; }
  .hero-sub { font-size: 16px; margin-bottom: 16px; }
  .hero-ref { top: 14px; right: 18px; }
  .hero-actions { margin-top: 4px; gap: 10px; }
}

/* Hamburger menu up to 760px (was 600px): between 600 and ~710px the six nav links
   didn't fit and the header scrolled sideways. */
@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--nav-shadow);
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
    z-index: 99;
  }
  .main-nav.open { display: flex; }
  .main-nav a {
    padding: 13px 24px;
    border-bottom: 1px solid var(--line);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--ink);
  }
  .main-nav a.active { color: var(--accent); }
  .main-nav a:last-child { border-bottom: none; }
  /* Primary CTA lives inside the mobile menu (the header button is hidden).
     Higher specificity (a.nav-mobile-cta) so it overrides the .main-nav a rules
     above and matches the site's other buttons: 13px, uppercase, tracked. */
  .main-nav a.nav-mobile-cta {
    display: block;
    margin: 14px 24px 6px;
    padding: 13px;
    border-bottom: none;
    text-align: center;
    background: var(--accent-solid);
    color: var(--on-accent);
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
  }
}

/* Mobile landscape */
@media (max-width: 900px) and (orientation: landscape) {
  .hero { padding: 32px 0 0; }
  .hero-title { font-size: clamp(30px, 6vw, 58px); margin-bottom: 10px; }
  .hero-sub { font-size: 15px; margin-bottom: 10px; }
  .hero-actions { margin-bottom: 24px; margin-top: 8px; }
}

/* ── Desktop readability uplift ─────────────────────────────────────────────
   The base scale was tuned tight (14px body, ~13px copy) and reads small on
   desktop. Raise the body-copy + interactive tier ~1–2px on wide screens only;
   mobile (≤900px) keeps its existing sizing, and headings already clamp large. */
@media (min-width: 901px) {
  body { font-size: 18px; line-height: 1.6; }

  /* Navigation + buttons */
  .main-nav a { font-size: 16px; }
  .btn-primary, .btn-outline { font-size: 16px; }
  .btn-lg { font-size: 17px; }

  /* Hero */
  .hero-sub { font-size: 19px; }

  /* Home sections */
  .cat-card p { font-size: 17px; }
  .step h3 { font-size: 18px; }
  .step p { font-size: 17px; }
  .cta-card p { font-size: 17.5px; }

  /* Listing cards */
  .card-brand { font-size: 17px; }
  .card-size { font-size: 20px; }

  /* Footer */
  .footer-tagline { font-size: 17px; }
  .footer-col a { font-size: 16.5px; }

  /* Per-listing detail page */
  .ld-breadcrumb { font-size: 16px; }
  .ld-banner { font-size: 17px; }
  .ld-spec-row dt { font-size: 16.5px; }
  .ld-spec-row dd { font-size: 17.5px; }
  .ld-note { font-size: 16px; }
  .ld-about h2 { font-size: 24px; }
  .ld-about p { font-size: 18.5px; }
}

/* ── Desktop readability uplift, round 2 ────────────────────────────────────
   Per feedback: on desktop, increase ALL the remaining text too — headings,
   labels, stats, callouts, and the listings / contact / about page copy.
   Deliberately excludes what round 1 already set, the buttons, and the logo. */
@media (min-width: 901px) {
  /* Section + eyebrow labels */
  .eyebrow { font-size: 14px; }
  .section-title { font-size: clamp(32px, 4vw, 48px); }
  .section-h { font-size: 14px; }

  /* Hero */
  .hero-eyebrow { font-size: 14px; }
  .hero-title { font-size: clamp(36px, 5vw, 62px); }
  .hero-ref { font-size: 13px; }
  .hero-callout { font-size: 16px; }

  /* Stats strip */
  .stat-number { font-size: 28px; }
  .stat-label { font-size: 14.5px; }

  /* Category cards */
  .cat-card h3 { font-size: 22px; }

  /* How it works */
  .step-num { font-size: 15px; }

  /* Compact listing card (home) */
  .chip { font-size: 14px; }

  /* CTA band */
  .cta-card h2 { font-size: clamp(26px, 3.2vw, 36px); }

  /* Footer */
  .footer-col h4 { font-size: 14px; }
  .footer-copy { font-size: 15px; }

  /* Listings page */
  .page-hero h1 { font-size: clamp(32px, 4vw, 52px); }
  .page-hero p { font-size: 19px; }
  .catalogue-search input { font-size: 18px; }
  .search-results-count { font-size: 14px; }
  .catalogue-note { font-size: 18px; }
  .tyre-desc { font-size: 18px; }
  .tyre-tag { font-size: 14.5px; }
  .badge-new { font-size: 14px; }

  /* Contact page */
  .contact-info h2 { font-size: clamp(24px, 2.6vw, 32px); }
  .contact-info p { font-size: 18px; }
  .contact-item-text span { font-size: 14.5px; }
  .contact-item-text p { font-size: 18px; }
  .contact-form h2 { font-size: 22px; }
  .form-group label { font-size: 16px; }
  .form-group input, .form-group select, .form-group textarea { font-size: 18px; }

  /* About page */
  .about-layout h2 { font-size: 23px; }
  .about-layout p { font-size: 18.5px; }
  .about-layout li { font-size: 18.5px; }

  /* Brand values strip */
  .brand-value-title { font-size: 27px; }
  .brand-value-desc { font-size: 21px; }
}

/* ── Ask TyreFinder — the home page is a question box ─────────────────────
   One centred column on the blueprint hero: eyebrow, the question, the tyre
   mark, the desk's name, the box, then four starter prompts. Tokens only. */
/* The box is the hero: it lands inside the first screen on every width. Everything above
   it is one eyebrow, the question, one line and a small mark; the explanation sits below. */
.hero-ask { text-align: center; padding: 40px 0 44px; min-height: 0; justify-content: flex-start; }
.ask-wrap { max-width: 860px; display: flex; flex-direction: column; align-items: center; }
.ask-eyebrow { margin-bottom: 14px; }
.ask-title { font-family: var(--font-display); font-size: clamp(32px, 5.2vw, 56px); font-weight: 800; line-height: 1.06; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 10px; }
.ask-lead { font-size: 17px; color: var(--muted); line-height: 1.6; max-width: 620px; margin-bottom: 22px; }
.ask-mark { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-wash); box-shadow: 0 0 0 1px var(--accent-line), 0 0 40px var(--accent-wash-strong); margin-bottom: 12px; }
.ask-mark svg { width: 44px; height: 44px; }
.ask-h2 { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.ask-h2-sub { font-weight: 600; color: var(--muted); letter-spacing: 0.08em; }
.ask-box { position: relative; width: 100%; max-width: 760px; display: flex; align-items: flex-end; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 10px 10px 10px 18px; box-shadow: var(--shadow); transition: border-color 0.15s, box-shadow 0.15s; }
.ask-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-wash), var(--shadow); }
.ask-input { flex: 1; min-width: 0; resize: none; background: transparent; border: 0; outline: 0; color: var(--ink); font: 400 17px/1.5 var(--font-body); padding: 9px 0; max-height: 220px; }
.ask-input::placeholder { color: var(--steel); }
.ask-send { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--accent-solid); color: var(--on-accent); display: grid; place-items: center; cursor: pointer; transition: background 0.15s, transform 0.15s; }
.ask-send svg { width: 20px; height: 20px; }
.ask-send:hover { background: var(--accent-solid-hover); transform: translateY(-1px); }
.ask-send:disabled { opacity: 0.55; cursor: default; transform: none; }
.ask-send:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.ask-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
#available, #how, #ask { scroll-margin-top: 84px; }
.ask-proof { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 0; margin: 14px 0 26px; padding: 0; font-size: 14.5px; color: var(--ink); }
.ask-proof li { display: inline-flex; align-items: center; }
.ask-proof li + li::before { content: "·"; margin: 0 10px; color: var(--steel); }
/* Live stock match under the box — what we hold in the size (or brand) typed. */
.ask-live { width: 100%; max-width: 760px; margin: 12px 0 0; padding: 12px 16px; background: var(--surface); border: 1px solid var(--accent-line); border-radius: 14px; text-align: left; display: flex; flex-direction: column; gap: 10px; }
.ask-live[hidden] { display: none; }
.ask-live-h { display: flex; align-items: center; gap: 9px; font-size: 14.5px; color: var(--ink); font-weight: 600; }
.ask-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--success-wash); flex: none; }
.ask-live-dot.ask-live-none { background: var(--steel); box-shadow: none; }
.ask-live-send { align-self: flex-start; background: transparent; border: 0; padding: 2px 0 0; color: var(--muted); font: 600 13.5px var(--font-body); cursor: pointer; text-align: left; }
.ask-live-send:hover { color: var(--accent); }
/* The conversation, once there is one. */
.ask-thread { width: 100%; max-width: 760px; display: flex; flex-direction: column; gap: 10px; margin: 0 0 26px; text-align: left; }
.ask-thread[hidden] { display: none; }
/* ── The chat panel ─────────────────────────────────────────────────────────
   Before the first message .ask-chat is a transparent wrapper and the box stands
   alone. Once a conversation starts (#ask.ask-started) it becomes the chat: a
   bordered surface with a header, the messages inside, the box docked at the
   bottom as the reply field, and the tiles and proof line step aside. */
.ask-chat { width: 100%; max-width: 760px; display: flex; flex-direction: column; }
.ask-chat-head { display: none; }
.ask-started .ask-chat { background: var(--surface); border: 1px solid var(--accent-line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); text-align: left; }
.ask-started .ask-chat-head { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); font-size: 13.5px; }
.ask-chat-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--success-wash); flex: none; }
.ask-chat-name { font-weight: 700; color: var(--ink); white-space: nowrap; }
.ask-chat-status { color: var(--muted); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ask-chat-reset { flex: none; background: transparent; border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 5px 11px; font: 600 12.5px var(--font-body); cursor: pointer; }
.ask-chat-reset:hover { color: var(--accent); border-color: var(--accent); }
.ask-started .ask-thread { margin: 0; padding: 16px 14px 8px; }
.ask-started .ask-box { max-width: none; border-radius: 0; border: 0; border-top: 1px solid var(--line); box-shadow: none; background: var(--surface); padding: 10px 10px 10px 16px; }
.ask-started .ask-box:focus-within { box-shadow: none; border-top-color: var(--accent); }
.ask-started .ask-live { margin: 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.ask-started .ask-proof, .ask-started .ask-prompts, .ask-started .ask-mark, .ask-started .ask-h2 { display: none; }
.ask-started .ask-browse { margin-top: 18px; }
.ask-m { padding: 12px 16px; border-radius: 14px; font-size: 15.5px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; max-width: 88%; }
/* The buyer's bubble is the one solid cyan on the page, so who said what reads at a glance. */
.ask-user { align-self: flex-end; background: var(--accent-solid); color: var(--on-accent); border: 1px solid var(--accent-solid); border-bottom-right-radius: 4px; font-weight: 600; }
.ask-assistant { align-self: flex-start; background: var(--accent-wash); color: var(--ink); border: 1px solid var(--accent-line); border-bottom-left-radius: 4px; }
.ask-typing { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; }
.ask-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: ask-dot 1.1s ease-in-out infinite; }
.ask-typing span:nth-child(2) { animation-delay: 0.18s; }
.ask-typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes ask-dot { 0%, 60%, 100% { opacity: 0.35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.ask-handoff { align-self: flex-start; display: inline-block; padding: 10px 16px; border-radius: 10px; background: var(--accent-solid); color: var(--on-accent); font-weight: 700; text-decoration: none; }
.ask-handoff:hover { background: var(--accent-solid-hover); }
.ask-listings { display: flex; flex-wrap: wrap; gap: 8px; }
.ask-listing { font-family: var(--font-mono); font-size: 13px; color: var(--accent); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; text-decoration: none; background: var(--surface); cursor: pointer; }
.ask-listing:hover { border-color: var(--accent); background: var(--accent-wash); }
.ask-listing:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* A tyre opened inline — under the chips, in the thread, or inside a stock card. */
.ask-pick { position: relative; z-index: 2; background: var(--surface-2); border: 1px solid var(--accent-line); border-radius: 14px; padding: 14px 16px; margin-top: 12px; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.card .ask-pick { margin-top: 14px; }
.ask-pick-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ask-pick-size { font-size: 19px; font-weight: 600; color: var(--accent); }
.ask-pick-name { font-size: 15px; font-weight: 700; color: var(--ink); }
.ask-pick-pattern { font-size: 14px; color: var(--muted); }
.ask-pick-meta { display: flex; flex-wrap: wrap; gap: 7px; }
.ask-pick-form { display: grid; grid-template-columns: minmax(126px, 0.8fr) 1fr; gap: 8px; }
.ask-pick-form input[type=email], .ask-pick-form input[type=tel], .ask-pick-form input[autocomplete=organization], .ask-pick-form .ask-pick-send { grid-column: 1 / -1; }
.ask-pick-form input { width: 100%; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; color: var(--ink); font: 400 16px var(--font-body); padding: 11px 13px; outline: 0; }
.ask-pick-form input:focus { border-color: var(--accent); }
.ask-pick-send { text-align: center; margin-top: 2px; }
.ask-pick-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.ask-pick-link { background: none; border: 0; padding: 0; font: 600 13px var(--font-body); color: var(--accent); cursor: pointer; text-decoration: none; }
.ask-pick-link:hover { text-decoration: underline; }
.ask-pick-sep { color: var(--steel); }
.ask-pick-done { font-size: 15px; color: var(--green); font-weight: 600; }
.ask-pick-done::before, .ask-m.ask-done::before { content: '✓'; display: inline-block; margin-right: 8px; font-weight: 800; }
.ask-m.ask-done { color: var(--green); border-color: var(--green); }
.ask-prop { align-self: stretch; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.ask-prop-h { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.ask-prop-line { font-size: 15px; color: var(--ink); }
.ask-prop-row { display: flex; align-items: center; gap: 10px; }
.ask-prop .ask-qty { width: 72px; flex: none; text-align: center; padding: 8px 6px; }
.ask-prop-x { color: var(--muted); }
.ask-prop input, .ask-prop textarea { width: 100%; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; color: var(--ink); font: 400 16px var(--font-body); padding: 11px 13px; outline: 0; }
.ask-prop textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.ask-prop input:focus, .ask-prop textarea:focus { border-color: var(--accent); }
.ask-prop-send { margin-top: 4px; text-align: center; }
.ask-prop-err { color: var(--error-text); font-size: 14px; min-height: 0; }
.ask-prop-err:empty { display: none; }
.ask-prop-note { font-size: 12.5px; color: var(--muted); }
/* Starter prompts. */
.ask-prompts { width: 100%; max-width: 760px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ask-prompt { display: flex; align-items: center; gap: 14px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; color: var(--ink); font-family: var(--font-body); text-decoration: none; cursor: pointer; transition: border-color 0.15s, transform 0.15s, background 0.15s; }
.ask-prompt:hover { border-color: var(--accent); background: var(--accent-wash); transform: translateY(-1px); }
.ask-prompt:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ask-prompt-ico { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-wash-strong); color: var(--accent); }
.ask-prompt-ico svg { width: 19px; height: 19px; }
.ask-prompt-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ask-prompt-txt b { font-size: 15px; font-weight: 700; }
.ask-prompt-txt small { font-size: 13px; color: var(--muted); line-height: 1.4; }
.ask-browse { margin-top: 26px; font-size: 14.5px; color: var(--muted); }
.ask-browse a { color: var(--accent); text-decoration: none; font-weight: 600; }
.ask-browse a:hover { text-decoration: underline; }
@media (max-width: 640px) {
  /* One screen exactly: the hero's bottom line sits on the fold on every phone,
     content top-aligned, the browse link anchored just above the line. */
  .hero-ask { padding: 22px 0 24px; min-height: calc(100vh - 65px); min-height: calc(100svh - 65px); }
  .hero-ask .ask-wrap { flex: 1 0 auto; width: 100%; }
  /* Spare height splits evenly above the headline and below the tiles; the browse
     link stays anchored just above the hero's bottom line. */
  .hero-ask .ask-eyebrow { margin-top: auto; }
  .hero-ask .ask-prompts { margin-bottom: auto; }
  .hero-ask .ask-browse { margin-top: 0; padding-top: 22px; }
  .ask-started .ask-eyebrow, .ask-started .ask-lead { display: none; }
  .ask-started .ask-title { font-size: 22px; margin: 0 0 12px; }
  /* An open chat is not held to one screen: the hero ends under the panel. */
  .hero-ask.ask-started { min-height: 0; }
  .ask-started .ask-chat { margin-bottom: 0; }
  .ask-started .ask-chat-head { padding: 10px 12px; font-size: 13px; }
  .ask-chat-status-more { display: none; }
  .ask-chat-status { overflow: visible; text-overflow: clip; }
}
/* Chat header on small phones: "Online" ran under the New enquiry button (cut off at
   320px). The green dot says online; the name may shorten; the button stays whole. */
@media (max-width: 400px) {
  .ask-chat-status { display: none; }
  .ask-chat-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .ask-chat-reset { margin-left: auto; }
  .ask-started .ask-thread { padding: 12px 10px 6px; }
  .hero-ref { display: none; }   /* the blueprint signature steals a line the box needs */
  .ask-eyebrow { margin-bottom: 10px; }
  .ask-title { font-size: 31px; margin-bottom: 8px; }
  .ask-lead { font-size: 15.5px; margin-bottom: 12px; }
  .ask-mark { width: 44px; height: 44px; margin-bottom: 8px; }
  .ask-mark svg { width: 30px; height: 30px; }
  .ask-h2 { font-size: 11.5px; letter-spacing: 0.1em; margin-bottom: 10px; }
  .ask-h2-sub { letter-spacing: 0.05em; }
  .ask-pick-form { grid-template-columns: 1fr 1fr; }
  .ask-box { border-radius: 16px; padding: 8px 8px 8px 14px; }
  .ask-input { font-size: 16px; }   /* 16px stops iOS zooming into it; the script sizes the box to its hint */
  /* Two compact tiles per row on a phone: title only, so the stock below stays in reach. */
  .ask-prompts { grid-template-columns: 1fr 1fr; gap: 8px; }
  .ask-prompt { flex-direction: row; align-items: center; gap: 10px; padding: 10px 11px; border-radius: 12px; }
  .ask-prompt-ico { width: 32px; height: 32px; border-radius: 8px; }
  .ask-prompt-ico svg { width: 17px; height: 17px; }
  .ask-prompt-txt small { display: none; }
  .ask-prompt-txt b { font-size: 13.5px; line-height: 1.2; }
  /* Phone: three clean rows, a cyan marker each — never a wrapped line with stray dots. */
  .ask-proof { font-size: 14px; flex-direction: column; align-items: flex-start; gap: 6px; width: max-content; max-width: 100%; margin: 12px auto 18px; }
  .ask-proof li::before, .ask-proof li + li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin: 0 9px 0 0; flex: none; }
  .ask-m { max-width: 94%; }
}
@media (max-width: 374px) {
  .ask-started .ask-chat-head { gap: 8px; }
  .ask-chat-name { font-size: 12.5px; }
  .ask-chat-reset { padding: 5px 9px; }
  .ask-pick-form { grid-template-columns: 1fr; }   /* 320px phones: one field per row, nothing clipped */
}
/* Narrow phones: keep the eyebrow to one line and the headline to two short ones,
   so the four starter tiles still land above the fold. */
@media (max-width: 400px) {
  .ask-eyebrow { font-size: 12px; letter-spacing: 0.1em; margin-bottom: 8px; }
  .ask-title { font-size: 28px; }
  .ask-lead { font-size: 14.5px; margin-bottom: 10px; }
  .ask-h2 { margin-bottom: 8px; }
}
/* ── Cookie consent banner ───────────────────────── */
/* Injected by /analytics.js. Navy surface, hairline top border, cyan only on
   the Accept fill — the accent stays a signature, not a large fill (BRAND.md §1). */
.consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  /* Above the sticky header (z-index 100) and the mobile nav (99). */
  z-index: 200;
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 10px 0 max(10px, env(safe-area-inset-bottom));
  animation: consent-in 0.25s ease-out;
}

@keyframes consent-in {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

.consent-inner {
  width: min(1200px, 100% - 48px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.consent-copy {
  flex: 1;
  margin: 0;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.4;
}
.consent-copy strong { color: var(--ink); font-weight: 600; }
.consent-copy a { color: var(--accent); text-decoration: underline; }
.consent-copy a:hover { color: var(--accent-hover); }

.consent-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

/* Squarer than the page CTAs on purpose: this is a dialogue, not a call to
   action, and the arrow-bearing .btn-primary shape would oversell it. */
.consent-btn {
  justify-content: center;
  letter-spacing: 0.5px;
  font-size: 13px;
  padding: 7px 16px;
  min-height: 36px;
  white-space: nowrap;
}
.consent-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* The button that re-opens the question from the privacy page. */
.consent-reopen {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--accent);
  text-decoration: underline;
  cursor: pointer;
}
.consent-reopen:hover { color: var(--accent-hover); }
.consent-reopen:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 640px) {
  /* Keep the bar shallow on a phone — it is a fixed overlay, and every line of
     copy is a line of the hero it sits on top of. */
  /* One slim row on a phone: short copy left, two small buttons right. */
  .consent-banner { padding: 8px 0 max(8px, env(safe-area-inset-bottom)); }
  .consent-inner {
    width: min(1200px, 100% - 24px);
    gap: 10px;
  }
  .consent-copy { font-size: 13px; line-height: 1.35; }
  .consent-actions { gap: 8px; }
  .consent-btn { padding: 6px 12px; min-height: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  .consent-banner { animation: none; }
}

/* ── Rich tyre cards + product / landing pages (20 Oct 2026) ─────────────────── */
.card-facts { font-size: 13.5px; color: var(--ink); font-weight: 600; margin: -4px 0 6px; letter-spacing: 0.01em; }
.card-fits { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.ld-sub { color: var(--muted); font-size: 17px; margin-top: 6px; }
.ld-status { border-radius: 10px; padding: 12px 14px; font-size: 15.5px; margin-bottom: 18px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); }
.ld-status.ok { border-color: var(--accent); background: var(--accent-wash); }
.ld-status strong { display: block; margin-bottom: 3px; }
.ld-spec-row dd a { color: inherit; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.ld-spec-row dd a:hover { text-decoration-color: var(--accent); }
.ld-fits { margin: 8px 0 12px; padding-left: 20px; }
.ld-fits li { margin: 4px 0; }
.ld-about h3 { font-size: 17px; margin: 18px 0 6px; }
.muted { color: var(--muted); }
.hub-list { list-style: none; padding: 0; margin: 10px 0 28px; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px 16px; }
.hub-list li { font-size: 16px; }
.hub-list a { color: var(--ink); font-weight: 600; }
.hub-list a:hover { color: var(--accent); }

/* ── Competitor-map build (20 Oct 2026): badges, trust strip, filters, finder,
   notify-me, paste list, the reworked home hero. Brand colours/fonts only. ──── */
.card-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.badge-verified, .badge-fresh { font-size: 12.5px; font-weight: 600; border-radius: 999px; padding: 3px 9px; line-height: 1.3; }
.badge-verified { color: var(--accent); background: var(--accent-wash-strong); border: 1px solid var(--accent-line); }
.badge-fresh { color: var(--ink); background: var(--chip-bg); border: 1px solid var(--line); }
.ld-chips .badge-verified { margin-left: 2px; }

/* Trust strip — live aggregates, then "How we verify". */
/* One compact line of proof, not a wall of boxes: "25 sizes · 9 brands · …". */
.trust-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; width: 100%; }
.trust-item { display: inline-flex; align-items: baseline; gap: 6px; font-size: 14.5px; color: var(--ink); }
.trust-item b { font-size: 17px; font-weight: 800; color: var(--accent); line-height: 1.2; }
.trust-item span { opacity: 0.86; line-height: 1.3; }
.trust-how { margin-top: 10px; text-align: left; font-size: 15px; color: var(--ink); }
.trust-how summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.trust-how p { margin: 8px 0 0; color: var(--muted); line-height: 1.6; max-width: 720px; }
.cat-trust, .ld-trust { margin: 6px 0 22px; }
.hero-trust .trust-how { text-align: center; }
.hero-trust .trust-how p { margin-left: auto; margin-right: auto; text-align: left; }
.cat-trust:empty, .hero-trust:empty { display: none; }

/* Fitment finder: make → model → size → stock. */
.tf-fit { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; text-align: left; margin-bottom: 18px; }
.fit-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fit-label { display: flex; flex-direction: column; gap: 5px; font-size: 14px; color: var(--ink); }
.fit-label select { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; font: 500 16px var(--font-body); width: 100%; }
.fit-label select:disabled { opacity: 0.55; }
.fit-result:empty { display: none; }
.fit-result { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 14px; }
.fit-head { font-size: 16px; color: var(--ink); margin: 0 0 8px; line-height: 1.5; }
.fit-head a { color: var(--accent); font-weight: 700; }
.fit-stock { font-size: 15px; color: var(--ink); margin: 0 0 6px; }
.fit-list { margin: 0 0 12px; padding-left: 20px; }
.fit-list li { margin: 3px 0; font-size: 15px; }
.fit-list a { color: var(--ink); }
.fit-list a:hover { color: var(--accent); }
.fit-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.fit-note { margin: 10px 0 0; font-size: 15px; color: var(--muted); }

/* Notify me when this size arrives. */
.tf-notify { background: var(--surface); border: 1px solid var(--accent-line); border-radius: 14px; padding: 16px; margin: 18px 0; text-align: left; }
.tf-notify-h { font-size: 17px; font-weight: 700; color: var(--ink); }
.tf-notify-p { font-size: 14.5px; color: var(--ink); opacity: 0.86; margin: 4px 0 12px; }
.tf-notify-row { display: flex; flex-wrap: wrap; gap: 10px; }
.tf-notify-row input[type="email"], .tf-notify-row select { flex: 1 1 200px; min-width: 0; background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; font: 500 16px var(--font-body); }
.tf-notify-row select { flex: 0 1 170px; }
.tf-notify-msg { font-size: 15px; color: var(--ink); margin-top: 8px; }
.tf-notify-msg:empty { display: none; }

/* Paste your stock list (list-stock). */
.paste-box textarea { min-height: 110px; }
.paste-box .btn-outline { margin-top: 10px; }
.paste-msg { font-size: 15px; color: var(--ink); margin: 10px 0 0; }
.paste-msg:empty { display: none; }
.paste-rows { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.paste-row { display: grid; grid-template-columns: 1.1fr 1fr 1fr 0.6fr 0.9fr 0.7fr 0.55fr auto; gap: 6px; align-items: center; }
.paste-row input, .paste-row select { min-width: 0; width: 100%; background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 8px; font: 500 14.5px var(--font-body); }
.paste-row .paste-notes { grid-column: 1 / -2; }
.paste-x { background: transparent; border: 1px solid var(--line); color: var(--ink); border-radius: 8px; width: 34px; height: 34px; cursor: pointer; font-size: 18px; line-height: 1; grid-row: 1; grid-column: -2; }
@media (max-width: 760px) {
  .paste-row { grid-template-columns: 1fr 1fr 1fr; }
  .paste-row .paste-notes { grid-column: 1 / -1; }
  .paste-x { grid-column: 3; grid-row: auto; justify-self: end; }
}

/* Supplier band (home, below the fold). */
.supplier-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.supplier-band-inner p { color: var(--ink); opacity: 0.86; max-width: 560px; font-size: 16px; line-height: 1.6; margin: 0; }

/* ── Home hero (reworked): box under the headline, tabs, trust, live stock ─────── */
.hero-ask { position: relative; overflow: hidden; }
.hero-art { position: absolute; right: -150px; top: 40px; width: 520px; height: 620px; color: var(--accent); opacity: 0.09; pointer-events: none; z-index: 0; }
.hero-ask .ask-wrap { position: relative; z-index: 1; max-width: 920px; }
.ask-sizes { font-size: 14.5px; letter-spacing: 0.2px; font-variant-numeric: tabular-nums; }
.ask-machine { width: 100%; max-width: 640px; margin: 12px auto 0; text-align: left; }
.ask-machine > summary { cursor: pointer; list-style: none; text-align: center; font-size: 15px; color: var(--ink); opacity: 0.9; padding: 6px 0; }
.ask-machine > summary::-webkit-details-marker { display: none; }
.ask-machine > summary b { color: var(--accent); font-weight: 700; }
.ask-machine > summary b::after { content: ' ›'; }
.ask-machine[open] > summary b::after { content: ' ⌄'; }
.ask-machine[open] .tf-fit { margin-top: 10px; }
.ask-panel { width: 100%; display: flex; flex-direction: column; align-items: center; }
.ask-panel[hidden] { display: none; }
.ask-hint { font-size: 14.5px; color: var(--ink); opacity: 0.86; margin: 10px 0 14px; line-height: 1.5; }
.ask-chips { grid-template-columns: 1fr 1fr; max-width: 640px; }
.ask-chips .ask-prompt { padding: 11px 14px; }
.ask-chips .ask-prompt-txt small { font-size: 14px; color: var(--ink); opacity: 0.82; }
.ask-prompt-txt small { font-size: 14px; color: var(--ink); opacity: 0.82; }
.hero-trust { width: 100%; margin: 20px 0 6px; }
.hero-available { width: 100%; margin-top: 22px; text-align: left; }
.hero-available-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.hero-available-h h2 { font-size: 20px; font-weight: 800; color: var(--ink); margin: 0; }
.hero-available-h a { color: var(--accent); font-weight: 700; text-decoration: none; font-size: 15.5px; }
.hero-available-h a:hover { text-decoration: underline; }
.hero-available .available-grid { grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); }
.hero-available-note { color: var(--muted); font-size: 16px; line-height: 1.6; }
.ask-started .ask-hint, .ask-started .ask-machine { display: none; }
@media (max-width: 1100px) { .hero-art { display: none; } }
@media (max-width: 640px) {
  .hero-ask { min-height: 0; }
  .ask-hint { font-size: 14px; margin: 8px 0 10px; }
  .fit-row { grid-template-columns: 1fr; }
  .hero-available .available-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero-available .available-grid > .card:nth-child(n+3) { display: none; }   /* two on a phone; Browse all for the rest */
  .hero-available .card { padding: 12px; }
  .trust-strip { gap: 4px 14px; }
  .trust-item { font-size: 13.5px; }
  .trust-item b { font-size: 15.5px; }
}
@media (max-width: 400px) { .hero-available .available-grid { grid-template-columns: 1fr; } .hero-available .available-grid > .card:nth-child(n+2) { display: none; } }

/* ── Layout QA fixes (20 Oct 2026) ────────────────────────────────────────────────
   Cards line up in every row: the card is a flex column and its footer (divider +
   Enquire) is pinned to the bottom, so a pattern that wraps to two lines no longer
   pushes one card's button below its neighbour's. Long brand · pattern is clamped to
   two lines (full name in the tyre page). Freshness badge: compact, one line. */
.card { display: flex; flex-direction: column; height: 100%; }
.available-grid, .listings-grid { align-items: stretch; }
/* A grid card may shrink below its longest one-line text (which then ends in …) —
   without this the nowrap detail lines push a two-up phone row off the screen. */
.available-grid > .card, .listings-grid > .card { min-width: 0; }
/* Enquire opens the form inside the card, and a ~200px card squeezed it ("Your name"
   ~28px wide, placeholders cut off). The open card takes two columns (tablet/desktop)
   or the whole row up to 900px, where the grid may be only one or two columns. */
.available-grid > .card.has-pick, .listings-grid > .card.has-pick { grid-column: span 2; }
@media (max-width: 900px) { .available-grid > .card.has-pick, .listings-grid > .card.has-pick { grid-column: 1 / -1; } }
.card-top { align-items: flex-start; }
/* Three fixed lines (Thomas, 20 Oct 2026): size, then brand, then pattern — one line
   each, never wrapping, so every card lines up. Full name is on the tyre page. */
.card-size, .card-brand, .card-pattern { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.35; }
.card-pattern { font-size: 15px; color: var(--muted); font-weight: 400; }
.card-head { gap: 2px; }
.card-facts, .card-fits { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.4; }
.card-facts { margin: 8px 0 2px; }
.card-fits { margin: 0 0 12px; }
.card-meta { margin-bottom: 12px; align-items: center; }
.card-bottom { margin-top: auto; }
.card-badges { gap: 5px; }
.badge-verified, .badge-fresh { white-space: nowrap; font-size: 12px; padding: 3px 8px; }
.enquire { min-height: 40px; display: inline-flex; align-items: center; }

/* Buttons: never break mid-label badly; balanced wrap when a label is long. */
.btn-primary, .btn-outline { text-wrap: balance; text-align: center; gap: 12px; }
.btn-primary .btn-arrow, .btn-outline .btn-arrow { margin-left: 0; }

/* Text: no single orphaned words on short helper lines and headings. */
h1, h2, h3, .ask-lead, .ask-hint, .ask-machine > summary, .ld-page-hero p, .page-hero p { text-wrap: balance; }
p { text-wrap: pretty; }
.ask-sizes { text-wrap: balance; }

/* Header between phone and desktop: links stay on one line. */
.main-nav a { white-space: nowrap; }
@media (max-width: 1100px) { .main-nav { gap: 22px; } }
/* 901–1040px: links + the header button ran ~60px past the edge; tighter spacing fits them. */
@media (min-width: 901px) and (max-width: 1040px) { .header-inner { gap: 20px; } .main-nav { gap: 14px; } .header-inner .btn-primary { padding-left: 16px; padding-right: 16px; } }
@media (max-width: 900px) { .main-nav { gap: 16px; } .main-nav a { font-size: 14.5px; } }

/* How it works: three columns on wide screens instead of half the page. */
@media (min-width: 960px) {
  .steps-grid { grid-template-columns: repeat(3, 1fr); max-width: none; gap: 28px; }
  .step { padding: 0; }
}

/* /tyres hub and similar link lists: real tap targets. */
.hub-list { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.section-h:has(+ .hub-list) { margin-bottom: -12px; } /* the column gap (24px) less 12px */
.hub-list li { margin: 0; }
.hub-list a { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); text-decoration: none; }
.hub-list a:hover { border-color: var(--accent); }
.hub-list a { gap: 8px; color: var(--ink); font-weight: 600; }
.hub-list a small { font-size: 12.5px; font-weight: 500; color: var(--muted); }

/* Phones: big CTAs go full width (one clean line or a balanced two). */
@media (max-width: 640px) {
  .ld-panel .btn-primary, .cta-row .btn-primary, .cta-row .btn-outline, .tf-fit .btn-primary, .tf-fit .btn-outline, .tf-notify .btn-primary { width: 100%; justify-content: center; }
  .btn-primary, .btn-outline { letter-spacing: 1.2px; }
  .ld-more a { display: inline-block; padding: 8px 0; }
}

/* ── The AI box is the hero (Thomas, 20 Oct 2026) ─────────────────────────────
   Before a conversation starts the box is the biggest, brightest thing on the
   page: larger, an accent border with a soft glow, roomier text and send button,
   and space around it so the eye lands there first. Once the chat starts the
   existing docked .ask-started styles take over unchanged. */
.hero-ask:not(.ask-started) .ask-box {
  max-width: 820px;
  border: 1.5px solid var(--accent-line);
  border-radius: 22px;
  padding: 14px 14px 14px 22px;
  box-shadow: 0 0 0 6px var(--accent-wash), 0 18px 50px rgba(0,0,0,0.35);
}
.hero-ask:not(.ask-started) .ask-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 7px var(--accent-wash-strong), 0 18px 50px rgba(0,0,0,0.35); }
.hero-ask:not(.ask-started) .ask-input { font-size: 19px; line-height: 1.45; min-height: 58px; padding: 12px 0; }
.hero-ask:not(.ask-started) .ask-send { width: 54px; height: 54px; }
.hero-ask:not(.ask-started) .ask-send svg { width: 24px; height: 24px; }
.hero-ask:not(.ask-started) .ask-title { margin-bottom: 26px; }
.hero-ask:not(.ask-started) .ask-lead { margin-bottom: 26px; }
.hero-ask:not(.ask-started) .ask-hint { margin-top: 14px; }
.hero-ask:not(.ask-started) .hero-available { margin-top: 44px; }
@media (max-width: 640px) {
  .hero-ask:not(.ask-started) .ask-box { padding: 12px 12px 12px 18px; border-radius: 20px; }
  .hero-ask:not(.ask-started) .ask-input { font-size: 18px; min-height: 54px; }
  .hero-ask:not(.ask-started) .ask-send { width: 50px; height: 50px; }
  .hero-ask:not(.ask-started) .ask-lead { margin-bottom: 20px; }
  .hero-ask:not(.ask-started) .hero-available { margin-top: 36px; }
}

/* Layout sweep (21 Oct 2026). Tap targets: small text links that stand alone get a
   ≥40px touch area without moving anything (padding offset by negative margin). */
.ld-breadcrumb a, #home-catalogue-link, .ld-spec-row dd a, .consent-reopen { display: inline-block; padding: 10px 0; margin: -10px 0; }
/* A tyre size never breaks across lines ("35/65-" … "33"). */
.page-hero .mono, .catalogue-note .mono, .hub-list .mono, .card-size { white-space: nowrap; }

/* ── Touch targets (31 Oct 2026 mobile audit) ─────────────────────────────────────
   On touchscreens, small controls get a ~40px+ hit area. Text links and the round ×
   keep their look: an invisible ::after extends what a thumb can hit. */
@media (pointer: coarse) {
  .ask-chat-reset { min-height: 36px; position: relative; }
  .ask-chat-reset::after { content: ""; position: absolute; inset: -4px -2px; }
  .ask-listing { min-height: 40px; display: inline-flex; align-items: center; }
  .search-clear::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; }
  .ask-pick-link, .ask-live-send { position: relative; }
  .ask-pick-link::after, .ask-live-send::after { content: ""; position: absolute; inset: -12px -4px; }
}

/* ── Narrow cards: smaller size + compact pill, still side by side (4 Nov 2026) ───
   On a phone the homepage shows two cards a row (~150–200px each). The size (SF Mono
   on iPhone) and the OTR / MINING pill didn't fit side by side at full size, so
   "18.00R25" was cut to "18.00R…". When a card's inside width is 200px or less the size
   drops to 17px and the pill gets compact, so a size of up to 9 characters (18.00R25,
   395/85R20) fits beside it. The card keeps its height (Enquire stays where it was) and
   sizes line up across a row. Wider cards (catalogue, tablet, desktop) are unchanged. */
.available-grid > .card, .listings-grid > .card { container-type: inline-size; }
@container (max-width: 199px) {
  .card-top { gap: 6px; }
  .card .card-size { font-size: 17px; }
  .card-cat { font-size: 11px; padding: 2px 6px; letter-spacing: 0.04em; }
}
