/* ==========================================================================
   McLaren-style demo: design tokens and shared classes (owned by A3).
   Section-specific styles belong below the `/* sections *\/` marker at the
   end of this file (owned by B3; append only).
   ========================================================================== */

:root {
  /* colours */
  --carbon: #111214;
  --carbon-2: #1a1c1f;
  --carbon-3: #26292d;
  --midnight: #0b1220;
  --mist: #e9ebed;
  --mist-2: #d9dcdf;
  --white: #ffffff;
  --papaya: #ff8000;
  --papaya-dark: #d96c00;
  --ink: #111214;
  --ink-muted: #5c6166;
  --paper: #ffffff;
  --paper-muted: #9ca1a6;
  --line-dark: rgba(255, 255, 255, 0.14);
  --line-light: rgba(0, 0, 0, 0.12);

  /* current theme (dark carbon default) */
  --bg: var(--carbon);
  --bg-elevated: var(--carbon-2);
  --fg: var(--paper);
  --fg-muted: var(--paper-muted);
  --line: var(--line-dark);
  --accent: var(--papaya);
  --focus: var(--papaya);

  /* type scale */
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.75rem;
  --text-3xl: 2.25rem;
  --text-4xl: 3rem;
  --text-5xl: 4rem;
  --leading-tight: 1.1;
  --leading-snug: 1.3;
  --leading-body: 1.6;
  --tracking-eyebrow: 0.18em;
  --weight-light: 300;
  --weight-regular: 400;
  --weight-medium: 500;

  /* spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --gutter: 16px;
  --container: 1200px;
  --container-narrow: 760px;
  --header-height: 64px;
  --radius: 2px;
  --duration: 180ms;
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

/* --------------------------------------------------------------------------
   Reset and base
   -------------------------------------------------------------------------- */

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  font-weight: var(--weight-regular);
  color: var(--fg);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

button {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 var(--space-4);
  font-weight: var(--weight-light);
  line-height: var(--leading-tight);
  letter-spacing: -0.01em;
}

h1 {
  font-size: var(--text-3xl);
}

h2 {
  font-size: var(--text-2xl);
}

h3 {
  font-size: var(--text-xl);
}

h4 {
  font-size: var(--text-lg);
  font-weight: var(--weight-medium);
}

p,
ul,
ol,
blockquote,
figure,
pre {
  margin: 0 0 var(--space-4);
}

ul,
ol {
  padding-left: 1.25em;
}

code,
pre {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

pre {
  overflow-x: auto;
  padding: var(--space-4);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  max-width: 100%;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: var(--space-6) 0;
}

blockquote {
  padding-left: var(--space-4);
  border-left: 2px solid var(--accent);
  font-size: var(--text-lg);
  font-weight: var(--weight-light);
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

:focus:not(:focus-visible) {
  outline: none;
}

@media (min-width: 768px) {
  :root {
    --gutter: 24px;
  }

  h1 {
    font-size: var(--text-4xl);
  }

  h2 {
    font-size: var(--text-3xl);
  }
}

@media (min-width: 1024px) {
  :root {
    --gutter: 32px;
  }

  h1 {
    font-size: var(--text-5xl);
  }
}

/* --------------------------------------------------------------------------
   Themes (apply to sections)
   -------------------------------------------------------------------------- */

.theme-carbon {
  --bg: var(--carbon);
  --bg-elevated: var(--carbon-2);
  --fg: var(--paper);
  --fg-muted: var(--paper-muted);
  --line: var(--line-dark);
  background: var(--bg);
  color: var(--fg);
}

.theme-midnight {
  --bg: var(--midnight);
  --bg-elevated: #121a2b;
  --fg: var(--paper);
  --fg-muted: var(--paper-muted);
  --line: var(--line-dark);
  background: var(--bg);
  color: var(--fg);
}

.theme-mist {
  --bg: var(--mist);
  --bg-elevated: var(--white);
  --fg: var(--ink);
  --fg-muted: var(--ink-muted);
  --line: var(--line-light);
  background: var(--bg);
  color: var(--fg);
}

.theme-white {
  --bg: var(--white);
  --bg-elevated: var(--mist);
  --fg: var(--ink);
  --fg-muted: var(--ink-muted);
  --line: var(--line-light);
  background: var(--bg);
  color: var(--fg);
}

/* --------------------------------------------------------------------------
   Layout utilities
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--space-7) 0;
  background: var(--bg);
  color: var(--fg);
}

.section--tight {
  padding: var(--space-5) 0;
}

.section--flush {
  padding: 0;
}

@media (min-width: 768px) {
  .section {
    padding: var(--space-8) 0;
  }
}

@media (min-width: 1024px) {
  .section {
    padding: var(--space-9) 0;
  }
}

.eyebrow {
  display: block;
  margin: 0 0 var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--fg-muted);
}

.muted {
  color: var(--fg-muted);
}

.lead {
  font-size: var(--text-lg);
  font-weight: var(--weight-light);
}

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

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 0 var(--space-5);
  border: 1px solid currentColor;
  border-radius: var(--radius);
  background: transparent;
  color: inherit;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--duration) var(--ease), color var(--duration) var(--ease),
    border-color var(--duration) var(--ease);
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--papaya);
  border-color: var(--papaya);
  color: #111214;
}

.btn-primary:hover {
  background: var(--papaya-dark);
  border-color: var(--papaya-dark);
}

.btn-secondary {
  border-color: currentColor;
  color: inherit;
}

.btn-secondary:hover {
  background: var(--fg);
  color: var(--bg);
}

.btn-text {
  min-height: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
}

.btn-text:hover {
  color: var(--accent);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin: 0 0 var(--space-4);
}

/* --------------------------------------------------------------------------
   Cards and grids (shared shapes; B3 adds specifics)
   -------------------------------------------------------------------------- */

.grid-cards {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
  padding: 0;
  margin: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .grid-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .grid-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid-cards--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.card > img,
.card__media {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  flex: 1;
}

.card__title {
  margin: 0;
  font-size: var(--text-xl);
}

.card__actions {
  margin-top: auto;
  padding-top: var(--space-3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--gutter);
  z-index: 1000;
  padding: var(--space-2) var(--space-4);
  background: var(--papaya);
  color: #111214;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  border-radius: var(--radius);
}

.skip-link:focus {
  top: var(--space-2);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  /* no backdrop-filter here: it would become the containing block for the
     fixed-position mobile menu and collapse it to the header's height */
  background: var(--carbon);
  border-bottom: 1px solid var(--line-dark);
  color: var(--paper);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  min-height: var(--header-height);
}

.wordmark {
  font-size: var(--text-lg);
  font-weight: var(--weight-medium);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  white-space: nowrap;
}

.wordmark:hover {
  text-decoration: none;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 0 var(--space-2);
  background: none;
  border: 0;
  cursor: pointer;
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
}

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform var(--duration) var(--ease);
}

.nav-toggle__bars::before {
  top: -7px;
}

.nav-toggle__bars::after {
  top: 7px;
}

body.nav-open .nav-toggle__bars {
  background: transparent;
}

body.nav-open .nav-toggle__bars::before {
  transform: translateY(7px) rotate(45deg);
}

body.nav-open .nav-toggle__bars::after {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  display: none;
}

body.nav-open .site-nav {
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: var(--header-height) 0 0 0;
  z-index: 90;
  padding: var(--space-5) var(--gutter) var(--space-8);
  overflow-y: auto;
  background: var(--carbon);
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.site-nav__item {
  border-bottom: 1px solid var(--line-dark);
}

.site-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 56px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  font-size: var(--text-lg);
  font-weight: var(--weight-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: left;
}

.site-nav__link:hover {
  text-decoration: none;
  color: var(--paper);
}

.site-nav__caret {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--duration) var(--ease);
  margin-left: var(--space-2);
}

.has-dropdown.is-open .site-nav__caret {
  transform: rotate(-135deg);
}

.dropdown {
  display: none;
}

.has-dropdown.is-open .dropdown {
  display: block;
  padding: 0 0 var(--space-4);
}

.dropdown__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-2);
}

.dropdown__link {
  display: block;
  padding: var(--space-3) var(--space-3);
  border-radius: var(--radius);
}

.dropdown__link:hover {
  text-decoration: none;
  background: var(--carbon-2);
}

.dropdown__title {
  display: block;
  font-size: var(--text-base);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dropdown__desc {
  display: block;
  margin-top: var(--space-1);
  font-size: var(--text-sm);
  color: var(--paper-muted);
}

.site-nav__retailer {
  display: inline-flex;
  align-items: center;
  margin-top: var(--space-5);
  min-height: 44px;
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  border-bottom: 1px solid var(--papaya);
  align-self: flex-start;
}

.site-nav__retailer:hover {
  text-decoration: none;
  color: var(--papaya);
}

@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }

  .site-nav,
  body.nav-open .site-nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: var(--space-6);
    padding: 0;
    background: transparent;
    overflow: visible;
    flex: 1;
    justify-content: flex-end;
  }

  .site-nav__list {
    flex-direction: row;
    gap: var(--space-5);
    align-items: stretch;
  }

  .site-nav__item {
    border: 0;
    position: relative;
  }

  .site-nav__link {
    width: auto;
    min-height: var(--header-height);
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
    letter-spacing: var(--tracking-eyebrow);
    color: var(--paper-muted);
  }

  .site-nav__link:hover,
  .site-nav__link:focus-visible,
  .has-dropdown.is-open > .site-nav__link {
    color: var(--paper);
  }

  .site-nav__caret {
    width: 6px;
    height: 6px;
    margin-top: -3px;
  }

  .dropdown,
  .has-dropdown.is-open .dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    min-width: 440px;
    max-width: min(720px, calc(100vw - 2 * var(--gutter)));
    padding: var(--space-4);
    background: var(--carbon-2);
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  }

  .dropdown {
    display: none;
  }

  .has-dropdown.is-open .dropdown {
    display: block;
  }

  .dropdown__list {
    grid-template-columns: repeat(2, minmax(200px, 1fr));
    gap: var(--space-1);
  }

  .site-nav__retailer {
    margin-top: 0;
    align-self: center;
  }
}

