/* Lyn Hatton Racing (layout mirrored from Bruce Jenner Racing): fixed 980px desktop layout, shown scaled on phones
   (<meta name="viewport" content="width=980">). Home page is a vertical timeline. */
:root {
  --ink: #1b1d22;
  --soft: #5b6270;
  --line: #e2e4e8;
  --paper: #f7f7f5;
  --navy: #17352a;     /* racing green (named --navy from the Bruce Jenner layout; BJR stays blue) */
  --red: #d7262f;
  --gold: #e0a526;
  --rail: 176px;     /* timeline column */
  --dot: 36px;       /* x position of the vertical line inside the rail */
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 60px; }
body {
  margin: 0; background: #e9eaec; color: var(--ink);
  font: 15.5px/1.65 "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
}
.page { width: 980px; margin: 0 auto; background: #fff; min-height: 100vh; }
a { color: var(--red); }
img { display: block; border: 0; }
p { margin: 0 0 12px; }
ul { margin: 0 0 12px; padding-left: 20px; }
li { margin-bottom: 4px; }
h1, h2, h3, h4 { font-family: Arial, Helvetica, sans-serif; color: var(--navy); }
h2 { font-size: 27px; line-height: 1.15; margin: 0 0 6px; letter-spacing: -.01em; }
h3 { font-size: 19px; line-height: 1.25; margin: 0 0 8px; }
h4 { font-size: 15px; margin: 16px 0 6px; color: var(--ink); }
.clear { clear: both; }

/* ---------- Header ---------- */
.top { text-align: center; padding: 22px 0 14px; }
.top img { margin: 0 auto; width: 720px; height: 64px; }
.nav {
  position: sticky; top: 0; z-index: 40; background: var(--navy);
  display: flex; align-items: center; padding: 0 22px; border-bottom: 3px solid var(--red);
}
.nav a { color: #fff; text-decoration: none; font: 700 13px/1 Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; padding: 15px 14px; }
.nav a:hover, .nav a.on { background: rgba(255,255,255,.12); }
.nav .era-now { margin-left: auto; display: flex; align-items: center; gap: 8px; color: #cfd6e0; font: 600 13px/1 Arial, sans-serif; opacity: 0; transition: opacity .3s; }
.nav .era-now.show { opacity: 1; }
.nav .era-now img { width: 24px; height: 16px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.3); }

/* ---------- Hero ---------- */
.hero { display: flex; gap: 32px; padding: 34px 44px 30px; background: linear-gradient(180deg, #fff 0%, var(--paper) 100%); border-bottom: 1px solid var(--line); }
.hero .ph img { border-radius: 4px; box-shadow: 0 6px 18px rgba(0,0,0,.15); }
.hero h1 { font-size: 40px; line-height: 1.05; margin: 2px 0 12px; text-transform: uppercase; letter-spacing: -.01em; }
.hero .kicker { font: 700 12px/1 Arial, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.hero p { font-size: 16.5px; color: #333; }
.eras { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.eras a { display: flex; align-items: center; gap: 7px; text-decoration: none; color: var(--navy); font: 700 12.5px/1 Arial, sans-serif; border: 1px solid var(--line); background: #fff; border-radius: 30px; padding: 7px 12px 7px 8px; }
.eras a:hover { border-color: var(--navy); }
.eras img { width: 21px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding: 18px 0 30px; }
.timeline::before, .tl-fill {
  content: ""; position: absolute; left: var(--dot); top: 0; width: 4px; margin-left: -2px; border-radius: 2px;
}
.timeline::before { bottom: 0; background: var(--line); }
.tl-fill { height: 0; background: linear-gradient(180deg, var(--red), var(--navy)); z-index: 1; }

.era { display: flex; position: relative; padding: 26px 0 8px; }
.era + .era { border-top: 1px dashed var(--line); }
.rail { width: var(--rail); flex: none; position: relative; }
.marker { position: sticky; top: calc(var(--fb-h, 62px) + 14px); padding: 4px 10px 12px calc(var(--dot) + 24px); z-index: 2; }
.marker::before {           /* the dot on the line */
  content: ""; position: absolute; left: calc(var(--dot) - 10px); top: 8px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 4px solid var(--line); transition: border-color .35s, transform .35s;
}
.era.active .marker::before, .era.passed .marker::before { border-color: var(--red); }
.era.active .marker::before { transform: scale(1.18); background: var(--red); box-shadow: 0 0 0 5px rgba(215,38,47,.15); }
.marker .flag { width: 42px; height: 28px; border-radius: 3px; box-shadow: 0 1px 4px rgba(0,0,0,.25); margin-bottom: 8px; }
.marker .yr { font: 800 24px/1 Arial, sans-serif; color: var(--navy); letter-spacing: -.02em; }
.marker .ctry { font: 700 11px/1.3 Arial, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin: 5px 0 9px; }
.marker .lbl { font: 700 10.5px/1 Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); margin: 10px 0 5px; }
.marker ul { list-style: none; padding: 0; margin: 0; font-size: 13px; line-height: 1.35; }
.marker li { margin: 0 0 4px; padding-left: 10px; position: relative; }
.marker li::before { content: ""; position: absolute; left: 0; top: 7px; width: 4px; height: 4px; border-radius: 50%; background: var(--red); }
.marker .car { font-size: 12.5px; line-height: 1.35; color: var(--soft); }

.body { flex: 1; min-width: 0; padding: 0 34px 10px 0; }
.era-head { margin-bottom: 18px; }
.era-head .sub { font-size: 15px; color: var(--soft); margin: 0; }

/* Content blocks */
.card { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 18px 20px 8px; margin: 0 0 20px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.card::after { content: ""; display: block; clear: both; }
.card.plain { border: 0; box-shadow: none; padding: 0; background: none; }
.card .when { font: 700 11.5px/1 Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: 7px; display: flex; align-items: center; gap: 7px; }
.card .when img { width: 18px; height: 12px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.1); }
.facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.facts span { font: 600 12px/1 Arial, sans-serif; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 6px 8px; color: #333; }
.facts span b { color: var(--navy); }
.src { font-size: 12.5px; }

/* Photos */
.ph { display: block; cursor: zoom-in; }
.ph img { object-fit: cover; border-radius: 4px; background: #eee; transition: transform .3s, box-shadow .3s; }
.ph:hover img { box-shadow: 0 6px 16px rgba(0,0,0,.18); }
figure { margin: 0 0 12px; }
figcaption { font-size: 12.5px; line-height: 1.4; color: var(--soft); margin-top: 6px; }
.fr { float: right; margin: 2px 0 12px 22px; }
.fl { float: left; margin: 2px 22px 12px 0; }
.grid { display: flex; flex-wrap: wrap; gap: 16px; margin: 4px 0 16px; align-items: flex-start; }
.grid.tight { gap: 16px; }

/* Season results */
.results { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 4px 0 16px; }
.results div { border-left: 4px solid var(--navy); background: var(--paper); padding: 9px 12px; font-size: 13.5px; line-height: 1.45; border-radius: 0 4px 4px 0; }
.results div.pod { border-left-color: var(--red); }
.results b { display: block; font-size: 14px; color: var(--navy); }

/* Event list inside a card */
.ev { font-size: 13px; line-height: 1.45; border-left: 3px solid var(--gold); padding: 4px 10px; margin: 6px 0; background: var(--paper); border-radius: 0 4px 4px 0; overflow: hidden; }

/* Video links */
.vids { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin: 6px 0 14px; }
.vids.one { grid-template-columns: 1fr; }
.vid { display: flex; gap: 10px; align-items: center; text-decoration: none; color: var(--ink); font-size: 13px; line-height: 1.35; }
.vid img { width: 112px; height: 63px; object-fit: cover; flex: none; border-radius: 4px; background: #222; }
.vid b { display: block; color: var(--red); }
.vid:hover b { text-decoration: underline; }

/* Liveries strip */
.liveries { display: flex; gap: 16px; margin: 6px 0 4px; }
.liveries figure { width: 170px; }

/* Ownership timeline (replica) */
.mini { list-style: none; padding: 0; margin: 4px 0 12px; border-left: 3px solid var(--line); }
.mini li { padding: 0 0 10px 16px; position: relative; }
.mini li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--red); }

/* Footer */
.foot { background: var(--navy); color: #cfd6e0; font-size: 13px; padding: 18px 44px; display: flex; justify-content: space-between; border-top: 3px solid var(--red); }
.foot a { color: #fff; }

/* Plain page (Porsche, 404) */
.sec { padding: 30px 44px 16px; }
.sec h1 { font-size: 32px; margin: 0 0 14px; text-transform: uppercase; }

/* Scroll reveal (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.92); display: none; align-items: center; justify-content: center; padding: 20px; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 90vh; width: auto; height: auto; }
.lightbox p { position: absolute; left: 0; right: 0; bottom: 14px; margin: 0; text-align: center; color: #fff; font-size: 14px; }

/* ---------- Bruce Jenner showcase (top of home page) ---------- */
.hero { background: radial-gradient(120% 140% at 0% 0%, #24503d 0%, var(--navy) 55%, #0c1c15 100%); color: #e8efea; border-bottom: 4px solid var(--red); padding: 38px 44px 36px; gap: 36px; align-items: center; }
.hero-portrait { margin: 0; flex: none; }
.hero-portrait img { width: 250px; height: auto; border-radius: 6px; border: 3px solid #fff; box-shadow: 0 14px 34px rgba(0,0,0,.45); object-fit: cover; }
.hero-portrait figcaption { color: #a4baad; font-size: 11.5px; margin-top: 8px; text-align: center; }
.hero-text { flex: 1; min-width: 0; }
.hero .kicker { color: var(--gold); }
.hero h1 { color: #fff; font-size: 52px; margin: 6px 0 12px; }
.hero p { color: #d6e2db; font-size: 15.5px; }
.hero p.lead { color: #fff; font-size: 18px; line-height: 1.55; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 18px 0 18px; }
.stats div { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-top: 3px solid var(--red); border-radius: 4px; padding: 10px 12px; }
.stats b { display: block; color: #fff; font: 800 21px/1.1 Arial, sans-serif; margin-bottom: 4px; }
.stats span { display: block; color: #b3c7bb; font-size: 12px; line-height: 1.35; }
.era-bar { display: flex; align-items: center; gap: 14px; padding: 14px 44px; background: var(--paper); border-bottom: 1px solid var(--line); }
.era-bar > span { font: 700 11px/1 Arial, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); flex: none; }
.era-bar .eras { margin: 0; }

/* Photographer credits */
.credit { display: block; font-size: 11px; color: #8a919c; font-style: italic; margin-top: 2px; }
.credit a { color: inherit; }
.credits { font-size: 12.5px; line-height: 1.5; color: var(--soft); padding: 16px 44px; border-top: 1px solid var(--line); background: var(--paper); }
.credits b { color: var(--ink); }

/* ---------- Driver profile link (home page) ---------- */
.driver-cta { display: flex; align-items: center; gap: 18px; text-decoration: none; color: #fff; margin: 0 0 20px;
  background: linear-gradient(100deg, var(--navy) 0%, #24503d 70%, #2a466e 100%); border-radius: 8px; padding: 14px 18px;
  border-left: 6px solid var(--red); box-shadow: 0 8px 22px rgba(23,53,42,.28); transition: transform .2s, box-shadow .2s; }
.driver-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(23,53,42,.38); }
.driver-cta img { width: 92px; height: auto; border-radius: 4px; border: 2px solid #fff; flex: none; }
.dc-text { flex: 1; min-width: 0; display: block; }
.dc-kicker { display: block; font: 700 11px/1 Arial, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.dc-name { display: block; font: 800 26px/1.1 Arial, sans-serif; margin-bottom: 6px; }
.dc-sum { display: block; font-size: 13.5px; line-height: 1.45; color: #d3e0d8; }
.dc-go { flex: none; background: var(--red); color: #fff; font: 700 14px/1 Arial, sans-serif; padding: 13px 16px; border-radius: 30px; white-space: nowrap; }
.driver-cta:hover .dc-go { background: #b81f27; }
.marker li a { color: var(--red); font-weight: 700; text-decoration: none; }

/* ---------- Driver page extras ---------- */
.crumbs { font-size: 12.5px; color: var(--soft); padding: 10px 44px; background: var(--paper); border-bottom: 1px solid var(--line); }
.crumbs a { color: var(--soft); }
.caption-lg { font-size: 13px; color: var(--soft); margin: 6px 0 20px; }
.caption-lg .credit { display: inline; margin-left: 6px; }
.reveal > .ph img { border-radius: 6px; }
blockquote { margin: 12px 0 14px; padding: 10px 16px; border-left: 4px solid var(--red); background: var(--paper); font: italic 16px/1.55 Georgia, serif; color: #2a2f38; border-radius: 0 4px 4px 0; }
blockquote cite { display: block; margin-top: 6px; font: normal 12px/1.3 Arial, sans-serif; color: var(--soft); }
.btn { display: inline-block; background: var(--navy); color: #fff; text-decoration: none; font: 700 14px/1 Arial, sans-serif; padding: 12px 16px; border-radius: 30px; }
.btn:hover { background: var(--red); color: #fff; }

/* ======================= Cars & drivers showcase ======================= */
.showcase { padding: 30px 44px 26px; border-bottom: 1px solid var(--line); }
.showcase.alt { background: var(--paper); }
.sc-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 16px; }
.sc-head h2 { margin: 0; font-size: 26px; text-transform: uppercase; letter-spacing: .02em; }
.sc-head p { margin: 0; color: var(--soft); font-size: 14px; }
button { font: inherit; color: inherit; }

.car-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 8px; }
.car-card { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; }
.car-card:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(23,53,42,.16); }
.car-card.on { border-color: var(--red); box-shadow: 0 0 0 3px rgba(215,38,47,.25); }
.car-card.star { border-top: 4px solid var(--red); }
.car-card > img { width: 100%; height: 112px; object-fit: cover; }
.car-card .cc-yr { display: flex; align-items: center; gap: 5px; margin: 10px 12px 4px; font: 700 11px/1 Arial, sans-serif; letter-spacing: .1em; color: var(--red); }
.car-card .cc-yr img { width: 18px; height: 12px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.car-card b { margin: 0 12px 4px; font: 700 15px/1.25 Arial, sans-serif; color: var(--navy); }
.car-card .cc-sub { margin: 0 12px 8px; font-size: 12.5px; line-height: 1.4; color: var(--soft); }
.car-card .cc-drv { margin: auto 0 0; padding: 8px 12px; border-top: 1px solid var(--line); font: 600 12px/1.3 Arial, sans-serif; color: var(--ink); background: var(--paper); }

.drv-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.drv { all: unset; box-sizing: border-box; cursor: pointer; text-align: center; padding: 12px 6px 10px; border-radius: 8px; background: #fff; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s, border-color .2s; }
.drv:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(23,53,42,.14); }
.drv.on { border-color: var(--red); box-shadow: 0 0 0 3px rgba(215,38,47,.25); }
.drv img, .initials { display: block; width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 8px; object-fit: cover; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.initials { display: flex; align-items: center; justify-content: center; background: var(--navy); color: #fff; font: 800 18px/1 Arial, sans-serif; letter-spacing: .04em; }
.drv b { display: block; font: 700 13px/1.25 Arial, sans-serif; color: var(--navy); }
.drv span:not(.initials) { display: block; font-size: 11.5px; line-height: 1.3; color: var(--soft); margin-top: 3px; }

/* ======================= Filter bar ======================= */
.home .nav { position: relative; }
.filterbar { position: sticky; top: 0; z-index: 45; display: flex; align-items: center; gap: 12px; padding: 10px 22px; background: var(--navy); border-bottom: 3px solid var(--red); box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.fb-lbl { font: 700 11px/1 Arial, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.fb-cars { display: flex; gap: 4px; flex-wrap: wrap; }
.fb-cars button { all: unset; cursor: pointer; font: 700 12.5px/1 Arial, sans-serif; color: #d3e0d8; padding: 8px 11px; border-radius: 20px; border: 1px solid rgba(255,255,255,.18); }
.fb-cars button:hover { color: #fff; border-color: rgba(255,255,255,.5); }
.fb-cars button.on { background: var(--red); border-color: var(--red); color: #fff; }
.fb-drv { margin-left: auto; display: flex; align-items: center; gap: 8px; font: 700 11px/1 Arial, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.fb-drv select { font: 600 13px/1 Arial, sans-serif; padding: 7px 8px; border-radius: 6px; border: 0; background: #fff; color: var(--ink); }
.fb-drv select.on { outline: 3px solid var(--red); }
.home .marker { top: calc(var(--fb-h, 62px) + 14px); }

/* ======================= Profiles ======================= */
.profiles { display: none; padding: 22px 44px 6px; background: linear-gradient(180deg, #f1f4f8, #fff); border-bottom: 1px solid var(--line); }
.profiles.show { display: block; animation: pfIn .45s ease; }
@keyframes pfIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.profile { display: none; gap: 20px; align-items: flex-start; }
.profile.show { display: flex; }
.profile > img { border-radius: 6px; flex: none; box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.profile.drvp > img, .profile.drvp > .initials { width: 72px; height: 72px; border-radius: 50%; margin: 0; }
.profile h3 { font-size: 24px; margin: 4px 0 6px; }
.profile p { margin: 0 0 10px; }
.pf-k { display: flex; align-items: center; gap: 6px; font: 700 11px/1 Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.pf-k img { width: 18px; height: 12px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.stages { display: flex; gap: 10px; margin: 6px 0 4px; }
.stages figure { width: 108px; margin: 0; position: relative; }
.stages figure + figure::before { content: "→"; position: absolute; left: -10px; top: 24px; color: var(--red); font-weight: 800; }
.stages img { border-radius: 4px; }
.stages figcaption { font-size: 11.5px; line-height: 1.35; }
.stages figcaption b { display: block; color: var(--navy); }
.pf-note { margin: 4px 0 14px; }
.pf-note button { all: unset; cursor: pointer; font: 700 13px/1 Arial, sans-serif; color: var(--red); text-decoration: underline; }

/* ======================= Tags & filtering ======================= */
.tags { display: flex; flex-wrap: wrap; gap: 5px; margin: -4px 0 10px; }
.tags span { font: 700 10.5px/1 Arial, sans-serif; letter-spacing: .06em; text-transform: uppercase; padding: 5px 7px; border-radius: 3px; }
.t-car { background: var(--navy); color: #fff; }
.t-drv { background: #fde8e9; color: #a3151d; }
.filtered, .pfiltered { display: none !important; }
.tl-empty { display: none; margin: 30px 44px; color: var(--soft); }
.timeline.empty .tl-empty { display: block; }
.marker li.hl { color: var(--red); font-weight: 700; }
.marker li.dim { opacity: .4; }

/* ======================= Race numbers ======================= */
.plate { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 26px; padding: 0 6px; background: #fff; color: #111; border: 2.5px solid #111; border-radius: 13px; font: 900 15px/1 "Arial Black", Arial, sans-serif; letter-spacing: -.02em; box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.plate.sm { min-width: 22px; height: 19px; padding: 0 4px; border-width: 2px; border-radius: 10px; font-size: 11px; }
.plates { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 4px; }
.t-num { background: #fff !important; color: #111 !important; border: 2px solid #111; border-radius: 10px !important; font: 900 11px/1 "Arial Black", Arial, sans-serif !important; padding: 3px 6px !important; }
.cc-num { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; margin: 2px 12px 6px; }
.cc-num i, .numline i { font-style: normal; color: var(--red); font-weight: 800; font-size: 12px; }
.numline { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 6px; margin: 2px 0 12px; }
.nl-k { font: 700 11px/26px Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); margin-right: 4px; }
.numline i { line-height: 26px; }
.nl-step { display: flex; flex-direction: column; align-items: center; gap: 3px; max-width: 92px; text-align: center; }
.nl-step small { font-size: 10.5px; line-height: 1.25; color: var(--soft); }
.marker .plate.dim { opacity: .25; }

/* ======================= Horizontal livery timeline ======================= */
.profile > div { flex: 1; min-width: 0; }
.htl { position: relative; margin: 10px 0 8px; }
.htl-track { display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 0 0 10px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.htl::after { content: ""; position: absolute; top: 0; right: 0; bottom: 10px; width: 40px; background: linear-gradient(90deg, rgba(255,255,255,0), #fff); pointer-events: none; }
.profiles .htl::after { background: linear-gradient(90deg, rgba(244,246,250,0), #f4f6fa); }
.stop { flex: 0 0 164px; padding-right: 14px; scroll-snap-align: start; position: relative; }
.stop-yr { font: 800 13px/1 Arial, sans-serif; color: var(--navy); height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stop-line { position: relative; height: 32px; display: flex; align-items: center; }
.stop-line::before { content: ""; position: absolute; left: 0; right: -14px; top: 50%; height: 3px; margin-top: -1.5px; background: var(--red); }
.stop:last-child .stop-line::before { right: 14px; }
.stop:first-child .stop-line::before { left: 14px; }
.stop-line .plate { position: relative; z-index: 1; }
.stop .ph img { width: 150px; height: 100px; border-radius: 5px; margin-top: 6px; }
.stop-cap { font-size: 11.5px; line-height: 1.35; color: var(--soft); margin-top: 6px; }
.stop-cap b { display: block; color: var(--ink); font-size: 12.5px; }
.stop-body { display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.stop-body img { width: 16px; height: 11px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); flex: none; }
.stop-drv { display: block; color: var(--red); font-weight: 600; margin-top: 2px; }
.stop-cap .credit { margin-top: 2px; }
.htl-btn { all: unset; cursor: pointer; position: absolute; z-index: 3; top: 62px; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; font: 700 20px/28px Arial, sans-serif; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.htl-btn.prev { left: -12px; }
.htl-btn.next { right: -12px; }
.htl-btn:hover { background: var(--red); }
.htl-btn[disabled] { opacity: 0; pointer-events: none; }
.drv { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; }
.drv img, .drv .initials { flex: none; }
.drv-sub { font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); margin: 4px 0 10px; }
.drv-grid.seq { grid-template-columns: repeat(5, 1fr); position: relative; margin-bottom: 20px; }
.drv-grid.other { grid-template-columns: repeat(5, 1fr); }
.drv { position: relative; }
.drv-n { position: absolute; top: 8px; left: 8px; width: 22px; height: 22px; border-radius: 50%; background: var(--red); color: #fff; font: 800 12px/22px Arial, sans-serif; text-align: center; }
.drv .drv-yr { display: inline-block; margin: 4px 0 1px; padding: 3px 7px; border-radius: 10px; background: var(--navy); color: #fff; font: 700 11px/1 Arial, sans-serif; }
.drv span.drv-n { display: block; position: absolute; top: 8px; left: 8px; width: 22px; height: 22px; margin: 0; border-radius: 50%; background: var(--red); color: #fff; font: 800 12px/22px Arial, sans-serif; text-align: center; }
.drv span.drv-yr { display: inline-block; margin: 5px 0 2px; padding: 3px 8px; border-radius: 10px; background: var(--navy); color: #fff; font: 700 11px/1.1 Arial, sans-serif; }
.showcase .filtered { display: none !important; }
.drv-car { margin: 0; font-size: 14px; color: var(--ink); }
.drv-car b { color: var(--red); }
.drv-clear { all: unset; cursor: pointer; color: var(--red); text-decoration: underline; font-weight: 700; }
#drivers.car-mode .drv-wrap { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
#drivers.car-mode .drv-grid { display: contents; }
#drivers.car-mode .drv-n { display: none !important; }
#drivers.car-mode .drv { animation: pfIn .35s ease; }

/* Transcribed article */
.article { font: 15.5px/1.65 Georgia, "Times New Roman", serif; color: #222; }
.article p { margin: 0 0 10px; }
.article .art-cap { font-style: italic; color: var(--soft); font-size: 14px; border-left: 3px solid var(--line); padding-left: 10px; }
.hero .btn { background: var(--red); }
.hero .btn:hover { background: #fff; color: var(--navy); }
.bgnote { clear: both; background: #f3f5f9; border: 1px solid var(--line); border-left: 4px solid var(--navy); border-radius: 0 6px 6px 0; padding: 10px 14px; margin: 10px 0 12px; font-size: 14px; line-height: 1.55; }
.bgnote > b { display: block; font: 700 11px/1 Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); margin-bottom: 6px; }
.bgnote .src { display: block; margin-top: 6px; font-size: 12px; color: var(--soft); }
.foot { flex-wrap: wrap; gap: 6px 20px; }
.foot .privacy { order: 3; flex-basis: 100%; font-size: 11.5px; color: #93a1b5; }

/* ---------- Race logs (tools/race_log.py, {{results:name}}) ---------- */
.rl {
  --c72: var(--red); --c11: #178f80; --c42: #c9a227; --podc: #b98510; --t10c: #1d8f55; --dnac: #9aa1ad;
  clear: both; margin: 16px 0 8px; background: #fff; border: 1px solid var(--line); border-radius: 8px;
  overflow: hidden; box-shadow: 0 1px 3px rgba(23,53,42,.06); font-family: Arial, Helvetica, sans-serif;
}
.rl::before { content: ""; display: block; height: 6px;
  background: repeating-conic-gradient(var(--navy) 0 25%, #fff 0 50%) 0 0 / 6px 6px; }
.rl-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; padding: 12px 14px 8px; }
.rl-avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--red); flex: none; }
.rl-title { flex: 1; min-width: 0; }
.rl-title b { display: block; font-size: 17px; line-height: 1.15; color: var(--navy); }
.rl-title span { display: flex; align-items: center; gap: 6px; margin-top: 3px; color: var(--soft); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; }
.rl-flag { display: inline-block; border-radius: 1px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.rl-pick { display: none; gap: 6px; }
.js .rl-pick { display: flex; }
.rl-pick button { display: flex; align-items: center; gap: 6px; padding: 4px 9px 4px 4px; cursor: pointer; background: #fff; border: 1.5px solid var(--line); border-radius: 20px; font: 700 11.5px/1 Arial, sans-serif; color: var(--navy); transition: border-color .2s, background .2s, box-shadow .2s; }
.rl-pick button img { width: 42px; height: 28px; object-fit: cover; border-radius: 14px; }
.rl-pick .rl-allcars { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--paper); font-size: 0; }
.rl-pick .rl-allcars::before { content: ""; width: 14px; height: 14px; background: repeating-conic-gradient(var(--navy) 0 25%, #fff 0 50%) 0 0 / 7px 7px; border-radius: 2px; }
.rl-pick button:hover { border-color: #c5cad3; }
.rl-pick button.on { border-color: var(--navy); background: var(--paper); box-shadow: 0 1px 4px rgba(23,53,42,.12); }
.rl-pick button.c72.on { border-color: var(--c72); }
.rl-pick button.c11.on { border-color: var(--c11); }
.rl-pick .plate.sm { flex: none; }

.rl-view[hidden] { display: none; }
.rl-statrow { display: flex; align-items: center; gap: 10px; padding: 0 14px 10px; }
.rl-stats { display: flex; gap: 6px; flex: 1; }
.rl-stat { display: flex; align-items: baseline; gap: 6px; padding: 5px 10px; background: var(--paper); border-radius: 4px; border-left: 3px solid var(--navy); }
.rl-stat b { font: italic 900 17px/1 "Arial Black", Arial, sans-serif; color: var(--navy); font-variant-numeric: tabular-nums; }
.rl-stat span { font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
.rl-stat[data-k="best"], .rl-stat[data-k="pod"] { border-left-color: var(--gold); }
.rl-stat[data-k="best"] b, .rl-stat[data-k="pod"] b { color: var(--podc); }
.rl-stat[data-k="t10"] { border-left-color: var(--t10c); }
.rl-stat[data-k="t10"] b { color: var(--t10c); }
.rl-stat.bump b { animation: rlBump .35s ease-out; }
@keyframes rlBump { 40% { transform: scale(1.25); } }
.rl-lights { display: flex; gap: 4px; padding: 4px 6px; background: var(--navy); border-radius: 10px; }
.rl-lights i { width: 9px; height: 9px; border-radius: 50%; background: #3a1f2a; transition: background .08s, box-shadow .08s; }
.rl-lights i.on { background: #ff3640; box-shadow: 0 0 6px 1px rgba(255,54,64,.8); }
.rl-lights.go i { background: #2fd37f; box-shadow: 0 0 6px 1px rgba(47,211,127,.7); }

.rl-board { position: relative; border-top: 1px solid var(--line); background: linear-gradient(180deg, #fbfbfa, #fff 60%); }
.rl-axis { position: absolute; z-index: 2; left: 0; top: 0; width: 38px; height: 148px; pointer-events: none;
  background: linear-gradient(90deg, #fbfbfa 65%, rgba(251,251,250,0)); }
.rl[data-kind="events"] .rl-axis { display: none; }
.rl-axis span { position: absolute; left: 8px; transform: translateY(-50%); font: 700 9px/1 Arial, sans-serif; color: #8a919e; letter-spacing: .04em; }
.rl-scroll { overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; scrollbar-color: #cdd1d8 transparent; outline: none; -webkit-overflow-scrolling: touch; }
.rl-scroll::-webkit-scrollbar { height: 5px; }
.rl-scroll::-webkit-scrollbar-thumb { background: #cdd1d8; border-radius: 3px; }
.rl-inner { position: relative; }
.rl-chart { display: block; overflow: visible; }
.rl-band.pod { fill: rgba(224,165,38,.13); }
.rl-band.t10 { fill: rgba(29,143,85,.06); }
.rl-grid { stroke: #eceef1; stroke-width: 1; }
.rl-grid.lane { stroke: #d9dce1; stroke-dasharray: 3 4; }
.rl-yrline { stroke: #c9ced6; stroke-width: 1; stroke-dasharray: 2 3; }
.rl-trace { fill: none; stroke: var(--navy); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.rl-road { fill: #eef0f3; }
.rl-road-mid { stroke: #fff; stroke-width: 1.5; stroke-dasharray: 8 7; }
.rl[data-kind="events"] .rl-trace { stroke: var(--red); stroke-width: 4; }
.rl-dot { fill: var(--navy); stroke: #fff; stroke-width: 2; transform-box: fill-box; transform-origin: center; transition: transform .35s cubic-bezier(.3,1.8,.5,1), opacity .25s; }
.rl-dot.c72 { fill: var(--c72); } .rl-dot.c11 { fill: var(--c11); }
.rl-dot.rl-ev { fill: var(--navy); }
.rl-dot.pod { stroke: var(--gold); stroke-width: 2.5; }
.rl-dot.dna { fill: #fff; stroke: var(--dnac); stroke-width: 1.5; stroke-dasharray: 2 2; }
.rl-car { opacity: 0; transition: opacity .3s; }
.rl.running .rl-car { opacity: 1; }
.rl-car-ring { fill: #fff; stroke: var(--red); stroke-width: 2.5; filter: drop-shadow(0 2px 3px rgba(23,53,42,.35)); }

.rl-races { display: flex; list-style: none; margin: 0; padding: 2px 0 10px; }
.rl-col { position: relative; flex: 0 0 auto; width: var(--col, 94px); margin: 0; padding: 6px 6px 8px 8px; border-left: 1px solid #f0f1f3; transition: opacity .3s, transform .45s cubic-bezier(.2,1.4,.4,1); }
.rl-col::before { content: ""; position: absolute; left: 8px; right: 6px; top: 0; height: 2px; border-radius: 1px; background: #e2e4e8; }
.rl-col.c72::before { background: var(--c72); } .rl-col.c11::before { background: var(--c11); }
.rl-col.rl-ev::before { background: var(--red); }
.rl-col.pod { background: linear-gradient(180deg, rgba(224,165,38,.12), rgba(224,165,38,0) 75%); }
.rl-yr { position: absolute; top: 6px; right: 5px; font: 700 9.5px/1 Arial, sans-serif; color: #fff; background: var(--navy); padding: 3px 5px; border-radius: 3px; letter-spacing: .04em; }
.rl-pos { font: italic 900 24px/1 "Arial Black", Arial, sans-serif; letter-spacing: -.03em; color: var(--navy); margin: 6px 0 5px; }
.rl-pos small { font-size: 11px; margin-right: 1px; color: #8a919e; }
.rl-pos.pod, .rl-pos.pod small { color: var(--podc); }
.rl-pos.t10, .rl-pos.t10 small { color: var(--t10c); }
.rl-pos.dna { font-size: 14px; color: var(--dnac); margin: 11px 0 9px; letter-spacing: .05em; }
.rl-circ { font: 700 11px/1.2 Arial, sans-serif; text-transform: uppercase; color: var(--navy); }
.rl[data-kind="events"] .rl-circ { font-size: 11.5px; text-transform: none; min-height: 42px; margin-top: 10px; padding-right: 30px; }
.rl[data-kind="events"] .rl-col:not(.newyr) .rl-circ { padding-right: 0; }
.rl-col time { display: block; margin-top: 2px; font-size: 10px; color: var(--soft); font-variant-numeric: tabular-nums; }
.rl-note { margin-top: 2px; font-size: 9.5px; color: #8a919e; font-style: italic; }
.rl-num { display: flex; align-items: center; gap: 4px; margin-top: 5px; font-size: 8.5px; line-height: 1.1; color: #8a919e; text-transform: uppercase; letter-spacing: .03em; }
.rl-col.c72 .rl-num .plate { border-color: var(--c72); color: var(--c72); }
.rl-col.c11 .rl-num .plate { border-color: var(--c11); color: var(--c11); }
.rl-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 8px 14px 10px; border-top: 1px solid var(--line); font-size: 10.5px; color: var(--soft); }
.rl-key { display: inline-flex; align-items: center; gap: 5px; }
.rl-key i { width: 9px; height: 9px; border-radius: 50%; background: var(--navy); }
.rl-key.c72 i { background: var(--c72); } .rl-key.c11 i { background: var(--c11); }
.rl-key.pod i { background: rgba(224,165,38,.35); border-radius: 2px; box-shadow: inset 0 0 0 1.5px var(--gold); }
.rl-key.t10 i { background: rgba(29,143,85,.18); border-radius: 2px; }
.rl-replay { margin-left: auto; cursor: pointer; font: 700 10.5px/1 Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--red); background: #fff; border: 1.5px solid var(--red); border-radius: 13px; padding: 5px 11px; }
.rl-replay:hover { background: var(--red); color: #fff; }
.rl-src { display: inline; color: var(--soft); cursor: zoom-in; font-size: 10.5px; }
.rl-src:hover { color: var(--red); }
/* before / during a run (JS only) */
.js .rl.armed .rl-view:not([hidden]) .rl-col:not(.on) { opacity: .22; transform: translateY(6px); }
.js .rl.armed .rl-view:not([hidden]) .rl-dot:not(.on) { transform: scale(0); opacity: 0; }
.rl-col.on.hit { animation: rlHit .7s ease-out; }
@keyframes rlHit { 0% { background-color: rgba(215,38,47,.10); } 100% { background-color: transparent; } }
.rl-col.pod.on.hit { animation: rlPod 1.1s ease-out; }
@keyframes rlPod { 0% { box-shadow: inset 0 0 0 2px var(--gold); } 100% { box-shadow: inset 0 0 0 0 transparent; } }
.rl-initials { display: inline-flex; align-items: center; justify-content: center; background: var(--navy); color: #fff; font: 900 15px/1 Arial, sans-serif; letter-spacing: .02em; }
.rl-car-txt { font: 900 8px/1 Arial, sans-serif; fill: var(--navy); }
.rl-srcs { flex-basis: 100%; font-size: 10px; color: #8a919e; }
.rl-srcs a { color: var(--soft); }

/* ---------- Race records page ---------- */
.records .lead { font-size: 17px; line-height: 1.6; color: #333; max-width: 760px; }
.rec-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.rec-jump a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border: 1.5px solid var(--line); border-radius: 18px; text-decoration: none; color: var(--navy); font: 700 12.5px/1 Arial, sans-serif; background: #fff; }
.rec-jump a:hover { border-color: var(--navy); }
.rec-jump img { border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.1); }
.rec-h { display: flex; align-items: center; gap: 10px; margin: 30px 0 14px; padding-bottom: 8px; border-bottom: 3px solid var(--red); }
.rec-h img { border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.1); }
.rec-bars { margin: 6px 0 12px; }
.rec-bars div { display: grid; grid-template-columns: 190px 1fr 30px; align-items: center; gap: 10px; padding: 3px 0; font-size: 13.5px; }
.rec-bars i { display: block; height: 12px; width: calc(var(--v) / var(--max, 14) * 100%); min-width: 6px; border-radius: 0 6px 6px 0; background: linear-gradient(90deg, var(--navy), #2f6149); }
.rec-bars b { font: italic 900 15px/1 "Arial Black", Arial, sans-serif; color: var(--navy); }
.rec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.insight { border-top: 3px solid var(--navy); }
.insight ul { padding-left: 18px; font-size: 14.5px; }

/* ---------- Press archive ---------- */
.press .card figure.fr { margin-bottom: 10px; }
.press .card figure.fr + figure.fr { clear: right; }
.press blockquote { margin: 10px 0 12px; }
.press ol { padding-left: 22px; font-size: 14.5px; }
.rec-table { overflow-x: auto; margin: 4px 0 10px; }
.rec-table table { border-collapse: collapse; font-size: 13.5px; min-width: 520px; }
.rec-table th { text-align: left; font: 700 10.5px/1 Arial, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); padding: 6px 12px 6px 0; border-bottom: 2px solid var(--navy); }
.rec-table td { padding: 6px 12px 6px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }

/* ---------- Major events ---------- */
.ev-feature { display: flex; gap: 22px; align-items: center; margin: 6px 0 22px; padding: 16px; border-radius: 8px; text-decoration: none; color: #e8efea;
  background: radial-gradient(120% 140% at 0% 0%, #24503d 0%, var(--navy) 60%, #0c1c15 100%); border-bottom: 4px solid var(--red); box-shadow: 0 8px 22px rgba(23,53,42,.25); }
.ev-feature .ev-img { width: 330px; height: auto; border-radius: 5px; flex: none; }
.ev-k img { width: 18px; height: 12px; border-radius: 1px; }
.ev-text { display: block; }
.ev-k { display: flex; align-items: center; gap: 7px; font: 700 11.5px/1 Arial, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #ff6b72; }
.ev-name { display: block; font: 900 36px/1.05 Arial, sans-serif; text-transform: uppercase; color: #fff; margin: 8px 0 8px; }
.ev-sum { display: block; font-size: 15px; line-height: 1.55; color: #d3e0d8; }
.ev-go { display: inline-block; margin-top: 12px; font: 700 12.5px/1 Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--red); padding: 9px 14px; border-radius: 16px; }
.ev-feature:hover .ev-go { background: #ef3640; }
a.ev-card { display: block; text-decoration: none; color: inherit; transition: box-shadow .2s, transform .2s; }
a.ev-card:hover { box-shadow: 0 6px 18px rgba(23,53,42,.15); transform: translateY(-2px); }
.ev-more { display: block; margin: 4px 0 10px; font: 700 12px/1 Arial, sans-serif; color: var(--red); letter-spacing: .04em; }
.hero .stats + p, .hero p.lead { color: #d3e0d8; }

/* ---------- Race map + event timeline (events.html, assets/events.js) ---------- */
.em-filter { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; position: sticky; top: 48px; z-index: 30; background: #fff; padding: 8px 0; }
.emf { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; padding: 7px 12px; border: 1.5px solid var(--line); border-radius: 18px; background: #fff; font: 700 12px/1 Arial, sans-serif; color: var(--navy); }
.emf i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.emf small { font-weight: 400; color: var(--soft); }
.emf.on { border-color: var(--c, var(--navy)); background: var(--paper); box-shadow: 0 1px 4px rgba(23,53,42,.12); }
.em-mapwrap { position: relative; margin-bottom: 18px; }
.em-views { display: flex; gap: 0; margin-bottom: 8px; }
.emv { cursor: pointer; padding: 8px 14px; border: 1.5px solid var(--navy); background: #fff; color: var(--navy); font: 700 12px/1 Arial, sans-serif; letter-spacing: .04em; }
.emv:first-child { border-radius: 16px 0 0 16px; } .emv:last-child { border-radius: 0 16px 16px 0; border-left: 0; }
.emv.on { background: var(--navy); color: #fff; }
.em-map { height: 430px; border-radius: 8px; border: 1px solid var(--line); background: #e9edf1; z-index: 1; }
.em-nomap { padding: 40px; text-align: center; color: var(--soft); }
.em-maphint { font-size: 12px; color: var(--soft); margin: 6px 0 0; }
.em-pop b { display: block; color: var(--navy); font-size: 13.5px; }
.em-pop span { display: block; color: var(--soft); font-size: 11.5px; margin-bottom: 4px; }
.em-pop ul { margin: 0; padding-left: 16px; max-height: 180px; overflow: auto; font-size: 12px; }
.em-list { list-style: none; margin: 0; padding: 0 0 0 26px; position: relative; }
.em-list::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 3px; background: linear-gradient(180deg, var(--navy), var(--red)); border-radius: 2px; }
.em-year { position: relative; margin: 22px 0 10px; display: flex; align-items: baseline; gap: 12px; }
.em-year::before { content: ""; position: absolute; left: -25px; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px #fff; }
.em-year b { font: 900 26px/1 Arial, sans-serif; color: var(--navy); }
.em-year span { font-size: 13.5px; color: var(--soft); }
.em-divider { position: relative; display: flex; gap: 12px; align-items: center; margin: 26px 0 8px; padding: 14px 16px; border-radius: 8px; color: #fff; background: radial-gradient(120% 140% at 0% 0%, #24503d 0%, var(--navy) 60%, #0c1c15 100%); border-bottom: 3px solid var(--red); }
.em-divider b { display: block; font-size: 17px; } .em-divider span { font-size: 13px; color: #d3e0d8; }
.em-ev { position: relative; display: grid; grid-template-columns: 128px 1fr; gap: 14px; padding: 12px 14px; margin: 0 0 10px; background: #fff; border: 1px solid var(--line); border-radius: 6px; scroll-margin-top: 110px; }
.em-ev::before { content: ""; position: absolute; left: -22px; top: 18px; width: 9px; height: 9px; border-radius: 50%; background: #fff; border: 2px solid var(--navy); }
.em-ev.em-hl { animation: emHl 1.6s ease-out; }
@keyframes emHl { 0% { box-shadow: 0 0 0 3px var(--gold); } 100% { box-shadow: 0 0 0 0 transparent; } }
.em-when { display: flex; align-items: flex-start; gap: 6px; font: 700 12.5px/1.3 Arial, sans-serif; color: var(--red); letter-spacing: .02em; }
.em-when img { margin-top: 2px; border-radius: 1px; box-shadow: 0 0 0 1px rgba(0,0,0,.1); }
.em-ca { font: 700 9px/1 Arial, sans-serif; color: #fff; background: #d52b1e; padding: 2px 3px; border-radius: 2px; margin-top: 2px; }
.em-body h3 { margin: 0 0 2px; font-size: 16px; }
.em-where { font-size: 12.5px; color: var(--soft); margin-bottom: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.em-pin { cursor: pointer; border: 1px solid var(--line); background: var(--paper); border-radius: 10px; padding: 2px 8px; font: 700 10.5px/1.4 Arial, sans-serif; color: var(--navy); }
.em-pin:hover { border-color: var(--navy); }
.em-about { font-size: 13px; color: #444; margin: 0 0 8px; font-style: italic; }
.em-tab { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-bottom: 4px; }
.em-tab td { padding: 5px 8px 5px 0; border-top: 1px solid #f0f1f3; vertical-align: top; }
.em-tab td:first-child { width: 48px; }
.em-tab small { display: block; color: var(--soft); font-size: 11.5px; }
.em-dv { display: flex; align-items: center; gap: 9px; }
.em-dav { flex: none; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; background: var(--navy); box-shadow: 0 0 0 2px #fff, 0 1px 4px rgba(0,0,0,.25); display: flex; align-items: center; justify-content: center; font-style: normal; }
.em-dav img { width: 100%; height: 100%; object-fit: cover; display: block; }
.em-dav span { color: #fff; font: 700 10.5px/1 Arial, sans-serif; letter-spacing: .02em; }
.em-tab td { vertical-align: middle; }
.em-tab tr.em-dim { opacity: .35; }
.em-res { font: italic 900 15px/1 "Arial Black", Arial, sans-serif; color: var(--navy); }
.em-res.pod { color: #b98510; } .em-res.t10 { color: #1d8f55; } .em-res.out, .em-res.na { color: #9aa1ad; font-size: 12px; font-style: normal; }
.em-car { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: #333; padding-left: 8px; border-left: 3px solid var(--c); }
.em-note { font-size: 12.5px; color: #555; margin: 4px 0; }
.em-media { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
.em-ph img { width: 120px; height: 80px; object-fit: cover; border-radius: 4px; }
.em-vid { position: relative; display: block; width: 160px; text-decoration: none; }
.em-vid img { width: 160px; height: 90px; object-fit: cover; border-radius: 4px; }
.em-vid span { display: block; font-size: 11px; line-height: 1.3; color: var(--navy); margin-top: 3px; }
.em-links { font-size: 12.5px; margin: 4px 0 0; }
.em-ev[hidden], .em-year[hidden], .em-divider[hidden] { display: none; }
.pf-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 8px 0 4px; font: 700 12.5px/1.3 Arial, sans-serif; }
.pf-links span { color: var(--soft); font-weight: 400; }
.press-filter { top: 48px; }
.press .card .tags { margin-bottom: 6px; }
.press [hidden] { display: none !important; }
.em-map .leaflet-tile-pane { filter: grayscale(1) contrast(.92) brightness(1.06); }
/* play mode */
.em-stage { position: relative; }
.em-play { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.em-btn { cursor: pointer; flex: none; padding: 8px 14px; border-radius: 16px; border: 0; background: var(--red); color: #fff; font: 700 12.5px/1 Arial, sans-serif; letter-spacing: .04em; }
.em-btn.on { background: var(--navy); }
.em-all { background: #fff; color: var(--navy); border: 1.5px solid var(--navy); }
.em-slider { flex: 1; min-width: 0; accent-color: var(--red); height: 24px; }
.em-at { flex: none; min-width: 150px; font: 700 12px/1.2 Arial, sans-serif; color: var(--navy); }
.em-card { position: absolute; z-index: 500; top: 10px; right: 10px; width: 330px; max-height: 410px; overflow: auto; background: rgba(255,255,255,.97); border-radius: 8px; box-shadow: 0 8px 26px rgba(23,53,42,.28); border-top: 4px solid var(--red); padding: 10px 12px; animation: emCard .35s ease-out; }
@keyframes emCard { from { opacity: 0; transform: translateY(-6px); } }
.em-cd { font: 700 11px/1 Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.em-ce { display: block; font-size: 15px; line-height: 1.25; color: var(--navy); margin: 4px 0 2px; }
.em-cp { font-size: 11.5px; color: var(--soft); margin-bottom: 6px; }
.em-card ul { list-style: none; margin: 0; padding: 0; }
.em-card li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid #f0f1f3; }
.em-duo { position: relative; flex: none; width: 82px; height: 38px; }
.em-card li img.em-car { position: absolute; left: 0; top: 1px; width: 54px; height: 36px; object-fit: cover; border-radius: 4px; box-shadow: 0 0 0 2px var(--c); }
.em-duo .em-noimg { position: absolute; left: 0; top: 1px; }
.em-drv { position: absolute; right: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; overflow: hidden; background: var(--navy); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.3); display: flex; align-items: center; justify-content: center; }
.em-drv img { width: 100%; height: 100%; object-fit: cover; display: block; }
.em-drv b { color: #fff; font: 700 11px/1 Arial, sans-serif; letter-spacing: .02em; }
.em-trophy { display: block; width: 22px; height: 22px; margin: 0 auto 1px; animation: emTroIn .7s cubic-bezier(.3,1.7,.5,1) both, emTroWig 2.4s ease-in-out .8s infinite; transform-origin: 50% 90%; }
.em-trophy svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 1px 1px rgba(0,0,0,.25)); }
.em-trophy.p1 { color: #d6a10f; } .em-trophy.p2 { color: #9aa3ae; } .em-trophy.p3 { color: #b0703a; }
.em-trophy.p1 svg { animation: emTroShine 2.4s ease-in-out .8s infinite; }
@keyframes emTroIn { from { transform: translateY(-14px) scale(.2) rotate(-25deg); opacity: 0; } }
@keyframes emTroWig { 0%, 70%, 100% { transform: rotate(0); } 78% { transform: rotate(-12deg); } 86% { transform: rotate(10deg); } 93% { transform: rotate(-5deg); } }
@keyframes emTroShine { 0%, 60%, 100% { filter: drop-shadow(0 1px 1px rgba(0,0,0,.25)); } 75% { filter: drop-shadow(0 0 6px rgba(255,205,60,.95)); } }
.em-podium { background: linear-gradient(90deg, rgba(214,161,15,.07), transparent 70%); }
.em-badge .em-tro { width: 10px; height: 10px; vertical-align: -1px; margin-right: 1px; }
@media (prefers-reduced-motion: reduce) { .em-trophy, .em-trophy svg { animation: none; } }
.em-noimg { width: 54px; height: 36px; border-radius: 4px; background: var(--paper); flex: none; }
.em-who { flex: 1; min-width: 0; font-size: 12.5px; line-height: 1.25; }
.em-who small { display: block; color: var(--soft); font-size: 10.5px; }
.em-who i { display: block; color: #555; font-size: 11px; margin-top: 2px; }
.em-pos { flex: none; text-align: center; min-width: 46px; }
.em-pos small { display: block; font: 700 9px/1.2 Arial, sans-serif; color: var(--soft); text-transform: uppercase; letter-spacing: .06em; }
.em-pos em { display: block; font: italic 900 18px/1 "Arial Black", Arial, sans-serif; color: var(--navy); margin: 2px 0; }
.em-pos em.pod { color: #b98510; } .em-pos em.t10 { color: #1d8f55; } .em-pos em.na { color: #9aa1ad; font-size: 12px; font-style: normal; }
.em-cn { font-size: 11.5px; color: #555; margin: 6px 0 0; }
.em-cl { display: inline-block; margin-top: 6px; font: 700 11.5px/1 Arial, sans-serif; }
.em-avw { background: none; border: 0; }
.em-av { position: relative; width: 100%; height: 100%; border-radius: 50%; overflow: visible; box-shadow: 0 0 0 3px var(--c), 0 3px 8px rgba(0,0,0,.35); background: #fff; transition: transform .3s; }
.em-av img, .leaflet-container .leaflet-marker-pane .em-av img { width: 100% !important; height: 100% !important; border-radius: 50%; object-fit: cover; display: block; }
.em-av.now { animation: emPop .45s cubic-bezier(.3,1.6,.5,1); }
.em-av.now.settled { animation: none; }
.em-av.settled .em-badge { animation: emBadge .45s cubic-bezier(.3,1.8,.5,1); }
@keyframes emBadge { from { transform: scale(0) rotate(-20deg); opacity: 0; } }
.em-card.flick { animation: emFlick .5s cubic-bezier(.2,1.3,.4,1); transform-origin: 50% 0; }
@keyframes emFlick { from { opacity: 0; transform: perspective(600px) rotateX(-75deg) translateY(-10px); } }
.em-card.staged li { opacity: 0; transform: translateX(14px); transition: opacity .35s, transform .35s cubic-bezier(.2,1.4,.4,1); }
.em-card.staged li.in { opacity: 1; transform: none; }
.em-card.staged li:not(.in) .em-trophy, .em-card.staged li:not(.in) .em-trophy svg { animation: none; }
@media (prefers-reduced-motion: reduce) { .em-card.flick { animation: none; } .em-card.staged li { transition: none; } }
@keyframes emPop { from { transform: scale(.4); } }
.em-badge { position: absolute; right: -10px; top: -8px; min-width: 22px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--navy); color: #fff; font: italic 900 10px/18px Arial, sans-serif; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.em-badge.pod { background: #c9920f; } .em-badge.t10 { background: #1d8f55; } .em-badge.na { background: #7d8594; font-style: normal; }
.em-pulsew { background: none; border: 0; pointer-events: none; }
.em-pulse { width: 70px; height: 70px; border-radius: 50%; border: 3px solid var(--red); animation: emPulse 1.6s ease-out infinite; }
@keyframes emPulse { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.2); opacity: 0; } }
.em-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--navy); box-shadow: 0 0 0 3px #fff, 0 2px 6px rgba(0,0,0,.4); }

/* landing speech bubble on the race map */
.em-bubw { background: none; border: 0; pointer-events: none; }
.em-bub { position: absolute; left: 0; bottom: 44px; transform: translateX(-50%); min-width: 150px; max-width: 220px; background: var(--navy); color: #fff; border-radius: 10px; padding: 7px 11px 8px; text-align: center; box-shadow: 0 6px 18px rgba(23,53,42,.35); border-top: 3px solid var(--red); animation: emBub .55s cubic-bezier(.2,1.6,.4,1) both; transform-origin: 50% 100%; white-space: normal; }
.em-bub::after { content: ""; position: absolute; left: 50%; bottom: -8px; margin-left: -8px; border: 8px solid transparent; border-bottom: 0; border-top-color: var(--navy); }
.em-bub b { display: block; font: 700 12.5px/1.25 Arial, sans-serif; margin: 2px 0 3px; }
.em-bub b svg { width: 13px; height: 13px; vertical-align: -2px; margin-right: 3px; color: #ff8a8f; }
.em-bp i { color: #fff; font-style: normal; opacity: .85; }
.em-bd { display: block; font: 700 9.5px/1 Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #ff8a8f; }
.em-bp { display: block; font: 11px/1.3 Arial, sans-serif; color: #c9d3e3; }
.em-bub.out { animation: emBubOut .35s ease-in both; }
@keyframes emBub { from { opacity: 0; transform: translateX(-50%) translateY(12px) scale(.2); } }
@keyframes emBubOut { to { opacity: 0; transform: translateX(-50%) translateY(10px) scale(.2); } }
@media (prefers-reduced-motion: reduce) { .em-bub, .em-bub.out { animation: none; } }

/* "when" bubble under the cars on landing */
.em-yr { position: absolute; left: 0; top: 32px; transform: translateX(-50%); display: flex; align-items: center; gap: 5px; white-space: nowrap; background: #fff; color: var(--navy); border: 2px solid var(--red); border-radius: 999px; padding: 3px 10px 3px 7px; box-shadow: 0 4px 12px rgba(23,53,42,.3); animation: emYr .5s cubic-bezier(.2,1.7,.4,1) both; transform-origin: 50% 0; }
.em-yr.low { top: 76px; }
.em-yr::before { content: ""; position: absolute; left: 50%; top: -7px; margin-left: -6px; border: 6px solid transparent; border-top: 0; border-bottom-color: var(--red); }
.em-yr svg { width: 13px; height: 13px; color: var(--red); flex: none; }
.em-yr b { font: italic 900 15px/1 "Arial Black", Arial, sans-serif; letter-spacing: .02em; }
.em-yr small { font: 700 10px/1 Arial, sans-serif; color: var(--soft); text-transform: uppercase; letter-spacing: .06em; }
.em-yr.out { animation: emYrOut .35s ease-in both; }
@keyframes emYr { from { opacity: 0; transform: translateX(-50%) translateY(-8px) scale(.3); } }
@keyframes emYrOut { to { opacity: 0; transform: translateX(-50%) translateY(-6px) scale(.3); } }
@media (prefers-reduced-motion: reduce) { .em-yr, .em-yr.out { animation: none; } }

/* race footage preview in the map card */
.em-cvid { display: flex; align-items: center; gap: 9px; margin-top: 8px; padding: 6px; border-radius: 6px; background: #f4f5f7; color: var(--navy); text-decoration: none; transition: background .2s; }
.em-cvid:hover { background: #e9ecf1; }
.em-cvt { position: relative; flex: none; width: 112px; height: 63px; border-radius: 4px; overflow: hidden; background: #000; }
.em-cvt img { width: 100%; height: 100%; object-fit: cover; display: block; }
.em-cvt i { position: absolute; left: 50%; top: 50%; width: 34px; height: 24px; margin: -12px 0 0 -17px; border-radius: 7px; background: #e62117; box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.em-cvt i::after { content: ""; position: absolute; left: 13px; top: 6px; border: 6px solid transparent; border-left: 10px solid #fff; border-right: 0; }
.em-cvx { min-width: 0; }
.em-cvx small { display: block; font: 700 9.5px/1.2 Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.em-cvx b { display: block; font-size: 12.5px; line-height: 1.25; margin-top: 2px; }
.em-card.staged .em-cvid { opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s cubic-bezier(.2,1.4,.4,1); }
.em-card.staged .em-cvid.in { opacity: 1; transform: none; }

/* race log: Animation / Grid switch and the grid (table) view */
.rl-mode { display: none; flex: none; padding: 2px; background: var(--paper); border: 1.5px solid var(--line); border-radius: 20px; }
.js .rl-mode { display: flex; }
.rl-mode button { padding: 5px 11px; border: 0; border-radius: 16px; background: none; cursor: pointer; font: 700 11px/1 Arial, sans-serif; color: var(--soft); letter-spacing: .02em; transition: background .2s, color .2s; }
.rl-mode button.on { background: var(--navy); color: #fff; }
.rl-gridview { display: none; padding: 0 14px 12px; }
.rl.grid .rl-gridview { display: block; }
.rl.grid .rl-board, .rl.grid .rl-lights, .rl.grid .rl-replay { display: none; }
.rl-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.rl-table thead th { text-align: left; font: 700 10px/1.2 Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); padding: 6px 8px; border-bottom: 2px solid var(--navy); }
.rl-table td { padding: 6px 8px; border-bottom: 1px solid #eef0f3; vertical-align: middle; }
.rl-table tbody tr:not(.rl-gy):hover td { background: #fafbfc; }
.rl-table .rl-gy th { text-align: left; padding: 10px 8px 4px; font: italic 900 14px/1 "Arial Black", Arial, sans-serif; color: var(--red); border-bottom: 1px solid var(--line); }
.rl-gd { white-space: nowrap; color: var(--soft); width: 1%; }
.rl-gc { font-weight: 700; color: var(--navy); }
.rl-gcar { display: inline-flex; align-items: center; gap: 5px; padding-left: 7px; border-left: 3px solid var(--navy); white-space: nowrap; }
.rl-table tr.c72 .rl-gcar { border-left-color: var(--c72); } .rl-table tr.c11 .rl-gcar { border-left-color: var(--c11); }
.rl-gr { white-space: nowrap; width: 1%; text-align: center; }
.rl-gp { display: inline-block; min-width: 40px; padding: 3px 7px; border-radius: 10px; background: var(--paper); font: italic 900 12.5px/1.2 "Arial Black", Arial, sans-serif; color: var(--navy); }
.rl-gp.pod { background: #fbf1d2; color: #946a07; } .rl-gp.t10 { background: #e3f3ea; color: #1d8f55; }
.rl-gp.dna { font: 700 11px/1.2 Arial, sans-serif; color: #8b93a1; }
.rl-gn { color: #555; font-size: 12px; }
@media (max-width: 640px) { .rl-gn { display: none; } .rl-table thead th:last-child { display: none; } }
.rl-head .rl-title { flex: 1 1 210px; }
.rl.grid .rl-view:not([hidden]) { display: block; width: 100%; }

/* grid view: collapsed to 10 races by default */
.js .rl-gridview.rl-long:not(.open) .rl-more { display: none; }
.rl-gridview.rl-long:not(.open) .rl-table { -webkit-mask-image: linear-gradient(#000 calc(100% - 60px), rgba(0,0,0,.25)); mask-image: linear-gradient(#000 calc(100% - 60px), rgba(0,0,0,.25)); }
.rl-expand { display: none; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 8px; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 20px; background: #fff; cursor: pointer; font: 700 12px/1 Arial, sans-serif; letter-spacing: .03em; color: var(--navy); transition: border-color .2s, background .2s; }
.js .rl-expand { display: flex; }
.rl-expand:hover { border-color: var(--navy); background: var(--paper); }
.rl-expand i { width: 7px; height: 7px; border-right: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: translateY(-2px) rotate(45deg); transition: transform .25s; }
.rl-gridview.open .rl-expand i { transform: translateY(2px) rotate(-135deg); }
.rl-x-less, .rl-gridview.open .rl-x-more { display: none; }
.rl-gridview.open .rl-x-less { display: inline; }

/* the race map docks under the nav and the list scrolls beneath it */
.em-dock { position: sticky; top: 48px; z-index: 30; background: #fff; padding-bottom: 8px; margin-bottom: 14px; box-shadow: 0 10px 14px -12px rgba(23,53,42,.35); }
.em-dock .em-filter { position: static; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 0 8px; padding: 8px 0 4px; }
.em-dock .em-filter::-webkit-scrollbar { display: none; }
.em-dock .emf { flex: none; }
.em-dock .em-mapwrap { margin-bottom: 0; }
.em-dock .em-views { margin-bottom: 6px; }
.em-dock .em-map { height: clamp(230px, 42vh, 430px); }
.em-maphint { margin: 0 0 6px; }
.em-ev { scroll-margin-top: calc(var(--em-dock, 520px) + 60px); }
.em-ev.em-cur { border-color: var(--red); box-shadow: 0 0 0 2px var(--red), 0 4px 14px rgba(23,53,42,.12); }
.em-ev.em-cur::before { background: var(--red); border-color: var(--red); transform: scale(1.3); }
/* bigger avatars and result badges */
.em-badge { right: -12px; top: -10px; min-width: 30px; height: 24px; padding: 0 7px; border-radius: 12px; font-size: 13.5px; line-height: 24px; }
.em-badge .em-tro { width: 12px; height: 12px; }
.em-av { box-shadow: 0 0 0 4px var(--c), 0 4px 10px rgba(0,0,0,.35); }
@media (max-width: 640px) {
  .em-dock .em-map { height: clamp(210px, 36vh, 320px); }
  .em-card { width: 52%; max-height: calc(100% - 20px); padding: 8px 9px; font-size: 12px; }
  .em-card .em-ce { font-size: 13px; }
  .em-cvt { width: 80px; height: 45px; }
}
.em-dock .em-card { max-height: calc(100% - 20px); }

/* results card: collapse / expand */
.em-card { padding-right: 12px; }
.em-card .em-cd { padding-right: 96px; min-height: 14px; }
.em-card .em-ce { padding-right: 8px; }
.em-cx { position: absolute; top: 8px; right: 8px; z-index: 2; display: flex; align-items: center; gap: 6px; padding: 5px 6px 5px 10px; border: 0; border-radius: 16px; background: var(--navy); color: #fff; cursor: pointer; font: 700 11px/1 Arial, sans-serif; letter-spacing: .04em; box-shadow: 0 2px 6px rgba(23,53,42,.35); transition: background .2s; }
.em-cx:hover { background: var(--red); }
.em-cx i { position: relative; width: 20px; height: 20px; border-radius: 50%; background: #fff; flex: none; }
.em-cx i::after { content: ""; position: absolute; left: 6px; top: 8px; width: 6px; height: 6px; border-left: 2.5px solid var(--navy); border-top: 2.5px solid var(--navy); transform: rotate(45deg); transition: transform .25s, top .25s; }
.em-card.min .em-cx i::after { transform: rotate(-135deg); top: 4px; }
.em-card.min { cursor: pointer; overflow: hidden; }
.em-card.min > :not(.em-cx):not(.em-cd):not(.em-ce) { display: none; }
.em-card.min .em-ce { margin-bottom: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) { .em-cx-t { display: none; } .em-cx { padding: 4px; } .em-card .em-cd { padding-right: 34px; } }
@media (max-width: 640px) { .em-card .em-ce { padding-right: 30px; } }
/* keep the toggle on the date row so it never covers the title */
.em-card .em-cd { line-height: 28px; min-height: 28px; padding-right: 130px; }
.em-card { padding-top: 6px; }
.em-cx { top: 6px; }
.em-card .em-ce { margin-top: 0; }

/* rev 2026-10-16b */

/* invitation to share photos and facts */
.bjr-invite { position: fixed; z-index: 9000; right: 16px; bottom: 16px; width: 290px; max-width: calc(100vw - 32px); padding: 14px 34px 16px 16px; background: var(--navy); color: #fff; border-radius: 10px; border-top: 4px solid var(--red); box-shadow: 0 10px 30px rgba(23,53,42,.35); font: 13px/1.4 Arial, sans-serif; transform: translateY(140%); opacity: 0; transition: transform .45s cubic-bezier(.2,1.3,.4,1), opacity .3s; overflow: hidden; }
.bjr-invite.in { transform: none; opacity: 1; }
.bjr-invite b { display: block; font-size: 15px; margin-bottom: 3px; }
.bjr-invite span { display: block; color: #d3e0d8; }
.bjr-invite a { display: inline-block; margin-top: 10px; padding: 7px 12px; border-radius: 16px; background: var(--red); color: #fff; font-weight: 700; text-decoration: none; }
.bjr-invite .bi-x { position: absolute; top: 6px; right: 8px; border: 0; background: none; color: #d3e0d8; font-size: 20px; line-height: 1; cursor: pointer; }
.bjr-invite .bi-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--red); transform-origin: left; animation: biBar 9s linear forwards; }
.bjr-invite.hold .bi-bar { animation-play-state: paused; opacity: 0; }
@keyframes biBar { to { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .bjr-invite { transition: none; } .bjr-invite .bi-bar { animation: none; } }
/* contribute form */
.cf { display: grid; gap: 14px; }
.cf-hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.cf-l { display: grid; gap: 5px; font-weight: 700; color: var(--navy); font-size: 13.5px; }
.cf-l small, .cf-topics small { font-weight: 400; color: var(--soft); }
.cf input[type=text], .cf input:not([type]), .cf input[type=email], .cf select, .cf textarea { font: 15px/1.4 inherit; font-family: inherit; padding: 9px 11px; border: 1.5px solid var(--line); border-radius: 6px; background: #fff; color: #222; width: 100%; box-sizing: border-box; }
.cf textarea { resize: vertical; }
.cf input:focus, .cf select:focus, .cf textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(23,53,42,.12); }
.cf-topics { border: 1.5px solid var(--line); border-radius: 6px; padding: 8px 12px 10px; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.cf-topics legend { font-weight: 700; color: var(--navy); font-size: 13.5px; padding: 0 4px; }
.cf-topics label, .cf-check { font-size: 14px; display: flex; align-items: center; gap: 6px; }
.cf-photos { display: grid; gap: 10px; }
.cf-drop { display: grid; gap: 2px; padding: 18px; border: 2px dashed #c5cad3; border-radius: 8px; text-align: center; cursor: pointer; color: var(--soft); background: var(--paper); }
.cf-drop b { color: var(--navy); font-size: 15px; }
#cf-files { display: none; }
.cf-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.cf-t { position: relative; }
.cf-t img { width: 96px; height: 72px; object-fit: cover; border-radius: 4px; display: block; }
.cf-t button { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--red); color: #fff; cursor: pointer; line-height: 1; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cf-send { justify-self: start; font-size: 15px; padding: 10px 26px; cursor: pointer; border: 0; }
.cf-send:disabled { opacity: .5; }
.cf-msg { margin: 0; font-weight: 700; color: var(--navy); }
.cf-msg.bad { color: var(--red); }
@media (max-width: 640px) { .cf-row { grid-template-columns: 1fr; } }

/* car picker on the share form */
.cf-cars { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.cf-cars legend { font-weight: 700; color: var(--navy); font-size: 13.5px; margin-bottom: 8px; padding: 0; }
.cf-car { position: relative; cursor: pointer; }
.cf-car input { position: absolute; opacity: 0; pointer-events: none; }
.cf-car span { display: flex; flex-direction: column; height: 100%; border: 2px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; transition: border-color .15s, box-shadow .15s, transform .15s; }
.cf-car img { width: 100%; height: 92px; object-fit: cover; display: block; filter: saturate(.85); }
.cf-car b { display: block; padding: 7px 9px 0; font: 700 13px/1.25 Arial, sans-serif; color: var(--navy); }
.cf-car small { display: block; padding: 2px 9px 9px; font-size: 11.5px; color: var(--soft); }
.cf-car i { display: flex; align-items: center; justify-content: center; height: 92px; background: var(--paper); font: 900 38px/1 Arial, sans-serif; color: #c5cad3; font-style: normal; }
.cf-car:hover span { border-color: #c5cad3; transform: translateY(-1px); }
.cf-car input:checked + span { border-color: var(--red); box-shadow: 0 0 0 3px rgba(215,38,47,.18); }
.cf-car input:checked + span img { filter: none; }
.cf-car input:checked + span::after { content: "✓"; position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; background: var(--red); color: #fff; font: 700 14px/24px Arial, sans-serif; text-align: center; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.cf-car input:focus-visible + span { outline: 3px solid var(--navy); outline-offset: 2px; }
@media (max-width: 640px) { .cf-cars { grid-template-columns: 1fr 1fr; } .cf-car img, .cf-car i { height: 78px; } }

.cf-perm { display: grid; gap: 8px; padding: 12px 14px; border-radius: 8px; background: var(--paper); border-left: 4px solid var(--navy); }
.cf-perm > b { color: var(--navy); font-size: 13.5px; }
.cf-rights { display: grid; gap: 6px; margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--line); }
.cf-rights[hidden] { display: none; }
.cf-rights span { font-size: 13px; font-weight: 700; color: var(--navy); }
.cf-check input { width: 18px; height: 18px; flex: none; accent-color: var(--red); }

.car-row-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 18px 0 10px; }
.car-row-h:first-of-type { margin-top: 4px; }
.car-row-h img { border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.car-row-h b { font: 700 15px/1 Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); }
.car-row-h span { font-size: 13px; color: var(--soft); }
a.car-card { text-decoration: none; color: inherit; }

/* make "tap a car" obvious */
.cars-hint { position: relative; display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 10px 40px 10px 14px; border-radius: 10px; background: var(--navy); color: #fff; font-size: 14px; box-shadow: 0 6px 16px rgba(23,53,42,.22); animation: chIn .5s cubic-bezier(.2,1.4,.4,1) both; }
.cars-hint b { color: #ffd166; }
.cars-hint .ch-hand { font-size: 22px; line-height: 1; animation: chBob 1.1s ease-in-out infinite; }
.cars-hint .ch-x { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.cars-hint .ch-x:hover { background: var(--red); }
.cars-hint.gone { animation: chOut .3s ease-in both; }
@keyframes chIn { from { opacity: 0; transform: translateY(-8px); } }
@keyframes chOut { to { opacity: 0; transform: translateY(-8px); height: 0; padding: 0; margin: 0; } }
@keyframes chBob { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(5px); } }
.car-card .cc-go { display: flex; align-items: center; justify-content: space-between; margin: auto 12px 10px; padding: 7px 10px; border-radius: 16px; background: #fdecec; color: var(--red); font: 700 12px/1 Arial, sans-serif; letter-spacing: .02em; transition: background .2s, color .2s; }
.car-card .cc-go i { font-style: normal; transition: transform .2s; }
.car-card .cc-go + .cc-drv { margin-top: 0; }
.car-card:hover .cc-go, .car-card:focus-visible .cc-go { background: var(--red); color: #fff; }
.car-card:hover .cc-go i { transform: translateX(4px); }
.car-card:hover { border-color: var(--red); }
/* until someone taps a car, give the row a gentle wave so it reads as tappable */
.cars-invite .car-card { animation: ccWave 6s ease-in-out infinite; }
.cars-invite .car-card .cc-go i { animation: ccArrow 1.4s ease-in-out infinite; }
.cars-invite .car-grid .car-card:nth-child(2) { animation-delay: .25s; } .cars-invite .car-grid .car-card:nth-child(3) { animation-delay: .5s; } .cars-invite .car-grid .car-card:nth-child(4) { animation-delay: .75s; }
@keyframes ccWave { 0%, 82%, 100% { box-shadow: 0 0 0 0 rgba(215,38,47,0); border-color: var(--line); } 88% { box-shadow: 0 0 0 3px rgba(215,38,47,.35); border-color: var(--red); transform: translateY(-3px); } }
@keyframes ccArrow { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
@media (prefers-reduced-motion: reduce) { .cars-invite .car-card, .cars-invite .car-card .cc-go i, .cars-hint .ch-hand { animation: none; } }

/* ---------- Videos page: scrolling timeline ---------- */
.vt-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 22px; }
.vt-f { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; border-radius: 30px; padding: 5px 14px 5px 6px; font: 700 12.5px/1 Arial, sans-serif; color: var(--navy); cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.vt-f:first-child { padding-left: 14px; }
.vt-f img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.vt-f:hover { border-color: var(--navy); }
.vt-f.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.vt { display: grid; grid-template-columns: 168px 1fr; gap: 0 26px; margin-bottom: 26px; }
.vt-side { position: relative; }
.vt-now { position: sticky; top: 64px; background: var(--navy); color: #fff; border-radius: 8px; padding: 12px 14px 13px; box-shadow: 0 6px 18px rgba(23,53,42,.22); z-index: 2; }
.vt-now-k { display: block; font: 700 10.5px/1 Arial, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.vt-now-y { display: block; font: 800 40px/1.05 Arial, sans-serif; letter-spacing: -.02em; margin-top: 6px; transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .35s; }
.vt-now-y.swap { transform: translateY(-10px); opacity: 0; }
.vt-now-p { display: block; font: 600 12.5px/1.35 Arial, sans-serif; color: #cfd6e0; margin-top: 4px; min-height: 2.7em; }
.vt-now-p img { width: 18px; height: 12px; border-radius: 2px; vertical-align: -1px; margin-right: 5px; box-shadow: 0 0 0 1px rgba(255,255,255,.3); }
.vt-rail { position: sticky; top: 196px; list-style: none; margin: 14px 0 0; padding: 0 0 0 18px; border-left: 2px solid var(--line); }
.vt-rail li { position: relative; }
.vt-rail a { display: block; text-decoration: none; padding: 6px 0 6px 6px; color: #8a909a; border-radius: 4px; transition: color .2s, background .2s; }
.vt-rail a::before { content: ""; position: absolute; left: -25px; top: 11px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid #c3c8cf; transition: border-color .2s, background .2s, transform .2s; }
.vt-rail b { font: 800 14px/1 Arial, sans-serif; color: inherit; margin-right: 6px; }
.vt-rail span { font: 600 12px/1 Arial, sans-serif; }
.vt-rail a:hover { color: var(--navy); background: var(--paper); }
.vt-rail a:hover::before { border-color: var(--navy); }
.vt-rail a.on { color: var(--navy); }
.vt-rail a.on::before { border-color: var(--red); background: var(--red); transform: scale(1.25); box-shadow: 0 0 0 4px rgba(215,38,47,.15); }
.vt-rail a.past::before { border-color: var(--red); }
.vt-rail li.off { display: none; }
.vt-list { position: relative; }
.vt-list::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(180deg, var(--red), var(--navy)); opacity: .25; }
.vt-item { position: relative; padding: 0 0 26px 28px; transition: opacity .3s; }
.vt-item.off { display: none; }
.vt-dot { position: absolute; left: -6px; top: 22px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid #c3c8cf; transition: border-color .25s, transform .25s, background .25s; cursor: help; }
.vt-item.on .vt-dot { border-color: var(--red); background: var(--red); transform: scale(1.2); box-shadow: 0 0 0 5px rgba(215,38,47,.15); }
.vt-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.04); transition: box-shadow .25s, border-color .25s; }
.vt-item.on .vt-card { border-color: #cfd3da; box-shadow: 0 10px 28px rgba(23,53,42,.12); }
.vt-play { display: block; position: relative; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; background: #0b1422; cursor: pointer; overflow: hidden; }
.vt-play img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s cubic-bezier(.2,.8,.2,1), filter .3s; }
.vt-play:hover img { transform: scale(1.03); filter: brightness(.85); }
.vt-btn { position: absolute; left: 50%; top: 50%; width: 74px; height: 52px; margin: -26px 0 0 -37px; border-radius: 14px; background: var(--red); box-shadow: 0 6px 20px rgba(0,0,0,.35); transition: transform .2s; }
.vt-btn::after { content: ""; position: absolute; left: 29px; top: 15px; border-style: solid; border-width: 11px 0 11px 19px; border-color: transparent transparent transparent #fff; }
.vt-play:hover .vt-btn { transform: scale(1.08); }
.vt-search em { position: absolute; left: 50%; top: calc(50% + 38px); transform: translateX(-50%); font: 700 12px/1 Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: rgba(0,0,0,.55); padding: 6px 10px; border-radius: 4px; font-style: normal; white-space: nowrap; }
.vt-frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }
.vt-body { padding: 16px 20px 16px; }
.vt-body .when { font: 700 11.5px/1 Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: 8px; display: flex; align-items: center; gap: 7px; }
.vt-body .when img { width: 18px; height: 12px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.1); }
.vt-body h2 { font-size: 22px; line-height: 1.2; margin: 0 0 6px; }
.vt-body p { margin: 0 0 12px; font-size: 15px; color: #333; }
.vt-who { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0 0 12px; }
.vt-pair { display: flex; align-items: center; gap: 10px; background: var(--paper); border-radius: 40px; padding: 4px 16px 4px 4px; }
.vt-car, .vt-drv { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--navy); font: 700 13px/1.25 Arial, sans-serif; }
.vt-car img, .vt-drv img, .vt-drv i { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(0,0,0,.18); flex: none; transition: transform .2s; }
.vt-drv i { display: grid; place-items: center; background: var(--navy); color: #fff; font: 800 13px/1 Arial, sans-serif; font-style: normal; }
.vt-car:hover img, a.vt-drv:hover img, a.vt-drv:hover i { transform: scale(1.08); }
.vt-car span { max-width: 130px; }
.vt-drv small { display: block; font-weight: 600; color: #7a808a; font-size: 12px; }
.vt-car + .vt-drv { padding-left: 10px; border-left: 1px solid var(--line); }
.vt-links { display: flex; gap: 18px; align-items: center; font: 700 13px/1 Arial, sans-serif; }
.vt-links a { text-decoration: none; }
.vt-links a:hover { text-decoration: underline; }
.vt-yt::before { content: ""; display: inline-block; width: 16px; height: 11px; border-radius: 3px; background: var(--red); margin-right: 7px; vertical-align: -1px; }
.vt-more { color: var(--navy); }
.vt-more::after { content: " ›"; }
.vt-tip { position: fixed; z-index: 60; pointer-events: none; background: var(--navy); color: #fff; font: 700 12.5px/1.3 Arial, sans-serif; padding: 7px 10px; border-radius: 6px; box-shadow: 0 6px 18px rgba(0,0,0,.25); white-space: nowrap; }
.vt-tip small { display: block; font-weight: 600; color: #cfd6e0; }

/* ---------- "Where is it today?" on the car cards ---------- */
.cc-wrap { position: relative; display: flex; }
.cc-wrap > .car-card { flex: 1; min-width: 0; }
.cars-invite .car-grid > :nth-child(2) .car-card { animation-delay: .25s; } .cars-invite .car-grid > :nth-child(3) .car-card { animation-delay: .5s; } .cars-invite .car-grid > :nth-child(4) .car-card { animation-delay: .75s; }
.cc-today { position: absolute; top: 8px; left: 12px; z-index: 3; display: inline-flex; align-items: center; gap: 5px; border: 0; border-radius: 12px; padding: 4px 8px 4px 6px; background: var(--paper); color: var(--navy); font: 700 11px/1 Arial, sans-serif; letter-spacing: .02em; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); transition: background .15s, transform .15s; }
.cc-today:hover, .cc-wrap.show .cc-today { background: #fff; box-shadow: inset 0 0 0 1px var(--navy); }
.cc-today i, .cc-st i { width: 8px; height: 8px; border-radius: 50%; background: #9aa1ab; flex: none; }
.st-racing i { background: #1d8f55; box-shadow: 0 0 0 3px rgba(29,143,85,.2); }
.st-restoring i { background: var(--gold); }
.st-survives i { background: #2a78d6; }
.cc-pop { position: absolute; z-index: 5; top: 38px; left: 6px; width: 250px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 30px rgba(23,53,42,.22); padding: 12px 14px 12px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility .18s; text-align: left; }
.cc-wrap.show .cc-pop { opacity: 1; visibility: visible; transform: none; }
.cc-pop::before { content: ""; position: absolute; top: -6px; left: 26px; width: 10px; height: 10px; background: #fff; border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg); }
.cc-x { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border: 0; border-radius: 50%; background: var(--paper); color: var(--navy); font-size: 15px; line-height: 1; cursor: pointer; }
.cc-pt { display: block; font: 700 11px/1 Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin: 2px 0 9px; }
.cc-row { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin-bottom: 7px; }
.cc-st { display: inline-flex; align-items: center; gap: 6px; font: 700 13px/1.2 Arial, sans-serif; color: var(--navy); }
.cc-ct { display: inline-flex; align-items: center; gap: 6px; font: 600 12.5px/1.2 Arial, sans-serif; color: #555; }
.cc-ct img { border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.cc-pop p { margin: 0 0 10px; font-size: 13px; line-height: 1.45; color: #333; }
.cc-tell { display: block; text-align: center; background: var(--red); color: #fff; text-decoration: none; font: 700 12.5px/1 Arial, sans-serif; padding: 9px 10px; border-radius: 16px; }
.cc-tell:hover { background: #b81f27; }
.cc-wrap .car-card .cc-sub { margin-bottom: 40px; }
.vt-credit { margin-left: auto; font: 600 12.5px/1 Arial, sans-serif; color: #7a808a; } .vt-credit a { color: var(--navy); }

/* ---- keyword search (assets/search.js) ---- */
.qbox { display: flex; align-items: center; gap: 6px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 0 6px 0 10px; color: #cfd6e0; min-width: 0; transition: background .2s, border-color .2s, width .25s; }
.qbox:focus-within { background: #fff; border-color: #fff; color: var(--navy); }
.qbox input { flex: 1; min-width: 0; width: 100%; border: 0; background: transparent; color: #fff; font: 600 14px/1 Arial, sans-serif; padding: 8px 2px; outline: none; }
.qbox:focus-within input { color: var(--ink, #17352a); }
.qbox input::placeholder { color: #b9c3d0; font-weight: 400; }
.qbox input::-webkit-search-cancel-button { display: none; }
.qbox-x { border: 0; background: transparent; color: inherit; font: 700 18px/1 Arial, sans-serif; cursor: pointer; padding: 2px 6px; border-radius: 50%; }
.qbox-x:hover { background: rgba(0,0,0,.08); }
.filterbar { flex-wrap: wrap; }
.filterbar .fb-drv { margin-left: 0; }
.qbox-fb { margin-left: auto; flex: 1 1 260px; max-width: 420px; }
.qbox-nav { margin: 6px 10px 6px auto; width: 230px; }
.qbox-nav:focus-within { width: 300px; }
.qbar { position: sticky; top: var(--fb-h, 48px); z-index: 39; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 9px 22px; background: #fff8e1; border-bottom: 1px solid #f0d78c; font: 14px/1.4 Arial, sans-serif; color: #3b3b3b; box-shadow: 0 3px 8px rgba(0,0,0,.06); }
body:not(:has(.filterbar)) .qbar { top: 48px; }
.qbar[hidden] { display: none; }
.qb-main b { color: var(--red, #c8102e); }
.qb-else { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.qb-lbl { color: #777; font-size: 13px; }
.qb-else a { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; background: #fff; border: 1px solid #e3cf8f; color: var(--navy, #17352a); text-decoration: none; font-weight: 700; font-size: 13px; animation: qb-in .3s ease both; }
.qb-else a small { background: var(--navy, #17352a); color: #fff; border-radius: 999px; padding: 1px 6px; font-size: 11px; }
.qb-else a:hover { border-color: var(--red, #c8102e); }
.qb-clear { margin-left: auto; border: 0; background: transparent; color: var(--red, #c8102e); font: 700 13px/1 Arial, sans-serif; cursor: pointer; text-decoration: underline; }
@keyframes qb-in { from { opacity: 0; transform: translateY(3px); } }
mark.q-hl { background: #ffe066; color: inherit; padding: 0 1px; border-radius: 2px; box-shadow: 0 0 0 1px #ffe066; }
.qoff { display: none !important; }
.q-dim { opacity: .28; filter: grayscale(.7); transition: opacity .25s; }
.q-dim:hover { opacity: .8; }
@media (max-width: 760px) {
  .qbox-fb { width: 100%; order: 10; margin-left: 0; }
  .qbox-nav { width: 100%; margin: 4px 10px 8px; order: 10; }
  .qbox-nav:focus-within { width: 100%; }
  .qbar { padding: 8px 14px; }
  .qb-clear { margin-left: 0; }
}
/* make room under the search results bar for the page's own sticky bits */
html.q-on .marker, html.q-on .home .marker { top: calc(var(--fb-h, 62px) + var(--qb-h, 0px) + 14px); }
html.q-on .em-filter, html.q-on .em-dock { top: calc(48px + var(--qb-h, 0px)); }
html.q-on .vt-now { top: calc(64px + var(--qb-h, 0px)); }
html.q-on .vt-rail { top: calc(196px + var(--qb-h, 0px)); }

/* ---------- Photo wanted: placeholder until Lyn's own photos come in ---------- */
.ph-want { width: 232px; }
.ph-want > span, span.ph-want { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 150px; padding: 14px; text-align: center;
  border: 2px dashed #c4c9d1; border-radius: 6px; color: var(--soft); font: 12.5px/1.35 Arial, sans-serif;
  background: repeating-linear-gradient(135deg, #f7f7f5 0 10px, #f0f1f3 10px 20px); }
.ph-want b { color: var(--navy); font-size: 14px; letter-spacing: .02em; }
.ph-want a { margin-top: 4px; font-weight: 700; text-decoration: none; }
span.ph-want.portrait { width: 220px; min-height: 260px; border-color: rgba(255,255,255,.35); color: #b3c7bb; background: rgba(255,255,255,.05); }
span.ph-want.portrait b { color: #fff; font: 800 64px/1 Arial, sans-serif; letter-spacing: .02em; opacity: .9; }
span.ph-want.portrait a { color: var(--gold); }
.car-card > img { object-fit: cover; }
.cc-drv a { color: inherit; text-decoration: underline; }

/* third car colour in the race log (Terrapin) */
.rl-pick button.c42.on { border-color: var(--c42); }
.rl-dot.c42 { fill: var(--c42); }
.rl-col.c42::before { background: var(--c42); }
.rl-col.c42 .rl-num .plate { border-color: var(--c42); color: var(--c42); }
.rl-key.c42 i { background: var(--c42); }
/* scrapbook photo grid */
.photo-row { display: flex; gap: 14px; flex-wrap: wrap; margin: 6px 0 14px; }
.photo-row figure { margin: 0; }
.photo-row figcaption, figure figcaption { font-size: 12.5px; line-height: 1.4; color: var(--soft); margin-top: 5px; }

/* "Powered by My Front Page" badge in the footer: the My Front Page wordmark in its own colours
   (myfrontpage #121820, .website #c2410c), on a white chip so it reads on the green footer */
.foot .mfp { order: 4; flex-basis: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 8px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.12);
  color: #b3c7bb; font-size: 12.5px; text-decoration: none; }
.foot .mfp-mark { display: inline-flex; align-items: baseline; padding: 5px 12px 6px; border-radius: 8px; background: #fff;
  color: #121820; font: 800 16px/1 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; letter-spacing: -0.02em;
  box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.foot .mfp-mark b { color: #c2410c; font-weight: 800; }
.foot .mfp:hover .mfp-mark { transform: translateY(-1px); }
.foot .mfp:hover { color: #fff; }

/* Official roll of honour */
.honour { border: 2px solid var(--gold); background: linear-gradient(180deg, #fffaf0, #fff 120px); position: relative; }
.honour-badge { position: absolute; top: -18px; right: 20px; width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: #fff; font: 900 22px/40px Arial, sans-serif; text-align: center; box-shadow: 0 3px 10px rgba(0,0,0,.2); }
.roll td, .roll th { padding: 5px 10px; font-size: 13.5px; }
.roll tr.roll-lyn td { background: #fdf1d3; color: var(--navy); }
.roll tr.roll-lyn td:first-child { border-left: 4px solid var(--gold); }
.hero .honour-line { display: flex; width: max-content; max-width: 100%; align-items: center; gap: 8px; margin: 12px 0 18px; white-space: nowrap; padding: 6px 12px; border-radius: 20px; background: rgba(224,165,38,.16); border: 1px solid rgba(224,165,38,.5); color: #f5d07a; font: 700 12.5px/1.3 Arial, sans-serif; letter-spacing: .02em; text-decoration: none; }
.hero .honour-line:hover { background: rgba(224,165,38,.28); }

/* ---------- Gold Star 1976 season journey (gold-star-1976.html, gs76.js) ---------- */
.gs-intro { padding: 18px 40px 8px; }
.gs-intro .kicker { font: 700 12px/1 Arial, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }
.gs-intro h1 { font-size: 40px; line-height: 1.05; margin: 0 0 10px; color: var(--navy); }
.gs-intro .lead { font-size: 17px; color: var(--soft); max-width: 780px; }
.gs { margin: 6px 40px 30px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.gs-bar { display: none; }
.gs.ready .gs-bar { display: flex; align-items: center; gap: 8px; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 10px 10px 0 0; position: sticky; top: 46px; z-index: 30; }
.gs-btn { background: rgba(255,255,255,.14); color: #fff; border: 0; border-radius: 20px; padding: 8px 12px; font: 700 13px/1 Arial, sans-serif; cursor: pointer; white-space: nowrap; }
.gs-btn:hover { background: rgba(255,255,255,.28); }
.gs-btn.gs-play { background: var(--red); min-width: 84px; }
.gs:not(.playing) .gs-btn.gs-play { animation: gsPulse 2.2s ease-in-out infinite; }
@keyframes gsPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(215,38,47,.6); } 50% { box-shadow: 0 0 0 7px rgba(215,38,47,0); } }
.gs-now { flex: 1; min-width: 0; padding-left: 8px; }
.gs-now b { display: block; font: 700 10.5px/1.2 Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #b9cbc3; }
.gs-now span { font: 700 17px/1.3 Arial, sans-serif; }
.gs-now em.r { font: 700 11px/1 Arial, sans-serif; font-style: normal; background: rgba(255,255,255,.18); padding: 3px 7px; border-radius: 10px; margin-left: 6px; vertical-align: 2px; }
.gs-now em.r.w { background: var(--gold); color: #1b1d22; }
.gs-tally { display: flex; gap: 14px; }
.gs-tally div { text-align: center; min-width: 46px; }
.gs-tally b { display: block; font: 700 22px/1 Arial, sans-serif; color: var(--gold); }
.gs-tally b.pop { animation: gsPop .6s ease; }
@keyframes gsPop { 40% { transform: scale(1.6); color: #fff; } }
.gs-tally span { font: 700 9.5px/1 Arial, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #b9cbc3; }
.gs-prog { height: 3px; background: #dde3df; }
.gs-prog i { display: block; height: 100%; width: 0; background: var(--red); }
.gs-stage { padding: 20px 22px; }
.gs.ready .gs-stage { display: flex; gap: 24px; min-height: 640px; }
.gs-side { display: none; }
.gs.ready .gs-side { display: block; width: 360px; flex: none; }
.gs-map { height: 250px; border-radius: 6px; background: #dfe7e2; border: 1px solid var(--line); z-index: 0; }
.gs-map.off { display: none; }
.gs-media figure, .gs-m figure { margin: 12px 0 0; }
.gs-media img, .gs-m img { width: 100%; height: auto; border-radius: 3px; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.gs-media figcaption, .gs-m figcaption { font-size: 12.5px; line-height: 1.4; color: var(--soft); margin-top: 5px; }
.gs-media.in { animation: gsIn .6s ease; }
.gs-media .gs-m { display: flex; flex-wrap: wrap; gap: 0 12px; }
.gs-media .gs-m figure { flex: 1 1 100%; }
.gs-champ .gs-m figure, .gs-media .gs-m figure[style*="width:170px"], .gs-media .gs-m figure[style*="width:200px"] { flex: 0 0 auto; }
.gs-steps { flex: 1; min-width: 0; }
.gs-step { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.gs.ready .gs-step { display: none; border: 0; margin: 0; }
.gs.ready .gs-step.on { display: block; animation: gsIn .5s ease; }
@keyframes gsIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.gs-step .when { font: 700 11.5px/1.4 Arial, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--red); margin-bottom: 6px; }
.gs-step h2 { font-size: 26px; margin-bottom: 10px; }
.gs-step p { font-size: 15px; }
.gs-step .src { font-size: 12.5px; color: var(--soft); margin-top: 10px; }
.gs-note { font-size: 13px !important; color: var(--soft); font-style: italic; }
.gs-sub { font-size: 15px; text-transform: uppercase; letter-spacing: .08em; margin: 14px 0 8px; }
.gs-field { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; }
.gs-field li { margin: 0; padding: 7px 10px; background: var(--paper); border-left: 3px solid var(--navy); border-radius: 3px; font-size: 13.5px; line-height: 1.3; }
.gs-field li b { display: block; font-size: 14.5px; }
.gs-field li span { color: var(--soft); }
.gs-field li.me { border-left-color: var(--red); background: #fff4e0; }
.gs-field li.ni { border-left-color: #4f6d8f; }
.gs.ready .gs-step .gs-m { display: none; }
.gs-step .gs-m { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.gs-res { width: 100%; border-collapse: collapse; font-size: 14px; margin: 6px 0 10px; }
.gs-res th { text-align: left; font: 700 10.5px/1 Arial, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); padding: 6px 8px; border-bottom: 2px solid var(--navy); }
.gs-res td { padding: 6px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.gs-res td:nth-child(3) { white-space: normal; color: var(--soft); }
.gs-res tr.me td { background: #fff4e0; font-weight: 700; }
.gs-res tr.me td:first-child { box-shadow: inset 3px 0 0 var(--red); }
.gs-res td em { font: 700 10px/1 Arial, sans-serif; font-style: normal; text-transform: uppercase; letter-spacing: .06em; color: #fff; background: var(--red); padding: 2px 5px; border-radius: 8px; margin-left: 4px; vertical-align: 1px; }
.gs-res .gap-h { width: 112px; }
.gs-gap { width: 112px; font-size: 12px; color: var(--soft); }
.gs-gap i { display: inline-block; vertical-align: middle; height: 7px; width: 0; max-width: 62px; background: #b8c3bd; border-radius: 4px; margin-right: 6px; transition: width .9s cubic-bezier(.2,.7,.2,1) var(--d, 0ms); }
.gs-step.go .gs-gap i { width: calc(var(--w) * .62px); }
.gs-gap .lead { color: var(--navy); font-weight: 700; }
.gs.ready .gs-step.on .gs-res tbody tr { opacity: 0; animation: gsRow .4s ease forwards; animation-delay: calc(var(--i, 0) * 90ms + 150ms); }
@keyframes gsRow { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
.gs-pts { margin: 14px 0; padding: 12px 14px; background: var(--paper); border-radius: 6px; }
.gs-pts-t { font: 700 11px/1 Arial, sans-serif !important; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); margin-bottom: 10px !important; }
.gs-pts > div { display: grid; grid-template-columns: 190px 1fr 36px; align-items: center; gap: 10px; font-size: 13.5px; padding: 3px 0; }
.gs-pts > div b { display: block; line-height: 1.2; }
.gs-pts > div span { display: block; grid-column: 1; font-size: 11.5px; color: var(--soft); line-height: 1.2; }
.gs-pts > div b, .gs-pts > div span { grid-column: 1; }
.gs-pts > div .bar { grid-column: 2; grid-row: 1 / span 2; height: 12px; background: #e6e9e6; border-radius: 6px; overflow: hidden; }
.gs-pts > div .bar i { display: block; height: 100%; width: 0; background: var(--navy); border-radius: 6px; transition: width 1s cubic-bezier(.2,.7,.2,1) var(--d, 0ms); }
.gs-pts > div.ni .bar i { background: #4f6d8f; }
.gs-pts > div.me .bar i { background: var(--red); }
.gs-pts > div em { grid-column: 3; grid-row: 1 / span 2; font: 700 14px/1 Arial, sans-serif; font-style: normal; text-align: right; }
.gs-step.go .gs-pts .bar i, .gs:not(.ready) .gs-pts .bar i { width: var(--w); }
.gs:not(.ready) .gs-gap i { width: calc(var(--w) * .62px); }
.gs-final { list-style: none; padding: 0; counter-reset: f; margin: 12px 0; }
.gs-final li { counter-increment: f; display: flex; align-items: baseline; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: 15px; }
.gs-final li::before { content: counter(f); font: 700 18px/1 Arial, sans-serif; color: var(--soft); width: 22px; }
.gs-final li span { color: var(--soft); font-size: 13px; }
.gs-final li.me { background: linear-gradient(90deg, #fbe7a9, #fff6dc 70%); border-radius: 4px; font-size: 17px; }
.gs-final li.me::before { content: "★"; color: #b47d00; }
.gs.ready .gs-champ.on h2 { animation: gsChamp 1.2s ease; color: #9a6a00; }
@keyframes gsChamp { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: none; } }
.gs.champ .gs-bar { background: linear-gradient(90deg, var(--navy), #3d5a1e 60%, #9a6a00); }
/* scrubber */
.gs-track { display: none; }
.gs.ready .gs-track { display: flex; list-style: none; margin: 0; padding: 16px 12px 18px; border-top: 1px solid var(--line); position: relative; background: var(--paper); border-radius: 0 0 10px 10px; }
.gs-track::before { content: ""; position: absolute; left: 50px; right: 50px; top: 25px; height: 3px; background: #d4dad6; border-radius: 2px; }
.gs-track .gs-fill { position: absolute; top: 25px; height: 3px; background: var(--red); border-radius: 2px; transition: width .7s ease; margin: 0; padding: 0; }
.gs-track li.t { flex: 1; margin: 0; text-align: center; position: relative; }
.gs-track button { background: none; border: 0; cursor: pointer; padding: 0 2px; font: inherit; color: var(--ink); width: 100%; }
.gs-track button i { display: block; width: 14px; height: 14px; margin: 3px auto 6px; border-radius: 50%; background: #fff; border: 3px solid #b8c3bd; transition: transform .3s, background .3s, border-color .3s; }
.gs-track li.done button i { border-color: var(--navy); background: var(--navy); }
.gs-track li.done.win button i, .gs-track li.on.win button i { border-color: #b47d00; background: var(--gold); }
.gs-track li.on button i { border-color: var(--red); transform: scale(1.45); box-shadow: 0 0 0 4px rgba(215,38,47,.18); }
.gs-track li.champ button i { border-color: #b47d00; }
.gs-track b { display: block; font: 700 11px/1.2 Arial, sans-serif; }
.gs-track span { display: block; font-size: 10.5px; color: var(--soft); }
.gs-track li.on b { color: var(--red); }
.gs-track button:hover b { text-decoration: underline; }
/* map pins */
.gs-pin i { display: block; width: 14px; height: 14px; border-radius: 50%; background: var(--navy); border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.45); }
.gs-pin.win i { background: var(--gold); }
.gs-pin.home i { background: #fff; border-color: var(--navy); }
.gs-pin.ni i { background: #4f6d8f; }
.gs-pin.cur i { background: var(--red); animation: gsPin 1.6s ease-out infinite; }
@keyframes gsPin { 0% { box-shadow: 0 0 0 0 rgba(215,38,47,.7); } 100% { box-shadow: 0 0 0 14px rgba(215,38,47,0); } }
.gs-cta { margin: 0 40px 24px; }

/* big play prompt over the journey panel */
.gs-stage { position: relative; }
.gs-cue { position: absolute; inset: 0; z-index: 500; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: rgba(23,53,42,.95); color: #fff; border-radius: 0; padding: 30px 60px; animation: gsIn .5s ease; }
.gs-cue.out { opacity: 0; transition: opacity .35s; }
.gs-cue-play { width: 150px; height: 150px; border-radius: 50%; border: 6px solid #fff; background: var(--red); color: #fff; cursor: pointer;
  font-size: 64px; line-height: 1; display: flex; align-items: center; justify-content: center; padding-left: 12px; box-shadow: 0 6px 24px rgba(0,0,0,.4);
  animation: gsBig 1.8s ease-in-out infinite; }
.gs-cue-play:hover { transform: scale(1.06); }
@keyframes gsBig { 0%,100% { box-shadow: 0 0 0 0 rgba(215,38,47,.7), 0 6px 24px rgba(0,0,0,.4); } 50% { box-shadow: 0 0 0 26px rgba(215,38,47,0), 0 6px 24px rgba(0,0,0,.4); } }
.gs-cue-h { font: 700 32px/1.2 Arial, sans-serif; margin: 26px 0 10px; }
.gs-cue-p { font-size: 19px; line-height: 1.5; max-width: 560px; color: #dfe9e4; margin-bottom: 22px; }
.gs-cue-go { background: var(--gold); color: #1b1d22; border: 0; border-radius: 40px; padding: 18px 36px; font: 700 22px/1 Arial, sans-serif; cursor: pointer; box-shadow: 0 3px 10px rgba(0,0,0,.3); }
.gs-cue-go:hover { background: #fff; }
.gs-cue-skip { margin-top: 18px; background: none; border: 0; color: #fff; text-decoration: underline; font-size: 17px; cursor: pointer; }
.gs-cue-x { position: absolute; top: 12px; right: 16px; background: none; border: 0; color: #fff; font-size: 40px; line-height: 1; cursor: pointer; }
/* bigger Play in the control bar too */
.gs-btn { padding: 11px 16px; font-size: 15px; }
.gs-btn.gs-play { min-width: 128px; font-size: 18px; padding: 13px 22px; border: 2px solid #fff; }

/* autoplay countdown ring */
.gs-cue-play { position: relative; }
.gs-ring { position: absolute; inset: -14px; width: calc(100% + 28px); height: calc(100% + 28px); transform: rotate(-90deg); pointer-events: none; }
.gs-ring circle { fill: none; stroke: var(--gold); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 289; stroke-dashoffset: 289; }
.gs-cue.counting .gs-ring circle { animation: gsRing 5s linear forwards; }
@keyframes gsRing { to { stroke-dashoffset: 0; } }
.gs-cue-count { font-size: 20px; color: #fff; margin: 22px 0 0; }
.gs-cue-count b { display: inline-block; min-width: 1.1em; font-size: 30px; color: var(--gold); vertical-align: -3px; }
.gs-cue-count + .gs-cue-h { margin-top: 10px; }
