/* =========================================================================
   Template 23 (Meridian) — DealerGate dealer website
   Built on Template 19's stylesheet (same classes); theme tokens and extras below.
   ========================================================================= */

:root {
  --ink: #0C0C0E;                  /* near-black: top bar, footer, dark bands and buttons */
  --ink-2: #18181B;
  --ink-3: #242428;
  --ink-hover: #1F1F23;
  --ground: #F3F3F0;               /* soft paper grey for bands and fills; the page itself is white */
  --surface: #FFFFFF;
  --raise: #F3F3F0;
  --line: #E3E3DF;
  --line-2: #EDEDEA;
  --field: #D2D2CD;
  --text: #0C0C0E;
  --text-2: #3A3A40;
  --muted: #5D5D65;
  --on-ink: #D7D7DB;
  --on-ink-2: #A0A0A8;
  --ph: #ECECE8;
  --sil: #9A9AA2;
  --plate: #F7D117;
  --plate-gb: #003399;
  --ok: #166534;
  --ok-bg: #DCFCE7;
  --err: #991B1B;
  --err-bg: #FEE2E2;
  --accent: #1F4FFF;               /* overridden from SITE_ACCENT in base.html */
  --accent-tint: color-mix(in srgb, var(--accent) 9%, #FFFFFF);
  --accent-tint-2: color-mix(in srgb, var(--accent) 20%, #FFFFFF);
  --accent-text: color-mix(in srgb, var(--accent) 82%, #000000);
  /* names older shared pages (legal, errors) expect */
  --primary: var(--accent);
  --bg-light: var(--ground);
  --font: 'Outfit', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-display: 'Audiowide', 'Outfit', sans-serif;   /* rounded techno caps, like the AUTO GLOBE wordmark */
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 12px 32px -12px rgba(12, 12, 14, 0.18);
  /* the logo's globe bands, small: section labels */
  --stripes: repeating-linear-gradient(180deg, var(--ink) 0 2px, transparent 2px 4px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  font-variant-numeric: lining-nums;
}
img { max-width: 100%; display: block; }
a { color: var(--text); }
a:hover { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.15; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.container { max-width: 1280px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 32px); }
.display { font-weight: 700; letter-spacing: -0.02em; margin: 0; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
.icon { width: 18px; height: 18px; flex: none; }
.icon-lg { width: 24px; height: 24px; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 12px; border: 1.5px solid transparent;
  font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; line-height: 1.1;
  text-align: center;
}
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 14px; border-radius: 10px; white-space: nowrap; }
.btn-lg { min-height: 54px; padding: 0 24px; font-size: 16px; font-weight: 800; }
.btn-block { width: 100%; }
.btn-accent { background: var(--accent); color: #FFFFFF; }
.btn-accent:hover { color: #FFFFFF; filter: brightness(0.92); }
.btn-ink { background: var(--ink); color: #FFFFFF; }
.btn-ink:hover { color: #FFFFFF; background: var(--ink-hover); }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #FFFFFF; }
.btn-soft { background: var(--ground); color: var(--ink); border-color: var(--line); }
.btn-soft:hover { background: var(--line-2); }
.btn-pill { border-radius: 999px; }
.link-strong { font-weight: 700; }

/* ---------- Plate (UK reg) ---------- */
.plate {
  display: inline-flex; align-items: stretch; height: 48px; border: 2px solid var(--text);
  border-radius: 8px; overflow: hidden; background: var(--plate);
}
.plate-gb {
  display: inline-flex; align-items: center; justify-content: center; width: 30px;
  background: var(--plate-gb); color: #FFFFFF; font-size: 11px; font-weight: 800;
}
.plate input, .plate span.plate-text {
  width: 160px; border: 0; background: var(--plate); padding: 0 12px;
  font-size: 20px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink);
  display: inline-flex; align-items: center;
}
.plate input::placeholder { color: rgba(16, 32, 27, 0.55); }
.plate-sm { height: 40px; }
.plate-sm .plate-gb { width: 26px; font-size: 10px; }
.plate-sm span.plate-text { width: auto; font-size: 18px; }

/* ---------- Form fields ---------- */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.field select, .field input, .field textarea {
  min-height: 48px; padding: 0 12px; border: 1px solid var(--field); border-radius: var(--radius-sm);
  font-size: 15px; background: var(--surface); color: var(--text); width: 100%;
}
.field textarea { padding: 12px; min-height: 120px; resize: vertical; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Flash ---------- */
.flashes { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; }
.flash { padding: 14px 16px; border-radius: 12px; font-weight: 600; }
.flash-success { background: var(--ok-bg); color: var(--ok); }
.flash-error { background: var(--err-bg); color: var(--err); }

/* ---------- Utility bar + header ---------- */
.utility { background: var(--ink); color: #E9EDEB; font-size: 13px; }
.utility .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-block: 9px; }
.utility-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; }
.utility a, .utility span { color: #E9EDEB; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.utility a:hover { color: #FFFFFF; text-decoration: underline; }
.utility .icon { width: 16px; height: 16px; }

.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; padding-block: 12px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; min-height: 44px; }
.brand img { max-height: 52px; width: auto; max-width: 210px; object-fit: contain; }
.brand-name { font-size: 20px; font-weight: 800; white-space: nowrap; }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 20px; font-size: 15px; font-weight: 600; }
.main-nav a { text-decoration: none; padding: 10px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.saved-link { position: relative; }
.saved-count {
  display: none; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--accent); color: #FFFFFF; font-size: 12px; font-weight: 800; align-items: center; justify-content: center;
}
.saved-count.has { display: inline-flex; }
.nav-toggle { display: none; }

@media (max-width: 1279px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px clamp(16px, 4vw, 32px) 16px;
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--line-2); }
  .header-actions .hide-sm { display: none; }
}

/* ---------- Sections ---------- */
.section { padding-block: 64px; }
.section-tight { padding-block: 40px; }
.section-white { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.section-head h2 { font-size: clamp(28px, 3vw, 38px); }

/* ---------- Hero ---------- */
.hero { display: flex; flex-wrap: wrap; gap: 40px; align-items: stretch; padding-block: 48px 56px; }
.hero-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero-copy h1 { font-size: clamp(38px, 5vw, 64px); line-height: 1.02; }
.hero-copy p.lead { margin: 0; font-size: 18px; line-height: 1.55; color: var(--text-2); max-width: 560px; }
.search-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px;
  display: flex; flex-direction: column; gap: 18px; box-shadow: var(--shadow);
}
.type-tabs { display: flex; flex-wrap: wrap; gap: 8px; border: 0; margin: 0; padding: 0; }
.type-tabs input { position: absolute; opacity: 0; pointer-events: none; }
.type-tabs label {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid var(--field); background: var(--surface); color: var(--text); font-size: 14px; font-weight: 700; cursor: pointer;
}
.type-tabs label small { font-size: 12px; font-weight: 600; opacity: 0.8; }
.type-tabs input:checked + label { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.type-tabs input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }
.search-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.search-actions .btn { flex: 1 1 260px; }
.reg-finder { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.reg-finder label { font-size: 14px; font-weight: 600; color: var(--text-2); }

.hero-media {
  /* 4:3 like the photos; beside the search it stretches to the search's height instead */
  flex: 1 1 420px; min-width: 0; aspect-ratio: 4 / 3; margin: 0; position: relative; border-radius: 22px; overflow: hidden;
  background: var(--ph); display: flex; align-items: center; justify-content: center; color: var(--sil);
}
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media .hero-slide { opacity: 0; transition: opacity 0.8s ease; }
.hero-media .hero-slide.is-active { opacity: 1; }
.hero-media .silhouette { width: 62%; }
.hero-media-caption {
  position: absolute; left: 18px; right: 18px; bottom: 18px; display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; justify-content: space-between;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px;
  background: #FFFFFF; color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none;
}
.hero-tag:hover { color: var(--ink); background: var(--ground); }

/* ---------- Category tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.tile {
  display: flex; flex-direction: column; gap: 18px; padding: 26px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 18px; color: var(--text);
}
.tile-art { height: 120px; display: flex; align-items: center; justify-content: center; background: var(--ph); border-radius: 12px; color: var(--sil); text-decoration: none; }
.tile-art svg { width: 58%; }
.tile-art.tile-photo { height: 160px; padding: 14px 18px; }
.tile-art img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; }
.tile-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.tile-title h3 { margin: 0; font-size: 24px; font-weight: 800; }
.tile-title a { text-decoration: none; }
.tile-title span { font-size: 14px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.tile-links { display: flex; flex-wrap: wrap; gap: 8px; }
.tile-links a { padding: 6px 11px; border: 1px solid var(--field); border-radius: 999px; background: var(--ground); font-size: 13px; font-weight: 600; text-decoration: none; }
.tile-links a:hover { background: var(--line-2); border-color: var(--ink); }
.tile-dark { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.tile-dark a { color: #FFFFFF; }
.tile-dark .tile-art { background: var(--ink-2); color: var(--on-ink-2); }
.tile-dark .tile-title span { color: var(--on-ink); }
.tile-dark .tile-links a { background: var(--ink-3); border-color: rgba(255, 255, 255, 0.35); }
.tile-dark .tile-links a:hover { background: #000000; color: #FFFFFF; border-color: #FFFFFF; }

/* ---------- Vehicle cards ---------- */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
/* home "Just arrived": one sliding row per vehicle type, arrows either side */
.arrivals { display: flex; flex-direction: column; gap: 56px; }
.rail { position: relative; }
.rail-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 20px) / 4); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
  padding-bottom: 28px; margin-bottom: -28px; /* room for the card hover shadow */
}
.rail-track::-webkit-scrollbar { display: none; }
.rail-track > * { scroll-snap-align: start; }
.rail-btn {
  position: absolute; top: 50%; z-index: 2; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); box-shadow: var(--shadow);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: opacity .2s, background .2s, color .2s;
}
.rail-btn:hover:not(:disabled) { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }
.rail-btn:disabled { opacity: 0.35; cursor: default; }
.rail-prev { left: -24px; }
.rail-next { right: -24px; }
@media (max-width: 1099px) { .rail-track { grid-auto-columns: calc((100% - 2 * 20px) / 3); } }
@media (max-width: 760px) { .rail-track { grid-auto-columns: calc((100% - 20px) / 2); } }
@media (max-width: 991px) {
  .rail-btn { width: 40px; height: 40px; }
  .rail-prev { left: 6px; }
  .rail-next { right: 6px; }
}
@media (max-width: 520px) { .rail-track { grid-auto-columns: 84%; gap: 14px; } }
.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card:hover { box-shadow: var(--shadow); }
.card-media { position: relative; aspect-ratio: 4 / 3; background: var(--ph); display: flex; align-items: center; justify-content: center; color: var(--sil); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media .silhouette { width: 56%; }
.badge-type { position: absolute; top: 12px; left: 12px; padding: 6px 10px; border-radius: 999px; background: var(--ink); color: #FFFFFF; font-size: 12px; font-weight: 700; }
/* attention grabber from the advert, in place of the type badge; wraps clear of the heart */
.badge-grabber {
  position: absolute; top: 12px; left: 12px; max-width: calc(100% - 72px); padding: 6px 10px; border-radius: 10px;
  background: var(--ink); color: #FFFFFF; font-size: 12px; font-weight: 700; line-height: 1.3; letter-spacing: 0.02em;
}
.save-btn {
  position: absolute; top: 8px; right: 8px; z-index: 2; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 999px; background: #FFFFFF; color: var(--ink); cursor: pointer;
}
.save-btn[aria-pressed="true"] { color: var(--accent); }
.save-btn[aria-pressed="true"] svg path { fill: currentColor; }
.photo-count {
  position: absolute; bottom: 12px; right: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px;
  border-radius: 6px; background: rgba(12, 12, 14, 0.78); color: #FFFFFF; font-size: 12px; font-weight: 600;
}
.photo-count .icon { width: 14px; height: 14px; }
.card-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.card-meta { font-size: 13px; font-weight: 600; color: var(--muted); }
.card-title { margin: 0; font-size: 19px; line-height: 1.25; font-weight: 800; }
.card-title a { text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }   /* whole card clickable */
.card-sub {
  margin: 0; font-size: 14px; line-height: 1.45; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 5px 9px; border-radius: 6px; background: var(--accent-tint); color: var(--text); font-size: 12px; font-weight: 700; }
.card-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-2); display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.price { font-size: 24px; font-weight: 800; font-variant-numeric: lining-nums tabular-nums; line-height: 1.1; }
.vat-note { font-size: 13px; font-weight: 700; color: var(--muted); }
.card-cta { position: relative; z-index: 2; }

/* ---------- Spotlight (campers) ---------- */
.spotlight { background: var(--ink); color: #FFFFFF; }
.spotlight .container { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-block: 72px; }
.spotlight-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.spotlight-copy .eyebrow { color: var(--on-ink); }
.spotlight-copy h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.05; }
.spotlight-copy p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--on-ink); max-width: 540px; }
.layout-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.layout-links a {
  display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 16px; border-radius: 12px;
  background: var(--ink-2); color: #FFFFFF; text-decoration: none; font-size: 15px; font-weight: 700;
}
.layout-links a:hover { background: var(--ink-3); color: #FFFFFF; }
.layout-links small { margin-left: auto; font-weight: 600; color: var(--on-ink); }
.spotlight-media {
  flex: 1 1 380px; min-height: 380px; margin: 0; position: relative; border-radius: 20px; overflow: hidden;
  background: var(--ink-2); display: flex; align-items: center; justify-content: center; color: var(--on-ink-2);
}
.spotlight-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.spotlight-media .silhouette { width: 70%; }

/* ---------- Services / sell / visit ---------- */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.service {
  display: flex; flex-direction: column; gap: 12px; padding: 24px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text);
}
.service:hover { box-shadow: var(--shadow); color: var(--text); }
.service-icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; background: var(--accent-tint); color: var(--accent); }
.service strong { font-size: 18px; }
.service span:last-child { font-size: 14px; line-height: 1.5; color: var(--muted); }

