/* Self-hosted web fonts. Mirrored by scripts/fetch-fonts.sh; the latin-ext
   face is only fetched when a page actually renders a character in its range.
   These rules live here rather than in their own stylesheet so the fonts cost
   no extra round trip on the critical path. */
@font-face {
  font-family: 'Archivo Black';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/archivo-black-latin.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: 'Archivo Black';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/archivo-black-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-latin.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: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-latin.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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* GMMG Registry — Design System
   Light, silver-and-blue, keyed directly to the official GMMG shield logo:
   silver banner field, shield blue lettering, stripe red, navy outline.
   The page reads like the badge: silver ground, blue type, red accents. */

:root {
  --bg: #eef1f2;             /* banner silver, lightened to a page ground */
  --bg-elev: #ffffff;        /* cards / panels */
  --bg-elev-2: #e3e8ea;      /* recessed silver */
  --line: #cdd5d8;
  --line-strong: #aab3b3;    /* logo banner silver, as printed -- decorative */
  --line-control: #7e8888;   /* the edge of a control, where AA needs 3:1 */
  --ink: #132a45;            /* shield outline navy */
  --ink-dim: #40536b;
  --ink-mute: #5a6876;        /* was #70808f: 3.58:1 on --bg, below AA */
  --accent: #e01838;         /* logo stripe red -- fills and rules only */
  --accent-ink: #c8142f;     /* the same red, dark enough to be AA as text */
  --accent-on-dark: #ff8a9c; /* and light enough on the navy table header */
  --accent-dim: #b01029;
  --blue: #104888;           /* logo shield blue, as printed */
  --blue-deep: #0b3466;
  --blue-navy: #0d2542;      /* shield's dark field (footer / dark panels) */
  --silver: #aab3b3;         /* logo banner silver */
  --success: #2e7d4f;
  --font-display: "Archivo Black", "Arial Black", "Inter", sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
  --max: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --shadow-1: 0 1px 2px rgba(13,37,66,.10);
  --shadow-2: 0 20px 40px -20px rgba(13,37,66,.25);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-ink); }
button { font-family: inherit; cursor: pointer; }
/* A container the page fills from JSON after load. It holds a viewport open
   so the footer does not render above the fold and then jump when the data
   arrives; the script drops the class once it has written the content. */
.js-mount { min-height: 100vh; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* Keyboard focus. One ring for everything, declared once: the per-component
   rules below only override it where a component needs the ring inside its own
   box. :focus-visible, not :focus, so a mouse click does not light it up. */
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 1px;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--blue-navy); color: #fff;
  padding: 10px 16px; font-size: .9rem; font-weight: 600;
  transition: top .12s ease;
}
.skip-link:focus { top: 12px; color: #fff; }
/* A programmatic jump to <main> must not announce the whole page again, but it
   does have to put the caret somewhere -- so main takes focus without a ring. */
main:focus { outline: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .skip-link { transition: none; }
}

/* Typography */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; letter-spacing: 0; line-height: 1.15; margin: 0; color: var(--blue-deep); }
h1 { font-size: clamp(2.1rem, 5vw, 3.9rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.35rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.45rem); }
h4 { font-size: 1.05rem; font-family: var(--font-sans); font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink); }
p { margin: 0 0 1em; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-ink);
  font-weight: 500;
}
.lede { font-size: clamp(1.1rem, 1.6vw, 1.35rem); color: var(--ink-dim); line-height: 1.55; }
.mono { font-family: var(--font-mono); font-size: .82rem; }

/* Layout */
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(60px, 8vw, 120px) 0; }
.section--tight { padding: clamp(40px, 5vw, 70px) 0; }
.grid { display: grid; gap: 32px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Nav — white banner, like the logo's silver bar carrying blue lettering */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-strong);
  box-shadow: var(--shadow-1);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--gutter);
  max-width: var(--max); margin: 0 auto;
}
.nav__brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 400; font-size: 1.35rem;
  letter-spacing: 0.02em;
  color: var(--blue);
}
.nav__logo { height: 38px; width: auto; }
.nav__brand small {
  font-family: var(--font-mono); font-size: .7rem; color: var(--ink-mute);
  letter-spacing: 0.14em; text-transform: uppercase;
}
.nav__links { display: flex; gap: 26px; align-items: center; }
.nav__links a {
  font-size: .9rem; color: var(--ink-dim); font-weight: 500;
  letter-spacing: 0.02em;
  transition: color .15s;
}
.nav__links a.active, .nav__links a:hover { color: var(--blue); }
.nav__toggle { display: none; background: transparent; border: 0; color: var(--ink); font-size: 1.2rem; }