/* --------------------------------------------------------------------------
   Main and status panels
   -------------------------------------------------------------------------- */

.site-main {
  min-height: 60vh;
  outline: none;
}

.status {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: var(--container-narrow);
}

.status--loading {
  flex-direction: row;
  align-items: center;
  margin: 0 auto;
  padding: var(--space-8) var(--gutter);
  color: var(--fg-muted);
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.status--error {
  padding: var(--space-5);
  border: 1px solid rgba(255, 128, 0, 0.5);
  border-left: 3px solid var(--papaya);
  background: var(--bg-elevated);
}

.status__detail {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: var(--text-sm);
}

.debug-dump {
  font-size: var(--text-xs);
  line-height: 1.5;
  max-height: 70vh;
}

.noscript {
  padding: var(--space-5) var(--gutter);
  text-align: center;
}

/* --------------------------------------------------------------------------
   Breadcrumbs
   -------------------------------------------------------------------------- */

.breadcrumbs {
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.breadcrumbs__list {
  list-style: none;
  margin: 0;
  padding: var(--space-4) 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.breadcrumbs__item + .breadcrumbs__item::before {
  content: "/";
  margin-right: var(--space-2);
  opacity: 0.5;
}

.breadcrumbs__item[aria-current="page"] {
  color: var(--fg);
}

/* --------------------------------------------------------------------------
   Rich text
   -------------------------------------------------------------------------- */

.richtext > :last-child {
  margin-bottom: 0;
}

.richtext a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.richtext a:hover {
  color: var(--accent);
}

.richtext-figure {
  margin: var(--space-6) 0;
}

.richtext-figure img {
  width: 100%;
}

.richtext-figure figcaption {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--fg-muted);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--carbon);
  color: var(--paper);
  border-top: 1px solid var(--line-dark);
}

.site-footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--space-7) var(--gutter) var(--space-6);
}