.sell-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 32px;
  border-radius: 20px; background: var(--accent-tint); border: 1px solid var(--accent-tint-2);
}
.sell-strip-copy { flex: 1 1 360px; display: flex; flex-direction: column; gap: 8px; }
.sell-strip-copy h2 { font-size: clamp(26px, 3vw, 34px); }
.sell-strip-copy p { margin: 0; font-size: 16px; color: var(--text-2); }
.sell-strip-form { flex: 1 1 520px; display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.sell-strip-form .field input { width: 150px; }
.sell-strip-form .btn { flex: 1 1 180px; }

.visit { display: flex; flex-wrap: wrap; gap: 40px; }
.map { flex: 1 1 480px; min-height: 360px; border-radius: 18px; overflow: hidden; background: var(--ph); display: flex; align-items: center; justify-content: center; color: var(--muted); }
.map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; }
.visit-info { flex: 1 1 380px; display: flex; flex-direction: column; gap: 20px; }
.visit-info h2 { font-size: clamp(28px, 3vw, 38px); }
.address { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text-2); font-style: normal; }
.hours { width: 100%; border-collapse: collapse; font-size: 15px; }
.hours th { text-align: left; padding: 10px 0; font-weight: 600; }
.hours td { text-align: right; padding: 10px 0; color: var(--text-2); font-variant-numeric: lining-nums tabular-nums; }
.hours tr { border-bottom: 1px solid var(--line-2); }
.hours tr.today th, .hours tr.today td { color: var(--text); font-weight: 800; }

