/* Mercedes-Benz Owners' Club South Africa: "The Drive".
   The organiser's own film carries the site: the skid pan behind the question on wide screens, the circuit lap
   filling a phone. Under it the site works like a route book: one question (where are you, what do you drive), a
   strip of the nine provinces to flick through, a dock of controls fixed at the foot of every screen. Black and
   white blocks like road markings, one gold light. Pages cross-fade and a province's photo carries over from the
   strip to its page (view transitions, where the browser has them). Two typefaces, both self-hosted under the SIL Open Font License
   (/fonts/OFL.txt): Schibsted Grotesk for headlines and figures, Albert Sans for everything else. */
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url('/fonts/schibsted-grotesk-latin-ext-wght.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: 'Schibsted Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url('/fonts/schibsted-grotesk-latin-wght.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: 'Albert Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/albert-sans-latin-ext-wght.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: 'Albert Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/albert-sans-latin-wght.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;
}

:root {
  /* Black and white, one gold. Grey 6.2:1 on white; gold text is only ever on black (10:1). */
  --black: #0b0b0b;
  --coal: #161616;
  --white: #ffffff;
  --chalk: #f4f4f2;
  --grey: #5d5d5d;
  --mid: #8a8a8a;
  --line: #e2e2df;
  --line-dark: rgba(255, 255, 255, .14);
  --gold: #d9a441;
  --gold-2: #ebbd5e;

  --font: 'Albert Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Schibsted Grotesk', 'Albert Sans', ui-sans-serif, system-ui, sans-serif;

  --gutter: clamp(20px, 4.6vw, 72px);
  --max: 1440px;
  --header: 80px;
  --dock: 84px;
  --r: 14px;
  --r-lg: 24px;
  --pill: 999px;

  --bg: var(--white); --fg: var(--black); --muted: var(--grey); --rule: var(--line); --focus: var(--black);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white); color: var(--black);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-kerning: normal;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: var(--gold); text-underline-offset: 0.22em; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-thickness: 2.5px; }
h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; }
h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
::selection { background: var(--gold); color: var(--black); }

/* Dark blocks: everything inside inherits dark-ground colours. */
.dark, .route-ask, .drives-section, .join, .site-footer, .loc-hero, .article-head {
  --bg: var(--black); --fg: var(--white); --muted: #b9b9b9; --rule: var(--line-dark); --focus: var(--gold);
  background: var(--bg); color: var(--fg);
}
.dark ::selection, .route-ask ::selection, .drives-section ::selection, .join ::selection { background: var(--gold); color: var(--black); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.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; }
[hidden] { display: none !important; }
.nowrap { white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--gold); color: var(--black); padding: 12px 20px; border-radius: var(--pill); font-weight: 650; }
.skip-link:focus { top: 12px; }

/* Display type */
.display, .strip-index, .road li::before, .model-group-title, .share-heading,
.form-heading h3, .form-closed h3, .form-success h3, .article-body h2, .privacy h2, .news-item h3, .drive-copy h3, .footer-col h2 {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.03em;
}
.display { line-height: 1; overflow-wrap: break-word; }
.eyebrow-line { font-size: 0.9375rem; color: var(--muted); max-width: 40em; margin-bottom: 18px; }

/* Buttons: pills. On white the pill is black; on black it is gold. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border: 1.5px solid var(--black); border-radius: var(--pill);
  background: var(--black); color: var(--white);
  font-size: 0.9688rem; font-weight: 650; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { background: var(--gold); border-color: var(--gold); color: var(--black); text-decoration: none; }
.dark .btn, .route-ask .btn, .drives-section .btn, .join .btn, .site-footer .btn, .loc-hero .btn { background: var(--gold); border-color: var(--gold); color: var(--black); }
.dark .btn:hover, .route-ask .btn:hover, .join .btn:hover, .site-footer .btn:hover, .loc-hero .btn:hover { background: var(--white); border-color: var(--white); }
.btn-small { min-height: 42px; padding: 0 18px; font-size: 0.875rem; }
.btn-block { width: 100%; }
.btn:disabled, .btn:disabled:hover { background: var(--line); border-color: var(--line); color: var(--grey); cursor: not-allowed; }
.arrow-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 650; text-decoration: none; }
.arrow-link::after { content: ''; width: 9px; height: 9px; border-top: 2px solid var(--gold); border-right: 2px solid var(--gold); transform: rotate(45deg); transition: transform .15s ease; }
.arrow-link:hover::after { transform: translateX(4px) rotate(45deg); }
.arrow-link:hover { text-decoration: underline; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 650; }

/* Top bar: lockup, two quiet links, the call to action. Navigation lives in the dock. */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.header-inner { min-height: var(--header); display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; }
/* The Mercedes-Benz / AMG / Maybach strip, as supplied: it is the brand mark in the top bar and the footer. */
.family-strip { display: block; line-height: 0; }
.family-strip img { display: block; width: 100%; height: auto; }
.header-family { width: clamp(300px, 36vw, 460px); }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; padding-block: 6px; }
.brand-lockup { height: 44px; width: auto; flex: 0 1 auto; min-width: 0; }
.brand-flag { display: inline-flex; align-items: center; }
.flag-za { width: 24px; height: 16px; flex: 0 0 24px; border-radius: 2px; }
.header-side { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); }
.header-link { font-size: 0.9375rem; font-weight: 550; color: var(--grey); text-decoration: none; padding-block: 10px; border-bottom: 2px solid transparent; }
.header-link:hover, .header-link[aria-current="page"] { color: var(--black); border-bottom-color: var(--gold); }

/* The dock */
.dock {
  position: fixed; left: 50%; bottom: 16px; z-index: 50; transform: translateX(-50%);
  display: flex; gap: 2px; padding: 6px; border-radius: var(--pill);
  background: rgba(11, 11, 11, .97);
  border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .7);
}
.dock > a, .dock-more-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 76px; min-height: 60px; padding: 6px 12px; border-radius: var(--pill); color: #c9c9c9; font-size: 0.75rem; font-weight: 600; text-decoration: none; transition: color .15s ease, background-color .15s ease; }
.dock-more-btn { appearance: none; border: 0; background: none; font-family: inherit; cursor: pointer; }
.dock > a svg, .dock-more-btn svg { width: 22px; height: 22px; }
.dock > a:hover, .dock-more-btn:hover { color: var(--white); background: rgba(255, 255, 255, .08); }
.dock > a[aria-current="page"], .dock-more-btn[data-here], .dock-more-btn:has(+ .dock-more:popover-open) { color: var(--black); background: var(--gold); }
.dock > a:focus-visible, .dock-more-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
/* All the other pages, in a sheet above the dock. Every link is a page of the site, so nothing is only a click away. */
.dock-more { position: fixed; inset: auto; left: 50%; bottom: calc(var(--dock) + 24px); margin: 0; width: min(600px, calc(100vw - 24px)); max-height: min(72svh, 640px); overflow-y: auto; overscroll-behavior: contain; padding: clamp(18px, 3vw, 28px); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--r-lg); background: var(--black); color: var(--white); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .75); transform: translateX(-50%); }
.dock-more h2 { font-family: var(--font-display); font-size: 1rem; font-weight: 700; letter-spacing: -0.005em; color: var(--gold); margin: 0 0 6px 12px; }
.dock-more h2:not(:first-child) { margin-top: 18px; }
.dock-more-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; }
.dock-more-list a { display: block; padding: 10px 12px; border-radius: var(--r); color: var(--white); font-size: 0.9375rem; font-weight: 550; text-decoration: none; }
.dock-more-list a:hover { background: rgba(255, 255, 255, .1); }
.dock-more-list a[aria-current="page"] { background: var(--gold); color: var(--black); }
.dock-more-list a:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
@supports not selector(:popover-open) { .dock-more, .dock-more-btn { display: none; } }
@media (prefers-reduced-motion: no-preference) {
  .dock-more { opacity: 0; transform: translate(-50%, 10px); transition: opacity .16s ease, transform .16s ease, display .16s allow-discrete, overlay .16s allow-discrete; }
  .dock-more:popover-open { opacity: 1; transform: translate(-50%, 0); }
  @starting-style { .dock-more:popover-open { opacity: 0; transform: translate(-50%, 10px); } }
}
/* The dock is always on screen: nothing slides it away. */

/* Videos have no controls: they play non-stop (public/app.js). */