@media (max-width: 780px) {
  .nav__links { display: none; }
  .nav__links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg-elev);
    padding: 20px var(--gutter);
    border-bottom: 1px solid var(--line-strong);
    box-shadow: var(--shadow-2);
  }
  .nav__toggle { display: block; }
}

/* Hero — silver field with the shield's blue glow */
.hero {
  position: relative;
  padding: clamp(80px, 12vw, 160px) 0 clamp(60px, 8vw, 110px);
  overflow: hidden;
  border-bottom: 1px solid var(--line-strong);
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 800px 500px at 70% 30%, rgba(16,72,136,0.14), transparent 70%),
    radial-gradient(ellipse 600px 400px at 20% 80%, rgba(224,24,56,0.07), transparent 70%),
    linear-gradient(180deg, #f6f8f9 0%, var(--bg-elev-2) 100%);
}
.hero__bg::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(16,72,136,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16,72,136,0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 800px 500px at center, black, transparent 70%);
}
.hero__inner { position: relative; z-index: 1; max-width: 900px; }
.hero h1 { margin-top: 18px; }
.hero__motto {
  margin-top: 40px;
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  color: var(--ink-dim);
  border-left: 3px solid var(--accent);
  padding-left: 20px;
  max-width: 560px;
}
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 36px;
  margin-top: 60px; padding-top: 30px;
  border-top: 1px solid var(--line-strong);
}
.hero__meta div { min-width: 140px; }
.hero__meta strong {
  display: block; font-family: var(--font-display); font-weight: 400;
  font-size: 2rem; color: var(--blue);
}
.hero__meta span {
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-mute);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px;
  font-family: var(--font-sans); font-size: .88rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: all .15s;
}
.btn--primary { background: var(--blue); color: white; }
.btn--primary:hover { background: var(--blue-deep); color: white; transform: translateY(-1px); }
.btn--ghost { background: transparent; border-color: var(--line-control); color: var(--blue); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-ink); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 40px; }

/* Cards — Cars */
.car-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  box-shadow: var(--shadow-1);
}
.car-card:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
  color: inherit;
}
.car-card__art {
  aspect-ratio: 16/10;
  background: var(--bg-elev-2);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.car-card__art svg { width: 100%; height: 100%; }
.car-card__art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.car-card:hover .car-card__art img { transform: scale(1.03); }
.car-card__art img { transition: transform .35s ease; }
.car-card__badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--blue);
  color: #fff;
  border: 1px solid var(--blue-deep);
  font-family: var(--font-mono); font-size: .68rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 1px;
}
.car-card__body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.car-card__year {
  font-family: var(--font-mono); font-size: .74rem;
  letter-spacing: 0.14em; color: var(--ink-mute);
  text-transform: uppercase;
}
.car-card__title { margin-top: 6px; margin-bottom: 8px; }
.car-card__blurb { color: var(--ink-dim); font-size: .95rem; flex: 1; }
.car-card__meta {
  display: flex; gap: 22px; margin-top: 18px; padding-top: 18px;
  border-top: 1px solid var(--line);
}
.car-card__meta > div span {
  display: block; font-family: var(--font-mono); font-size: .68rem;
  letter-spacing: 0.14em; color: var(--ink-mute); text-transform: uppercase;
}
.car-card__meta > div strong { font-size: 1.05rem; font-family: var(--font-display); color: var(--blue); }

/* Section headers */
.section-head { margin-bottom: 50px; max-width: 720px; }
.section-head h2 { margin-top: 12px; }
.section-head p { color: var(--ink-dim); margin-top: 16px; font-size: 1.05rem; }