.footer__columns {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
  margin-bottom: var(--space-7);
}

@media (min-width: 768px) {
  .footer__columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .footer__columns {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.footer__heading {
  margin: 0 0 var(--space-4);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--paper-muted);
}

.footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-2);
}

.footer__link {
  display: inline-block;
  padding: var(--space-1) 0;
  font-size: var(--text-sm);
  font-weight: var(--weight-light);
}

.footer__newsletter p {
  font-size: var(--text-sm);
  color: var(--paper-muted);
  margin: 0;
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line-dark);
  font-size: var(--text-xs);
  color: var(--paper-muted);
}

.footer__bottom p {
  margin: 0;
}

.footer__legal {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer__legal .footer__link {
  font-size: var(--text-xs);
  padding: 0;
}

.footer__locale {
  margin-left: var(--space-2);
  padding-left: var(--space-2);
  border-left: 1px solid var(--line-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (min-width: 768px) {
  .footer__bottom {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }

  .footer__note {
    flex-basis: 100%;
  }
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .spinner {
    animation: none;
    border-top-color: var(--line);
  }
}

/* sections */

/* View transitions --------------------------------------------------------
   A variant switch crossfades the hero and title in place. Header and footer
   keep their own names so they do not fade at all. */

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.25s;
}

.site-header {
  view-transition-name: site-header;
}

.site-footer {
  view-transition-name: site-footer;
}

/* Loading bar: a vehicle page keeps its content while the next page loads, so
   a thin bar along the bottom edge of the sticky header shows progress. */
body.is-loading .site-header::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(90deg, var(--papaya), var(--papaya)) no-repeat;
  background-size: 40% 100%;
  animation: loading-bar 1.2s linear infinite;
  pointer-events: none;
}

@keyframes loading-bar {
  from {
    background-position: -67% 0;
  }

  to {
    background-position: 167% 0;
  }
}

.hero--vehicle .hero__media {
  view-transition-name: vehicle-hero;
}

.hero--vehicle .hero__title {
  view-transition-name: vehicle-title;
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }

  body.is-loading .site-header::after {
    animation: none;
    background-size: 100% 100%;
  }
}