/* Track: the organiser's circuit clip in a phone-shaped frame beside the copy. */
.track { background: var(--chalk); border-top: 1px solid var(--line); }
.track-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 32px clamp(40px, 6vw, 96px); align-items: center; }
.track-copy h2 { font-size: clamp(2rem, 3.6vw, 3.25rem); max-width: 14ch; margin-bottom: 20px; }
.track-copy .lead { color: var(--grey); }
.track-copy p + p { color: var(--grey); margin-bottom: 20px; }
.phone-frame { position: relative; justify-self: center; width: min(100%, 360px); aspect-ratio: 9 / 16; border-radius: 40px; overflow: hidden; background: var(--black); padding: 10px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.phone-frame video { width: 100%; height: 100%; object-fit: cover; border-radius: 32px; }

/* Sections and scroll-driven reveals */
.section { padding-block: clamp(64px, 8vw, 112px); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal > .wrap, .reveal > .strip { animation: fade-up linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
    @keyframes fade-up { from { opacity: .2; transform: translateY(28px); } }
  }
}
.section-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px 64px; align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head h2, .strip-head h2, .drives-head h2, .faq-head h2, .news-lead h2, .join-intro h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
.section-head p, .strip-head p, .faq-head p, .news-lead p { color: var(--muted); max-width: 34em; }
.note { font-size: 1rem; color: var(--muted); max-width: 52em; margin-top: 28px; }

/* Join: black block, white form. */
.join-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.join-intro { position: sticky; top: calc(var(--header) + 32px); }
.join-intro h2 { margin-bottom: 22px; }
.join-intro > p:not(.note) { color: var(--muted); max-width: 28em; }
.volunteer-callout { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--rule); max-width: 28em; }
.volunteer-callout h3 { font-weight: 700; font-size: 1.25rem; margin-bottom: 6px; }
.volunteer-callout p { color: var(--muted); }
.join .note, .join .secure-note { color: var(--muted); }
.form-column { min-width: 0; display: grid; gap: 20px; align-content: start; }
.registration-form, .form-closed, .form-success, .contact-form-panel {
  --bg: var(--white); --fg: var(--black); --muted: var(--grey); --rule: var(--line); --focus: var(--black);
  background: var(--white); color: var(--black); border-radius: var(--r-lg); padding: clamp(24px, 3.4vw, 44px);
}
.registration-form .btn, .form-closed .btn, .form-success .btn { background: var(--black); border-color: var(--black); color: var(--white); }
.registration-form .btn:hover { background: var(--gold); border-color: var(--gold); color: var(--black); }
#registration-form { display: none; }
html[data-registration="open"] #registration-form { display: block; }
.form-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 28px; }
.form-heading h3 { font-size: clamp(1.5rem, 2.4vw, 1.875rem); line-height: 1.1; }
.form-heading p { font-size: 0.875rem; color: var(--grey); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px; }
.field { min-width: 0; }
.field label, legend { display: block; font-size: 0.9375rem; font-weight: 650; margin-bottom: 8px; line-height: 1.4; }
.req { color: var(--grey); }
.optional { font-weight: 400; color: var(--grey); }
input:not([type=checkbox]), select, textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; font-size: 1rem; line-height: 1.3;
  background: var(--white); color: var(--black); border: 1.5px solid #8a8a8a; border-radius: var(--r);
  appearance: none; -webkit-appearance: none;
}
select {
  padding-right: 44px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 24px) 50%, calc(100% - 18px) 50%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
}
input:not([type=checkbox]):hover, select:hover, textarea:hover { border-color: var(--black); }
.route-finder select:hover { border-color: var(--white); }
textarea { resize: vertical; min-height: 160px; font: inherit; }
input:not([type=checkbox]):focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-color: var(--black); }
input::placeholder, textarea::placeholder { color: var(--mid); }
.field small { display: block; font-size: 0.875rem; color: var(--grey); margin-top: 6px; line-height: 1.45; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; }
.choices { margin-top: 28px; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; }
.check { display: flex; align-items: flex-start; gap: 12px; font-size: 0.9375rem; line-height: 1.5; cursor: pointer; min-height: 32px; padding-block: 4px; }
.check input { appearance: none; -webkit-appearance: none; flex: 0 0 22px; width: 22px; height: 22px; margin: 0; border: 1.5px solid #8a8a8a; border-radius: 6px; background: var(--white); display: grid; place-content: center; cursor: pointer; }
.check input:hover { border-color: var(--black); }
.check input:checked { background: var(--black); border-color: var(--black); }
.check input:checked::after { content: ''; width: 11px; height: 6px; border-left: 2.5px solid var(--white); border-bottom: 2.5px solid var(--white); transform: translateY(-2px) rotate(-45deg); }
.check input:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.check-strong { font-weight: 650; }
.volunteer-choice { margin-top: 28px; padding-block: 20px; border-block: 1px solid var(--line); }
.volunteer-choice .choices { margin-top: 18px; }
.consents { display: grid; gap: 10px; padding-block: 24px 8px; }
.consents .check { font-size: 0.875rem; }
.consents a { font-weight: 650; }
.consents legend { font-size: 0.9375rem; font-weight: 650; margin-bottom: 4px; }
.consent-link { font-size: 0.875rem; margin: -4px 0 4px 34px; }
.consent-link a { font-weight: 650; }
.turnstile { min-height: 65px; margin-top: 12px; }
.turnstile:empty.is-off { display: none; }
.verification-status { font-size: 0.875rem; color: var(--grey); margin-block: 10px 16px; }
.form-status { font-size: 0.9375rem; line-height: 1.6; margin-top: 16px; padding: 14px 18px; border-radius: var(--r); }
.form-status:empty { display: none; }
.form-status:focus { outline: none; }
.form-status.error { border-left: 4px solid var(--gold); background: var(--chalk); font-weight: 650; }
.form-status.success { background: var(--black); color: var(--white); }
.secure-note { font-size: 0.9375rem; margin-top: 14px; }
.privacy p, .check span, .verification-status, .form-status { overflow-wrap: anywhere; }
.form-fields { border: 0; padding: 0; margin: 0; min-width: 0; }
.form-fields:disabled { opacity: .5; }
.form-fields:disabled .turnstile { display: none; }
.field-wide { grid-column: 1 / -1; margin-top: 20px; }
.form-grid .field-wide { margin-top: 0; }
.form-fields > .consents { margin-top: 28px; }
.form-closed h3, .form-success h3 { font-size: clamp(1.5rem, 2.4vw, 1.875rem); line-height: 1.12; margin-bottom: 10px; }
.form-closed p, .form-success p { color: var(--grey); }
.form-closed p + p { margin-top: 10px; }
.form-closed a, .form-success a { font-weight: 650; }
.form-success .reference { color: var(--black); font-weight: 650; }
.notice-status { background: var(--black); color: var(--white) !important; border-radius: var(--r); padding: 18px 24px; font-weight: 650; margin-bottom: 40px; }
.field-error { display: block; margin-top: 6px; font-size: 0.875rem; font-weight: 650; color: #8a5f12; }
.field-error::before { content: '!'; display: inline-grid; place-content: center; width: 18px; height: 18px; margin-right: 8px; border-radius: 50%; background: #8a5f12; color: var(--white); font-size: 0.75rem; font-weight: 800; line-height: 1; vertical-align: -0.2em; }
[aria-invalid="true"] { border-width: 2px !important; border-color: #8a5f12 !important; }
.check input[aria-invalid="true"] { outline: 2px solid #8a5f12; outline-offset: 2px; }

/* Availability states. The Worker marks <html data-registration="open"> and data-contact="open"; app.js confirms. */
.when-open { display: none; }
html[data-registration="open"] .when-open { display: inline; }
html[data-registration="open"] .when-closed { display: none; }
html[data-registration="open"] .when-closed-block { display: none; }
html[data-contact="open"] .when-contact-closed { display: none; }
.when-contact-open, .when-contact-open-block { display: none; }
html[data-contact="open"] .when-contact-open { display: inline; }
html[data-contact="open"] .when-contact-open-block { display: block; }

/* Interior pages: a split band, copy left, picture right. */
.loc-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.loc-copy { padding: clamp(32px, 5vw, 72px) var(--gutter); max-width: calc(var(--max) * .55); justify-self: end; width: 100%; }
.loc-hero > .loc-hero-inner { grid-column: 1 / -1; padding-block: clamp(32px, 5vw, 64px); }
.loc-hero-inner .lead { max-width: 40em; }
.loc-hero h1 { font-size: clamp(2.125rem, 4.6vw, 4rem); margin-block: 22px 22px; max-width: 18ch; letter-spacing: -0.035em; }
.loc-hero .lead { max-width: 40em; }
.lead-sub { color: var(--muted); max-width: 42em; margin: -12px 0 28px; }
.loc-side { position: relative; min-height: 360px; background: var(--coal); }
.loc-side picture, .loc-side img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.loc-side figcaption { position: absolute; left: 20px; bottom: 16px; font-size: 0.8125rem; color: #fff; background: rgba(11, 11, 11, .6); padding: 6px 12px; border-radius: var(--pill); backdrop-filter: blur(6px); }
.loc-side-map { display: grid; place-items: center; padding: clamp(32px, 6vw, 96px); }
.loc-side-map .locator { width: 100%; max-width: 420px; }
.locator .province { fill: #2a2a2a; stroke: var(--black); stroke-width: 1; }
.locator .province.is-current { fill: var(--gold); stroke: var(--gold); }
.locator .neighbour { fill: transparent; stroke: #3a3a3a; stroke-width: 1.2; stroke-dasharray: 4 3; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 2px 0; font-size: 0.875rem; color: var(--muted); }
.breadcrumb li:not(:last-child)::after { content: '/'; margin-inline: 10px; color: var(--mid); }
.breadcrumb a { display: inline-block; padding-block: 12px; margin-block: -12px; }
.breadcrumb [aria-current] { color: var(--fg); font-weight: 600; }
.local-status { display: inline-block; background: var(--coal); border: 1px solid var(--line-dark); border-radius: var(--r); font-size: 0.9375rem; font-weight: 600; padding: 10px 18px; margin-bottom: 24px; max-width: 42em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.loc-hero .hero-note { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--rule); }
.area-block { margin-bottom: 28px; max-width: 52em; }
.area-heading { font-size: 0.9375rem; font-weight: 650; margin-bottom: 10px; }
.chip-list { display: flex; flex-wrap: wrap; gap: 6px 29px; overflow: hidden; }
.chip-list li { position: relative; font-size: 0.9688rem; margin-left: -17px; padding-left: 17px; }
.chip-list li::before { content: ''; position: absolute; left: 0; top: .66em; width: 5px; height: 5px; background: var(--gold); border-radius: 50%; }
.cities-head { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.cities-head .locator { width: 200px; }
.cities-head p { margin-top: 16px; }
.city-grid, .drive-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 5vw, 72px); }
.city-grid li, .drive-list li { padding-block: 22px 24px; border-top: 1px solid var(--line); }
.city-grid h3, .drive-list h3 { font-weight: 700; font-size: clamp(1.3125rem, 1.9vw, 1.5rem); line-height: 1.2; margin-bottom: 6px; letter-spacing: -0.015em; }
.city-grid h3 a { text-decoration: none; }
.city-grid h3 a:hover { text-decoration: underline; }
.city-grid p, .drive-list p { color: var(--grey); }
.circuits .section-head { align-items: start; }
main > .section:not(.join):not(.share) + .section:not(.join):not(.share) { border-top: 1px solid var(--line); }
.plain-list { border-top: 1px solid var(--black); }
.plain-list li { font-size: 1.1875rem; font-weight: 650; padding-block: 12px; border-bottom: 1px solid var(--line); }
.other-places { padding-block: clamp(36px, 4vw, 56px); border-top: 1px solid var(--line); }
.other-heading { font-size: 1rem; font-weight: 700; margin-bottom: 12px; }
.inline-links { display: flex; flex-wrap: wrap; gap: 4px 26px; }
.inline-links a { display: inline-block; padding-block: 8px; }

/* Reading pages */
.privacy { padding-block: clamp(48px, 6vw, 80px); }
.privacy-inner { max-width: var(--max); }
.privacy h2 { font-size: clamp(1.5rem, 2.4vw, 1.875rem); line-height: 1.15; margin-bottom: 16px; }
.privacy h2:not(:first-child) { margin-top: 44px; }
.privacy p { line-height: 1.72; max-width: 38em; }
.privacy ul + p, .privacy table + p, .privacy p + p { margin-top: 14px; }
.privacy a { font-weight: 650; }
.privacy ul, .privacy ol { max-width: 38em; padding-left: 1.2em; line-height: 1.72; }
.privacy li + li { margin-top: 10px; }
.privacy ul { list-style: disc; }
.privacy ol { list-style: decimal; padding-left: 1.4em; }
.retention { border-collapse: collapse; width: 100%; max-width: 52em; font-size: 0.9375rem; }
.retention th, .retention td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.retention thead th { border-bottom: 1px solid var(--black); }

/* Share */
.share { background: var(--chalk); border-top: 1px solid var(--line); padding-block: clamp(40px, 5vw, 64px); }
.share-inner { display: grid; grid-template-columns: minmax(0, .6fr) minmax(0, 1.4fr); gap: 20px 48px; align-items: start; }
.share-heading { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.1; margin-bottom: 8px; }
.share-inner p { color: var(--grey); }
.share-native { margin-bottom: 16px; }
.icon { width: 20px; height: 20px; }
.share-links { display: flex; flex-wrap: wrap; gap: 8px; }
/* Each share button carries the service's own logo (site/brand-icons.mjs) in its brand colour, beside its name. */
.share-link { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 18px 0 14px; border: 1.5px solid var(--black); border-radius: var(--pill); background: var(--white); color: var(--black); font: inherit; font-size: 0.9375rem; font-weight: 650; line-height: 1.2; text-decoration: none; cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.share-link:hover { border-color: var(--gold); background: var(--white); text-decoration: none; }
.share-link:focus-visible { outline: 3px solid var(--black); outline-offset: 3px; }
.brand-ico { width: 20px; height: 20px; flex: 0 0 auto; fill: currentColor; }
.share-link[data-brand="mail"] .brand-ico, .share-link[data-brand="link"] .brand-ico { fill: none; }
.share-link[data-brand="whatsapp"] .brand-ico, .rail-btn[data-brand="whatsapp"] svg { fill: #25D366; }
.share-link[data-brand="facebook"] .brand-ico, .rail-btn[data-brand="facebook"] svg { fill: #0866FF; }
.share-link[data-brand="x"] .brand-ico, .rail-btn[data-brand="x"] svg { fill: #000; }
.share-link[data-brand="linkedin"] .brand-ico, .rail-btn[data-brand="linkedin"] svg { fill: #0A66C2; }
.share-link[data-brand="telegram"] .brand-ico, .rail-btn[data-brand="telegram"] svg { fill: #26A5E4; }
.share-status { font-size: 0.875rem; margin-top: 10px; min-height: 1.4em; }

/* Footer */
.site-footer { padding-block: clamp(48px, 6vw, 80px) calc(var(--dock) + 40px); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px clamp(32px, 4vw, 64px); padding-bottom: 40px; border-bottom: 1px solid var(--rule); }
.footer-lockup { height: 48px; width: auto; }
.footer-brand { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 30em); align-items: center; gap: 20px clamp(32px, 4vw, 64px); }
.footer-brand .footer-descriptor { margin-top: 0; }
.footer-family { width: min(100%, 520px); }
.footer-descriptor { color: var(--muted); font-size: 0.9375rem; margin-top: 18px; max-width: 30em; }
.footer-col h2 { font-size: 1rem; margin-bottom: 14px; letter-spacing: -0.01em; }
.footer-col ul { display: grid; gap: 2px; }
/* Plain links only: a button in a footer column keeps its own layout (it is a flex box that centres its label). */
.footer-col a:not(.btn) { display: inline-block; padding-block: 5px; color: var(--muted); text-decoration: none; }
.footer-col a:not(.btn):hover { color: var(--white); text-decoration: underline; }
.footer-join p { color: var(--muted); margin-bottom: 18px; }
.footer-bottom { padding-top: 24px; font-size: 0.875rem; color: var(--muted); display: grid; gap: 10px; }
.footer-bottom a { color: var(--white); }
.footer-fine { font-size: 0.8125rem; max-width: 70em; }


/* Breakpoints */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  :root { --header: 72px; }
  .header-link, .nav-extra { display: none; }
  .header-family { width: clamp(260px, 46vw, 400px); }
  .footer-brand { grid-template-columns: minmax(0, 1fr); }
  .section-head, .join-grid, .share-inner { grid-template-columns: minmax(0, 1fr); }
  .join-intro { position: static; }
  .phone-frame { display: none; }
  .loc-hero { grid-template-columns: 1fr; }
  .loc-side { order: -1; min-height: 0; aspect-ratio: 16 / 9; }
  .loc-side-map { padding: 32px var(--gutter); }
  .loc-copy { max-width: none; justify-self: stretch; }
  .cities-head .locator { display: none; }
}
@media (max-width: 640px) {
  :root { --header: 68px; --dock: 76px; }
  .eyebrow-line { font-size: 0.8125rem; margin-bottom: 12px; }
  body { font-size: 1rem; }
  .brand { gap: 10px; }
  .brand-lockup { height: 38px; }
  .flag-za { width: 20px; height: 13px; flex-basis: 20px; }
  /* Logo alone and dead centre, sized explicitly so no browser has to guess. */
  .header-inner { justify-content: center; }
  .header-side { display: none; }
  .brand-family { width: 100%; justify-content: center; }
  .header-family { width: min(100%, 360px); }
  .dock { left: 12px; right: 12px; transform: none; justify-content: space-between; }
  .dock > a, .dock-more-btn { min-width: 0; flex: 1; padding-inline: 4px; }
  /* Full width on phones: the open state and its entry animation must not bring back the desktop -50% centring,
     which pushed half the menu off the left edge. */
  .dock-more, .dock-more:popover-open { left: 12px; right: 12px; width: auto; transform: none; }
  @starting-style { .dock-more:popover-open { transform: translateY(10px); } }
  .dock-more-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .form-grid, .choice-grid { grid-template-columns: 1fr; }
  .registration-form { padding: 24px 20px; border-radius: var(--r); }
  .city-grid, .drive-list { grid-template-columns: minmax(0, 1fr); }
  .article-body { font-size: 1.0625rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 380px) {
  :root { --gutter: 16px; }
  .brand-lockup { height: 34px; }
  .brand-flag { display: none; }
  .display .nowrap { white-space: normal; }
  .loc-hero h1, .article-head h1 { overflow-wrap: anywhere; }
  .dock > a span, .dock-more-btn span { font-size: 0.6875rem; }
}

@media (forced-colors: active) {
  .btn, .share-link, .filter-btn, .dock > a, .dock-more-btn, .dock-more, .route-finder, .strip-card a, .registration-form, .form-closed, .form-success, .notice-status, .local-status, .model-card, .fuel-tags li { border: 1px solid CanvasText; }
  .filter-btn[aria-pressed="true"], .filter-btn[aria-pressed="true"]:hover, .dock > a[aria-current="page"], .dock-more-btn[data-here], .dock-more-list a[aria-current="page"] { forced-color-adjust: none; background: Highlight; color: HighlightText; border-color: Highlight; }
  .strip-copy, .loc-side figcaption { background: Canvas; color: CanvasText; }
  .road::before, .faq-list summary::before, .faq-list summary::after, .chip-list li::before, .news-meta > *::before, .article-body ul li::before, .arrow-link::after { background: CanvasText; border-color: CanvasText; forced-color-adjust: none; }
  .road li::before, .field-error::before { forced-color-adjust: none; background: CanvasText; color: Canvas; }
  .locator .province { stroke: CanvasText; fill: Canvas; }
  .locator .province.is-current { fill: Highlight; }
  select { appearance: auto; background-image: none; padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .site-header, .dock, .film, .film-cue, .phone-frame, .strip, .registration-form, .share, .locator { display: none; }
  body { padding-bottom: 0; }
  .dark, .route-ask, .drives-section, .join, .site-footer, .loc-hero, .article-head { background: none; color: #000; }
}

/* Local guide sections on province and city pages */
.local-copy p { color: var(--grey); max-width: 40em; }
.local-copy p + p { margin-top: 1em; }
.model-reading { padding-block: 8px 40px; }

/* Home page */
/* The film hero: the organiser's own footage fills the screen with nothing over it. As you scroll, the frame
   settles into a rounded card (scroll-driven CSS; browsers without it get a plain full-screen film). Wide
   screens show the skid pan; phones the circuit lap. */
.film-hero { --film-h: calc(100svh - var(--header) - var(--dock) - 20px); position: relative; height: var(--film-h); background: var(--black); }
.film-stage { position: sticky; top: var(--header); height: var(--film-h); overflow: hidden; background: var(--black); }
.film-frame { position: absolute; inset: 0; overflow: hidden; background: var(--coal); }
.film { position: absolute; inset: 0; }
.film video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.film-tall { display: none; }
.film-tall video { object-position: 50% 40%; }
/* Without the scroll animation the next section starts right under the film, level with the dock: leave room so no text peeks out beside it. */
.film-hero + .route-ask { padding-top: calc(var(--dock) + 24px + clamp(56px, 8vw, 112px)); }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .film-hero { height: calc(var(--film-h) + 40svh); }
    .film-hero + .route-ask { padding-top: clamp(56px, 8vw, 112px); }
    .film-frame { animation: settle linear both; animation-timeline: scroll(root); animation-range: 0 40svh; }
    @keyframes settle { to { inset: 10% 4% 6%; border-radius: 28px; } }
  }
}

/* The film's stage stops above the dock (--film-h), so the dock never sits over it. The one thing over the film is a
   small "Scroll down" cue at its foot, which the owner asked for. It links to the next section, bobs while the page
   is still, and fades once you scroll. With reduced motion it stays still. */
.film-cue { position: absolute; left: 50%; bottom: clamp(16px, 3svh, 28px); z-index: 2; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px 0 20px; border-radius: var(--pill); background: rgba(11, 11, 11, .62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; font-size: 0.9375rem; font-weight: 600; letter-spacing: .01em; text-decoration: none; white-space: nowrap; }
.film-cue:hover { background: rgba(11, 11, 11, .78); }
.film-cue:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.film-cue-arrow { width: 20px; height: 20px; flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .film-cue-label { animation: cue-pulse 2.4s ease-in-out infinite; }
  .film-cue-arrow { animation: cue-drop 1.6s cubic-bezier(.45, 0, .2, 1) infinite; }
  @keyframes cue-pulse { 50% { opacity: .85; } }
  @keyframes cue-drop { 0% { transform: translateY(-5px); opacity: 0; } 30% { opacity: 1; } 70% { transform: translateY(5px); opacity: 1; } 100% { transform: translateY(5px); opacity: 0; } }
}
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .film-cue { animation: cue-out linear both; animation-timeline: scroll(root); animation-range: 0 12svh; }
    @keyframes cue-out { to { opacity: 0; visibility: hidden; } }
  }
}

/* The question: black block under the film, the finder as a panel beside the copy. */
.route-ask { padding-block: clamp(56px, 8vw, 112px); }
.route-ask-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px clamp(40px, 6vw, 96px); align-items: center; }
.route-ask h1 { font-size: clamp(2.75rem, 7vw, 6.5rem); margin-bottom: 22px; letter-spacing: -0.04em; }
.lead { font-size: clamp(1.0625rem, 1.3vw, 1.25rem); line-height: 1.55; color: var(--muted); max-width: 34em; margin-bottom: 30px; }
.route-finder { display: grid; gap: 14px; padding: 24px; border: 1px solid var(--line-dark); border-radius: var(--r-lg); background: var(--coal); }
.route-finder-title { font-family: var(--font-display); font-weight: 700; font-size: 1.375rem; letter-spacing: -0.02em; margin-bottom: 4px; }
.route-field { display: grid; gap: 6px; font-weight: 650; font-size: 0.9375rem; }
.route-finder .btn { justify-self: start; margin-top: 4px; }
.route-finder select { background-color: var(--black); color: var(--white); border-color: #4a4a4a; }
.route-finder select:hover { border-color: var(--white); }
.route-finder .hero-note { margin-top: 8px; }
.figures { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 8px; }
.figures > div { display: flex; align-items: baseline; gap: 8px; }
.figures dd { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 2.4vw, 2.125rem); letter-spacing: -0.03em; line-height: 1; min-width: 1.2em; }
.figures dt { font-size: 0.875rem; color: #c9c9c9; }
.hero-note { font-size: 0.8125rem; color: var(--muted); max-width: 46em; }
.credit { display: block; color: var(--grey); font-size: 0.8125rem; margin-top: 8px; }

/* The strip: nine provinces side by side, flicked through, with a numbered index. */
.strip-section { padding-bottom: clamp(48px, 6vw, 80px); }
.strip-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 64px; align-items: end; margin-bottom: 32px; }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(260px, 34vw, 520px); gap: 16px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding: 4px var(--gutter) 20px; scrollbar-width: thin; scrollbar-color: var(--black) transparent; }
.strip-card { scroll-snap-align: start; }
.strip-card a { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; background: var(--chalk); color: var(--white); text-decoration: none; isolation: isolate; }
.strip-card picture, .strip-card img, .strip-map { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.strip-map { display: grid; place-items: center; background: var(--coal); padding: 12%; }
.strip-map .locator { width: 100%; max-width: none; }
.strip-card a::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(11, 11, 11, .85) 0%, rgba(11, 11, 11, .2) 55%, rgba(11, 11, 11, 0) 100%); }
.strip-card a:hover img { transform: scale(1.04); }
.strip-index { position: absolute; top: 16px; left: 18px; font-size: 0.9375rem; color: var(--gold); }
.strip-copy { position: absolute; left: 18px; right: 18px; bottom: 16px; display: grid; gap: 2px; }
.strip-copy strong { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.375rem, 2vw, 1.75rem); letter-spacing: -0.02em; line-height: 1.1; }
.strip-copy span { font-size: 0.9375rem; color: #d9d9d9; }
.strip-card .credit { margin-top: 10px; }
.strip-photo { position: absolute; inset: 0; z-index: -2; }
.strip-photo picture, .strip-photo img { position: static; width: 100%; height: 100%; object-fit: cover; }
.strip-arrows { display: flex; gap: 8px; margin-top: 16px; }
.arrow-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1.5px solid var(--black); border-radius: 50%; background: var(--white); color: var(--black); cursor: pointer; }
.arrow-btn svg { width: 20px; height: 20px; }
.arrow-btn:hover { background: var(--black); color: var(--white); }
.vt-gauteng { view-transition-name: drive-gauteng; } .vt-western-cape { view-transition-name: drive-western-cape; } .vt-kwazulu-natal { view-transition-name: drive-kwazulu-natal; } .vt-eastern-cape { view-transition-name: drive-eastern-cape; } .vt-free-state { view-transition-name: drive-free-state; } .vt-limpopo { view-transition-name: drive-limpopo; } .vt-mpumalanga { view-transition-name: drive-mpumalanga; } .vt-north-west { view-transition-name: drive-north-west; } .vt-northern-cape { view-transition-name: drive-northern-cape; }
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }
.area-search { max-width: 36rem; margin-top: 8px; }
.area-search label { display: block; font-weight: 650; margin-bottom: 8px; }
.area-search small { display: block; color: var(--muted); font-size: 0.875rem; margin-top: 6px; }
.area-results { margin-top: 8px; border-top: 1px solid var(--rule); }
.area-results:empty { display: none; }
.area-results li { border-bottom: 1px solid var(--rule); }
.area-results a { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 12px 4px; min-height: 44px; font-weight: 650; text-decoration: none; }
.area-results a:hover, .area-results a:focus-visible { text-decoration: underline; }
.area-results a span { font-weight: 400; color: var(--muted); }
.area-none { padding: 12px 4px; color: var(--muted); }

/* The four drives: an editorial numbered list on black, each row with its photograph. */
.drives-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.6fr); gap: 32px clamp(40px, 6vw, 96px); align-items: start; }
.drives-head { position: sticky; top: calc(var(--header) + 32px); }
.drives-head p { color: var(--muted); max-width: 28em; margin-top: 18px; }
.drives-list { border-top: 1px solid var(--rule); }
.drive-row { padding-block: 24px; border-bottom: 1px solid var(--rule); }
.drive-copy h3 { font-size: clamp(1.5rem, 2.4vw, 2.125rem); line-height: 1.08; margin-bottom: 8px; }
.drive-copy p { color: var(--muted); max-width: 32em; }

/* The welcome line under the track film. */
.welcome { background: var(--chalk); border-block: 1px solid var(--line); }
.welcome h2 { font-size: clamp(2rem, 3.6vw, 3.25rem); margin-bottom: 20px; max-width: 18ch; }
.welcome .lead { color: var(--grey); max-width: 38em; }

/* The road: the four steps as stops along one line. */
.road { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 40px); counter-reset: stop; padding-top: 36px; }
.road::before { content: ''; position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: repeating-linear-gradient(90deg, var(--black) 0 18px, transparent 18px 30px); }
.road li { position: relative; counter-increment: stop; padding-top: 8px; }
.road li::before { content: counter(stop, decimal-leading-zero); position: absolute; top: -36px; left: 0; display: grid; place-items: center; min-width: 24px; height: 24px; padding-inline: 6px; border-radius: var(--pill); background: var(--black); color: var(--white); font-size: 0.75rem; letter-spacing: 0; line-height: 1; }
.road h3 { font-weight: 700; font-size: 1.25rem; line-height: 1.25; margin-bottom: 8px; letter-spacing: -0.01em; }
.road p { color: var(--muted); }

/* News */
.news-home { border-top: 1px solid var(--line); }
.news-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: 24px clamp(40px, 6vw, 96px); align-items: start; }
.news-lead p { margin-top: 16px; margin-bottom: 8px; }
.news-list { border-top: 1px solid var(--rule); }
.news-item { display: grid; grid-template-columns: minmax(0, 170px) minmax(0, 1fr); gap: 6px 32px; padding-block: 24px; border-bottom: 1px solid var(--rule); }
.news-item h3 { font-size: clamp(1.3125rem, 2vw, 1.75rem); line-height: 1.15; grid-column: 2; }
.news-item h3 a { text-decoration: none; }
.news-item h3 a:hover { text-decoration: underline; }
.news-item > p:not(.news-meta) { grid-column: 2; color: var(--muted); max-width: 46em; }
.news-item .news-meta { grid-row: span 2; flex-direction: column; }
.news-item .news-meta > * { margin-left: 0; padding-left: 0; }
.news-item .news-meta > *::before { display: none; }
.news-meta { display: flex; flex-wrap: wrap; gap: 2px 24px; font-size: 0.9375rem; color: var(--muted); overflow: hidden; }
.news-meta > * { position: relative; margin-left: -14px; padding-left: 14px; }
.news-meta > *::before { content: ''; position: absolute; left: 0; top: .7em; width: 4px; height: 4px; background: var(--gold); border-radius: 50%; }
.article-head .wrap { padding-block: clamp(40px, 5vw, 72px) clamp(32px, 4vw, 56px); }
.article-head .news-meta { margin-block: 22px 6px; }
.article-head h1 { font-size: clamp(1.875rem, 3.8vw, 3rem); line-height: 1.05; margin-block: 10px 20px; max-width: 24ch; }
.article-wrap { max-width: 860px; }
.article-body { font-size: 1.125rem; line-height: 1.72; }
.article-body > p, .article-body > ul { max-width: 40em; }
.article-body > p + p, .article-body > ul, .article-body > p + ul, .article-body > ul + p { margin-top: 18px; }
.article-body h2 { font-size: clamp(1.5rem, 2.4vw, 1.875rem); line-height: 1.15; margin-block: 44px 12px; }
.article-body ul { padding-left: 0; }
.article-body ul li { position: relative; padding-left: 24px; }
.article-body ul li::before { content: ''; position: absolute; left: 4px; top: .66em; width: 7px; height: 7px; background: var(--gold); border-radius: 50%; }
.article-body ul li + li { margin-top: 8px; }
.article-body .note { margin-block: 32px 24px; }
.sources { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--black); }
.sources h2 { margin-top: 0; font-size: 1.375rem; }
.sources ul { font-size: 0.9375rem; }
.sources ul li { padding: 9px 0 9px 24px; border-bottom: 1px solid var(--line); }
.sources ul li + li { margin-top: 0; }
.sources ul li::before { top: 1.15em; }

/* Questions: two columns, a plus that turns into a minus */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: 24px clamp(40px, 6vw, 96px); align-items: start; }
.faq-head { position: sticky; top: calc(var(--header) + 32px); }
.faq-head p { margin-top: 16px; }
.faq-list { border-top: 1px solid var(--black); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; list-style: none; cursor: pointer; padding: 20px 56px 20px 0; font-size: 1.125rem; font-weight: 650; line-height: 1.4; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before, .faq-list summary::after { content: ''; position: absolute; right: 12px; top: 50%; width: 14px; height: 2px; margin-top: -1px; background: var(--black); border-radius: 1px; transition: transform .2s ease; }
.faq-list summary::after { transform: rotate(90deg); }
.faq-list details[open] summary::after { transform: rotate(0deg); }
.faq-list summary:hover { color: #8a5f12; }
.faq-list details p { color: var(--grey); padding: 0 56px 22px 0; max-width: 40em; }


/* Home breakpoints */
@media (max-width: 1080px) {
}
@media (max-width: 900px) {
  .film-wide { display: none; }
  .film-tall { display: block; }
  .route-ask-grid { grid-template-columns: 1fr; }
  .route-ask h1 { font-size: clamp(2.5rem, 10vw, 4rem); }
  .track-grid { grid-template-columns: 1fr; }
  .strip-head, .drives-grid, .news-grid, .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .drives-head, .faq-head { position: static; }
  .road { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .news-item { grid-template-columns: 1fr; }
  .news-item h3, .news-item > p:not(.news-meta) { grid-column: 1; }
  .news-item .news-meta { grid-row: auto; }
}
@media (max-width: 640px) {
  .route-finder { padding: 16px; }
  .route-finder .btn { justify-self: stretch; }
  .figures { gap: 8px 22px; }
  .strip { grid-auto-columns: 86vw; }
    .road { grid-template-columns: 1fr; padding-top: 0; padding-left: 36px; row-gap: 28px; }
  .road::before { left: 11px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--black) 0 14px, transparent 14px 24px); }
  .road li::before { top: 2px; left: -36px; }
  .faq-list summary { font-size: 1.0625rem; }
}

/* Models guide: a visual catalogue of the range (main.models-page) and one page per model line (main.model-page).
   The photographs morph from card to page (view transitions); a model without a photograph gets a typographic
   card, never a drawn stand-in; cards lay themselves out by their own width (container queries); the compare view is a <dialog>
   whose columns line up row for row (subgrid). Everything works without JavaScript: every model is listed. */

/* The catalogue */
main.models-page .models-hero { padding-top: clamp(32px, 5vw, 64px); }
main.models-page .models-hero-copy { padding-bottom: clamp(28px, 4vw, 48px); }
main.models-page .models-hero h1 { font-size: clamp(2.125rem, 4.6vw, 4rem); margin-block: 22px; max-width: 18ch; letter-spacing: -0.035em; }
main.models-page .models-hero .lead { max-width: 40em; margin-bottom: 0; }
main.models-page .models-hero .hero-note { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--rule); max-width: 46em; }
main.models-page .body-tabs {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px;
  max-width: var(--max); margin-inline: auto; padding: 4px var(--gutter) clamp(28px, 4vw, 48px);
}
main.models-page .body-tabs li { display: grid; }
main.models-page .body-tab {
  display: grid; align-content: center; gap: 2px; min-height: 100%; padding: 18px 16px 16px; border: 1px solid var(--rule); border-radius: var(--r-lg);
  background: var(--coal); color: var(--fg); font: inherit; text-align: left; text-decoration: none; cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, transform .2s ease;
}
main.models-page .body-tab-name { font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.015em; line-height: 1.2; }
main.models-page .body-tab-count { font-size: 0.875rem; color: var(--muted); }
main.models-page .body-tab-count b { font-weight: 650; color: var(--fg); }
main.models-page .body-tab-all { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 3vw, 2.75rem); letter-spacing: -0.03em; line-height: 1; margin-bottom: 14px; color: #d4d4d4; }
main.models-page .body-tab:hover { border-color: #6a6a6a; background: #1f1f1f; }
main.models-page .body-tab:hover .body-tab-name, main.models-page .body-tab[aria-pressed="true"] .body-tab-name, main.models-page .body-tab[aria-pressed="true"] .body-tab-all { color: var(--gold); }
main.models-page .body-tab[aria-pressed="true"] { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
main.models-page .body-tab:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
main.models-page .body-tab.is-empty:not([aria-pressed="true"]) { opacity: .55; }

main.models-page .models-bar { position: sticky; top: var(--header); z-index: 20; background: rgba(255, 255, 255, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
main.models-page .models-bar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 32px; min-height: 68px; padding-block: 10px; }
main.models-page .models-bar-title { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; display: flex; align-items: baseline; gap: 12px; }
main.models-page .models-bar-count { font-family: var(--font); font-weight: 500; font-size: 0.9375rem; color: var(--grey); letter-spacing: 0; }
main.models-page .fuel-chips { display: flex; flex-wrap: wrap; gap: 8px; }
main.models-page .chip { min-height: 44px; padding: 0 18px; border: 1.5px solid var(--black); border-radius: var(--pill); background: var(--white); color: var(--black); font: inherit; font-size: 0.9375rem; font-weight: 650; cursor: pointer; transition: background-color .15s ease, color .15s ease; }
main.models-page .chip:hover { background: var(--chalk); }
main.models-page .chip[aria-pressed="true"] { background: var(--black); color: var(--white); }
main.models-page .chip[aria-pressed="true"]:hover { background: var(--gold); border-color: var(--gold); color: var(--black); }

main.models-page .model-group { padding-top: clamp(40px, 5vw, 72px); scroll-margin-top: calc(var(--header) + 84px); }
main.models-page .model-group-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; padding-top: 18px; border-top: 1px solid var(--black); margin-bottom: 22px; }
main.models-page .model-group-title { font-size: clamp(1.625rem, 2.8vw, 2.25rem); line-height: 1.1; }
main.models-page .model-group-count { color: var(--grey); font-size: 0.9375rem; margin-left: auto; }
main.models-page .model-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; }
main.models-page .catalogue-empty { padding: 40px 0 8px; font-size: 1.125rem; }
main.models-page .catalogue-reset { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 0.22em; }
main.models-page .catalogue > .wrap > .note { margin-top: clamp(40px, 5vw, 64px); }

/* A card: the photograph, then the name. Its layout answers its own width, not the viewport's. */
.mcard { container-type: inline-size; min-width: 0; }
.mcard-in { position: relative; display: grid; grid-template-rows: auto 1fr; height: 100%; border-radius: var(--r-lg); background: var(--chalk); overflow: hidden; isolation: isolate; transition: background-color .15s ease; }
.mcard:hover .mcard-in { background: #ebebe7; }
.mcard-media { position: relative; aspect-ratio: 4 / 3; background: var(--coal); overflow: hidden; }
.mcard-media picture, .mcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.mcard:hover .mcard-media img { transform: scale(1.03); }
/* The CLA Sedan's car sits right of centre, so when its card is cropped tall (the wide first card) the nose stays in frame. */
.mcard[data-slug="cla-sedan"] .mcard-media img { object-position: 78% 50%; }
.mcard-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; }
.mcard-name { font-family: var(--font-display); font-weight: 700; font-size: 1.375rem; line-height: 1.15; letter-spacing: -0.02em; }
.mcard-name a { text-decoration: none; }
.mcard-name a::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.mcard-name a:focus-visible { outline: none; }
.mcard:has(.mcard-name a:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.mcard:hover .mcard-name a { text-decoration: underline; text-decoration-color: var(--gold); }
.mcard-gen { font-size: 0.9375rem; color: var(--grey); line-height: 1.45; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.mcard .fuel-tags { margin-top: auto; padding-top: 12px; }
.fuel-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.fuel-tags li { font-size: 0.8125rem; font-weight: 650; padding: 3px 12px; line-height: 1.3; background: var(--white); border: 1px solid var(--line); border-radius: var(--pill); }
.mcard-nophoto { --bg: var(--black); --fg: var(--white); --muted: #b9b9b9; --rule: var(--line-dark); --focus: var(--gold); color: var(--fg); }
.mcard-nophoto .mcard-in { background: var(--black); }
.mcard-nophoto:hover .mcard-in { background: var(--coal); }
.mcard-nophoto .mcard-gen { color: var(--muted); }
.mcard-nophoto .fuel-tags li { background: transparent; border-color: rgba(255, 255, 255, .28); color: #ededed; }
.mcard-nophoto .mcard-name { font-size: 1.625rem; }
/* No photograph: the card is its text, set large on black. The name sits at the foot, like a plate. */
.mcard-nophoto .mcard-in { grid-template-rows: 1fr; min-height: 220px; }
/* The top padding keeps the name clear of the Compare button in the corner. */
.mcard-nophoto .mcard-body { justify-content: flex-end; gap: 8px; padding: 70px 22px 22px; border-top: 4px solid var(--gold); }
@container (min-width: 560px) {
  .mcard-in { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-rows: none; }
  .mcard-nophoto .mcard-in { grid-template-columns: minmax(0, 1fr); }
  .mcard-media { aspect-ratio: auto; min-height: 280px; height: 100%; }
  .mcard-body { padding: 26px 28px 28px; justify-content: end; gap: 8px; }
  .mcard-body .fuel-tags { margin-top: 6px; }
  .mcard-name { font-size: 1.75rem; }
  .mcard-nophoto .mcard-name { font-size: 2.125rem; }
}
/* Three across; when the count does not divide by three the first card goes wide, so no row is left ragged. */
@media (min-width: 1081px) {
  main.models-page .model-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  main.models-page .model-cards:not(:has(> .mcard:nth-child(3n):last-child)) > .mcard:first-child { grid-column: span 2; }
}
@media (min-width: 641px) and (max-width: 1080px) {
  main.models-page .model-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  main.models-page .model-cards:not(:has(> .mcard:nth-child(2n):last-child)) > .mcard:first-child { grid-column: span 2; }
}
.cmp-toggle, .cmp-link {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px;
  border: 1px solid rgba(255, 255, 255, .3); border-radius: var(--pill); background: rgba(11, 11, 11, .72); color: var(--white);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font: inherit; font-size: 0.875rem; font-weight: 650; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.cmp-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cmp-toggle .cmp-tick { display: none; }
.cmp-toggle:hover, .cmp-link:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.cmp-toggle[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--black); }
.cmp-toggle[aria-pressed="true"] .cmp-plus { display: none; }
.cmp-toggle[aria-pressed="true"] .cmp-tick { display: block; }
.cmp-toggle:focus-visible, .cmp-link:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; box-shadow: 0 0 0 7px rgba(11, 11, 11, .9); }
.mcard:has(.cmp-toggle[aria-pressed="true"]) .mcard-in { box-shadow: inset 0 0 0 2px var(--gold); }

/* Scroll-driven: each card rises as it enters. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    main.models-page .model-cards .mcard { animation: mcard-in linear both; animation-timeline: view(); animation-range: entry 0% entry 28%; }
    @keyframes mcard-in { from { transform: translateY(28px) scale(.97); } }
  }
}

/* The compare bar floats above the dock the moment a model is picked. */
.cmp-bar {
  position: fixed; left: 50%; bottom: calc(var(--dock) + 28px); z-index: 45; translate: -50% 0;
  display: flex; align-items: center; gap: 12px 20px; width: max-content; max-width: calc(100vw - 24px); padding: 10px 10px 10px 22px;
  border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--pill); background: rgba(11, 11, 11, .92); color: var(--white);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .7);
  transition: opacity .25s ease, translate .25s ease, display .25s allow-discrete;
}
@starting-style { .cmp-bar:not([hidden]) { opacity: 0; translate: -50% 14px; } }
.cmp-bar-text { font-size: 0.9375rem; font-weight: 600; line-height: 1.35; }
.cmp-bar-text span { color: var(--gold); }
.cmp-bar-actions { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.cmp-bar .btn { background: var(--gold); border-color: var(--gold); color: var(--black); }
.cmp-bar .btn:hover { background: var(--white); border-color: var(--white); }
.cmp-bar .btn:disabled, .cmp-bar .btn:disabled:hover { background: #2a2a2a; border-color: #2a2a2a; color: #9a9a9a; }
.cmp-clear { min-height: 42px; padding: 0 14px; border: 0; border-radius: var(--pill); background: transparent; color: #d4d4d4; font: inherit; font-size: 0.875rem; font-weight: 650; cursor: pointer; }
.cmp-clear:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--gold); }
.cmp-bar :focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* The compare view: a dialog whose columns share one set of rows. */
.cmp-dialog { width: min(1160px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); margin: auto; padding: 0; border: 0; border-radius: var(--r-lg); background: var(--white); color: var(--black); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .6); overscroll-behavior: contain; }
.cmp-dialog::backdrop { background: rgba(11, 11, 11, .62); backdrop-filter: blur(6px); }
.cmp-dialog[open] { animation: cmp-dialog-in .28s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes cmp-dialog-in { from { opacity: 0; transform: translateY(14px) scale(.985); } }
.cmp-dialog-head { position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 20px; align-items: center; padding: 22px 28px 16px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.cmp-dialog-head h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -0.03em; line-height: 1.1; }
.cmp-dialog-hint { grid-column: 1; font-size: 0.9375rem; color: var(--grey); }
.cmp-close { grid-column: 2; grid-row: 1 / span 2; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px 0 14px; border: 1.5px solid var(--black); border-radius: var(--pill); background: var(--white); color: var(--black); font: inherit; font-size: 0.9375rem; font-weight: 650; cursor: pointer; }
.cmp-close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.cmp-close:hover { background: var(--black); color: var(--white); }
.cmp-grid { display: grid; grid-template-columns: repeat(var(--n, 1), minmax(0, 1fr)); grid-template-rows: auto auto auto auto auto auto; gap: 0 24px; padding: 24px 28px 8px; }
.cmp-grid[data-n="2"] { --n: 2; }
.cmp-grid[data-n="3"] { --n: 3; }
.cmp-col { display: grid; grid-row: 1 / -1; grid-template-rows: subgrid; row-gap: 16px; align-items: start; padding-bottom: 20px; }
.cmp-col .mcard-media { border-radius: var(--r); aspect-ratio: 16 / 10; }
.cmp-name { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; line-height: 1.1; letter-spacing: -0.025em; }
.cmp-facts { display: grid; gap: 0; border-top: 1px solid var(--black); font-size: 0.9375rem; }
.cmp-facts div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.cmp-facts dt { color: var(--grey); }
.cmp-facts dd { font-weight: 600; }
.cmp-block h4 { font-size: 0.9375rem; font-weight: 700; margin-bottom: 8px; }
.cmp-range, .cmp-know { font-size: 0.9375rem; line-height: 1.5; color: var(--grey); }
.cmp-range li, .cmp-know li { position: relative; padding-left: 18px; }
.cmp-range li::before, .cmp-know li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; background: var(--gold); border-radius: 50%; }
.cmp-range li + li, .cmp-know li + li { margin-top: 8px; }
.cmp-range strong { color: var(--black); font-weight: 650; }
.cmp-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding-top: 6px; border-top: 1px solid var(--line); }
.cmp-remove { min-height: 44px; padding: 0 6px; border: 0; background: none; color: var(--grey); font: inherit; font-size: 0.9375rem; font-weight: 650; cursor: pointer; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 0.22em; }
.cmp-remove:hover { color: var(--black); }
.cmp-col.cmp-empty { grid-column: auto; grid-template-rows: none; display: grid; place-content: center; min-height: 240px; padding: 24px; margin-bottom: 20px; border: 1.5px dashed #c9c9c6; border-radius: var(--r); color: var(--grey); text-align: center; text-wrap: balance; }
.cmp-grid[data-n="2"]:has(> .cmp-empty) { grid-template-columns: minmax(0, 1fr) minmax(0, .6fr); }
.cmp-grid[data-n="3"]:has(> .cmp-empty) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .6fr); }
.cmp-empty a { font-weight: 650; }
.cmp-dialog-foot { padding: 12px 28px 24px; font-size: 0.875rem; color: var(--grey); }