/* Feature block (halo car) */
.feature {
  display: grid; gap: 60px;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
}
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } }
.feature__art {
  aspect-ratio: 4/3;
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-1);
}
.feature__art svg { width: 100%; height: 100%; }
.feature__art img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Photo captions + archive galleries (real registry photography) */
.art-caption {
  font-family: var(--font-mono); font-size: .72rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-mute); margin: 8px 0 32px;
}
.art-caption--overlay {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0;
  padding: 8px 14px;
  background: rgba(13, 37, 66, .78); color: #dfe6ea;
}
.gallery {
  display: grid; gap: 14px; align-items: start;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  margin: 24px 0 8px;
}
@media (min-width: 560px) {
  .gallery { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}
.gallery figure {
  margin: 0; background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-1);
}
.gallery figure img {
  /* height: auto is what makes aspect-ratio apply. Every gallery <img> carries
     the photo's real intrinsic height as an attribute -- it has to, or the grid
     reflows as each one arrives -- and that attribute is a presentational hint
     for the height property. With no author height to beat it, the hint wins,
     aspect-ratio is ignored, and a 1224px-tall original is drawn 273px wide and
     1224px tall: a sliver in a 4/3 tile. */
  width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; display: block;
  border-bottom: 1px solid var(--line);
}
.gallery figcaption {
  font-family: var(--font-mono); font-size: .72rem;
  letter-spacing: 0.06em; color: var(--ink-dim);
  padding: 8px 10px;
}
.gallery__credit {
  font-size: .85rem; color: var(--ink-mute); margin-bottom: 32px;
}
.feature__spec-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 40px; padding-top: 30px;
  border-top: 1px solid var(--line-strong);
}
.feature__spec-strip div { padding: 0 18px; border-left: 1px solid var(--line); }
.feature__spec-strip div:first-child { border-left: 0; padding-left: 0; }
.feature__spec-strip span {
  display: block; font-family: var(--font-mono); font-size: .7rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute);
  margin-bottom: 4px;
}
.feature__spec-strip strong { font-family: var(--font-display); font-size: 1.5rem; color: var(--blue); }

/* Phases */
.phase-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1px; background: var(--line-strong); border: 1px solid var(--line-strong); }
.phase-list li { background: var(--bg-elev); padding: 32px; display: grid; grid-template-columns: 120px 1fr auto; gap: 30px; align-items: center; }
@media (max-width: 700px) { .phase-list li { grid-template-columns: 1fr; gap: 12px; } }
.phase-list__num { font-family: var(--font-display); font-size: 3rem; color: var(--accent); line-height: 1; }
.phase-list__body h3 { margin-bottom: 6px; }
.phase-list__body p { color: var(--ink-dim); margin: 0; }
.phase-list__hp { font-family: var(--font-mono); color: var(--blue); font-size: .95rem; letter-spacing: 0.06em; text-align: right; }

/* Registry table */
.registry-tools {
  display: grid; grid-template-columns: 1fr auto auto; gap: 14px;
  margin-bottom: 30px;
}
@media (max-width: 700px) { .registry-tools { grid-template-columns: 1fr; } }
.registry-tools input, .registry-tools select {
  background: var(--bg-elev);
  color: var(--ink);
  border: 1px solid var(--line-control);
  padding: 12px 16px;
  font-family: var(--font-sans); font-size: .95rem;
  border-radius: 2px;
  min-width: 160px;
}
.registry-tools input:focus-visible, .registry-tools select:focus-visible {
  border-color: var(--blue);
}

.registry-table {
  width: 100%; border-collapse: collapse;
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  font-size: .92rem;
  box-shadow: var(--shadow-1);
}
.registry-table th {
  text-align: left; padding: 14px 16px;
  font-family: var(--font-mono); font-size: .72rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: #d7e2ee;
  border-bottom: 2px solid var(--accent); font-weight: 500;
  background: var(--blue-navy);
}
.registry-table td {
  padding: 16px; border-bottom: 1px solid var(--line);
  color: var(--ink-dim);
}
.registry-table tr:hover td { background: rgba(16,72,136,0.06); color: var(--ink); }
.registry-table td strong { color: var(--ink); font-weight: 600; }
.registry-table .pill {
  display: inline-block; padding: 3px 8px; border-radius: 1px;
  background: var(--bg-elev-2); border: 1px solid var(--line-strong);
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: 0.06em;
}
.registry-table .pill--v { border-color: var(--success); color: var(--success); background: rgba(46,125,79,0.07); }
.registry-table__count {
  margin-top: 14px; color: var(--ink-mute); font-family: var(--font-mono);
  font-size: .82rem; letter-spacing: 0.06em;
}