/* Motion ------------------------------------------------------------------
   Everything that hides or moves content lives inside the no-preference query,
   so with reduced motion (or without JS adding .is-visible) nothing is hidden. */

.carousel__controls[hidden] {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  .hero--full .hero__image {
    animation: hero-zoom 6s ease-out both;
  }

  .hero__content > * {
    animation: fade-up 0.6s ease-out both;
  }

  .hero__content > :nth-child(2) {
    animation-delay: 0.12s;
  }

  .hero__content > :nth-child(3) {
    animation-delay: 0.24s;
  }

  [data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  }

  [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }

  .subnav--product .subnav__link,
  .subnav--product .subnav__summary,
  .subnav--product .subnav__inner {
    transition: min-height 0.25s ease, padding 0.25s ease;
  }

  .subnav--product.is-compact .subnav__inner {
    min-height: 0;
    padding-block: 0;
  }

  .subnav--product.is-compact .subnav__link,
  .subnav--product.is-compact .subnav__summary {
    min-height: 40px;
  }

  @keyframes hero-zoom {
    from {
      transform: scale(1.06);
    }

    to {
      transform: scale(1);
    }
  }

  @keyframes fade-up {
    from {
      opacity: 0;
      transform: translateY(12px);
    }

    to {
      opacity: 1;
      transform: none;
    }
  }
}

/* Carousel dragging. Always on: reduced motion only affects animation, not drag. */
.carousel__track {
  cursor: grab;
}

.carousel__track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
  user-select: none;
}

.carousel__track img,
.carousel__track a {
  -webkit-user-drag: none;
}

/* On narrow screens the product title only shows once the bar is compact. */
@media (prefers-reduced-motion: no-preference) and (max-width: 767px) {
  .subnav--product:not(.is-compact) .subnav__title {
    display: none;
  }
}

/* Home --------------------------------------------------------------------
   Selectors are doubled up (.hero.hero--home) because the template styles
   further down the file would otherwise win on source order. */

.hero.hero--home {
  min-height: min(92vh, 56rem);
}

.hero--home .hero__title {
  max-width: 10em;
  font-size: clamp(2.5rem, 7vw, 6rem);
  line-height: 1.02;
}

.hero--home .hero__strapline {
  max-width: 28em;
  margin: var(--space-4) 0 0;
  color: var(--paper);
}

.showcase__track.carousel__track {
  gap: var(--space-4);
  padding-bottom: var(--space-4);
}

.showcase__card {
  position: relative;
  display: flex;
  flex: 0 0 min(78vw, 22rem);
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: var(--bg-elevated, var(--carbon-2));
  border: 1px solid var(--line);
  border-radius: 4px;
  scroll-snap-align: start;
}

.showcase__media {
  display: block;
  overflow: hidden;
}

.showcase__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.showcase__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-4) var(--space-5);
}

.showcase__name {
  margin: 0;
  font-size: var(--text-xl);
}

.showcase__tagline {
  margin: 0;
  font-size: var(--text-sm);
}

.showcase__link {
  align-self: flex-start;
  margin-top: auto;
  padding-top: var(--space-3);
  color: var(--papaya);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  text-decoration: none;
}