/* ---------- Floating + cookie ---------- */
.wa-float {
  position: fixed; left: 24px; bottom: 24px; z-index: 50; width: 60px; height: 60px; border-radius: 999px;
  background: #25D366; color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.45);
}
.wa-float:hover, .wa-float:focus-visible { color: #FFFFFF; background: #1EBE5A; }
.wa-float-logo { width: 32px; height: 32px; }
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 720px; margin: 0 auto;
  background: var(--ink); color: #FFFFFF; border-radius: 16px; padding: 18px 20px; box-shadow: var(--shadow);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; font-size: 14px; color: var(--on-ink); flex: 1 1 320px; }
.cookie-banner a { color: #FFFFFF; }
.cookie-banner .btn-soft { background: var(--ink-2); color: #FFFFFF; }

/* ---------- Phone quick-action dock (Template 15 pattern) ---------- */
.mobile-dock { display: none; }
@media (max-width: 991px) {
  :root { --dock-h: 64px; }
  body { padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom, 0px)); }
  .mobile-dock {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; align-items: stretch;
    height: calc(var(--dock-h) + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--ink); border-top: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 -8px 24px -12px rgba(0, 0, 0, 0.35);
  }
  .dock-item {
    position: relative; flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    color: var(--on-ink); font-size: 11px; font-weight: 700; text-decoration: none; min-width: 0;
  }
  .dock-item .icon { width: 22px; height: 22px; }
  .dock-item:hover, .dock-item:focus-visible { color: #FFFFFF; }
  .dock-item[aria-current="page"] { color: #FFFFFF; }
  .dock-item[aria-current="page"]::before {
    content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: #FFFFFF;
  }
  .dock-item .saved-count { position: absolute; top: 7px; left: calc(50% + 6px); min-width: 18px; height: 18px; font-size: 11px; }
  .wa-float { display: none; }
  .cookie-banner { bottom: calc(var(--dock-h) + 12px + env(safe-area-inset-bottom, 0px)); }
  /* DealerGate chat launcher sits above the dock */
  #dg-launcher { bottom: calc(var(--dock-h) + 16px + env(safe-area-inset-bottom, 0px)) !important; }
  #dg-prompt { bottom: calc(var(--dock-h) + 28px + env(safe-area-inset-bottom, 0px)) !important; }
}

/* ---------- DealerGate chat on phones ----------
   The widget's own phone layout is a 550px box pinned near the bottom. When the keyboard opens the
   box ends up behind it and the phone scrolls the page to reach the text box, and its 14.5px text
   box makes iPhones zoom the page in. On phones the chat fills the visible screen instead; t19.js
   keeps it sized to the area above the keyboard (--dg-top/--dg-height) and locks the page behind. */
@media (max-width: 600px) {
  #dg-chat-root #dg-window {
    top: var(--dg-top, 0px); left: 0; right: 0; bottom: auto;
    width: 100%; height: var(--dg-height, 100%); max-height: none;
    transform-origin: bottom center;
    border: 0 !important; border-radius: 0 !important;   /* the minimal/modern skins round it with stronger selectors */
  }
  #dg-chat-root #dg-header { padding-top: calc(12px + env(safe-area-inset-top, 0px)); }
  #dg-chat-root #dg-input { font-size: 16px; }   /* under 16px, iPhones zoom the page in on focus */
  #dg-chat-root #dg-powered { padding-bottom: calc(5px + env(safe-area-inset-bottom, 0px)); }
  html.dg-chat-open #dg-launcher, html.dg-chat-open #dg-prompt { display: none !important; }
}

/* ---------- Showroom ---------- */
.page-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.page-head .container { padding-top: 28px; display: flex; flex-direction: column; gap: 16px; }
.breadcrumb { font-size: 13px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; }
.page-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; }
.page-title h1 { font-size: clamp(30px, 4vw, 46px); }
.page-title span { font-size: 16px; font-weight: 600; color: var(--muted); }
.cat-tabs { display: flex; gap: 4px 28px; overflow-x: auto; scrollbar-width: none; }
.cat-tabs a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 52px; white-space: nowrap; text-decoration: none;
  border-bottom: 3px solid transparent; color: var(--muted); font-size: 16px; font-weight: 700;
}
.cat-tabs a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }
.cat-tabs a:hover { color: var(--text); }
.cat-tabs small { padding: 2px 8px; border-radius: 999px; background: var(--ground); color: var(--text-2); font-size: 12px; font-weight: 700; }