/* Editorial article */
.article { max-width: 780px; margin: 0 auto; }
.article h2 { margin: 60px 0 20px; }
.article h3 { margin: 40px 0 14px; color: var(--blue); font-family: var(--font-sans); font-weight: 700; font-size: 1.2rem; letter-spacing: 0.01em; text-transform: uppercase; }
.article p { font-size: 1.08rem; color: var(--ink-dim); line-height: 1.75; }
.article p strong { color: var(--ink); }
.article blockquote {
  margin: 40px 0; padding: 20px 0 20px 26px;
  border-left: 3px solid var(--accent);
  font-family: var(--font-serif); font-style: italic;
  font-size: 1.35rem; color: var(--blue-deep);
}
.article ul { color: var(--ink-dim); }
.article ul li { margin-bottom: 8px; }

/* Spec table (for individual car pages) */
.spec-table {
  width: 100%; border-collapse: collapse; margin: 30px 0;
  background: var(--bg-elev); border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-1);
}
.spec-table th, .spec-table td {
  padding: 14px 20px; text-align: left;
  border-bottom: 1px solid var(--line);
}
.spec-table th {
  width: 35%; color: var(--ink-mute);
  font-family: var(--font-mono); font-size: .78rem;
  letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500;
  background: var(--bg-elev-2);
}
.spec-table td { color: var(--ink); font-weight: 500; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }

/* Auth strip */
.auth-strip {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  padding: 26px 30px;
  margin: 30px 0;
  box-shadow: var(--shadow-1);
}
.auth-strip h3 { font-family: var(--font-sans); font-size: 1.05rem; font-weight: 600;
  letter-spacing: 0.02em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 10px; }
.auth-strip ul { margin: 0; padding-left: 20px; color: var(--ink-dim); }