.showcase__link:hover,
.showcase__link:focus-visible {
  color: var(--papaya-dark);
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

@media (prefers-reduced-motion: no-preference) {
  .showcase__image {
    transition: transform 0.4s ease-out;
  }

  .showcase__card:hover .showcase__image {
    transform: scale(1.03);
  }
}

/* --------------------------------------------------------------------------
   Section and template styles (owned by B3). Mobile first; breakpoints at
   768px and 1024px.
   -------------------------------------------------------------------------- */

.theme-colnbrook {
  --bg: #12304f;
  --bg-elevated: #1a3f66;
  --fg: var(--paper);
  --fg-muted: #b3c1d1;
  --line: var(--line-dark);
  background: var(--bg);
  color: var(--fg);
}

.section__title {
  margin: 0 0 var(--space-6);
}

.crumb-bar {
  background: var(--bg);
}

.btn--sm {
  min-height: 36px;
  padding: 0 var(--space-4);
  font-size: var(--text-xs);
}

/* Hero (vehicle, page, story) ------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: linear-gradient(160deg, var(--carbon-3), var(--carbon));
  color: var(--paper);
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17, 18, 20, 0.97) 0%, rgba(17, 18, 20, 0.9) 28%, rgba(17, 18, 20, 0.25) 62%, rgba(17, 18, 20, 0.1) 100%);
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-top: var(--space-8);
  padding-bottom: var(--space-7);
}

.hero__title {
  max-width: 14em;
  margin: 0;
  overflow-wrap: break-word;
}

.hero__tagline {
  max-width: 32em;
  margin: var(--space-3) 0 0;
  color: var(--paper);
}

.hero--full {
  min-height: 60vh;
}

.hero--compact {
  min-height: 260px;
}

@media (min-width: 768px) {
  .hero--full {
    min-height: min(78vh, 760px);
  }

  .hero--compact {
    min-height: 340px;
  }

  .hero__content {
    padding-bottom: var(--space-8);
  }
}

/* Sub-navigation (product and page) ------------------------------------- */

.subnav {
  position: sticky;
  top: var(--header-height);
  z-index: 50;
  background: var(--carbon-2);
  border-bottom: 1px solid var(--line-dark);
  color: var(--paper);
}

.subnav__inner {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  min-height: 56px;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}

.subnav__inner::-webkit-scrollbar {
  display: none;
}

.subnav__title {
  flex: none;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.subnav__list {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.subnav__list > li {
  flex: none;
}

.subnav__link,
.subnav__summary {
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--paper-muted);
  border-bottom: 2px solid transparent;
  cursor: pointer;
}

.subnav__link:hover,
.subnav__summary:hover,
.subnav__link[aria-current="page"],
.subnav__menu[open] > .subnav__summary {
  color: var(--paper);
  text-decoration: none;
}

.subnav__link[aria-current="page"] {
  border-bottom-color: var(--papaya);
}

.subnav__summary {
  list-style: none;
  gap: var(--space-2);
}

.subnav__summary::-webkit-details-marker {
  display: none;
}

.subnav__summary::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
}

.subnav__menu[open] > .subnav__summary::after {
  margin-top: 3px;
  transform: rotate(-135deg);
}

/* Menu panels hang off the sticky bar itself (the nearest positioned
   ancestor), so the bar's horizontal scrolling never clips them. */
.subnav__panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1;
  margin: 0;
  padding: var(--space-3) var(--gutter) var(--space-4);
  list-style: none;
  background: var(--carbon-2);
  border-bottom: 1px solid var(--line-dark);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  white-space: normal;
}

.subnav__panel a {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  font-size: var(--text-sm);
  letter-spacing: 0.06em;
}

.subnav__panel a[aria-current="page"] {
  color: var(--papaya);
}

@media (min-width: 1024px) {
  .subnav__panel {
    padding-left: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter)));
    padding-right: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter)));
  }

  .subnav--product .subnav__list {
    margin-left: auto;
  }
}

/* Statement ---------------------------------------------------------------- */

.statement .container--narrow {
  max-width: 920px;
}

.statement__text {
  margin: 0 0 var(--space-5);
  font-size: var(--text-xl);
  font-weight: var(--weight-light);
  line-height: var(--leading-snug);
}

@media (min-width: 768px) {
  .statement__text {
    font-size: var(--text-2xl);
  }
}

@media (min-width: 1024px) {
  .statement__text {
    font-size: var(--text-3xl);
  }
}

/* Overview carousel (scroll-snap) ------------------------------------------ */

.carousel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.carousel__title {
  margin: 0;
}

.carousel__controls {
  display: flex;
  gap: var(--space-2);
}

.carousel__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: inherit;
  font-size: var(--text-lg);
  cursor: pointer;
  transition: background-color var(--duration) var(--ease), color var(--duration) var(--ease);
}

.carousel__button:hover {
  background: var(--fg);
  color: var(--bg);
}

.carousel__track {
  position: relative;
  display: flex;
  gap: var(--space-4);
  margin: 0;
  padding: 0 var(--gutter) var(--space-3);
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scroll-behavior: smooth;
  scrollbar-width: thin;
}

.carousel__slide {
  flex: 0 0 86%;
  min-width: 0;
  scroll-snap-align: start;
}

.carousel__media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
}

.carousel__copy {
  padding-top: var(--space-4);
}

.carousel__heading {
  margin-bottom: var(--space-2);
}

.carousel__body p:last-child {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .carousel__slide {
    flex-basis: 60%;
  }
}

@media (min-width: 1024px) {
  .carousel__track {
    padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
    padding-right: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
    scroll-padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  }

  .carousel__slide {
    flex-basis: 44%;
  }
}