/* View transitions: each model's photograph is the one element that carries over from the catalogue to its page. */
.vt-model-cla-sedan { view-transition-name: model-cla-sedan; } .vt-model-c-class-sedan { view-transition-name: model-c-class-sedan; } .vt-model-e-class-sedan { view-transition-name: model-e-class-sedan; }
.vt-model-eqs-suv { view-transition-name: model-eqs-suv; } .vt-model-eqe-suv { view-transition-name: model-eqe-suv; } .vt-model-gla { view-transition-name: model-gla; } .vt-model-glc { view-transition-name: model-glc; }
.vt-model-glc-coupe { view-transition-name: model-glc-coupe; } .vt-model-gle { view-transition-name: model-gle; } .vt-model-gle-coupe { view-transition-name: model-gle-coupe; } .vt-model-gls { view-transition-name: model-gls; }
.vt-model-mercedes-maybach-gls { view-transition-name: model-mercedes-maybach-gls; } .vt-model-g-class { view-transition-name: model-g-class; } .vt-model-a-class-hatchback { view-transition-name: model-a-class-hatchback; }
.vt-model-cla-coupe { view-transition-name: model-cla-coupe; } .vt-model-cle-coupe { view-transition-name: model-cle-coupe; } .vt-model-mercedes-amg-gt-coupe { view-transition-name: model-mercedes-amg-gt-coupe; }
.vt-model-cle-cabriolet { view-transition-name: model-cle-cabriolet; } .vt-model-mercedes-amg-sl-roadster { view-transition-name: model-mercedes-amg-sl-roadster; } .vt-model-mercedes-maybach-sl-monogram-series { view-transition-name: model-mercedes-maybach-sl-monogram-series; }
.vt-model-v-class { view-transition-name: model-v-class; } .vt-model-vito-tourer { view-transition-name: model-vito-tourer; } .vt-model-vito-mixto { view-transition-name: model-vito-mixto; }
.mcard[hidden] .mcard-media, .cmp-dialog .mcard-media { view-transition-name: none; }