.stock-layout { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; padding-block: 28px 56px; }
.filters { flex: 1 1 280px; max-width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.filters > summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 56px; padding: 0 20px; font-size: 18px; font-weight: 800; cursor: pointer;
}
.filters > summary::-webkit-details-marker { display: none; }
.filters-body { padding: 0 20px 20px; display: flex; flex-direction: column; }
.filters-basic { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding-bottom: 16px; border-bottom: 1px solid var(--line-2); }
.filters-basic .wide { grid-column: 1 / -1; }
.filters-basic .field select { min-height: 44px; }
.filters fieldset { margin: 0; padding: 0 0 14px; border: 0; border-bottom: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 2px; }
.filters legend { padding: 16px 0 6px; font-size: 15px; font-weight: 800; }
.check { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); flex: none; }
.check small { margin-left: auto; color: var(--muted); font-size: 13px; }
.filters-note { margin: 14px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.filters-actions { display: flex; gap: 10px; padding-top: 16px; }
.results { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.results-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.results-bar .count { font-size: 15px; font-weight: 600; color: var(--text-2); }
.results-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sort-field { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.sort-field select { min-height: 44px; padding: 0 10px; border: 1px solid var(--field); border-radius: var(--radius-sm); background: var(--surface); }
.vat-switch { display: inline-flex; border: 1px solid var(--field); border-radius: 999px; padding: 3px; background: var(--surface); }
.vat-switch a { min-height: 38px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; font-size: 13px; font-weight: 700; text-decoration: none; }
.vat-switch a[aria-current="true"] { background: var(--ink); color: #FFFFFF; }
.active-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.active-chips a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border: 1.5px solid var(--ink);
  border-radius: 999px; background: var(--surface); font-size: 14px; font-weight: 700; text-decoration: none;
}
.active-chips a:hover { background: var(--ink); color: #FFFFFF; }
.empty { padding: 48px 24px; border: 1.5px dashed var(--field); border-radius: var(--radius); text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.empty strong { font-size: 18px; }
.pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding-top: 12px; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 14px;
  border-radius: 10px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-weight: 700;
}
.pagination a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.pagination span { border: 0; background: transparent; }

@media (min-width: 981px) {
  .filters { flex: 0 0 300px; position: sticky; top: 96px; max-height: calc(100vh - 112px); overflow-y: auto; }
  .filters > summary .summary-toggle { display: none; }
}

/* ---------- Detail ---------- */
/* Phones: gallery → price & actions → details. Desktop: sticky buy panel beside both. */
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; padding-block: 16px 56px; }
.detail-gallery, .detail-main { min-width: 0; display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 1000px) {
  .detail-layout { grid-template-columns: minmax(0, 1fr) 360px; grid-template-areas: "gallery buy" "main buy"; column-gap: 28px; }
  .detail-gallery { grid-area: gallery; }
  .detail-main { grid-area: main; }
  .buy-panel { grid-area: buy; position: sticky; top: 96px; }
}
.gallery { display: flex; flex-direction: column; gap: 10px; }
.gallery-main { position: relative; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; background: var(--ph); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-open { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery-expand {
  position: absolute; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border: 0; border-radius: 10px; background: rgba(255, 255, 255, 0.94); color: var(--text); font-size: 14px; font-weight: 700; cursor: pointer;
}
.fancybox__container { --fancybox-accent-color: var(--accent); }
.gallery-counter { position: absolute; top: 16px; left: 16px; padding: 6px 12px; border-radius: 999px; background: var(--ink); color: #FFFFFF; font-size: 13px; font-weight: 700; }
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 999px; border: 0;
  background: rgba(255, 255, 255, 0.92); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }
.gallery-actions { position: absolute; left: 16px; bottom: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.gallery-actions .btn { background: #FFFFFF; color: var(--ink); }
.thumbs { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.thumbs button { flex: 0 0 auto; width: 104px; aspect-ratio: 4 / 3; padding: 0; border-radius: 10px; border: 2.5px solid transparent; overflow: hidden; background: var(--ph); cursor: pointer; }
.thumbs button[aria-current="true"] { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: var(--ink); }
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000000; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.panel h2 { margin: 0; font-size: 20px; font-weight: 800; }
.panel-dark { background: var(--ink); border-color: var(--ink); color: #FFFFFF; padding: 28px; }
.panel-dark h2 { font-size: 22px; }
.panel-title { display: flex; align-items: center; gap: 12px; }
.panel-title-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--ground); }
.panel-dark .panel-title-icon { background: var(--ink-2); }
.facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px 20px; }
.facts div { display: flex; flex-direction: column; gap: 4px; }
.facts dt { font-size: 13px; font-weight: 600; color: var(--muted); }
.facts dd { margin: 0; font-size: 17px; font-weight: 700; }
.spec-tiles { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.spec-tiles div { padding: 16px; border-radius: 12px; background: var(--ground); display: flex; flex-direction: column; gap: 6px; }
.spec-tiles dt { font-size: 13px; font-weight: 600; color: var(--muted); }
.spec-tiles dd { margin: 0; font-size: 18px; font-weight: 800; }
.panel-dark .spec-tiles div { background: var(--ink-2); }
.panel-dark .spec-tiles dt { color: var(--on-ink); }
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-list span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; background: var(--ground); font-size: 14px; font-weight: 600; }
.panel-dark .pill-list span { background: var(--ink-3); }
.grabber { margin: 0; font-size: 15px; font-weight: 800; letter-spacing: 0.04em; }
.description { margin: 0; font-size: 16px; line-height: 1.65; color: var(--text-2); white-space: pre-line; overflow-wrap: anywhere; }
.description.clamped { max-height: 13em; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
.text-btn { align-self: flex-start; min-height: 44px; padding: 0; border: 0; background: transparent; font-size: 15px; font-weight: 700; text-decoration: underline; cursor: pointer; }
/* Features: one collapsible group each (a car can list 140 features, some 80 characters long) */
.feature-groups { border-top: 1px solid var(--line); }
.feature-group { border-bottom: 1px solid var(--line); }
.feature-group summary { display: flex; align-items: center; gap: 10px; padding: 14px 2px; cursor: pointer; list-style: none; font-size: 15px; font-weight: 800; }
.feature-group summary::-webkit-details-marker { display: none; }
.feature-group summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.feature-group-name { flex: 1; min-width: 0; }
.feature-count { font-size: 12px; font-weight: 700; color: var(--muted); background: var(--line-2); border-radius: 999px; padding: 2px 9px; }
.feature-group summary .icon { color: var(--muted); transition: transform .2s; }
.feature-group[open] summary .icon { transform: rotate(180deg); }
.feature-group ul { margin: 0; padding: 0 2px 16px; list-style: none; columns: 2 260px; column-gap: 28px; font-size: 15px; color: var(--text-2); }
.feature-group li { display: flex; align-items: flex-start; gap: 8px; padding: 3px 0; break-inside: avoid; overflow-wrap: anywhere; }
.feature-group li svg { margin-top: 3px; }

.buy-panel {
  min-width: 0; display: flex; flex-direction: column; gap: 16px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: var(--shadow);
}
.buy-panel h1 { margin: 0; font-size: 30px; line-height: 1.1; font-weight: 800; }
.buy-panel .derivative { margin: 0; font-size: 15px; color: var(--muted); overflow-wrap: anywhere; }
.buy-price { display: flex; flex-direction: column; gap: 4px; padding: 16px 0; border-block: 1px solid var(--line-2); }
.buy-price strong { font-size: 38px; font-weight: 800; font-variant-numeric: lining-nums tabular-nums; line-height: 1.05; }
.buy-price span { font-size: 14px; color: var(--muted); }
.buy-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.px-link { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 12px; background: var(--accent-tint); text-decoration: none; }
.px-link span { display: flex; flex-direction: column; gap: 2px; }
.px-link small { font-size: 13px; color: var(--text-2); }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 6px 10px; border-radius: 999px; background: var(--accent-tint); font-size: 12px; font-weight: 700; }
.tag-ink { background: var(--ink); color: #FFFFFF; }

/* ---------- Content pages ---------- */
.page-hero { background: var(--ink); color: #FFFFFF; }
.page-hero .container { padding-block: 56px; display: flex; flex-direction: column; gap: 14px; }
.page-hero h1 { font-size: clamp(32px, 4.5vw, 54px); }
.page-hero p { margin: 0; max-width: 640px; font-size: 18px; line-height: 1.55; color: var(--on-ink); }
.page-hero .eyebrow { color: var(--on-ink); }
.two-col { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.two-col > * { flex: 1 1 380px; min-width: 0; }
.prose { font-size: 16px; line-height: 1.7; color: var(--text-2); }
.prose h2 { color: var(--text); font-size: 24px; margin: 1.6em 0 0.5em; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 1em; }
.prose ul { padding-left: 1.2em; }
.info-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.info-card h3 { margin: 0; font-size: 18px; }
.info-card p { margin: 0; font-size: 15px; color: var(--text-2); line-height: 1.55; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.form-card h2 { margin: 0; font-size: 22px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.form-grid .wide { grid-column: 1 / -1; }
.form-foot { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.success-box { background: var(--ok-bg); color: var(--ok); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.success-box h2 { margin: 0; }
.contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.contact-list a, .contact-list span { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; text-decoration: none; }

.silhouette { display: block; }

/* ---------- Dealer About page (templates/site/about.html) ---------- */
.about-hero { background: var(--ink); color: #FFFFFF; }
/* Brick-wall section: the page sets --brick to a tiling brick photo; text sits on a white card over it */
.brick-wall {
  background-color: #2B1D18;
  background-image: linear-gradient(rgba(14, 16, 15, 0.35), rgba(14, 16, 15, 0.35)), var(--brick);
  background-size: auto, 512px;
}
.brick-card { padding: 28px; border-radius: 18px; background: var(--surface); box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.6); }
.brick-card > :last-child { margin-bottom: 0; }
.brick-wall figure figcaption { color: #FFFFFF; font-weight: 600; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8); }
@media (max-width: 991px) {
  .section.brick-wall { padding-block: 24px; background-size: auto, 384px; }
  .brick-card { padding: 20px; }
}
.about-hero-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 48px; padding-block: 48px; }
.about-hero-copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.about-hero-copy .eyebrow { color: var(--on-ink); }
.about-hero-copy h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1.02; }
.about-hero-copy p { margin: 0; font-size: 18px; line-height: 1.55; color: var(--on-ink); max-width: 520px; }
.about-hero-copy .about-tagline { font-size: 14px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #FFFFFF; }
.about-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.about-btn-light { background: #FFFFFF; color: var(--ink); }
.about-btn-light:hover { background: var(--ground); color: var(--ink); }
.about-hero-media { flex: 1.4 1 480px; min-width: 0; margin: 0; border-radius: 20px; overflow: hidden; background: var(--ink-2); }
.about-hero-media img { width: 100%; height: auto; aspect-ratio: 1360 / 523; object-fit: cover; }
.about-story { align-items: center; }
.about-photo, .about-wide { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.about-photo img, .about-wide img { width: 100%; height: auto; border-radius: 18px; object-fit: cover; }
.about-photo img { aspect-ratio: 16 / 9; }
.about-wide img { aspect-ratio: 16 / 9; max-height: 620px; object-position: center 60%; }
.about-photo figcaption, .about-wide figcaption { font-size: 14px; color: var(--muted); }
.about-promises .service { text-decoration: none; }

/* ---------- Book a test drive (popup on the vehicle page) ---------- */
.td-dialog {
  width: min(600px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: none;
  border-radius: 20px; background: var(--surface); color: var(--text); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.45);
}
.td-dialog::backdrop { background: rgba(12, 12, 14, 0.55); }
.td-dialog form { display: flex; flex-direction: column; gap: 16px; padding: 24px; }
body.td-open { overflow: hidden; }
.td-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.td-head h2 { margin: 0; font-size: 24px; }
.td-car { margin: 4px 0 0; color: var(--muted); font-size: 14px; font-weight: 600; }
.td-close { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: none;
  border: none; border-radius: 999px; background: var(--ground); color: var(--ink); cursor: pointer; }
.td-close:hover { background: var(--line-2); }
.td-steps { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: td; }
.td-steps li { flex: 1; padding-top: 8px; border-top: 4px solid var(--line); font-size: 13px; font-weight: 700; color: var(--muted); }
.td-steps li.on { border-color: var(--ink); color: var(--ink); }
.td-step { display: flex; flex-direction: column; gap: 12px; }
.td-step[hidden] { display: none; }
.td-label { margin: 0; font-size: 14px; font-weight: 800; }
.td-days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.td-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; min-height: 44px; }
.td-chip {
  padding: 10px 8px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text);
  font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; text-align: center;
}
.td-chip:hover { border-color: var(--ink); }
.td-chip[aria-checked="true"] { border-color: var(--ink); background: var(--ink); color: #FFFFFF; }
.td-day { display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 64px; flex: none; padding: 8px 10px; }
.td-day small { font-size: 12px; font-weight: 600; opacity: 0.85; }
.td-day strong { font-size: 20px; line-height: 1.1; }
.td-error { margin: 0; color: #B91C1C; font-size: 14px; font-weight: 700; }
.td-chosen { margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--ground); font-weight: 800; }
.td-check { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.td-check input { width: 20px; height: 20px; accent-color: var(--ink); }
.td-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.td-foot .muted { font-size: 13px; }
.td-small { margin: 0; font-size: 13px; }
@media (max-width: 600px) {
  /* a sheet from the bottom on phones */
  .td-dialog { width: 100%; max-width: 100%; max-height: 92dvh; margin: auto 0 0; border-radius: 20px 20px 0 0; }
  .td-dialog form { padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px)); }
  .td-foot .btn-lg { flex: 1; }
}

/* ---------- Customer reviews (added in the admin) ---------- */
.review-grid { columns: 3 320px; column-gap: 20px; }
.review-card {
  break-inside: avoid; margin: 0 0 20px; display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.review-photo { margin: 0; background: var(--ph); }
.review-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.review-body { display: flex; flex-direction: column; gap: 12px; padding: 22px; }
.review-stars { font-size: 20px; letter-spacing: 2px; line-height: 1; }
.review-stars .on { color: #E8A317; }
.review-stars .off { color: var(--line); }
.review-text { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text); }
.review-text p { margin: 0 0 0.8em; }
.review-text p:last-child { margin-bottom: 0; }
.review-meta { display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--muted); }
.review-meta strong { color: var(--text); font-size: 15px; }
.review-sub { font-size: 13px; }

/* =========================================================================
   Phone & tablet layout tweaks (under 992px — same range as the bottom dock).
   Kept at the end of the file so they override the base rules above.
   ========================================================================= */
@media (max-width: 991px) {
  /* the green top bar's call / WhatsApp / hours live in the dock and footer */
  .utility { display: none; }
  /* home hero: no top/bottom padding */
  .hero { padding-block: 0; }
  /* tighter section spacing */
  .section { padding-block: 12px; }
  .arrivals { gap: 32px; }
  /* stock pages: VAT switch + Sort share one row, a little smaller */
  .results-bar { gap: 8px; }
  .results-tools { width: 100%; flex-wrap: nowrap; justify-content: space-between; gap: 8px; }
  .vat-switch { flex: none; padding: 2px; }
  .vat-switch a { min-height: 36px; padding: 0 10px; font-size: 12px; }
  .sort-field { flex: 1 1 auto; min-width: 0; justify-content: flex-end; gap: 6px; font-size: 13px; }
  .sort-field select { min-width: 0; max-width: 100%; min-height: 40px; padding: 0 6px; font-size: 13px; }
}

/* reCAPTCHA v3: the badge sat on top of the chat button. Google allows hiding it
   when the forms carry its notice instead (templates/_recaptcha_note.html). */
.grecaptcha-badge { visibility: hidden; }

/* =========================================================================
   Meridian (Template 23): the parts Template 19 does not have.
   Black and white like a monochrome logo, one accent, and the striped globe as a motif.
   ========================================================================= */

body { background: var(--surface); }

/* ---------- Type: Audiowide for headings and prices ---------- */
.display, .section-head h2, .page-title h1, .page-hero h1, .about-hero-copy h1, .spotlight-copy h2,
.visit-info h2, .buy-panel h1, .form-card h2, .panel h2, .t23-hero h1, .t23-glance strong, .t23-lane strong,
.t23-trade h2, .t23-sell h2, .t23-visit-card h2, .t23-find-panel h3, .t23-makes strong,
.price, .buy-price strong, .brand-name {
  font-family: var(--font-display); letter-spacing: -0.01em;
}
.display, .section-head h2, .page-title h1, .page-hero h1, .t23-hero h1, .t23-trade h2, .t23-sell h2 { font-weight: 700; }
.section-head h2 { margin: 0; font-size: clamp(24px, 2.4vw, 32px); }
.page-title h1 { font-size: clamp(28px, 3.4vw, 42px); }
.page-hero h1 { font-size: clamp(30px, 4vw, 50px); line-height: 1.05; }
.buy-panel h1 { font-size: 26px; line-height: 1.15; }
.panel h2, .form-card h2 { font-size: 20px; font-weight: 700; }
.price { font-weight: 700; }
.eyebrow { color: var(--text); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 22px; height: 12px; flex: none; background: var(--stripes); border-radius: 2px; }
.t23-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }
.t23-more .icon { transition: transform .2s; }
.t23-more:hover .icon { transform: translateX(3px); }

/* ---------- The striped globe (echoes the logo: bands cut by meridians) ---------- */
.t23-globe {
  position: absolute; aspect-ratio: 1; border-radius: 50%; overflow: hidden; pointer-events: none;
  background: repeating-linear-gradient(180deg, var(--globe-ink) 0 var(--band), transparent var(--band) calc(var(--band) * 1.85));
  --globe-ink: var(--ink); --globe-cut: var(--surface); --band: 12px;
}
.t23-globe::before, .t23-globe::after { content: ""; position: absolute; top: -2%; bottom: -2%; border: 0 solid var(--globe-cut); }
.t23-globe::before { left: 30%; right: 30%; border-width: 0 5px; border-radius: 50%; }
.t23-globe::after { left: calc(50% - 2.5px); width: 5px; background: var(--globe-cut); }

/* ---------- Top bar + header ---------- */
.utility { background: var(--ink); }
.utility strong { color: #FFFFFF; font-weight: 700; }
.site-header { box-shadow: 0 1px 0 var(--line); border-bottom: 0; }
.site-header .container { padding-block: 10px; }
.brand img { max-height: 64px; max-width: 120px; }
.main-nav { gap: 2px 22px; font-size: 15px; }
.main-nav a { display: inline-flex; align-items: center; gap: 6px; }
.nav-count { padding: 1px 7px; border-radius: 999px; background: var(--ground); color: var(--text-2); font-size: 11px; font-weight: 800; line-height: 1.5; }
.main-nav a[aria-current="page"] .nav-count { background: var(--ink); color: #FFFFFF; }
.header-actions .saved-link { background: var(--surface); border: 1px solid var(--line); }
.header-actions .saved-link:hover { border-color: var(--ink); }

/* ---------- Home hero ---------- */
.t23-hero { position: relative; overflow: hidden; background: var(--ground); border-bottom: 1px solid var(--line); }
.t23-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 48px; align-items: center; padding-block: 56px 64px; }
.t23-hero-copy { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 18px; }
.t23-hero h1 { margin: 0; font-size: clamp(36px, 4.6vw, 62px); line-height: 1.02; }
.t23-hero-city { display: block; color: var(--muted); }
.t23-hero .lead { margin: 0; max-width: 520px; font-size: 18px; line-height: 1.55; color: var(--text-2); }
.t23-search {
  margin-top: 6px; display: flex; flex-direction: column; gap: 16px; padding: 22px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow);
}
.t23-search-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.t23-search .field select { min-height: 50px; }
.t23-search .reg-finder { padding-top: 14px; }

.t23-hero-side { position: relative; align-self: stretch; display: flex; align-items: center; min-height: 460px; }
.t23-globe-hero { width: 118%; right: -30%; top: 50%; transform: translateY(-50%); opacity: 0.09; --globe-cut: var(--ground); --band: 16px; }
.t23-lanes { position: relative; z-index: 1; width: 100%; display: grid; gap: 16px; }
.t23-lane {
  position: relative; display: grid; grid-template-columns: 46% minmax(0, 1fr); min-height: 200px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; color: var(--text); text-decoration: none;
  box-shadow: 0 18px 40px -28px rgba(12, 12, 14, 0.45); transition: transform .2s, box-shadow .2s;
}
.t23-lane:hover { color: var(--text); transform: translateY(-3px); box-shadow: 0 26px 48px -26px rgba(12, 12, 14, 0.5); }
.t23-lane:nth-child(2) { margin-left: 9%; }
.t23-lane:nth-child(3) { margin-left: 4%; }
.t23-lane-media { position: relative; background: var(--ph); display: flex; align-items: center; justify-content: center; color: var(--sil); }
.t23-lane-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.t23-lane-media .silhouette { width: 70%; }
.t23-lane-body { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; }
.t23-lane-kicker { font-size: 13px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.t23-lane strong { font-size: clamp(24px, 2.4vw, 32px); font-weight: 700; line-height: 1.05; }
.t23-lane-text { font-size: 14px; line-height: 1.45; color: var(--text-2); }
.t23-lane-facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.t23-lane-facts span { padding: 4px 9px; border-radius: 6px; background: var(--ground); font-size: 12px; font-weight: 700; }
.t23-lane-go { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--accent); }
.t23-lane:hover .t23-lane-go .icon { transform: translateX(3px); }
.t23-lane-go .icon { transition: transform .2s; }
.t23-lanes-3 .t23-lane { min-height: 150px; }
.t23-lanes-3 .t23-lane strong { font-size: 24px; }
.t23-lanes-3 .t23-lane-text { display: none; }

.t23-hero-photo {
  position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 3; margin: 0; border-radius: 24px; overflow: hidden;
  background: var(--ph); display: flex; align-items: center; justify-content: center; color: var(--sil);
}
.t23-hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.t23-hero-photo .hero-slide { opacity: 0; transition: opacity 1.2s ease; }
.t23-hero-photo .hero-slide.is-active { opacity: 1; }
.t23-hero-photo .silhouette { width: 62%; }
.t23-hero-photo .hero-media-caption { z-index: 1; }

/* ---------- At a glance ---------- */
.t23-glance { background: var(--ink); color: #FFFFFF; position: relative; overflow: hidden; }
.t23-glance::after {
  content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 38%; pointer-events: none; opacity: 0.12;
  background: repeating-linear-gradient(180deg, #FFFFFF 0 6px, transparent 6px 12px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000); mask-image: linear-gradient(90deg, transparent, #000);
}
.t23-glance .container { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; padding-block: 30px; }
.t23-glance .container > div { display: flex; flex-direction: column; gap: 2px; padding-left: 16px; border-left: 2px solid rgba(255, 255, 255, 0.22); }
.t23-glance strong { font-size: clamp(28px, 3vw, 40px); font-weight: 700; line-height: 1; }
.t23-glance span { font-size: 14px; color: var(--on-ink); }

/* ---------- Find yours ---------- */
.t23-find-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: 20px; }
.t23-find-panel { padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); display: flex; flex-direction: column; gap: 16px; }
.t23-find-panel h3 { margin: 0; font-size: 18px; font-weight: 700; }
.t23-budgets { display: flex; flex-direction: column; gap: 8px; }
.t23-budgets a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 0 16px;
  border-radius: 12px; background: var(--ground); text-decoration: none; font-weight: 700; transition: background .15s, color .15s;
}
.t23-budgets a small { font-size: 13px; font-weight: 700; color: var(--muted); }
.t23-budgets a:hover { background: var(--ink); color: #FFFFFF; }
.t23-budgets a:hover small { color: var(--on-ink); }
.t23-bodies { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.t23-bodies a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 40px auto; gap: 8px 6px; padding: 14px;
  border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--text); transition: border-color .15s, box-shadow .15s;
}
.t23-bodies a:hover { border-color: var(--ink); box-shadow: var(--shadow); color: var(--text); }
.t23-bodies .silhouette { grid-column: 1 / -1; width: 64px; height: 40px; color: var(--text-2); }
.t23-bodies span { font-size: 15px; font-weight: 700; line-height: 1.2; }
.t23-bodies small { align-self: end; font-size: 13px; font-weight: 700; color: var(--muted); }

/* ---------- Just in ---------- */
.t23-arrivals { padding-block: 24px 56px; }
.t23-arrivals .container { display: flex; flex-direction: column; gap: 48px; }

/* ---------- Vehicle cards ---------- */
.card { border-radius: 16px; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-2px); }
.badge-type, .badge-grabber { background: rgba(12, 12, 14, 0.86); }
.save-btn { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14); }
.card-cta.btn-ink { background: var(--surface); color: var(--text); border-color: var(--line); }
.card-cta.btn-ink:hover { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }
.vat-note { padding: 2px 7px; border-radius: 5px; background: var(--ground); color: var(--text-2); font-family: var(--font); font-size: 12px; vertical-align: middle; }
.vat-note.vat-plus { background: var(--accent-tint); color: var(--accent-text); }

/* ---------- Shop by make: the brand's logo on a white badge, name and count below.
   6 / 4 / 3 columns, so the twelve top makes always fill whole rows ---------- */
.t23-makes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.t23-makes a {
  display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 20px 10px 16px; border-radius: 18px;
  background: var(--ground); text-align: center; text-decoration: none; border: 1px solid transparent;
  transition: background .15s, border-color .15s, box-shadow .15s, transform .15s;
}
.t23-makes a:hover { background: var(--surface); border-color: var(--ink); box-shadow: var(--shadow); color: var(--text); transform: translateY(-2px); }
.t23-make-badge {
  flex: none; width: 76px; height: 76px; border-radius: 50%; background: #FFFFFF; border: 1px solid var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; padding: 14px;
  box-shadow: 0 6px 16px -10px rgba(12, 12, 14, 0.35);
}
.t23-make-badge img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.t23-make-initials { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--ink); letter-spacing: 0.02em; }
.t23-make-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.t23-makes strong { font-size: 17px; font-weight: 700; line-height: 1.2; }
.t23-make-text > span { font-size: 13px; font-weight: 600; color: var(--muted); }
@media (max-width: 1099px) { .t23-makes { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Business buyers ---------- */
.t23-trade { background: var(--ink); color: #FFFFFF; position: relative; overflow: hidden; }
.t23-trade .container { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-block: 72px; }
.t23-trade-copy { display: flex; flex-direction: column; gap: 18px; }
.t23-trade .eyebrow { color: var(--on-ink); }
.t23-trade .eyebrow::before { background: repeating-linear-gradient(180deg, #FFFFFF 0 2px, transparent 2px 4px); }
.t23-trade h2 { margin: 0; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.06; }
.t23-ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 16px; color: var(--on-ink); }
.t23-ticks li { display: flex; gap: 12px; align-items: flex-start; }
.t23-ticks .icon { margin-top: 2px; color: #FFFFFF; }
.t23-ticks strong { color: #FFFFFF; }
.t23-trade-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.t23-btn-ghost { border-color: rgba(255, 255, 255, 0.5); color: #FFFFFF; }
.t23-btn-ghost:hover { background: #FFFFFF; color: var(--ink); }
.t23-trade-media {
  position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: 24px; overflow: hidden; background: var(--ink-2);
  display: flex; align-items: center; justify-content: center; color: var(--on-ink-2);
}
.t23-trade-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.t23-trade-media .silhouette { width: 64%; }

/* ---------- Finance (FCA) ---------- */
.t23-finance-badge {
  display: flex; flex-direction: column; gap: 8px; padding: 26px; border-radius: 20px; background: var(--ground);
  border: 1px solid var(--line);
}
.t23-finance-badge .icon-lg { color: var(--ink); }
.t23-finance-badge strong { font-size: 17px; line-height: 1.3; }
.t23-finance-badge > span { font-family: var(--font-display); font-size: 26px; font-weight: 700; }
.t23-finance-badge p { margin: 4px 0 0; font-size: 13px; line-height: 1.6; color: var(--muted); }
.t23-finance-info { display: flex; flex-direction: column; gap: 20px; }
.t23-steps-list { margin: 0; padding: 0; list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 16px; }
.t23-steps-list li { counter-increment: step; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 2px 14px; }
.t23-steps-list li::before {
  content: counter(step); grid-row: span 2; width: 40px; height: 40px; border-radius: 999px; background: var(--ink); color: #FFFFFF;
  display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700;
}
.t23-steps-list strong { font-size: 16px; }
.t23-steps-list span { font-size: 15px; line-height: 1.55; color: var(--text-2); }

/* ---------- Promises ---------- */
.t23-promises { border-block: 1px solid var(--line); }
.t23-promises .container { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; padding-block: 36px; }
.t23-promise { display: flex; gap: 14px; align-items: flex-start; text-decoration: none; color: var(--text); }
.t23-promise:hover { color: var(--text); }
.t23-promise:hover strong { text-decoration: underline; }
.t23-promise-icon { flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--ground); display: inline-flex; align-items: center; justify-content: center; }
.t23-promise strong { display: block; font-size: 16px; }
.t23-promise span span { display: block; margin-top: 2px; font-size: 14px; color: var(--muted); }

/* ---------- Sell ---------- */
.t23-sell {
  position: relative; overflow: hidden; display: flex; flex-wrap: wrap; gap: 28px 40px; align-items: center;
  padding: clamp(24px, 4vw, 44px); border-radius: 24px; background: var(--accent); color: #FFFFFF;
}
.t23-sell::before {
  content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; opacity: 0.16;
  background: repeating-linear-gradient(180deg, #FFFFFF 0 10px, transparent 10px 19px);
}
.t23-sell-copy { position: relative; flex: 1 1 340px; display: flex; flex-direction: column; gap: 8px; }
.t23-sell h2 { margin: 0; font-size: clamp(24px, 2.8vw, 32px); line-height: 1.15; }
.t23-sell p { margin: 0; color: rgba(255, 255, 255, 0.88); }
.t23-sell .sell-strip-form { position: relative; flex: 1 1 460px; }
.t23-sell .field { color: rgba(255, 255, 255, 0.9); }
.t23-sell .field > input { border: 0; }
.t23-sell .plate { height: 52px; border-color: #111111; }
.t23-sell .btn { min-height: 52px; background: var(--ink); color: #FFFFFF; }
.t23-sell .btn:hover { background: #000000; color: #FFFFFF; }

/* ---------- Reviews ---------- */
.t23-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.t23-quote { margin: 0; display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: 18px; background: var(--ground); }
.t23-quote blockquote { margin: 0; font-size: 16px; line-height: 1.6; }
.t23-quote figcaption { margin-top: auto; font-size: 14px; font-weight: 700; color: var(--muted); }

/* ---------- Visit ---------- */
.t23-visit { display: flex; flex-wrap: wrap; gap: 24px; }
.t23-visit .map { flex: 2 1 480px; min-height: 380px; border-radius: 22px; }
.t23-visit-card { flex: 1 1 320px; display: flex; flex-direction: column; gap: 16px; padding: 28px; border-radius: 22px; background: var(--ground); }
.t23-visit-card h2 { margin: 0; font-size: 26px; font-weight: 700; }
.t23-visit-phone { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; text-decoration: none; }
.t23-visit-card .hours tr { border-bottom-color: var(--line); }

/* ---------- Footer ---------- */
.t23-footer { position: relative; overflow: hidden; background: var(--ink); color: var(--on-ink); font-size: 14px; }
.t23-globe-footer { width: 520px; right: -150px; bottom: -190px; opacity: 0.07; --globe-ink: #FFFFFF; --globe-cut: var(--ink); --band: 14px; }
.t23-footer .container { position: relative; z-index: 1; }
.t23-footer a { color: var(--on-ink); text-decoration: none; }
.t23-footer a:hover { color: #FFFFFF; text-decoration: underline; }
.t23-footer-grid { display: grid; grid-template-columns: minmax(220px, 1.3fr) repeat(3, minmax(160px, 1fr)); gap: 32px; padding-block: 56px 36px; }
.t23-footer h2 { margin: 0 0 14px; font-family: var(--font-display); font-size: 15px; font-weight: 700; letter-spacing: 0.04em; color: #FFFFFF; }
.t23-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.t23-footer ul span { margin-left: 4px; font-size: 12px; color: var(--on-ink-2); }
.t23-logo-plate { display: inline-flex; padding: 10px 14px; border-radius: 14px; background: #FFFFFF; }
.t23-logo-plate:hover { text-decoration: none; }
.t23-logo-plate img { max-height: 64px; width: auto; max-width: 160px; }
.t23-logo-plate .brand-name { color: var(--ink); }
.t23-footer-brand p { margin: 16px 0 0; line-height: 1.6; color: var(--on-ink-2); }
.t23-footer-hours { display: flex; flex-direction: column; gap: 5px; }
.t23-footer-hours div { display: flex; justify-content: space-between; gap: 12px; }
.t23-footer-hours .today { color: #FFFFFF; font-weight: 800; }
.t23-footer-contact { margin: 14px 0 0; line-height: 1.7; }
.t23-social { display: flex; gap: 10px; margin-top: 16px; }
.t23-social a { width: 40px; height: 40px; border-radius: 999px; border: 1px solid #3A3A40; display: inline-flex; align-items: center; justify-content: center; }
.t23-social a:hover { background: #FFFFFF; color: var(--ink); text-decoration: none; }
.t23-partners { border-top: 1px solid #26262B; padding-block: 22px; display: flex; flex-wrap: wrap; gap: 18px 30px; align-items: center; justify-content: center; }
.t23-partners img { max-height: 40px; width: auto; filter: grayscale(1) brightness(1.8); opacity: 0.8; }
.t23-makes-links { border-top: 1px solid #26262B; padding-block: 20px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; }
.t23-makes-links strong { color: var(--on-ink-2); font-weight: 600; margin-right: 6px; }
.t23-disclosure { border-top: 1px solid #26262B; padding-block: 20px; color: var(--on-ink-2); font-size: 12.5px; line-height: 1.65; }
.t23-disclosure p { margin: 0 0 8px; max-width: 1000px; }
.t23-disclosure .t23-fca-line strong { color: #FFFFFF; font-weight: 700; }
.t23-disclosure .t23-fca-text { color: var(--on-ink); }
.t23-footer-legal { border-top: 1px solid #26262B; padding-block: 18px 28px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: 12px; color: var(--on-ink-2); }
.t23-footer-legal nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* ---------- Content pages ---------- */
.page-hero { background: var(--ground); color: var(--text); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-hero p { color: var(--text-2); }
.page-hero .eyebrow { color: var(--text); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero::after {
  content: ""; position: absolute; right: -80px; top: 50%; width: 360px; height: 360px; transform: translateY(-50%);
  border-radius: 50%; opacity: 0.07; pointer-events: none;
  background: repeating-linear-gradient(180deg, var(--ink) 0 12px, transparent 12px 22px);
}
.section-white { background: var(--ground); border-block: 0; }

/* ---------- Forms: a number plate inside a field keeps its yellow face ---------- */
.field .plate input { min-height: 0; border: 0; border-radius: 0; background: var(--plate); color: #111111; font-size: 20px; }

/* ---------- Error pages (403 / 404 / 500) ---------- */
.t23-error { padding-block: clamp(64px, 12vw, 140px); }
.t23-error p { max-width: 560px; }
.t23-error-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* legal pages carry their own <style>; match their title to the theme */
main .legal-hero h1 { font-family: var(--font-display); font-weight: 700; }

/* ---------- Tablets and phones ---------- */
@media (max-width: 1099px) {
  .t23-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 32px 40px; }
  .t23-hero-side { min-height: 0; }
  .t23-lanes { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .t23-lane, .t23-lane:nth-child(2), .t23-lane:nth-child(3) { margin-left: 0; grid-template-columns: minmax(0, 1fr); grid-template-rows: 170px auto; }
  .t23-globe-hero { width: 90%; right: -35%; }
  .t23-find-grid { grid-template-columns: minmax(0, 1fr); }
  .t23-trade .container { grid-template-columns: minmax(0, 1fr); padding-block: 48px; gap: 28px; }
  .t23-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
  .t23-hero h1 { font-size: clamp(32px, 8vw, 44px); }
  .t23-search { padding: 16px; }
  .t23-arrivals { padding-block: 8px 32px; }
  .t23-arrivals .container { gap: 32px; }
  .t23-promises .container { padding-block: 24px; }
  .t23-glance .container { padding-block: 22px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .t23-search-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t23-search-fields .field:first-child { grid-column: 1 / -1; }
  .t23-lane { grid-template-rows: 150px auto; }
  .t23-lane-body { padding: 16px; }
  .t23-bodies { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t23-makes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .t23-makes a { gap: 8px; padding: 14px 6px 12px; border-radius: 14px; }
  .t23-make-badge { width: 54px; height: 54px; padding: 10px; }
  .t23-makes strong { font-size: 14px; }
  .t23-make-text > span { font-size: 12px; }
  .t23-footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 40px 24px; }
  .t23-glance strong { font-size: 28px; }
}

/* =========================================================================
   Audiowide has one weight (400): never let the browser fake a bold one, and size it for its width
   ========================================================================= */
html { font-synthesis-weight: none; }
.display, .section-head h2, .page-title h1, .page-hero h1, .about-hero-copy h1, .spotlight-copy h2, .visit-info h2,
.buy-panel h1, .form-card h2, .panel h2, .t23-hero h1, .t23-glance strong, .t23-lane strong, .t23-trade h2, .t23-sell h2,
.t23-visit-card h2, .t23-find-panel h3, .t23-makes strong, .price, .buy-price strong, .brand-name, .t23-footer h2,
.t23-finance-badge > span, .t23-steps-list li::before, .t23-make-initials, main .legal-hero h1 {
  font-weight: 400; letter-spacing: 0;
}
.t23-hero h1 { font-size: clamp(30px, 3.6vw, 50px); line-height: 1.08; }
/* even lines, never one word left on its own ("Used cars and / vans") */
.t23-hero h1, .section-head h2, .t23-trade h2, .page-hero h1, .buy-panel h1 { text-wrap: balance; }
.section-head h2 { font-size: clamp(21px, 2.1vw, 27px); }
.page-title h1 { font-size: clamp(24px, 2.9vw, 36px); }
.page-hero h1 { font-size: clamp(26px, 3.3vw, 42px); line-height: 1.12; }
.t23-trade h2 { font-size: clamp(26px, 3vw, 38px); line-height: 1.12; }
.t23-sell h2 { font-size: clamp(21px, 2.3vw, 27px); }
.t23-lane strong { font-size: clamp(21px, 2vw, 27px); }
.t23-glance strong { font-size: clamp(26px, 2.6vw, 36px); }
.t23-makes strong { font-size: 14.5px; }
.t23-find-panel h3, .panel h2, .form-card h2 { font-size: 17px; }
.t23-visit-card h2 { font-size: 22px; }
.buy-panel h1 { font-size: 22px; line-height: 1.25; }
.price { font-size: 21px; }
.buy-price strong { font-size: 34px; }
.t23-footer h2 { font-size: 13px; letter-spacing: 0.04em; }
.card-title { font-weight: 700; }
@media (max-width: 991px) { .t23-hero h1 { font-size: clamp(27px, 7.4vw, 38px); } }
@media (max-width: 640px) { .t23-makes strong { font-size: 12.5px; } .t23-glance strong { font-size: 24px; } }