/* In detail tabs (radio buttons, no JS) ---------------------------------- */

.tabs {
  position: relative;
}

.tabs__radio {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

.tabs__list {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  border-bottom: 1px solid var(--line);
}

.tabs__tab {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 var(--space-5);
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--fg-muted);
  cursor: pointer;
}

.tabs__tab:hover {
  color: var(--fg);
}

.tabs__panel {
  display: none;
}

/* the radios sit in a radiogroup wrapper, so state is read with :has() */
.tabs:has(#detail-tab-exterior:checked) .tabs__tab--exterior,
.tabs:has(#detail-tab-interior:checked) .tabs__tab--interior {
  color: var(--fg);
  border-bottom-color: var(--papaya);
}

.tabs:has(#detail-tab-exterior:focus-visible) .tabs__tab--exterior,
.tabs:has(#detail-tab-interior:focus-visible) .tabs__tab--interior {
  outline: 2px solid var(--focus);
  outline-offset: -2px;
}

.tabs:has(#detail-tab-exterior:checked) .tabs__panel--exterior,
.tabs:has(#detail-tab-interior:checked) .tabs__panel--interior {
  display: block;
}

/* a single area has no tabs: its panel is always visible */
.in-detail > .container > .tabs__panel {
  display: block;
}

.highlights {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin: 0;
  padding: 0;
  list-style: none;
}

.highlight__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.highlight__copy {
  padding-top: var(--space-4);
}

.highlight__title {
  margin-bottom: var(--space-2);
}

.highlight__body p:last-child {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-6) var(--space-5);
  }
}

/* Specifications ----------------------------------------------------------- */

.spec-tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  margin: 0 0 var(--space-7);
  padding: 0;
  list-style: none;
}

.spec-tile {
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
}

.spec-tile__value {
  display: block;
  font-size: var(--text-4xl);
  font-weight: var(--weight-light);
  line-height: var(--leading-tight);
}

.spec-tile__unit {
  margin-left: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

@media (min-width: 768px) {
  .spec-tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .spec-tile__value {
    font-size: var(--text-5xl);
  }
}

.spec-full {
  margin-bottom: var(--space-7);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.spec-full__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}

.spec-full__summary::-webkit-details-marker {
  display: none;
}

.spec-full__summary::after,
.faq__question::after {
  content: "+";
  font-size: var(--text-xl);
  font-weight: var(--weight-light);
}

.spec-full[open] > .spec-full__summary::after,
.faq[open] > .faq__question::after {
  content: "\2212";
}

.spec-table {
  width: 100%;
  margin-bottom: var(--space-5);
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.spec-table th,
.spec-table td {
  padding: var(--space-3) var(--space-2) var(--space-3) 0;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.spec-table tbody th[scope="row"] {
  width: 45%;
  font-weight: var(--weight-regular);
  color: var(--fg-muted);
}

.spec-table__group th {
  padding-top: var(--space-5);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--accent);
}

.performance {
  max-width: var(--container-narrow);
}

.performance__title {
  margin-bottom: var(--space-3);
}

/* Banner (bannerButton, MSO banner) ---------------------------------------- */

.banner {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.banner__media {
  position: absolute;
  inset: 0;
}

.banner__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.25));
}

.banner__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner__inner {
  position: relative;
  z-index: 1;
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}

.banner__content {
  max-width: 34rem;
}

.banner__title {
  margin-bottom: var(--space-3);
}

.banner__body p:last-child {
  margin-bottom: 0;
}

.banner--image {
  min-height: 420px;
}

.banner--split .banner__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: center;
}

.banner__aside img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

@media (min-width: 768px) {
  .banner--image {
    min-height: 480px;
  }

  .banner--split .banner__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-8);
  }

  .banner__title {
    font-size: var(--text-3xl);
  }
}

/* Lineage timeline ----------------------------------------------------------- */

.lineage__intro {
  max-width: var(--container-narrow);
}

.timeline {
  margin: var(--space-7) 0 0;
  padding: 0;
  list-style: none;
}

.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  padding: 0 0 var(--space-6) var(--space-5);
  border-left: 2px solid var(--line);
}

.timeline__item::before {
  content: "";
  position: absolute;
  top: 0.55rem;
  left: -6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--papaya);
}

.timeline__year {
  font-size: var(--text-3xl);
  font-weight: var(--weight-light);
  line-height: var(--leading-tight);
}

.timeline__title {
  margin-bottom: var(--space-2);
}

.timeline__text p:last-child {
  margin-bottom: var(--space-3);
}

.timeline__media img {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
}