/* A model page: it opens on the photograph. */
main.model-page .model-band { position: relative; margin: 0; }
main.model-page .model-band-media { height: clamp(300px, 52vw, 76vh); background: var(--coal); overflow: hidden; }
main.model-page .model-band-media picture, main.model-page .model-band-media img { width: 100%; height: 100%; object-fit: cover; }
/* The manufacturer's pictures keep the car in the lower middle, so the wide band crops more from the top than the bottom and the wheels stay in frame. */
main.model-page .model-band-media img { object-position: 50% 68%; }
/* No photograph: the page opens on a black head carrying the name and the facts, with no picture area. */
main.model-page .model-head.dark { border-bottom: 1px solid var(--rule); }
main.model-page .model-head.dark .glance { border-top-color: var(--rule); }
main.model-page .model-head.dark .glance > div { border-bottom-color: var(--rule); }
main.model-page .model-head.dark .glance dt { color: var(--muted); }
main.model-page .model-head.dark .glance-gen dd { color: var(--fg); }
main.model-page .model-head.dark .glance .fuel-tags li { background: transparent; border-color: rgba(255, 255, 255, .28); color: #ededed; }
main.model-page .model-head.dark a { color: var(--fg); }
main.model-page .model-band figcaption { position: absolute; left: var(--gutter); bottom: 18px; max-width: min(36em, calc(100% - 2 * var(--gutter))); padding: 8px 14px; font-size: 0.8125rem; line-height: 1.45; color: var(--white); background: rgba(11, 11, 11, .62); border-radius: var(--r); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
main.model-page .model-band .credit { color: #c9c9c9; margin-top: 1px; font-size: 0.75rem; }
main.model-page .model-head > .wrap { padding-block: clamp(28px, 4vw, 48px) clamp(24px, 3vw, 36px); }
main.model-page .model-head h1 { font-size: clamp(2.25rem, 5.2vw, 4.5rem); line-height: .98; margin-block: 18px 18px; max-width: 16ch; letter-spacing: -0.04em; }
main.model-page .model-head .lead { max-width: 44em; margin-bottom: 30px; }
main.model-page .glance { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.8fr); gap: 0 clamp(20px, 3vw, 48px); border-top: 1px solid var(--black); }
main.model-page .glance > div { padding-block: 14px 16px; border-bottom: 1px solid var(--line); min-width: 0; }
main.model-page .glance dt { font-size: 0.8125rem; color: var(--grey); margin-bottom: 4px; }
main.model-page .glance dd { font-weight: 650; font-size: 1.0625rem; line-height: 1.4; }
main.model-page .glance .fuel-tags { margin-top: 2px; }
main.model-page .glance .fuel-tags li { background: var(--chalk); border-color: var(--chalk); }
main.model-page .glance-gen dd { font-weight: 500; font-size: 1rem; color: var(--black); }
main.model-page .model-nav { position: sticky; top: var(--header); z-index: 20; background: rgba(255, 255, 255, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-block: 1px solid var(--line); }
main.model-page .model-nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
main.model-page .model-nav ul { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-block: 8px; }
main.model-page .model-nav ul::-webkit-scrollbar { display: none; }
main.model-page .model-nav li { flex: 0 0 auto; }
main.model-page .model-nav ul a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--pill); font-size: 0.9375rem; font-weight: 650; text-decoration: none; color: var(--grey); transition: background-color .15s ease, color .15s ease; }
main.model-page .model-nav ul a:hover { color: var(--black); background: var(--chalk); }
main.model-page .model-nav ul a[aria-current="true"] { background: var(--black); color: var(--white); }
main.model-page .model-nav-compare { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 0.9375rem; font-weight: 650; text-decoration: none; }
main.model-page .model-nav-compare::before { content: ''; width: 10px; height: 10px; border: 2px solid var(--gold); border-radius: 3px; box-shadow: 5px 5px 0 -1px var(--white), 5px 5px 0 1px var(--gold); flex: 0 0 auto; margin: 0 8px 5px 0; }
main.model-page .model-nav-compare:hover { text-decoration: underline; }
main.model-page .model-section { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 2.4fr); gap: 16px clamp(32px, 5vw, 80px); padding-block: clamp(36px, 4.5vw, 64px); border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header) + 76px); }
main.model-page .model-section:first-child { border-top: 0; }
main.model-page .model-section > :not(h2) { grid-column: 2; min-width: 0; }
main.model-page .model-section h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -0.03em; line-height: 1.1; position: sticky; top: calc(var(--header) + 76px); }
main.model-page .model-prose { font-size: 1.125rem; line-height: 1.72; max-width: 40em; }
main.model-page .model-prose p + p { margin-top: 18px; }
main.model-page .range-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; }
main.model-page .range-tiles li { display: grid; align-content: start; gap: 8px; padding: 20px 20px 22px; background: var(--chalk); border-radius: var(--r); font-size: 0.9688rem; line-height: 1.5; color: var(--grey); }
main.model-page .range-tiles strong { font-family: var(--font-display); font-weight: 700; font-size: 1.1875rem; letter-spacing: -0.02em; line-height: 1.2; color: var(--black); }
main.model-page .know-list { border-top: 1px solid var(--black); max-width: 44em; }
main.model-page .know-list li { position: relative; padding: 14px 0 14px 26px; border-bottom: 1px solid var(--line); font-size: 1.0625rem; line-height: 1.55; }
main.model-page .know-list li::before { content: ''; position: absolute; left: 4px; top: 1.45em; width: 8px; height: 8px; background: var(--gold); border-radius: 50%; }
main.model-page .model-sources ul { font-size: 0.9375rem; border-top: 1px solid var(--black); max-width: 44em; }
main.model-page .model-sources li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
main.model-page .model-sources a { font-weight: 650; }
main.model-page .source-publisher { color: var(--grey); }
main.model-page .model-sources .note { margin-top: 28px; }
main.model-page .related-band { background: var(--chalk); border-top: 1px solid var(--line); padding-block: clamp(48px, 6vw, 80px); }
main.model-page .related-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 12px 48px; align-items: end; margin-bottom: 28px; }
main.model-page .related-head h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.75rem, 3vw, 2.5rem); letter-spacing: -0.03em; line-height: 1.1; }
main.model-page .related-head p { color: var(--grey); max-width: 36em; }
main.model-page .model-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; }
main.model-page .related-cards .mcard-in { background: var(--white); }
main.model-page .related-cards .mcard:hover .mcard-in { background: #fbfbfa; }
main.model-page .related-cards .mcard-nophoto .mcard-in { background: var(--black); }
main.model-page .related-cards .mcard-nophoto:hover .mcard-in { background: var(--coal); }
main.model-page .model-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-block: clamp(36px, 4vw, 56px); }