/* Footer — the shield's dark blue field */
.footer {
  border-top: 3px solid var(--accent);
  padding: 50px 0 30px;
  background: var(--blue-navy);
  color: #c8d3de;
  margin-top: 80px;
}
.footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
}
@media (max-width: 780px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
.footer__grid h2 {
  /* The footer's column labels are <h2> for heading order, not for size:
     they keep the small uppercase label treatment they have always had. */
  font-family: var(--font-sans); font-size: 1.05rem; font-weight: 600;
  letter-spacing: 0.02em; text-transform: uppercase;
  margin-bottom: 14px; color: var(--silver);
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 8px; }
.footer ul a { color: #c8d3de; font-size: .92rem; }
.footer ul a:hover { color: #fff; }
.footer__bottom {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(170,179,179,.3);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-family: var(--font-mono); font-size: .74rem; color: #8b9bab;
  letter-spacing: 0.08em;
}
.footer__brand { font-family: var(--font-display); color: #fff; font-size: 1.15rem; font-weight: 400; }
.footer__brand + p { color: #c8d3de; font-size: .9rem; margin-top: 12px; }

/* Utilities */
.divider { height: 1px; background: var(--line-strong); margin: 60px 0; }
.text-center { text-align: center; }
.mt-2 { margin-top: 20px; }
.tag {
  display: inline-block; padding: 4px 10px; font-size: .72rem;
  font-family: var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--blue); border: 1px solid var(--line-strong); background: var(--bg-elev);
}
/* .checker renders the shield's blue/silver/red tricolor stripe */
.checker {
  height: 6px;
  background: linear-gradient(90deg,
    var(--blue) 0 34%,
    var(--silver) 34% 67%,
    var(--accent) 67% 100%);
}

/* Print-friendly registry */
@media print {
  .nav, .footer, .registry-tools { display: none; }
  body { background: white; color: black; }
}

/* ---------------------------------------------------------------------------
   Registry ledger — table controls, per-car record pages, submission form
   --------------------------------------------------------------------------- */

.reg__totals { font-size: .95rem; color: var(--ink-dim); }
.reg__count { font-family: var(--font-mono); font-size: .8rem; color: var(--ink-dim);
  margin: 18px 0 10px; letter-spacing: .01em; }
.reg__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.reg__table { min-width: 860px; }
.reg__table th { white-space: nowrap; }
.reg__table td { vertical-align: middle; }
.reg__num { text-align: right; font-family: var(--font-mono); }

.reg__sort { background: none; border: 0; padding: 0; cursor: pointer; color: inherit;
  font: inherit; letter-spacing: inherit; text-transform: inherit; }
.reg__sort:hover, .reg__sort:focus-visible { color: var(--accent-on-dark); text-decoration: underline; }
.reg__sort.is-active { color: var(--accent-on-dark); }

.reg__thumb { width: 72px; }
.reg__thumb-box { display: block; width: 64px; height: 48px; overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-elev); }
.reg__thumb-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.reg__thumb-box--empty { display: grid; place-items: center; color: var(--ink-dim);
  font-family: var(--font-mono); font-size: .8rem; }

.reg__serial { font-family: var(--font-mono); font-weight: 600; }
.reg__years { display: block; font-size: .72rem; color: var(--ink-dim);
  font-family: var(--font-mono); }
.reg__blank { color: var(--ink-mute); font-style: italic; cursor: help; }
.reg__flag { display: inline-block; font-size: .64rem; text-transform: uppercase;
  letter-spacing: .08em; padding: 2px 6px; border: 1px solid var(--line);
  color: var(--ink-dim); vertical-align: middle; }
.reg__flag--proto { border-color: var(--accent-ink); color: var(--accent-ink); }

.reg__pager { display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  margin: 22px 0 6px; }
.reg__page { background: var(--bg-elev); border: 1px solid var(--line); color: var(--ink);
  font-family: var(--font-mono); font-size: .8rem; padding: 7px 11px; cursor: pointer; }
.reg__page:hover { border-color: var(--accent-ink); color: var(--accent-ink); }
.reg__page[aria-current="page"] { background: var(--accent); border-color: var(--accent);
  color: #fff; }
.reg__gap { color: var(--ink-dim); padding: 0 2px; }

.reg__empty { border: 1px solid var(--line); background: var(--bg-elev); padding: 36px 30px;
  text-align: center; margin-top: 18px; }
.reg__empty h3 { font-family: var(--font-sans); font-size: 1.15rem; text-transform: uppercase;
  letter-spacing: .03em; color: var(--accent-ink); }
.reg__empty p { color: var(--ink-dim); margin: 10px auto; max-width: 52ch; }
.reg__empty code { font-family: var(--font-mono); font-size: .85em; }

/* --- per-car record page --- */
.rec__crumbs { font-family: var(--font-mono); font-size: .78rem; color: var(--ink-dim);
  margin-bottom: 18px; }
.rec__serial { font-family: var(--font-mono); color: var(--accent-ink); }
.rec__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 26px 0 34px; }
.rec__fact { background: var(--bg-elev); padding: 14px 16px; }
.rec__fact dt { font-size: .68rem; text-transform: uppercase; letter-spacing: .09em;
  color: var(--ink-dim); }
.rec__fact dd { margin: 5px 0 0; font-weight: 600; }
.rec__blank { font-weight: 400 !important; color: var(--ink-mute); font-style: italic; cursor: help; }
.rec__h { font-family: var(--font-sans); font-size: 1.05rem; text-transform: uppercase;
  letter-spacing: .03em; color: var(--accent-ink); margin-top: 34px; }
.rec__note, .rec__none { color: var(--ink-dim); font-size: .92rem; }
.rec__gallery figure { margin: 0; }
.rec__prov { list-style: none; padding: 0; margin: 14px 0 0; }
.rec__prov li { border-left: 2px solid var(--line); padding: 2px 0 2px 16px; margin-bottom: 16px; }
.rec__prov blockquote { margin: 0; font-family: var(--font-mono); font-size: .88rem; }
.rec__prov cite { display: block; font-size: .74rem; color: var(--ink-dim); font-style: normal;
  margin-top: 4px; }

/* --- shared small pieces --- */
.container--narrow { max-width: 820px; }
.panel { background: var(--bg-elev); border: 1px solid var(--line); padding: 30px; }
.panel__h { font-family: var(--font-sans); font-size: 1.1rem; letter-spacing: .02em;
  text-transform: uppercase; color: var(--accent-ink); }
.panel__list { color: var(--ink-dim); line-height: 1.9; margin-top: 12px; }
.panel__note { color: var(--ink-dim); font-size: .82rem; margin-top: 14px; }

/* --- submission form --- */
.form fieldset { border: 1px solid var(--line); background: var(--bg-elev);
  padding: 24px 26px 10px; margin: 0 0 24px; }
.form legend { font-family: var(--font-sans); font-size: .78rem; text-transform: uppercase;
  letter-spacing: .1em; color: var(--accent-ink); padding: 0 8px; }
.form__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0 20px; }
.form__row { margin-bottom: 18px; }
.form__row label { display: block; font-size: .72rem; text-transform: uppercase;
  letter-spacing: .08em; color: var(--ink-dim); margin-bottom: 6px; }
.form__req { text-transform: none; letter-spacing: 0; color: var(--accent-ink); font-size: .68rem; }
.form input[type=text], .form input[type=email], .form input[type=tel], .form input[type=url],
.form select, .form textarea { width: 100%; background: var(--bg); color: var(--ink);
  border: 1px solid var(--line-control); padding: 10px 12px; font: inherit; font-size: .95rem; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 1px; }
.form__hint { color: var(--ink-dim); font-size: .8rem; margin: 6px 0 0; }
.form__check { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 20px; }
.form__check label { text-transform: none; letter-spacing: 0; font-size: .92rem;
  color: var(--ink-dim); margin: 0; }
.form__actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.form__status { font-size: .9rem; }
.form__status--ok { color: #3f9e5a; }
.form__status--warn { color: #c0392b; }
.form__status--busy { color: var(--ink-dim); }
/* honeypot: off-canvas rather than display:none, which some bots detect */
.form__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Line galleries: a thumbnail grid that enlarges, for pages carrying up to
   167 photos. The grid cells stay uniform whether or not the source stated a
   caption, so an uncaptioned photo reads as "no caption" and not as broken. */
.gallery__open {
  display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  background: var(--bg-elev-2);
}
.gallery__open img { transition: opacity .15s ease; }
.gallery__open:hover img { opacity: .88; }
.gallery__open:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.gallery__fig--nocap { border-style: dashed; }

body.is-boxed { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 90;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: 8px; padding: 24px;
  background: rgba(13, 37, 66, .94);
}
.lightbox[hidden] { display: none; }
.lightbox__fig {
  margin: 0; display: grid; justify-items: center; gap: 12px;
  max-height: calc(100vh - 48px);
}
.lightbox__fig img {
  max-width: 100%; max-height: calc(100vh - 140px);
  object-fit: contain; background: var(--bg-elev-2);
  box-shadow: var(--shadow-2);
}
.lightbox__fig figcaption {
  font-family: var(--font-mono); font-size: .8rem; color: #dfe6ea;
  text-align: center; max-width: 70ch;
}
.lightbox__count { display: block; margin-top: 6px; color: var(--silver); }
.lightbox__nav, .lightbox__close {
  background: transparent; border: 1px solid rgba(223, 230, 234, .35);
  color: #dfe6ea; cursor: pointer; line-height: 1;
  font-size: 2rem; padding: 10px 16px;
}
.lightbox__nav:hover, .lightbox__close:hover { border-color: #dfe6ea; }
.lightbox__close {
  position: absolute; top: 18px; right: 18px; font-size: 1.6rem; padding: 4px 12px;
}
@media (max-width: 640px) {
  .lightbox { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .lightbox__nav { font-size: 1.5rem; }
  .lightbox__nav--prev { grid-row: 2; justify-self: start; }
  .lightbox__nav--next { grid-row: 2; justify-self: end; }
}

/* "Not a GMMG car" — the source keeps these pages and says so on each one. */
.car-card__badge--alt { background: var(--blue-navy); }
.not-gmmg {
  border-left: 3px solid var(--silver); background: var(--bg-elev-2);
  padding: 14px 18px; margin: 0 0 28px;
  font-size: .95rem; color: var(--ink-dim);
}
.not-gmmg strong { color: var(--ink); }