@media (min-width: 768px) {
  .timeline__item {
    grid-template-columns: 8rem minmax(0, 1fr) 220px;
    gap: var(--space-5);
    padding-left: var(--space-6);
  }

  .timeline__item:not(:has(.timeline__media)) {
    grid-template-columns: 8rem minmax(0, 1fr);
  }
}

/* FAQs ------------------------------------------------------------------------ */

.faq {
  border-bottom: 1px solid var(--line);
}

.faq:first-child {
  border-top: 1px solid var(--line);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 60px;
  padding: var(--space-3) 0;
  font-size: var(--text-lg);
  font-weight: var(--weight-light);
  cursor: pointer;
  list-style: none;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__answer {
  padding: 0 0 var(--space-5);
  color: var(--fg-muted);
}

/* Cards: product, story, promo ------------------------------------------------ */

.grid-cards > li {
  display: flex;
  min-width: 0;
}

.grid-cards > li > .card {
  flex: 1;
  min-width: 0;
}

.card__media-link {
  display: block;
}

.card__media-link img {
  transition: transform 400ms var(--ease);
}

.card:hover .card__media-link img {
  transform: scale(1.03);
}

.card__media-link {
  overflow: hidden;
}

.card__title a:hover {
  text-decoration: none;
  color: var(--accent);
}

.card__text > :last-child {
  margin-bottom: 0;
}

.product-card .card__title {
  font-size: var(--text-2xl);
}

/* Category page ------------------------------------------------------------------ */

.category-tabs {
  background: var(--carbon-2);
  border-bottom: 1px solid var(--line-dark);
  color: var(--paper);
}

.category-tabs__list {
  display: flex;
  gap: var(--space-5);
  margin: 0 auto;
  padding-top: 0;
  padding-bottom: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-tabs__list::-webkit-scrollbar {
  display: none;
}

.category-tabs__tab {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  border-bottom: 2px solid transparent;
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--paper-muted);
}

.category-tabs__tab:hover,
.category-tabs__tab[aria-current="page"] {
  color: var(--paper);
  text-decoration: none;
}

.category-tabs__tab[aria-current="page"] {
  border-bottom-color: var(--papaya);
}

.category-header {
  padding-top: var(--space-5);
}

.category-header__intro p:last-child {
  margin-bottom: 0;
}

/* Text, image and CTA sections -------------------------------------------------- */

.text-block__title {
  margin-bottom: var(--space-4);
}

.text-block--header .text-block__title {
  font-size: var(--text-3xl);
}

.text-block__lead > p {
  font-size: var(--text-lg);
  font-weight: var(--weight-light);
}

.image-block__figure {
  margin: 0;
}

.image-block__figure img {
  width: 100%;
}

.image-block__caption {
  padding: var(--space-3) 0 0;
  font-size: var(--text-sm);
  color: var(--fg-muted);
}

.image-block--full {
  padding-bottom: var(--space-3);
}

.image-block--full .image-block__caption {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--space-3) var(--gutter) 0;
}

.cta-group__title {
  margin-bottom: var(--space-5);
}

.cta-group .btn-group {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .text-block--header .text-block__title {
    font-size: var(--text-4xl);
  }
}

/* Story ------------------------------------------------------------------------------ */

.story-standfirst .lead {
  font-size: var(--text-xl);
}

.story-standfirst .lead > :last-child {
  margin-bottom: 0;
}

/* Retailers --------------------------------------------------------------------------- */

.retailers__country + .retailers__country {
  margin-top: var(--space-7);
}

.retailers__heading {
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--line);
}