/* Breakpoints */
@media (max-width: 1080px) {
  main.model-page .glance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  main.model-page .model-section { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  main.model-page .model-section > :not(h2) { grid-column: 1; }
  main.model-page .model-section h2 { position: static; }
  main.model-page .related-head { grid-template-columns: minmax(0, 1fr); align-items: start; }
  main.model-page .model-nav-inner { flex-wrap: nowrap; }
}
@media (max-width: 640px) {
  main.models-page .models-hero { padding-top: 24px; }
  main.models-page .body-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  main.models-page .body-tab { padding: 14px 14px 12px; }
  main.models-page .models-bar-inner { min-height: 0; padding-block: 10px; gap: 8px; }
  main.models-page .models-bar-title { font-size: 1.125rem; }
  main.models-page .fuel-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter); width: calc(100% + 2 * var(--gutter)); }
  main.models-page .fuel-chips::-webkit-scrollbar { display: none; }
  main.models-page .chip { flex: 0 0 auto; min-height: 40px; padding: 0 14px; font-size: 0.875rem; }
  main.models-page .model-group { scroll-margin-top: calc(var(--header) + 112px); }
  .cmp-bar { bottom: calc(var(--dock) + 24px); padding: 8px 8px 8px 16px; gap: 8px 12px; }
  .cmp-bar-text { font-size: 0.875rem; }
  .cmp-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: var(--r); }
  .cmp-dialog-head { padding: 16px 16px 12px; grid-template-columns: minmax(0, 1fr) auto; }
  .cmp-dialog-hint { display: none; }
  .cmp-close { grid-row: 1; }
  .cmp-close span { display: none; }
  .cmp-close { padding: 0; width: 44px; justify-content: center; }
  .cmp-grid, .cmp-grid[data-n="2"]:has(> .cmp-empty), .cmp-grid[data-n="3"]:has(> .cmp-empty) { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 78vw; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; padding: 16px 16px 8px; gap: 0 14px; scrollbar-width: thin; }
  .cmp-col { scroll-snap-align: start; }
  .cmp-dialog-foot { padding: 8px 16px 20px; }
  main.model-page .model-band-media { height: clamp(220px, 62vw, 420px); }
  /* On a phone the caption sits under the picture: over it, it would hide the lower part of the car. */
  main.model-page .model-band figcaption { position: static; max-width: none; padding: 10px var(--gutter) 12px; font-size: 0.75rem; color: #e6e6e6; background: var(--coal); border-radius: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
  main.model-page .model-band .credit { color: #b3b3b3; }
  main.model-page .glance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  main.model-page .glance-gen { grid-column: 1 / -1; }
  main.model-page .model-section { scroll-margin-top: calc(var(--header) + 68px); }
  main.model-page .model-nav-compare { display: none; }
  main.model-page .model-prose { font-size: 1.0625rem; }
}
@media (max-width: 380px) {
  main.models-page .body-tabs { grid-auto-columns: 60vw; }
  .cmp-grid, .cmp-grid[data-n="2"]:has(> .cmp-empty), .cmp-grid[data-n="3"]:has(> .cmp-empty) { grid-auto-columns: 84vw; }
  .mcard-nophoto .mcard-name { font-size: 1.5rem; }
  main.model-page .model-head h1 { overflow-wrap: anywhere; }
}

@media (forced-colors: active) {
  .mcard-in, .cmp-toggle, .cmp-link, .fuel-tags li, main.models-page .body-tab, main.models-page .chip, .cmp-bar, .cmp-dialog, .cmp-close, .cmp-clear, .cmp-remove, main.model-page .range-tiles li, main.model-page .model-nav ul a { border: 1px solid CanvasText; }
  main.models-page .chip[aria-pressed="true"], main.models-page .chip[aria-pressed="true"]:hover, .cmp-toggle[aria-pressed="true"], main.model-page .model-nav ul a[aria-current="true"] { forced-color-adjust: none; background: Highlight; color: HighlightText; border-color: Highlight; }
  main.models-page .body-tab[aria-pressed="true"] { outline: 3px solid Highlight; outline-offset: -3px; }
  .cmp-range li::before, .cmp-know li::before, main.model-page .know-list li::before, main.model-page .model-nav-compare::before { background: CanvasText; border-color: CanvasText; forced-color-adjust: none; }
  main.model-page .model-band figcaption { background: Canvas; color: CanvasText; border: 1px solid CanvasText; }
}
@media print {
  main.models-page .models-bar, .cmp-bar, .cmp-dialog, .cmp-toggle, .cmp-link, main.model-page .model-nav, main.models-page .body-strip { display: none; }
  .mcard-in, .mcard-nophoto .mcard-in { background: none; color: #000; border: 1px solid #000; break-inside: avoid; }
  main.model-page .model-band-media { height: auto; }
  main.model-page .model-band figcaption { position: static; color: #000; background: none; padding: 8px 0; }
  main.model-page .model-section h2 { position: static; }
  main.model-page .related-band { background: none; }
}

/* News: the front page (main.news-page), each story (main.article-page) and the story cards the home page shares.
   The photograph leads: it opens the front page, morphs into the story's opening band (cross-document view
   transitions) and sits on every card. Reading progress is a scroll-driven gold line under the header. */

/* Story cards: shared with the home page. A card lays itself out by its own width (container query). */
.story-list { display: grid; gap: 28px 24px; }
.story-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.story-rows { grid-template-columns: minmax(0, 1fr); gap: 0; }
.story-card { container-type: inline-size; container-name: story; display: grid; gap: 8px; min-width: 0; }
.story-link { display: grid; gap: 16px; color: inherit; text-decoration: none; border-radius: var(--r-lg); }
.story-link:focus-visible { outline: 3px solid var(--black); outline-offset: 4px; }
.story-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-lg); background: var(--coal); }
.story-media picture, .story-media img { width: 100%; height: 100%; object-fit: cover; }
.story-copy { display: grid; gap: 8px; min-width: 0; }
.story-copy h3, .story-copy h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.025em; font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.15; }
.story-link:hover h3, .story-link:hover h2 { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
.story-desc { color: var(--grey); font-size: 0.9688rem; max-width: 46em; }
.story-meta { display: flex; flex-wrap: wrap; gap: 2px 22px; font-size: 0.875rem; color: var(--grey); overflow: hidden; }
.story-meta > * { position: relative; margin-left: -13px; padding-left: 13px; }
.story-meta > *::before { content: ''; position: absolute; left: 0; top: .66em; width: 4px; height: 4px; background: var(--gold); border-radius: 50%; }
.story-card .credit { margin-top: 0; }
@container story (min-width: 560px) {
  .story-link { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 28px; align-items: start; }
  .story-media { aspect-ratio: 4 / 3; }
}
.story-rows .story-card { padding-block: 24px; border-top: 1px solid var(--rule); }
.story-rows .story-card:last-child { border-bottom: 1px solid var(--rule); }

/* The typographic card: the marque's word set huge and clipped, in the marque's ground. */
.story-type { position: absolute; inset: 0; display: grid; grid-template-rows: auto 1fr; overflow: hidden; padding: 6% 7% 0; background: var(--coal); color: var(--white); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); container-type: inline-size; }
.story-type-brand { font-size: clamp(0.75rem, 3.6cqi, 1rem); font-weight: 650; color: #b9b9b9; }
.story-type-word { align-self: end; display: block; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.06em; line-height: .78; font-size: 44cqi; margin: 0 0 -0.14em -0.05em; white-space: nowrap; }
.story-type-mercedes-benz .story-type-word { font-size: 13.5cqi; letter-spacing: -0.045em; }
.story-type-mercedes-amg { color: var(--gold); }
.story-type-mercedes-maybach { background: var(--chalk); color: var(--black); box-shadow: inset 0 0 0 1px var(--line); }
.story-type-mercedes-maybach .story-type-brand { color: var(--grey); }
.story-type-mercedes-maybach .story-type-word { font-size: 22cqi; }
.story-media:has(.story-type) { container-type: inline-size; }

/* The front page head: black, with the lead photograph breaking out of it into the white below. */
main.news-page .news-head { --bg: var(--black); --fg: var(--white); --muted: #b9b9b9; --rule: var(--line-dark); --focus: var(--gold); background: var(--bg); color: var(--fg); padding-block: clamp(28px, 4vw, 56px) clamp(140px, 16vw, 220px); }
main.news-page .news-head-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 16px 64px; align-items: end; margin-top: 18px; }
main.news-page .news-head h1 { font-size: clamp(2.5rem, 6vw, 5.25rem); letter-spacing: -0.04em; max-width: 12ch; }
main.news-page .news-head .lead { margin-bottom: 0; max-width: 34em; }
main.news-page .lead-story { margin-top: calc(-1 * clamp(110px, 13vw, 180px)); }
main.news-page .lead-media { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
main.news-page .lead-figure { position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--coal); aspect-ratio: 2 / 1; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6); }
main.news-page .lead-figure picture, main.news-page .lead-figure img { width: 100%; height: 100%; object-fit: cover; }
main.news-page .lead-figure figcaption { position: absolute; left: 20px; bottom: 16px; max-width: calc(100% - 40px); font-size: 0.8125rem; line-height: 1.4; color: #fff; background: rgba(11, 11, 11, .62); padding: 7px 14px; border-radius: var(--pill); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
main.news-page .lead-story-type .lead-figure { container-type: inline-size; aspect-ratio: 2.6 / 1; }
main.news-page .lead-story-type .story-type-word { font-size: 34cqi; }
main.news-page .lead-story-type .story-type-mercedes-benz .story-type-word { font-size: 13cqi; }
main.news-page .lead-story-type .story-type-mercedes-maybach .story-type-word { font-size: 20cqi; }
main.news-page .lead-copy { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 12px clamp(32px, 5vw, 72px); align-items: end; padding-top: clamp(24px, 3vw, 40px); }
main.news-page .lead-copy .story-meta { grid-column: 1; font-size: 0.9375rem; }
main.news-page .lead-copy h2 { grid-column: 1; font-size: clamp(1.75rem, 3.6vw, 3.125rem); line-height: 1.04; letter-spacing: -0.035em; max-width: 20ch; }
main.news-page .lead-desc { grid-column: 2; grid-row: 1 / span 2; align-self: end; color: var(--grey); font-size: 1.0625rem; max-width: 30em; }
main.news-page .lead-btn { grid-column: 2; justify-self: start; margin-top: 4px; }

/* More stories: the heading beside the feed link, the marque filters, the grid. */
main.news-page .stories { padding-top: clamp(48px, 7vw, 96px); }
main.news-page .stories-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 32px; margin-bottom: 22px; }
main.news-page .stories-head h2 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); }
main.news-page .brand-filter { padding-bottom: 24px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
main.news-page .brand-filter-pills { display: flex; flex-wrap: wrap; gap: 8px; }
main.news-page .brand-filter input { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
main.news-page .brand-filter label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1.5px solid var(--black); border-radius: var(--pill); background: var(--white); font-size: 0.9375rem; font-weight: 650; cursor: pointer; transition: background-color .15s ease, color .15s ease; }
main.news-page .brand-filter label:hover { background: var(--chalk); }
main.news-page .brand-filter input:checked + label { background: var(--black); color: var(--white); }
main.news-page .brand-filter input:focus-visible + label { outline: 3px solid var(--black); outline-offset: 3px; }
main.news-page .brand-filter .count { font-weight: 500; color: var(--grey); }
main.news-page .brand-filter input:checked + label .count { color: #c9c9c9; }
main.news-page .brand-filter-empty, main.news-page .stories-soon { display: none; }
main.news-page .stories-soon { display: block; max-width: 44em; padding: 24px 28px; border-radius: var(--r-lg); background: var(--chalk); color: var(--grey); }
/* The filter works without JavaScript: :has() reads the checked radio button and hides the other marques. */
main.news-page:has(#brand-mercedes-benz:checked) .story-grid .story-card:not(.story-mercedes-benz),
main.news-page:has(#brand-mercedes-amg:checked) .story-grid .story-card:not(.story-mercedes-amg),
main.news-page:has(#brand-mercedes-maybach:checked) .story-grid .story-card:not(.story-mercedes-maybach) { display: none; }
main.news-page:has(#brand-mercedes-benz:checked):not(:has(.story-grid .story-mercedes-benz)) .brand-filter-empty,
main.news-page:has(#brand-mercedes-amg:checked):not(:has(.story-grid .story-mercedes-amg)) .brand-filter-empty,
main.news-page:has(#brand-mercedes-maybach:checked):not(:has(.story-grid .story-mercedes-maybach)) .brand-filter-empty { display: block; color: var(--grey); padding: 24px 28px; border-radius: var(--r-lg); background: var(--chalk); max-width: 44em; }
main.news-page .stories .note { margin-top: 40px; }

/* The story page */
main.article-page { position: relative; }
main.article-page .read-progress { position: fixed; left: 0; right: 0; top: var(--header); z-index: 31; height: 3px; pointer-events: none; }
main.article-page .read-progress-bar { height: 100%; background: var(--gold); transform-origin: left center; scale: var(--progress, 0) 1; }
main.article-page { timeline-scope: --article; }
main.article-page .art-body { view-timeline: --article block; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    main.article-page .read-progress-bar { animation: read-grow linear both; animation-timeline: --article; animation-range: contain 0% contain 100%; }
    @keyframes read-grow { from { scale: 0 1; } to { scale: 1 1; } }
  }
}
main.article-page .art-band { position: relative; margin: 0; background: var(--coal); max-height: 74svh; overflow: hidden; }
main.article-page .art-band picture, main.article-page .art-band img { width: 100%; height: 100%; max-height: 74svh; object-fit: cover; }
main.article-page .art-band figcaption { position: absolute; left: 0; right: 0; bottom: 16px; pointer-events: none; }
main.article-page .art-band figcaption > span { display: inline; pointer-events: auto; }
main.article-page .art-band figcaption > span:first-child { font-size: 0.8125rem; line-height: 1.4; color: #fff; background: rgba(11, 11, 11, .62); padding: 7px 14px; border-radius: var(--pill); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
main.article-page .art-band figcaption .credit { display: inline-block; margin: 6px 0 0 8px; font-size: 0.8125rem; color: #fff; background: rgba(11, 11, 11, .62); padding: 7px 14px; border-radius: var(--pill); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
main.article-page .art-band-type { height: min(36vw, 52svh); min-height: 200px; container-type: inline-size; }
main.article-page .art-band-type .story-type { padding-inline: var(--gutter); }
main.article-page .art-band-type .story-type-word { font-size: 20cqi; }
main.article-page .art-band-type .story-type-mercedes-benz .story-type-word { font-size: 11cqi; }
main.article-page .art-band-type .story-type-mercedes-maybach .story-type-word { font-size: 16cqi; }
main.article-page .art-grid, main.article-page .art-layout, main.article-page .art-head-inner { display: grid; grid-template-columns: 56px minmax(0, 760px); column-gap: clamp(28px, 4vw, 64px); }
main.article-page .art-head-inner > * { grid-column: 2; }
main.article-page .art-head { padding-block: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 36px); }
main.article-page .art-head .story-meta { margin-top: 18px; font-size: 0.9375rem; }
main.article-page .art-head h1 { font-size: clamp(2rem, 4.2vw, 3.5rem); line-height: 1.04; letter-spacing: -0.035em; margin-block: 12px 18px; max-width: 22ch; text-wrap: balance; }
main.article-page .art-head .lead { margin-bottom: 0; max-width: 36em; }
main.article-page .art-column { grid-column: 2; min-width: 0; padding-bottom: clamp(48px, 6vw, 80px); }

/* The share rail: sticky beside the text on wide screens, a row above it on narrow ones. */
main.article-page .art-rail { grid-column: 1; align-self: start; position: sticky; top: calc(var(--header) + 24px); }
main.article-page .art-rail-inner { display: grid; justify-items: center; gap: 10px; }
main.article-page .art-rail-title { font-size: 0.8125rem; font-weight: 650; color: var(--grey); }
main.article-page .rail-btn { display: inline-grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1.5px solid var(--black); border-radius: 50%; background: var(--white); color: var(--black); cursor: pointer; transition: background-color .15s ease, color .15s ease; }
main.article-page .rail-btn svg { width: 20px; height: 20px; }
main.article-page .rail-btn:hover { border-color: var(--gold); background: var(--white); color: var(--black); }
main.article-page .rail-btn[data-brand="mail"] svg, main.article-page .rail-copy svg { fill: none; }
main.article-page .rail-btn:focus-visible { outline: 3px solid var(--black); outline-offset: 3px; }
main.article-page .rail-status { font-size: 0.75rem; text-align: center; color: var(--grey); min-height: 1.2em; }

/* The text */
main.article-page .art-body { font-size: 1.125rem; line-height: 1.72; }
main.article-page .art-body > p, main.article-page .art-body > ul, main.article-page .for-owners > p, main.article-page .for-owners > ul { max-width: 40em; }
main.article-page .art-body > p + p, main.article-page .art-body > ul, main.article-page .art-body > p + ul, main.article-page .art-body > ul + p, main.article-page .for-owners p + p, main.article-page .for-owners ul, main.article-page .for-owners ul + p { margin-top: 18px; }
main.article-page .art-body h2 { font-size: clamp(1.5rem, 2.4vw, 1.875rem); line-height: 1.15; margin-block: 44px 12px; }
main.article-page .art-body ul li { position: relative; padding-left: 24px; }
main.article-page .art-body ul li::before { content: ''; position: absolute; left: 4px; top: .66em; width: 7px; height: 7px; background: var(--gold); border-radius: 50%; }
main.article-page .art-body ul li + li { margin-top: 8px; }
main.article-page .pull-quote { float: right; width: min(46%, 22em); margin: .4em -24% 20px 32px; padding-left: 20px; border-left: 3px solid var(--gold); }
main.article-page .pull-quote p { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.375rem, 2vw, 1.75rem); line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance; }
main.article-page .pull-quote p::before { content: '“'; }
main.article-page .pull-quote p::after { content: '”'; }
main.article-page .for-owners { clear: both; margin-top: 48px; padding: clamp(24px, 3vw, 36px) clamp(22px, 3vw, 40px); border-radius: var(--r-lg); background: var(--chalk); }
main.article-page .for-owners h2 { margin-top: 0; padding-bottom: 14px; border-bottom: 1px solid var(--black); }
main.article-page .for-owners h2 + p { margin-top: 18px; }

/* Sources: numbered, with the publisher and its domain. */
main.article-page .sources { clear: both; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--black); }
main.article-page .sources h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.03em; font-size: 1.5rem; margin: 0; }
main.article-page .sources-intro { color: var(--grey); font-size: 0.9375rem; margin-top: 6px; }
main.article-page .sources-list { counter-reset: source; margin-top: 16px; }
main.article-page .sources-list li { counter-increment: source; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 2px 12px; padding-block: 12px; border-bottom: 1px solid var(--line); font-size: 0.9688rem; }
main.article-page .sources-list li::before { content: counter(source); grid-row: 1 / span 2; font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; color: var(--grey); line-height: 1.5; }
main.article-page .sources-list a { font-weight: 650; overflow-wrap: anywhere; }
main.article-page .source-meta { grid-column: 2; display: flex; flex-wrap: wrap; gap: 2px 18px; font-size: 0.875rem; color: var(--grey); }
main.article-page .source-domain { position: relative; }
main.article-page .source-domain::before { content: ''; position: absolute; left: -11px; top: .72em; width: 4px; height: 4px; background: var(--gold); border-radius: 50%; }
/* Related links on this site: models-guide pages and the news index. */
main.article-page .art-related { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--black); }
main.article-page .art-related h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.03em; font-size: 1.5rem; margin: 0; }
main.article-page .art-related ul { margin-top: 12px; }
main.article-page .art-related li { padding-block: 10px; border-bottom: 1px solid var(--line); font-size: 0.9688rem; }
main.article-page .art-related a { font-weight: 650; overflow-wrap: anywhere; }
main.article-page .art-notes { margin-top: 28px; }
main.article-page .art-notes .note { margin-top: 12px; }
main.article-page .art-cta { margin-top: 32px; padding: clamp(24px, 3vw, 32px); border-radius: var(--r-lg); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 32px; align-items: center; }
main.article-page .art-cta p { color: var(--muted); max-width: 36em; }

/* Newer and older stories */
main.article-page .art-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; padding-block: 28px 8px; border-top: 1px solid var(--black); }
main.article-page .art-nav-link { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 18px; align-items: center; text-decoration: none; border-radius: var(--r-lg); }
main.article-page .art-nav-link .story-media { border-radius: 16px; }
main.article-page .art-nav-link .story-type-brand { display: none; }
main.article-page .art-nav-copy, main.article-page .art-nav-empty { display: grid; gap: 4px; }
main.article-page .art-nav-label { font-size: 0.875rem; color: var(--grey); }
main.article-page .art-nav-title { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; line-height: 1.2; letter-spacing: -0.02em; }
main.article-page .art-nav-link:hover .art-nav-title { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
main.article-page .art-nav-link:focus-visible { outline: 3px solid var(--black); outline-offset: 4px; }
main.article-page .art-nav-empty { align-content: center; padding: 18px 22px; border-radius: var(--r-lg); background: var(--chalk); color: var(--grey); font-size: 0.9375rem; }
main.article-page .art-nav-empty > span:first-child { font-weight: 650; color: var(--black); }
main.article-page .art-nav-all { grid-column: 1 / -1; justify-self: start; }

/* Cross-document view transitions: the card's picture becomes the story's opening band. The name comes from the
   element's data-vt attribute (typed attr()); browsers without it keep the plain cross-fade. */
.vt-article { view-transition-name: attr(data-vt type(<custom-ident>)); view-transition-class: article; }
::view-transition-group(.article) { animation-duration: .45s; animation-timing-function: cubic-bezier(.2, .7, .2, 1); }
::view-transition-old(.article), ::view-transition-new(.article) { height: 100%; object-fit: cover; overflow: clip; }

/* Breakpoints */
@media (max-width: 1080px) {
  main.article-page .art-grid, main.article-page .art-layout, main.article-page .art-head-inner { grid-template-columns: minmax(0, 760px); }
  main.article-page .art-head-inner > *, main.article-page .art-column { grid-column: 1; }
  main.article-page .art-rail { grid-column: 1; position: static; margin-bottom: 28px; }
  main.article-page .art-rail-inner { display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: center; }
  main.article-page .rail-status { position: absolute; }
  main.article-page .pull-quote { margin-right: 0; }
}
@media (max-width: 900px) {
  main.news-page .news-head-row, main.news-page .lead-copy { grid-template-columns: minmax(0, 1fr); }
  main.news-page .lead-desc { grid-column: 1; grid-row: auto; }
  main.news-page .lead-btn { grid-column: 1; margin-top: 10px; }
  main.news-page .news-head { padding-bottom: clamp(110px, 20vw, 160px); }
  main.news-page .lead-story { margin-top: calc(-1 * clamp(80px, 15vw, 120px)); }
}
@media (max-width: 640px) {
  .story-grid { gap: 28px; }
  .story-media, .story-link { border-radius: 18px; }
  main.news-page .lead-figure { border-radius: 18px; aspect-ratio: 16 / 9; }
  /* On phones the caption sits under the photograph rather than over it. */
  main.news-page .lead-figure { overflow: visible; aspect-ratio: auto; background: none; box-shadow: none; }
  main.news-page .lead-story-type .lead-figure { overflow: hidden; aspect-ratio: 16 / 9; border-radius: 18px; }
  main.news-page .lead-figure picture, main.news-page .lead-figure img { border-radius: 18px; aspect-ratio: 16 / 9; }
  main.news-page .lead-figure figcaption { position: static; max-width: none; margin-top: 10px; padding: 0; font-size: 0.8125rem; color: var(--grey); background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  main.article-page .art-band { overflow: visible; max-height: none; background: none; }
  main.article-page .art-band figcaption { position: static; margin-top: 10px; }
  main.article-page .art-band figcaption > span:first-child, main.article-page .art-band figcaption .credit { font-size: 0.8125rem; color: var(--grey); background: none; padding: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
  main.article-page .art-band figcaption .credit { display: inline; margin: 0; }
  main.article-page .art-band-type { overflow: hidden; }
  main.article-page .art-body { font-size: 1.0625rem; }
  main.article-page .pull-quote { float: none; width: auto; margin: 24px 0; }
  main.article-page .art-cta { grid-template-columns: minmax(0, 1fr); }
  main.article-page .art-cta .btn { width: 100%; }
  main.article-page .art-nav { grid-template-columns: minmax(0, 1fr); }
  main.article-page .art-nav-link { grid-template-columns: 30vw minmax(0, 1fr); gap: 14px; }
  main.article-page .art-nav-link .story-media { border-radius: 12px; }
}
@media (max-width: 380px) {
  main.news-page .news-head h1, main.article-page .art-head h1 { overflow-wrap: anywhere; }
  main.news-page .brand-filter label { padding-inline: 14px; font-size: 0.875rem; }
}

@media (forced-colors: active) {
  .story-media, main.news-page .lead-figure, main.news-page .brand-filter label, main.article-page .rail-btn, main.article-page .for-owners, main.article-page .art-cta, main.article-page .art-nav-empty, main.news-page .stories-soon { border: 1px solid CanvasText; }
  main.news-page .brand-filter input:checked + label { forced-color-adjust: none; background: Highlight; color: HighlightText; border-color: Highlight; }
  .story-meta > *::before, main.article-page .art-body ul li::before, main.article-page .source-domain::before, main.article-page .read-progress-bar { background: CanvasText; forced-color-adjust: none; }
  .story-type, main.news-page .lead-figure figcaption, main.article-page .art-band figcaption > span { background: Canvas; color: CanvasText; }
  main.article-page .pull-quote { border-left-color: CanvasText; }
}
@media (prefers-reduced-motion: reduce) {
  main.article-page .read-progress-bar { animation: none; }
}
@media print {
  main.article-page .read-progress, main.article-page .art-rail, main.article-page .art-cta, main.article-page .art-nav, main.news-page .brand-filter { display: none; }
  main.article-page .art-band { max-height: none; }
  main.article-page .art-band figcaption { position: static; }
  main.article-page .art-band figcaption > span, main.article-page .art-band figcaption .credit { background: none; color: #000; padding: 0; }
  main.article-page .pull-quote { float: none; margin: 16px 0; }
  main.article-page .sources-list a::after { content: ' (' attr(href) ')'; font-weight: 400; font-size: 0.8125rem; }
  main.news-page .news-head { background: none; color: #000; padding-bottom: 24px; }
  main.news-page .lead-story { margin-top: 0; }
}

/* Events: the owners' calendar (main.events-page). A year dial beside the title, twelve months to flick through,
   a timeline for confirmed events (empty until the first one), the three announcement steps, the province links
   and the calendar answers. Nothing here is a date the club has fixed. */

/* The year dial in the split band */
main.events-page .loc-side-dial { display: grid; place-items: center; padding: clamp(24px, 4vw, 56px) var(--gutter); }
main.events-page .year-dial { width: 100%; max-width: 420px; }
main.events-page .year-dial svg { width: 100%; height: auto; display: block; overflow: visible; }
main.events-page .dial-ring { fill: none; stroke: #3a3a3a; stroke-width: 1.5; }
main.events-page .dial-month line { stroke: #6a6a6a; stroke-width: 2; stroke-linecap: round; }
main.events-page .dial-month text { fill: #b9b9b9; font-family: var(--font); font-size: 11px; font-weight: 600; }
main.events-page .dial-month.is-now line { stroke: var(--gold); stroke-width: 5; }
main.events-page .dial-month.is-now text { fill: var(--gold); font-weight: 750; }
main.events-page .dial-now { fill: var(--white); font-family: var(--font-display); font-weight: 700; font-size: 30px; letter-spacing: -0.03em; }
main.events-page .dial-sub { fill: #b9b9b9; font-family: var(--font); font-size: 13px; }
@media (prefers-reduced-motion: no-preference) {
  main.events-page .dial-ring { stroke-dasharray: 704; stroke-dashoffset: 704; animation: dial-draw 1.2s cubic-bezier(.2, .7, .2, 1) .1s forwards; }
  @keyframes dial-draw { to { stroke-dashoffset: 0; } }
}

/* The driving year: twelve cards side by side, snapped, the current month in black. */
main.events-page .driving-year { padding-bottom: clamp(40px, 5vw, 64px); }
main.events-page .season-head-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 48px; align-items: end; margin-bottom: 28px; }
main.events-page .season-head-row h2 { font-size: clamp(2rem, 4vw, 3.5rem); margin-bottom: 14px; }
main.events-page .season-head-row p:not(.strip-arrows) { color: var(--grey); max-width: 44em; }
main.events-page .strip-arrows { display: flex; gap: 8px; }
main.events-page .arrow-btn { display: inline-grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1.5px solid var(--black); border-radius: 50%; background: var(--white); color: var(--black); cursor: pointer; transition: background-color .15s ease, color .15s ease; }
main.events-page .arrow-btn svg { width: 20px; height: 20px; }
main.events-page .arrow-btn:hover { background: var(--black); color: var(--white); }
main.events-page .season-strip { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(280px, 28vw, 380px); gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding: 4px var(--gutter) 20px; scrollbar-width: thin; scrollbar-color: var(--black) transparent; }
main.events-page .season-strip:focus-visible { outline: 3px solid var(--black); outline-offset: -3px; border-radius: var(--r-lg); }
main.events-page .season-card { scroll-snap-align: start; display: grid; grid-template-rows: auto 1fr; gap: 18px; padding: 22px 22px 24px; border-radius: var(--r-lg); background: var(--chalk); color: var(--black); }
main.events-page .season-card.is-now { background: var(--black); color: var(--white); }
main.events-page .season-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; align-items: baseline; }
main.events-page .season-index { font-family: var(--font-display); font-weight: 700; font-size: 0.9375rem; color: var(--grey); letter-spacing: 0; }
main.events-page .season-card.is-now .season-index { color: var(--gold); }
main.events-page .season-head h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 2vw, 1.875rem); line-height: 1.05; letter-spacing: -0.03em; }
main.events-page .season-title { grid-column: 2; font-size: 0.9375rem; color: var(--grey); }
main.events-page .season-card.is-now .season-title { color: #c9c9c9; }
main.events-page .season-body { font-size: 0.9375rem; line-height: 1.5; }
main.events-page .season-label { font-weight: 650; margin-bottom: 6px; }
main.events-page .season-body ul + .season-label { margin-top: 16px; }
main.events-page .season-body li { position: relative; padding-left: 18px; }
main.events-page .season-body li + li { margin-top: 6px; }
main.events-page .season-body li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--black); }
main.events-page .season-card.is-now .season-body li::before { background: var(--gold); }
main.events-page .season-watch li::before { background: transparent; border: 1.5px solid currentColor; width: 5px; height: 5px; }
main.events-page .season-body li { color: var(--grey); }
main.events-page .season-card.is-now .season-body li { color: #d9d9d9; }

/* Club events: the timeline (and its honest empty state) */
main.events-page .timeline { position: relative; display: grid; gap: 14px; padding-left: 0; }
main.events-page .event-card { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 20px; padding: 22px 24px 22px 20px; border-radius: var(--r-lg); background: var(--chalk); }
main.events-page .event-date { display: grid; place-content: center; gap: 0; width: 72px; height: 72px; border-radius: 18px; background: var(--black); color: var(--white); text-align: center; }
main.events-page .event-day { font-family: var(--font-display); font-weight: 700; font-size: 1.75rem; line-height: 1; letter-spacing: -0.03em; }
main.events-page .event-month { font-size: 0.8125rem; font-weight: 600; color: var(--gold); }
main.events-page .event-body { min-width: 0; display: grid; gap: 8px; }
main.events-page .event-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; font-size: 0.875rem; color: var(--grey); overflow: hidden; }
main.events-page .event-meta > * { position: relative; margin-left: -13px; padding-left: 13px; }
main.events-page .event-meta > *::before { content: ''; position: absolute; left: 0; top: .66em; width: 4px; height: 4px; background: var(--gold); border-radius: 50%; }
main.events-page .event-status { font-weight: 650; color: var(--black); }
main.events-page .event-card h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.375rem, 2vw, 1.625rem); line-height: 1.15; letter-spacing: -0.025em; }
main.events-page .event-body > p:not(.event-meta) { color: var(--grey); max-width: 46em; }
main.events-page .event-card.is-cancelled .event-date { background: var(--grey); }
main.events-page .event-card.is-cancelled .event-month { color: var(--white); }
main.events-page .event-card.is-cancelled h3 { text-decoration: line-through; text-decoration-thickness: 2px; color: var(--grey); }
main.events-page .event-card.is-past { background: var(--white); border: 1px solid var(--line); }
main.events-page .event-more { margin-top: 4px; }
main.events-page .event-more summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 650; cursor: pointer; list-style: none; }
main.events-page .event-more summary::-webkit-details-marker { display: none; }
main.events-page .event-more summary::after { content: ''; width: 8px; height: 8px; border-right: 2px solid var(--black); border-bottom: 2px solid var(--black); transform: rotate(45deg) translateY(-2px); transition: transform .15s ease; }
main.events-page .event-more[open] summary::after { transform: rotate(225deg) translateY(-2px); }
main.events-page .event-details { margin-top: 6px; }
main.events-page .event-details li { position: relative; padding-left: 20px; color: var(--grey); }
main.events-page .event-details li + li { margin-top: 6px; }
main.events-page .event-details li::before { content: ''; position: absolute; left: 2px; top: .66em; width: 6px; height: 6px; background: var(--gold); border-radius: 50%; }
main.events-page .event-facts { display: flex; flex-wrap: wrap; gap: 8px 32px; margin-top: 14px; font-size: 0.9375rem; }
main.events-page .event-facts dt { font-weight: 650; }
main.events-page .event-facts dd { color: var(--grey); }
main.events-page .timeline-past { margin-top: 16px; }
main.events-page .club-events .other-heading { margin-top: 40px; font-size: 1.125rem; }
main.events-page .timeline-empty { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 16px 48px; align-items: start; padding: clamp(24px, 3vw, 40px); border-radius: var(--r-lg); background: var(--chalk); }
main.events-page .timeline-empty-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.05; letter-spacing: -0.03em; }
main.events-page .timeline-empty p:not(.timeline-empty-title) { color: var(--grey); max-width: 40em; }

/* How events are announced: three steps, in order. */
main.events-page .announce-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: 24px clamp(40px, 6vw, 96px); align-items: start; }
main.events-page .announce-copy { position: sticky; top: calc(var(--header) + 32px); }
main.events-page .announce-copy h2 { font-size: clamp(2rem, 4vw, 3.5rem); margin-bottom: 14px; }
main.events-page .announce-copy p { color: var(--grey); max-width: 30em; }
main.events-page .announce-steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
main.events-page .announce-steps li { counter-increment: step; position: relative; padding-top: 52px; border-top: 1px solid var(--black); }
main.events-page .announce-steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 14px; display: grid; place-items: center; min-width: 26px; height: 26px; padding-inline: 7px; border-radius: var(--pill); background: var(--black); color: var(--white); font-family: var(--font-display); font-weight: 700; font-size: 0.75rem; line-height: 1; }
main.events-page .announce-steps h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; line-height: 1.2; letter-spacing: -0.015em; margin-bottom: 8px; }
main.events-page .announce-steps p { color: var(--grey); font-size: 0.9688rem; }

/* Hear about events near you: the nine provinces */
main.events-page .province-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
main.events-page .province-links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: 14px 20px; border-radius: var(--r); background: var(--chalk); font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; letter-spacing: -0.015em; text-decoration: none; transition: background-color .15s ease, color .15s ease; }
main.events-page .province-links a::after { content: ''; flex: 0 0 auto; width: 9px; height: 9px; border-top: 2px solid var(--gold); border-right: 2px solid var(--gold); transform: rotate(45deg); }
main.events-page .province-links a:hover { background: var(--black); color: var(--white); }
main.events-page .nearby .note { margin-top: 28px; }

/* Add to your calendar: answers in an exclusive accordion */
main.events-page .calendar-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: 24px clamp(40px, 6vw, 96px); align-items: start; }
main.events-page .calendar-grid h2 { font-size: clamp(2rem, 4vw, 3.5rem); margin-bottom: 14px; }
main.events-page .calendar-grid > div:first-child p { color: var(--grey); max-width: 30em; }
main.events-page .calendar-faq { border-top: 1px solid var(--black); }
main.events-page .calendar-faq details { border-bottom: 1px solid var(--line); }
main.events-page .calendar-faq summary { position: relative; display: block; padding: 18px 48px 18px 0; font-family: var(--font-display); font-weight: 700; font-size: 1.1875rem; letter-spacing: -0.015em; line-height: 1.3; cursor: pointer; list-style: none; }
main.events-page .calendar-faq summary::-webkit-details-marker { display: none; }
main.events-page .calendar-faq summary::before, main.events-page .calendar-faq summary::after { content: ''; position: absolute; right: 10px; top: 50%; width: 16px; height: 2px; background: var(--black); transform: translateY(-50%); transition: transform .2s ease; }
main.events-page .calendar-faq summary::after { transform: translateY(-50%) rotate(90deg); }
main.events-page .calendar-faq details[open] summary::after { transform: translateY(-50%) rotate(0); }
main.events-page .calendar-faq summary:hover { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
main.events-page .calendar-faq details p { padding: 0 0 20px; color: var(--grey); max-width: 42em; }
@supports (interpolate-size: allow-keywords) {
  @media (prefers-reduced-motion: no-preference) {
    main.events-page .calendar-faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .25s ease, content-visibility .25s allow-discrete; }
    main.events-page .calendar-faq details[open]::details-content { block-size: auto; }
  }
}

/* Breakpoints */
@media (max-width: 1080px) {
  main.events-page .announce-steps { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  main.events-page .announce-steps li { padding-top: 48px; }
}
@media (max-width: 900px) {
  main.events-page .loc-side-dial { order: 0; aspect-ratio: auto; padding-block: 8px 36px; }
  main.events-page .year-dial { max-width: 280px; }
  main.events-page .season-head-row, main.events-page .announce-grid, main.events-page .calendar-grid, main.events-page .timeline-empty { grid-template-columns: minmax(0, 1fr); }
  main.events-page .announce-copy { position: static; }
  main.events-page .province-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  main.events-page .season-strip { grid-auto-columns: 84vw; }
  main.events-page .season-card { border-radius: 18px; }
  main.events-page .event-card { grid-template-columns: 56px minmax(0, 1fr); gap: 14px; padding: 18px 18px 18px 14px; border-radius: 18px; }
  main.events-page .event-date { width: 56px; height: 56px; border-radius: 14px; }
  main.events-page .event-day { font-size: 1.375rem; }
  main.events-page .province-links { grid-template-columns: minmax(0, 1fr); }
  main.events-page .timeline-empty { border-radius: 18px; }
}
@media (max-width: 380px) {
  main.events-page .season-strip { grid-auto-columns: calc(100vw - 32px); }
}

@media (forced-colors: active) {
  main.events-page .season-card, main.events-page .event-card, main.events-page .event-date, main.events-page .timeline-empty, main.events-page .province-links a, main.events-page .arrow-btn { border: 1px solid CanvasText; }
  main.events-page .season-card.is-now { forced-color-adjust: none; background: Highlight; color: HighlightText; }
  main.events-page .season-body li::before, main.events-page .event-meta > *::before, main.events-page .event-details li::before, main.events-page .announce-steps li::before, main.events-page .calendar-faq summary::before, main.events-page .calendar-faq summary::after { forced-color-adjust: none; background: CanvasText; color: Canvas; }
  main.events-page .province-links a::after, main.events-page .event-more summary::after { border-color: CanvasText; }
  main.events-page .dial-ring, main.events-page .dial-month line { stroke: CanvasText; }
  main.events-page .dial-month text, main.events-page .dial-now, main.events-page .dial-sub { fill: CanvasText; }
  main.events-page .dial-month.is-now line { stroke: Highlight; }
}
@media print {
  main.events-page .strip-arrows, main.events-page .loc-side-dial { display: none; }
  main.events-page .season-strip { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-columns: auto; overflow: visible; }
  main.events-page .season-card.is-now { background: none; color: #000; border: 1px solid #000; }
  main.events-page .calendar-faq details { display: block; }
}

/* Information pages: about, contact, the legal notices (privacy, terms), the guides (code of conduct, start a
   local group) and the registration-confirmation pages. Everything is scoped by the class on <main> or by the
   legal shell, so nothing here reaches another page. */

/* The shared head: a split band, copy left, an optional figure right. */
.info-hero { display: block; }
.info-hero-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px clamp(40px, 6vw, 96px); align-items: center; padding-block: clamp(32px, 5vw, 64px); }
.info-hero-inner.has-side { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.info-hero-copy { min-width: 0; }
.info-hero-copy .lead { max-width: 40em; }
.info-hero-side { justify-self: end; align-self: center; }
.club-mark { display: block; width: min(100%, 320px); height: auto; }
.mark-plate { fill: var(--white); }
.mark-sun { fill: var(--gold); }
.about-mark { width: min(100%, 320px); }
@media (prefers-reduced-motion: no-preference) {
  /* One orchestrated moment: the mark arrives as the page does. */
  .about-mark .club-mark { transition: opacity .7s ease, translate .7s cubic-bezier(.2, .7, .2, 1); }
  @starting-style { .about-mark .club-mark { opacity: 0; translate: 0 18px; } }
}

/* ------------------------------------------------------------------------------------------------------ */
/* About: the road the club is on */
.about-route { background: var(--white); }
.route-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 32px clamp(40px, 6vw, 96px); align-items: start; }
.route-head { position: sticky; top: calc(var(--header) + 32px); }
.route-head h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
.route-head p { color: var(--grey); margin-top: 16px; max-width: 28em; }
.route-line { position: relative; display: grid; gap: clamp(28px, 4vw, 44px); padding-left: 48px; padding-block: 6px; }
.route-line::before, .route-line::after { content: ''; position: absolute; left: 11px; top: 14px; bottom: 14px; width: 2px; border-radius: 1px; }
.route-line::before { background: var(--line); }
.route-line::after { background: var(--black); transform-origin: top; }
.route-line li { position: relative; }
.route-line li::before { content: ''; position: absolute; z-index: 1; left: -48px; top: .42em; width: 24px; height: 24px; border-radius: 50%; background: var(--white); border: 2.5px solid var(--black); }
.route-line li.is-now::before { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 6px rgba(217, 164, 65, .22); }
.route-line h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.375rem, 2.1vw, 1.875rem); line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 8px; }
.route-now { font-family: var(--font); font-weight: 650; font-size: 0.8125rem; letter-spacing: 0; line-height: 1; padding: 7px 11px; border-radius: var(--pill); background: var(--black); color: var(--white); }
.route-line p { color: var(--grey); max-width: 36em; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .route-line::after { animation: route-draw linear both; animation-timeline: view(); animation-range: cover 0% cover 62%; }
    @keyframes route-draw { from { transform: scaleY(0); } to { transform: scaleY(1); } }
    .route-line li { animation: stop-in linear both; animation-timeline: view(); animation-range: entry 0% entry 80%; }
    @keyframes stop-in { from { transform: translateX(-10px); } }
  }
}

/* What the club stands on: six cards; each card lays itself out by its own width (container queries). */
.principle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.principle { container-type: inline-size; min-width: 0; }
.principle-inner { height: 100%; display: grid; gap: 18px; align-content: start; padding: clamp(22px, 2.4vw, 30px); border-radius: var(--r-lg); background: var(--chalk); }
.line-icon { width: 36px; height: 36px; flex: 0 0 36px; }
.principle .line-icon { color: var(--black); }
.principle h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.3125rem; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 8px; }
.principle p { color: var(--grey); font-size: 1rem; }
@container (min-width: 430px) {
  .principle-inner { grid-template-columns: 36px minmax(0, 1fr); align-items: start; }
}

/* What the club is not: three statements on black, large. */
.about-not h2 { font-size: clamp(2rem, 4vw, 3.5rem); margin-bottom: clamp(28px, 4vw, 48px); }
.not-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px clamp(24px, 4vw, 56px); }
.not-list li { padding-top: 20px; border-top: 1px solid var(--rule); color: var(--muted); }
.not-list strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 2.4vw, 2.125rem); line-height: 1.1; letter-spacing: -0.025em; color: var(--fg); margin-bottom: 12px; text-wrap: balance; }

/* Who runs the club */
.runs-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 32px clamp(40px, 6vw, 96px); align-items: start; }
.runs-grid h2 { font-size: clamp(2rem, 4vw, 3.5rem); margin-bottom: 22px; }
.runs-grid > div > p { max-width: 38em; line-height: 1.65; }
.runs-grid > div > p + p { margin-top: 14px; color: var(--grey); }
.runs-aside { padding: clamp(22px, 2.6vw, 32px); border-radius: var(--r-lg); background: var(--chalk); }
.runs-aside h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.3125rem; letter-spacing: -0.02em; margin-bottom: 14px; }
.runs-facts { display: grid; }
.runs-facts > div { display: grid; grid-template-columns: minmax(0, 110px) minmax(0, 1fr); gap: 4px 16px; padding-block: 12px; border-top: 1px solid var(--line); font-size: 0.9688rem; }
.runs-facts dt { font-weight: 650; }
.runs-facts dd { color: var(--grey); }

/* How articles are written: three steps in a row (a real sequence). */
.editorial-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px clamp(24px, 4vw, 56px); counter-reset: ed; }
.editorial-steps li { counter-increment: ed; padding-top: 18px; border-top: 2px solid var(--black); }
.editorial-steps li::before { content: counter(ed); display: block; font-family: var(--font-display); font-weight: 700; font-size: 2rem; line-height: 1; letter-spacing: -0.03em; margin-bottom: 12px; }
.editorial-steps h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 8px; }
.editorial-steps p { color: var(--grey); }
.about-editorial .section-head p a { font-weight: 650; }