.retailers__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.retailer {
  min-width: 0;
  padding: var(--space-5);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.retailer__name {
  margin-bottom: var(--space-1);
}

.retailer__address {
  margin-bottom: var(--space-4);
  font-style: normal;
}

.retailer__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.retailer__links a:not(.btn) {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

@media (min-width: 768px) {
  .retailers__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .retailers__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* 404 ------------------------------------------------------------------------------------ */

.not-found {
  display: flex;
  align-items: center;
  min-height: 60vh;
}

.not-found .container {
  margin-left: 0;
}

.placeholder-view {
  display: flex;
  align-items: center;
  min-height: 50vh;
}

@media (prefers-reduced-motion: reduce) {
  .carousel__track {
    scroll-behavior: auto;
  }

  .card__media-link img {
    transition: none;
  }

  .card:hover .card__media-link img {
    transform: none;
  }
}

.banner__content .btn-group {
  margin: var(--space-5) 0 0;
}

.category-header .container--narrow,
.retailers-header .container--narrow,
.placeholder-view .container--narrow,
.not-found .container--narrow {
  max-width: var(--container);
}

.category-header .container--narrow > *,
.retailers-header .container--narrow > *,
.placeholder-view .container--narrow > *,
.not-found .container--narrow > * {
  max-width: 46rem;
}

.category-header .btn-group,
.placeholder-view .btn-group,
.not-found .btn-group {
  max-width: none;
}

/* The header is sticky, but its parent mount (#header) is only as tall as the
   header, so the sticky behaviour never engaged and the sticky sub-navs below
   (top: var(--header-height)) left a gap. Let the header's containing block be
   the page instead. */
.header-mount {
  display: contents;
}

/* The site name comes from content and can be long ("McLaren Automotive
   demo"); let the wordmark wrap on narrow screens instead of pushing the menu
   button off-screen. */
@media (max-width: 1023px) {
  .wordmark {
    min-width: 0;
    font-size: var(--text-sm);
    letter-spacing: 0.2em;
    line-height: 1.3;
    white-space: normal;
  }
}

@media (max-width: 767px) {
  .banner__media::after {
    background: rgba(0, 0, 0, 0.62);
  }
}

/* Forms */
.form {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  margin-top: var(--space-6);
}

.form[hidden],
.enquiry__success[hidden] {
  display: none;
}

@media (min-width: 720px) {
  .form {
    grid-template-columns: 1fr 1fr;
  }

  .form__field--wide {
    grid-column: 1 / -1;
  }
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
}

.form__field label {
  font-size: var(--text-sm);
  color: var(--fg-muted);
}

.form input:not([type="checkbox"]),
.form select,
.form textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  color: var(--fg);
  font: inherit;
}

.form textarea {
  resize: vertical;
}

.form input:not([type="checkbox"]):focus-visible,
.form select:focus-visible,
.form textarea:focus-visible,
.form input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.form [aria-invalid="true"] {
  border-color: var(--papaya);
}

.form__field--check {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  column-gap: var(--space-3);
}

.form__field--check input {
  margin-top: 0.2em;
  accent-color: var(--accent);
}

.form__field--check .form__error {
  grid-column: 2;
}

.form__error {
  margin: 0;
  min-height: 0;
  font-size: var(--text-sm);
  color: var(--papaya);
}

.form__error:empty {
  display: none;
}

.form__hint {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--fg-muted);
}

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

.form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
}

.form__status {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--fg-muted);
}

.enquiry__success {
  margin-top: var(--space-6);
  padding: var(--space-6);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  background: var(--bg-elevated);
}

.enquiry__success h2 {
  margin-top: 0;
}

/* --------------------------------------------------------------------------
   Japanese
   -------------------------------------------------------------------------- */

html[lang="ja"] {
  --font-sans: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, "Noto Sans JP", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html[lang="ja"] body {
  line-height: 1.8;
  overflow-wrap: anywhere;
}

/* Uppercase and wide tracking suit Latin capitals, not Japanese text. */
html[lang="ja"] :where(
  h1,
  h2,
  h3,
  h4,
  .eyebrow,
  .btn,
  .wordmark,
  .nav-toggle,
  .site-nav__link,
  .dropdown__title,
  .site-nav__retailer,
  .status--loading,
  .breadcrumbs,
  .footer__heading,
  .footer__locale,
  .showcase__link,
  .subnav__title,
  .subnav__link,
  .subnav__summary,
  .subnav__panel a,
  .tabs__tab,
  .spec-tile__unit,
  .spec-full__summary,
  .spec-table__group th,
  .category-tabs__tab
) {
  letter-spacing: 0;
  text-transform: none;
}

/* Language switcher: inline links with a thin divider. */
.lang-switch {
  display: none;
  align-items: center;
  white-space: nowrap;
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
}

.lang-switch a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--space-3);
  color: var(--paper-muted);
}

.lang-switch a + a {
  border-left: 1px solid var(--line-dark);
}

.lang-switch a:hover {
  text-decoration: none;
  color: var(--paper);
}

.lang-switch a[aria-current] {
  color: var(--accent);
}

/* Narrow widths: the switcher sits at the bottom of the open mobile menu. */
@media (max-width: 1023px) {
  body.nav-open .site-nav {
    padding-bottom: calc(var(--space-8) + 44px);
  }

  body.nav-open .lang-switch {
    display: flex;
    position: fixed;
    inset: auto 0 0 0;
    z-index: 91;
    padding: 0 calc(var(--gutter) - var(--space-3));
    background: var(--carbon);
    border-top: 1px solid var(--line-dark);
  }
}

/* Desktop: the switcher follows the retailer link in the header row. */
@media (min-width: 1024px) {
  .lang-switch {
    display: flex;
  }
}