/* Nine provinces: the drive photographs, each with its locator, linking to the province page. */
.province-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.province-tile a { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; background: var(--coal); color: var(--white); text-decoration: none; isolation: isolate; }
.tile-photo, .tile-map { position: absolute; inset: 0; z-index: -2; display: block; }
.tile-photo picture, .tile-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tile-map { display: grid; place-items: center; padding: 10% 14%; }
.tile-map .locator { width: 100%; max-width: none; height: auto; }
.province-tile a::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(11, 11, 11, .86) 0%, rgba(11, 11, 11, .25) 50%, rgba(11, 11, 11, 0) 100%); }
.province-tile a:hover img { transform: scale(1.04); }
.province-tile a:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.tile-locator { position: absolute; top: 14px; right: 14px; width: 64px; padding: 6px; border-radius: 12px; background: rgba(11, 11, 11, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.tile-locator .locator { width: 100%; height: auto; }
.tile-locator .locator .province { fill: #3a3a3a; stroke: #1a1a1a; }
.tile-locator .locator .neighbour { stroke: #3a3a3a; }
.tile-locator .locator .province.is-current { fill: var(--gold); stroke: var(--gold); }
.tile-copy { position: absolute; left: 18px; right: 18px; bottom: 16px; display: grid; gap: 2px; }
.tile-copy strong { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.375rem, 2vw, 1.75rem); letter-spacing: -0.02em; line-height: 1.1; }
.tile-copy span { font-size: 0.9375rem; color: #d9d9d9; }
.province-tile .credit { margin-top: 8px; }

/* The closing band */
.about-join-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) auto; gap: 24px clamp(32px, 5vw, 80px); align-items: center; }
.about-join h2 { font-size: clamp(2rem, 4vw, 3.25rem); margin-bottom: 14px; }
.about-join p { color: var(--muted); max-width: 32em; }

/* ------------------------------------------------------------------------------------------------------ */
/* Contact: topics on the left as cards that fill the select, the form in its white panel, the steps below. */
.contact-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 40px clamp(36px, 6vw, 96px); align-items: start; }
.contact-side { min-width: 0; }
.contact-side h2 { font-size: clamp(2rem, 4vw, 3.5rem); margin-bottom: 16px; }
.contact-intro { color: var(--muted); max-width: 30em; }
.topic-chooser { margin-top: 32px; }
.topic-chooser-title { font-size: 0.9375rem; font-weight: 650; margin-bottom: 12px; }
.topic-cards { display: grid; gap: 8px; }
.topic-card { display: grid; grid-template-columns: 28px minmax(0, 1fr) 22px; gap: 16px; align-items: center; min-height: 64px; padding: 14px 18px; border: 1.5px solid var(--line-dark); border-radius: var(--r); background: var(--coal); color: var(--white); text-decoration: none; transition: border-color .15s ease, background-color .15s ease; }
.topic-card:hover { border-color: var(--white); text-decoration: none; }
.topic-card:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.topic-card .line-icon { width: 28px; height: 28px; color: var(--gold); }
.topic-card-copy { display: grid; gap: 2px; min-width: 0; }
.topic-card-copy strong { font-weight: 650; font-size: 1rem; line-height: 1.3; }
.topic-card-copy span { font-size: 0.875rem; line-height: 1.45; color: var(--muted); }
.topic-card-mark { position: relative; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #6a6a6a; }
.topic-card[aria-current="true"] { border-color: var(--gold); background: var(--black); }
.topic-card[aria-current="true"] .topic-card-mark { background: var(--gold); border-color: var(--gold); }
.topic-card[aria-current="true"] .topic-card-mark::after { content: ''; position: absolute; left: 6px; top: 5px; width: 8px; height: 5px; border-left: 2px solid var(--black); border-bottom: 2px solid var(--black); transform: rotate(-45deg); }
.next-rail { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--rule); }
.next-rail h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.3125rem; letter-spacing: -0.02em; margin-bottom: 18px; }
.next-steps { display: grid; gap: 16px; counter-reset: step; }
.next-steps li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; counter-increment: step; }
.next-steps li::before { content: counter(step); grid-row: 1 / span 2; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: var(--black); font-family: var(--font-display); font-weight: 700; font-size: 0.875rem; line-height: 1; }
.next-steps h4, .next-steps p { grid-column: 2; }
.next-steps h4 { font-weight: 650; font-size: 1rem; margin-bottom: 2px; }
.next-steps p { font-size: 0.9375rem; color: var(--muted); max-width: 32em; }
.next-rail .note { margin-top: 24px; }
.contact-form .form-heading { margin-bottom: 22px; }
/* While the form is closed only the honest panel shows; the Worker marks open pages before they paint. */
.contact-page #contact-form { display: none; }
html[data-contact="open"] .contact-page #contact-form { display: block; }
.contact-column .form-closed p + p { margin-top: 10px; }

/* ------------------------------------------------------------------------------------------------------ */
/* Legal notices: a document with a contents rail. The rail is a sibling of <main> (see info-pages.mjs). */
.legal-shell { display: grid; grid-template-columns: minmax(0, 1fr) 272px; gap: 0 clamp(32px, 5vw, 80px); width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); align-items: start; }
.legal-page { min-width: 0; }
.legal-page .wrap { padding-inline: 0; }
.legal-page .info-hero { --bg: var(--white); --fg: var(--black); --muted: var(--grey); --rule: var(--line); --focus: var(--black); background: var(--white); color: var(--black); }
.legal-page .info-hero-inner { padding-block: clamp(32px, 5vw, 56px) 0; }
.legal-page .loc-hero h1 { max-width: 14ch; }
.legal-page .info-hero .hero-note { margin-top: 24px; }
.legal-body { padding-block: clamp(32px, 4vw, 48px) clamp(64px, 8vw, 112px); }
.legal-inner { counter-reset: sec; --num: 52px; }
.legal-inner .notice-status { margin-bottom: 36px; }
.legal-inner h2 { display: grid; grid-template-columns: var(--num) minmax(0, 1fr); align-items: baseline; counter-increment: sec; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.03em; font-size: clamp(1.5rem, 2.4vw, 1.875rem); line-height: 1.15; margin: 48px 0 16px; scroll-margin-top: calc(var(--header) + 24px); }
.legal-inner h2::before { content: counter(sec); font-size: 0.9em; color: var(--grey); font-variant-numeric: tabular-nums; }
.legal-inner > h2:first-child { margin-top: 0; }
.legal-inner p, .legal-inner ul, .legal-inner ol, .legal-inner table { margin-left: var(--num); }
.legal-inner .notice-status { margin-left: 0; }
.legal-inner p { line-height: 1.72; max-width: 38em; }
.legal-inner ul + p, .legal-inner table + p, .legal-inner p + p { margin-top: 14px; }
.legal-inner a { font-weight: 650; }
.legal-inner ul, .legal-inner ol { max-width: 38em; padding-left: 1.2em; line-height: 1.72; list-style: disc; }
.legal-inner li + li { margin-top: 10px; }
.legal-inner li::marker { color: var(--grey); }
.legal-inner .retention { width: calc(100% - var(--num)); max-width: 52em; }
.legal-rail { position: sticky; top: calc(var(--header) + 24px); padding-top: clamp(32px, 5vw, 56px); }
.legal-rail-inner { padding-top: 44px; }
.legal-rail-title { font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: -0.01em; margin-bottom: 10px; }
.legal-contents { counter-reset: toc; border-top: 1px solid var(--black); }
.legal-contents li { counter-increment: toc; border-bottom: 1px solid var(--line); }
.legal-contents a { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 8px; align-items: baseline; min-height: 44px; padding-block: 10px; font-size: 0.9375rem; line-height: 1.35; color: var(--grey); text-decoration: none; }
.legal-contents a::before { content: counter(toc); font-family: var(--font-display); font-weight: 700; font-size: 0.875rem; color: var(--mid); font-variant-numeric: tabular-nums; }
.legal-contents a:hover { color: var(--black); text-decoration: underline; }
.legal-contents a:hover::before { color: var(--black); }
.legal-meta { display: grid; gap: 10px; margin-top: 20px; font-size: 0.875rem; }
.legal-meta dt { color: var(--grey); }
.legal-meta dd { font-weight: 650; }
.legal-version { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.legal-print { margin-top: 18px; font-size: 0.875rem; }
.legal-print a { font-weight: 650; }

/* ------------------------------------------------------------------------------------------------------ */
/* Guides: numbered sections, a contents rail that stays put, folds where a section has parts. */
.guide-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px clamp(40px, 6vw, 96px); align-items: start; padding-block: clamp(40px, 5vw, 72px) clamp(64px, 8vw, 112px); }
.guide-nav { position: sticky; top: calc(var(--header) + 24px); }
.guide-nav-title { font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: -0.01em; margin-bottom: 10px; }
.guide-nav ol { counter-reset: gnav; border-top: 1px solid var(--black); }
.guide-nav li { counter-increment: gnav; border-bottom: 1px solid var(--line); }
.guide-nav a { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 8px; align-items: baseline; min-height: 44px; padding-block: 10px; font-size: 0.9375rem; line-height: 1.35; color: var(--grey); text-decoration: none; }
.guide-nav a::before { content: counter(gnav); font-family: var(--font-display); font-weight: 700; font-size: 0.875rem; color: var(--mid); font-variant-numeric: tabular-nums; }
.guide-nav a:hover, .guide-nav a[aria-current="location"] { color: var(--black); }
.guide-nav a:hover { text-decoration: underline; }
.guide-nav a[aria-current="location"] { font-weight: 650; box-shadow: inset 3px 0 0 var(--gold); padding-left: 10px; }
.guide-nav a[aria-current="location"]::before { color: var(--black); }
.guide-print { margin-top: 18px; }
.guide-print-btn { padding: 0; border: 0; background: none; font-size: 0.875rem; cursor: pointer; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 0.22em; }
.guide-body { counter-reset: gsec; min-width: 0; max-width: 46em; }
.guide-section { counter-increment: gsec; scroll-margin-top: calc(var(--header) + 24px); }
.guide-section + .guide-section { margin-top: clamp(40px, 5vw, 64px); }
.guide-section h2 { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: baseline; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.03em; font-size: clamp(1.5rem, 2.4vw, 1.875rem); line-height: 1.15; margin-bottom: 18px; }
.guide-section h2::before { content: counter(gsec); font-size: 0.9em; color: var(--grey); font-variant-numeric: tabular-nums; }
.guide-section > p, .guide-section .rules, .guide-section .guide-folds, .guide-section .emergency, .guide-section .hero-actions { margin-left: 52px; }
.guide-section > p { max-width: 38em; line-height: 1.65; }
.guide-section > p + p { margin-top: 12px; }
.guide-section a { font-weight: 650; }
.rules { counter-reset: rule; display: grid; }
.rules li { counter-increment: rule; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding-block: 14px; border-top: 1px solid var(--line); max-width: 40em; line-height: 1.6; }
.rules li:last-child { border-bottom: 1px solid var(--line); }
.rules li::before { content: counter(gsec) "." counter(rule); font-family: var(--font-display); font-weight: 700; font-size: 0.9375rem; color: var(--grey); font-variant-numeric: tabular-nums; padding-top: .15em; }
.emergency { margin-top: 20px; padding: 20px 22px; border-radius: var(--r-lg); background: var(--black); color: var(--white); max-width: 32em; }
.emergency > p { color: var(--white); }
.emergency-numbers { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 10px; }
.emergency-numbers a { display: inline-flex; align-items: baseline; gap: 10px; min-height: 44px; text-decoration: none; font-weight: 400; color: #d9d9d9; }
.emergency-numbers a:hover { text-decoration: underline; }
.emergency-number { font-family: var(--font-display); font-weight: 700; font-size: 1.75rem; letter-spacing: -0.02em; line-height: 1; color: var(--gold); }
.guide-folds { display: grid; margin-top: 18px; border-top: 1px solid var(--black); }
.guide-fold { border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header) + 24px); }
.guide-fold summary { position: relative; list-style: none; cursor: pointer; padding: 18px 56px 18px 0; font-weight: 650; font-size: 1.0625rem; line-height: 1.4; }
.guide-fold summary::-webkit-details-marker { display: none; }
.guide-fold summary::before, .guide-fold summary::after { content: ''; position: absolute; right: 12px; top: 50%; width: 14px; height: 2px; margin-top: -1px; background: var(--black); border-radius: 1px; transition: transform .2s ease; }
.guide-fold summary::after { transform: rotate(90deg); }
.guide-fold[open] summary::after { transform: rotate(0deg); }
.guide-fold summary:hover { color: #8a5f12; }
.guide-fold-body { padding: 0 56px 20px 0; color: var(--grey); max-width: 40em; line-height: 1.65; }
.guide-fold-body p + p { margin-top: 10px; }
.guide-foot { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); }

/* ------------------------------------------------------------------------------------------------------ */
/* Confirmation pages: one card, one action. */
.confirm-section { padding-block: clamp(40px, 5vw, 64px) clamp(64px, 8vw, 112px); }
.confirm-card { max-width: 640px; padding: clamp(24px, 3.4vw, 44px); border-radius: var(--r-lg); background: var(--chalk); }
.confirm-mark { width: 72px; margin-bottom: 22px; }
.confirm-card .mark-plate { fill: var(--black); }
.confirm-card h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.03em; font-size: clamp(1.5rem, 2.4vw, 1.875rem); line-height: 1.12; margin-bottom: 12px; }
.confirm-card p { color: var(--grey); line-height: 1.65; max-width: 36em; }
.confirm-card p + p { margin-top: 10px; }
.confirm-card a:not(.btn):not(.arrow-link) { font-weight: 650; }
.confirm-card .confirm-form, .confirm-card .hero-actions { margin-top: 26px; }
.confirm-card .btn { background: var(--black); border-color: var(--black); color: var(--white); }
.confirm-card .btn:hover { background: var(--gold); border-color: var(--gold); color: var(--black); }

/* ------------------------------------------------------------------------------------------------------ */
@media (max-width: 1080px) {
  .principle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .province-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legal-shell { grid-template-columns: minmax(0, 1fr) 240px; }
  .guide-grid { grid-template-columns: 200px minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .info-hero-inner.has-side { grid-template-columns: minmax(0, 1fr); }
  .info-hero-side { justify-self: start; order: -1; }
  .about-mark { width: 112px; margin-bottom: -8px; }
  .route-grid, .runs-grid, .contact-grid, .about-join-inner { grid-template-columns: minmax(0, 1fr); }
  .route-head { position: static; }
  .not-list, .editorial-steps { grid-template-columns: minmax(0, 1fr); }
  .not-list li { padding-top: 16px; }
  /* Legal notices: the rail becomes a section bar under the header. */
  .legal-shell { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .legal-rail { position: sticky; top: var(--header); z-index: 20; order: -1; padding-top: 0; margin-inline: calc(-1 * var(--gutter)); background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
  .legal-rail-inner { padding: 10px 0; }
  .legal-rail-title { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .legal-contents { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; border-top: 0; padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .legal-contents::-webkit-scrollbar { display: none; }
  .legal-contents li { border-bottom: 0; flex: 0 0 auto; scroll-snap-align: start; }
  .legal-contents a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--pill); white-space: nowrap; font-size: 0.875rem; color: var(--black); }
  .legal-contents a::before { font-size: 0.8125rem; }
  .legal-meta { display: flex; flex-wrap: wrap; gap: 2px 18px; margin-top: 8px; padding-inline: var(--gutter); font-size: 0.8125rem; max-height: 60px; overflow: hidden; }
  .legal-meta > div { display: flex; gap: 6px; }
  /* The dates fold away as the page scrolls, leaving only the section bar (scroll-driven; static otherwise). */
  @supports (animation-timeline: scroll()) {
    @media (prefers-reduced-motion: no-preference) {
      .legal-meta { animation: meta-away linear both; animation-timeline: scroll(root); animation-range: 40px 200px; }
      @keyframes meta-away { to { max-height: 0; margin-top: 0; opacity: 0; } }
    }
  }
  .legal-print { display: none; }
  .guide-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .guide-nav { position: static; }
  .guide-nav ol { display: flex; flex-wrap: wrap; gap: 8px; border-top: 0; }
  .guide-nav li { border-bottom: 0; }
  .guide-nav a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--pill); font-size: 0.875rem; color: var(--black); }
  .guide-nav a[aria-current="location"] { box-shadow: none; padding-left: 14px; border-color: var(--black); }
  .guide-print { display: none; }
}
@media (max-width: 640px) {
  .principle-grid, .province-grid { grid-template-columns: minmax(0, 1fr); }
  .route-line { padding-left: 40px; gap: 26px; }
  .route-line li::before { left: -40px; width: 22px; height: 22px; }
  .route-line::before, .route-line::after { left: 10px; }
  .about-join .hero-actions { width: 100%; }
  .topic-card { grid-template-columns: 24px minmax(0, 1fr) 22px; gap: 12px; padding: 12px 14px; }
  .topic-card .line-icon { width: 24px; height: 24px; }
  .legal-inner { --num: 0px; }
  .legal-inner h2 { grid-template-columns: auto minmax(0, 1fr); gap: 10px; }
  .legal-inner .retention { width: 100%; }
  .guide-section h2 { grid-template-columns: auto minmax(0, 1fr); gap: 10px; }
  .guide-section > p, .guide-section .rules, .guide-section .guide-folds, .guide-section .emergency, .guide-section .hero-actions { margin-left: 0; }
  .rules li { grid-template-columns: 34px minmax(0, 1fr); }
  .emergency-numbers { flex-direction: column; gap: 4px; }
  .confirm-card { padding: 24px 20px; border-radius: var(--r); }
}
@media (max-width: 380px) {
  .tile-locator { width: 52px; }
  .runs-facts > div { grid-template-columns: minmax(0, 1fr); }
}

@media (forced-colors: active) {
  .principle-inner, .runs-aside, .topic-card, .confirm-card, .emergency, .province-tile a, .tile-locator, .legal-contents a, .guide-nav a { border: 1px solid CanvasText; }
  .route-line::before, .route-line::after, .route-line li::before, .next-steps li::before, .guide-nav a[aria-current="location"] { forced-color-adjust: none; background: CanvasText; border-color: CanvasText; }
  .route-line li.is-now::before, .topic-card[aria-current="true"] { forced-color-adjust: none; background: Highlight; border-color: Highlight; }
  .route-now, .next-steps li::before { forced-color-adjust: none; background: Highlight; color: HighlightText; }
  .mark-plate { fill: CanvasText; }
  .mark-sun { fill: Highlight; }
  .tile-copy, .province-tile a::before { background: Canvas; color: CanvasText; }
  .guide-fold summary::before, .guide-fold summary::after { background: CanvasText; forced-color-adjust: none; }
}
@media print {
  .about-mark, .tile-locator, .province-tile a::before, .guide-print, .legal-print, .about-join { display: none; }
  .legal-shell { display: block; padding: 0; }
  .legal-rail { position: static; padding: 0; margin: 0 0 24px; border: 0; background: none; }
  .legal-rail-inner { padding: 0; }
  .legal-contents { display: block; border: 0; }
  .legal-contents li { border: 0; }
  .legal-contents a, .legal-meta, .legal-inner p, .legal-inner li, .guide-section > p, .rules li, .guide-fold-body { color: #000; }
  .legal-inner, .guide-body { max-width: none; }
  .legal-inner h2, .guide-section h2 { break-after: avoid; }
  .retention, .rules li, .guide-fold, .principle, .emergency { break-inside: avoid; }
  .guide-grid { display: block; }
  .guide-nav { display: none; }
  .emergency { background: none; color: #000; border: 1px solid #000; }
  .emergency > p, .emergency-numbers a, .emergency-number { color: #000; }
  .guide-fold summary::before, .guide-fold summary::after { display: none; }
  .principle-inner, .runs-aside, .confirm-card { background: none; border: 1px solid #000; }
  .province-tile a { aspect-ratio: auto; background: none; color: #000; }
  .tile-photo, .tile-map { display: none; }
  .tile-copy { position: static; }
  .tile-copy span { color: #000; }
  .about-not, .about-join { background: none; color: #000; }
  .not-list strong, .not-list li { color: #000; }
}

/* The admin portal (/admin/): the public site's header, footer and dock around a working tool. Same black, white and one
   gold, a dark title band, then chalk panels. Lists are a book of rows that open to their details. */
.admin-body { background: var(--chalk); }
.admin-tag { padding: 5px 14px; border-radius: var(--pill); background: var(--black); color: var(--gold); font-size: 0.875rem; font-weight: 650; letter-spacing: .01em; }

.admin-hero { padding-block: clamp(32px, 5vw, 64px); }
.admin-hero-inner { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 20px 40px; }
.admin-title { font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1.02; letter-spacing: -0.035em; margin-bottom: 14px; }
.admin-hero .lead { margin-bottom: 0; max-width: 30em; }
.admin-session { display: grid; justify-items: start; gap: 10px; font-size: 0.9375rem; }
.admin-session[hidden] { display: none; }
.admin-signed-in { color: #d4d4d4; margin: 0; overflow-wrap: anywhere; }
.admin-signed-in strong { color: var(--white); font-weight: 650; }
.admin-session-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.admin-hero .btn.admin-account { background: transparent; border-color: rgba(255, 255, 255, .45); color: var(--white); }
.admin-hero .btn.admin-account:hover { background: var(--white); border-color: var(--white); color: var(--black); }

.admin-main:focus { outline: none; }
.admin-content { padding-top: clamp(24px, 4vw, 48px); padding-bottom: clamp(40px, 6vw, 72px); min-height: 40svh; }
.admin-notice { margin: 0 0 20px; }
.admin-notice:empty { display: none; }
.admin-view[hidden], .admin-panel[hidden], .admin-empty[hidden], .admin-pager[hidden] { display: none; }
.admin-loading { color: var(--grey); }

.admin-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 36px); }
.admin-panel h2 { font-size: clamp(1.375rem, 2.4vw, 1.75rem); line-height: 1.15; margin-bottom: 12px; }
.admin-panel h2:focus { outline: none; }
.admin-panel > p { max-width: 38em; margin-bottom: 20px; }
.admin-panel > p.form-status { margin-bottom: 0; }

.admin-signin { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.admin-passkey { box-shadow: inset 0 6px 0 var(--gold); padding-top: calc(clamp(20px, 3vw, 36px) + 6px); }
.admin-replace { max-width: 38em; margin-bottom: 20px; }
.admin-form { display: grid; gap: 18px; max-width: 28em; }
.btn-secondary { background: transparent; color: var(--black); }
.btn-secondary:hover { background: var(--black); border-color: var(--black); color: var(--white); }
.btn-secondary:disabled, .btn-secondary:disabled:hover { background: transparent; border-color: var(--line); color: var(--mid); }

.admin-dock[hidden] { display: none; }
.admin-dock [role="tab"] { position: relative; appearance: none; border: 0; background: none; font: inherit; font-size: 0.75rem; font-weight: 600; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 96px; min-height: 60px; padding: 6px 14px; border-radius: var(--pill); color: #c9c9c9; transition: color .15s ease, background-color .15s ease; }
.admin-dock [role="tab"] svg { width: 22px; height: 22px; }
.admin-dock [role="tab"]:hover { color: var(--white); background: rgba(255, 255, 255, .08); }
.admin-dock [role="tab"][aria-selected="true"] { color: var(--black); background: var(--gold); }
.admin-dock [role="tab"]:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.admin-dock .admin-count { position: absolute; top: 4px; right: 8px; background: var(--white); color: var(--black); }
.admin-dock [role="tab"][aria-selected="true"] .admin-count { background: var(--black); color: var(--white); }
.admin-count { min-width: 1.5em; padding: 0 8px; border-radius: var(--pill); background: var(--gold); color: var(--black); font-size: 0.8125rem; font-variant-numeric: tabular-nums; line-height: 1.6; text-align: center; }
.admin-count:empty { display: none; }

.admin-summary { margin-bottom: 20px; color: var(--grey); max-width: 52em; }
.admin-filters { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)) auto; gap: 16px; align-items: end; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.admin-filters-messages { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.admin-checks { display: flex; flex-wrap: wrap; gap: 4px 20px; align-self: center; }

.admin-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.admin-row { border-bottom: 1px solid var(--line); }
.admin-row summary { display: grid; grid-template-columns: 7.5em minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1.4fr) 7.5em 6.5em; gap: 4px 16px; align-items: baseline; padding: 14px 40px 14px 12px; cursor: pointer; list-style: none; position: relative; }
.admin-row summary::-webkit-details-marker { display: none; }
.admin-row summary::after { content: ''; position: absolute; right: 16px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--black); border-bottom: 2px solid var(--black); transform: translateY(-70%) rotate(45deg); transition: transform .15s ease; }
.admin-row details[open] > summary::after { transform: translateY(-30%) rotate(-135deg); }
.admin-row summary:hover { background: var(--chalk); }
.admin-row details[open] { box-shadow: inset 4px 0 0 var(--gold); }
.admin-ref { font-variant-numeric: tabular-nums; font-weight: 650; letter-spacing: 0.02em; color: var(--grey); }
.admin-name { font-family: var(--font-display); font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.admin-where, .admin-car { color: var(--grey); font-size: 0.9375rem; overflow-wrap: anywhere; }
.admin-when { font-size: 0.9375rem; font-variant-numeric: tabular-nums; color: var(--grey); text-align: right; }
.admin-flag { justify-self: start; padding: 2px 10px; border-radius: var(--pill); background: var(--gold); color: var(--black); font-size: 0.8125rem; font-weight: 650; }
.admin-flag:empty { display: none; }

.admin-detail { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 24px; padding: 4px 16px 24px 12px; margin: 0; }
.admin-detail dt { color: var(--grey); font-size: 0.9375rem; }
.admin-detail dd { margin: 0; overflow-wrap: anywhere; }
.admin-message { padding: 4px 16px 24px 12px; max-width: 48em; }
.admin-message-from { color: var(--grey); font-size: 0.9375rem; margin-bottom: 12px; overflow-wrap: anywhere; }
.admin-message-body { white-space: pre-wrap; overflow-wrap: anywhere; }

.admin-empty { padding: 28px 12px; color: var(--grey); }
.admin-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.admin-range { color: var(--grey); font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.admin-emailcheck { margin-top: clamp(20px, 3vw, 32px); }
.admin-emailcheck h2 { font-size: 1.125rem; margin-bottom: 8px; }
.admin-emailcheck > p { margin-bottom: 14px; }


/* Overview: totals, provinces, status and the latest registrations. */
.admin-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 0 16px; }
.admin-tile { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; padding: clamp(18px, 2.4vw, 28px); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); }
.admin-tile dd { margin: 0; font-family: var(--font-display); font-size: clamp(2.25rem, 4.2vw, 3.5rem); font-weight: 700; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.admin-tile dt { color: var(--grey); font-size: 0.9375rem; }
.admin-tile-lead { background: var(--black); border-color: var(--black); }
.admin-tile-lead dd { color: var(--gold); }
.admin-tile-lead dt { color: #d4d4d4; }
.admin-overview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-block: 20px 16px; align-items: start; }
.admin-overview-grid .admin-panel h2, .admin-latest h2 { font-size: 1.25rem; margin-bottom: 16px; }
.admin-bars { display: grid; gap: 10px; }
.admin-bar { display: grid; grid-template-columns: 8.5em minmax(0, 1fr) 3em; align-items: center; gap: 12px; font-size: 0.9375rem; }
.admin-bar-count { text-align: right; font-variant-numeric: tabular-nums; font-weight: 650; }
.admin-bar progress { appearance: none; -webkit-appearance: none; width: 100%; height: 10px; border: 0; border-radius: var(--pill); background: var(--chalk); overflow: hidden; }
.admin-bar progress::-webkit-progress-bar { background: var(--chalk); border-radius: var(--pill); }
.admin-bar progress::-webkit-progress-value { background: var(--gold); border-radius: var(--pill); }
.admin-bar progress::-moz-progress-bar { background: var(--gold); border-radius: var(--pill); }
.admin-status { display: grid; gap: 0; }
.admin-status li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.admin-status li:last-child { border-bottom: 0; }
.admin-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--mid); background: transparent; }
.admin-status li[data-state="on"] .admin-dot { border-color: var(--gold); background: var(--gold); }
.admin-status-value { font-weight: 650; }
.admin-latest { margin-top: 16px; }
.admin-latest-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; }
.admin-latest-head h2 { margin-bottom: 0; }
.admin-latest-list { display: grid; border-top: 1px solid var(--line); }
.admin-latest-item { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.2fr) 7.5em; gap: 4px 16px; align-items: baseline; padding: 12px 4px; border-bottom: 1px solid var(--line); }

/* The footer: the public site's, with a note on handling personal information. */
.admin-footer-care p { color: var(--muted); max-width: 26em; }
.admin-footer-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.2fr); }

@media (max-width: 1000px) {
  .admin-signin { grid-template-columns: minmax(0, 1fr); }
  .admin-overview-grid { grid-template-columns: minmax(0, 1fr); }
  .admin-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-latest-item { grid-template-columns: minmax(0, 1fr) auto; }
  .admin-latest-item .admin-where, .admin-latest-item .admin-car { grid-column: 1 / -1; }
  .admin-latest-item .admin-when { grid-column: 2; grid-row: 1; }
  .admin-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-filters .admin-search { grid-column: 1 / -1; }
  .admin-checks { grid-column: 1 / -1; }
  .admin-row summary { grid-template-columns: minmax(0, 1fr) auto; }
  .admin-name { grid-column: 1; grid-row: 1; }
  .admin-when { grid-column: 2; grid-row: 1; }
  .admin-ref { grid-column: 1 / -1; grid-row: 2; }
  .admin-where, .admin-car { grid-column: 1 / -1; }
  .admin-flag { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 900px) {
  .admin-tag { display: none; }
}
@media (max-width: 640px) {
  .admin-dock [role="tab"] { min-width: 0; flex: 1; padding-inline: 4px; }
  .admin-dock .admin-count { right: 6px; }
  .admin-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .admin-tile-lead { grid-column: 1 / -1; }
  .admin-footer-grid { grid-template-columns: 1fr; }
  .admin-hero-inner { align-items: flex-start; }
}
@media (max-width: 560px) {
  .admin-bar { grid-template-columns: 7em minmax(0, 1fr) 2.5em; gap: 8px; }
  .admin-filters, .admin-filters-messages { grid-template-columns: minmax(0, 1fr); }
  .admin-detail { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .admin-detail dd { margin-bottom: 10px; }
  .admin-pager { flex-wrap: wrap; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .admin-row summary::after { transition: none; }
}

/* Deleting an entry: a quiet button at the foot of the opened entry, then the question and the two answers. */
.admin-delete-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 0 16px 20px 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.admin-delete-row [hidden] { display: none; }
.admin-delete-ask { font-weight: 650; overflow-wrap: anywhere; }
.admin-delete-row .form-status { flex-basis: 100%; margin: 0; }
.admin-delete-row .form-status:empty { display: none; }
.admin-delete-yes { background: #8a1c1c; border-color: #8a1c1c; color: var(--white); }
.admin-delete-yes:hover { background: var(--black); border-color: var(--black); color: var(--white); }

/* Replying to a message: the replies already sent, under the message, then the Reply button and its box. */
.admin-replies { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; }
.admin-reply { padding: 12px 16px; border-left: 3px solid var(--gold); background: var(--chalk); border-radius: 0 var(--r) var(--r) 0; }
.admin-reply-when { color: var(--grey); font-size: 0.875rem; margin: 0 0 6px; }
.admin-reply-body { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.admin-reply-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 0 16px 16px 12px; max-width: 48em; }
.admin-reply-row [hidden] { display: none; }
.admin-reply-field { flex-basis: 100%; }
.admin-reply-field textarea { min-height: 140px; }
.admin-reply-row .form-status { flex-basis: 100%; margin: 0; }
.admin-reply-row .form-status:empty { display: none; }

/* The admin portal's own sign-in, sign-up and account screens (site/admin-auth-pages.mjs). Clerk keeps the session and
   nothing else: every screen is the club's, in the same black, white and one gold as the rest of the site. The sign-in
   and sign-up pages are a black panel beside a white card with a gold top edge; the account page is the dashboard's
   title band over the same kind of panels. */

/* The pages have no dock, so the footer needs no room for one. */
[data-admin-page="sign-in"] .site-footer, [data-admin-page="sign-up"] .site-footer, [data-admin-page="account"] .site-footer { padding-bottom: clamp(48px, 6vw, 80px); }

.auth { display: grid; grid-template-columns: minmax(300px, 5fr) minmax(0, 7fr); min-height: calc(100svh - var(--header) - 120px); background: var(--chalk); }
.auth:focus { outline: none; }

/* The black panel: the title and one line, with fine gold diagonals that fade across the corner. */
.auth-aside { position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: clamp(32px, 5vw, 72px); background: var(--black); color: var(--white); }
.auth-aside-inner { position: relative; z-index: 1; max-width: 22em; }
.auth-title { font-size: clamp(3rem, 6.4vw, 6rem); line-height: .96; letter-spacing: -0.04em; margin: 0 0 18px; }
.auth-lead { max-width: 20em; margin: 0; }
.auth-hatch { position: absolute; inset: 0; pointer-events: none; opacity: .5; background: repeating-linear-gradient(115deg, transparent 0 26px, var(--gold) 26px 28px); -webkit-mask-image: linear-gradient(205deg, #000 0%, rgba(0, 0, 0, .55) 24%, transparent 58%); mask-image: linear-gradient(205deg, #000 0%, rgba(0, 0, 0, .55) 24%, transparent 58%); }

.auth-pane { display: grid; place-items: center; padding: clamp(28px, 5vw, 72px) var(--gutter); }
.auth-card { width: min(100%, 30rem); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: inset 0 6px 0 var(--gold); padding: calc(clamp(26px, 4vw, 44px) + 6px) clamp(24px, 4vw, 44px) clamp(26px, 4vw, 44px); }
.auth-card .admin-notice { margin-bottom: 16px; }
.auth-view[hidden] { display: none; }
.auth-heading { font-family: var(--font-display); font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 10px; }
.auth-heading:focus { outline: none; }
.auth-sub { color: var(--grey); margin: 0 0 24px; }
.auth-sub strong { color: var(--black); font-weight: 650; overflow-wrap: anywhere; }

/* Sign-up is a real sequence, so it shows where the person is. */
.auth-steps { display: flex; gap: 10px; margin: 0 0 28px; padding: 0; list-style: none; counter-reset: auth-step; }
.auth-steps li { flex: 1; display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 3px solid var(--line); font-size: 0.875rem; font-weight: 650; color: var(--grey); counter-increment: auth-step; }
.auth-steps li::before { content: counter(auth-step); flex: none; display: grid; place-content: center; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid currentColor; font-size: 0.8125rem; line-height: 1; }
.auth-steps li[aria-current="step"] { color: var(--black); border-bottom-color: var(--gold); }
.auth-steps li[aria-current="step"]::before { background: var(--gold); border-color: var(--gold); }

.auth-form { display: grid; gap: 18px; }
.auth-form > .form-status, .auth-form .form-status { margin-top: 0; }
.auth-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.auth-label-row label { margin-bottom: 8px; }
input[aria-invalid="true"] { border-color: #8a5f12; border-width: 2px; }

.auth-passkey { margin-bottom: 0; background: var(--gold); border-color: var(--gold); color: var(--black); }
.auth-passkey:hover { background: var(--black); border-color: var(--black); color: var(--white); }
.btn > svg { width: 22px; height: 22px; flex: none; }
.acct-passkeys > .btn { white-space: nowrap; }


/* Six digits from the email: one big box, set apart so the digits are easy to check. */
.auth-code { font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; letter-spacing: 0.35em; text-align: center; min-height: 64px; padding-left: calc(16px + 0.35em); font-variant-numeric: tabular-nums; }

.auth-link { appearance: none; -webkit-appearance: none; padding: 6px 0; border: 0; background: none; color: var(--black); font: inherit; font-weight: 650; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 4px; cursor: pointer; }
.auth-link:hover { text-decoration-color: var(--black); }
.auth-link:disabled { color: var(--grey); text-decoration: none; cursor: default; }
.auth-link:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.auth-resend { margin: 16px 0 0; font-size: 0.9375rem; }
.auth-foot { margin: 24px 0 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--grey); font-size: 0.9375rem; }
.auth-foot a { font-weight: 650; color: var(--black); }
.auth-note { margin: 20px 0 0; color: var(--grey); font-size: 0.9375rem; }

/* Account: the passkeys. */
.acct-passkeys { max-width: 46rem; }
.acct-welcome { margin-bottom: 20px; }
.acct-passkey-list { display: grid; margin: 0 0 20px; border-top: 1px solid var(--line); }
.acct-passkey { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.acct-passkey-main { display: grid; gap: 2px; min-width: 0; }
.acct-passkey-name { font-family: var(--font-display); font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.acct-passkey-meta { color: var(--grey); font-size: 0.9375rem; }
.acct-passkey-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.acct-passkey-ask { font-weight: 650; margin-right: 4px; }
.acct-passkey-edit { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; width: 100%; }
.acct-passkey-edit input { flex: 1 1 14em; width: auto; min-height: 44px; }
.acct-dialog { width: min(92vw, 26rem); padding: calc(clamp(22px, 3vw, 32px) + 6px) clamp(22px, 3vw, 32px) clamp(22px, 3vw, 32px); border: 0; border-radius: var(--r-lg); background: var(--white); color: var(--black); box-shadow: inset 0 6px 0 var(--gold), 0 40px 80px -30px rgba(0, 0, 0, .6); }
.acct-dialog::backdrop { background: rgba(11, 11, 11, .6); }
.acct-dialog h2 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 8px; }
.acct-dialog p { color: var(--grey); margin: 0; }
.acct-dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Entrance: the gold diagonals sweep in once when the page opens. */
@media (prefers-reduced-motion: no-preference) {
  .auth-hatch { animation: auth-sweep .9s cubic-bezier(.2, .7, .2, 1) both; }
  @keyframes auth-sweep { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
}

@media (max-width: 900px) {
  .auth { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .auth-aside { align-items: flex-start; padding: 28px var(--gutter) 72px; }
  .auth-title { font-size: clamp(2.5rem, 12vw, 3.5rem); margin-bottom: 10px; }
  .auth-hatch { -webkit-mask-image: linear-gradient(250deg, #000 0%, transparent 60%); mask-image: linear-gradient(250deg, #000 0%, transparent 60%); }
  .auth-pane { margin-top: -44px; padding-top: 0; position: relative; z-index: 1; }
}
@media (max-width: 480px) {
  .auth-card { padding-inline: 20px; }
  .auth-steps li span { font-size: 0.8125rem; }
  .auth-code { font-size: 1.5rem; letter-spacing: 0.28em; padding-left: calc(16px + 0.28em); }
}
@media (forced-colors: active) {
  .auth-card, .acct-dialog { border: 1px solid CanvasText; }
  .auth-hatch { display: none; }
}
