/* =========================================================
   Stroll Toll — F1 pit-wall / broadcast aesthetic
   Aston Martin racing green on near-black.
   ========================================================= */

:root {
  --green-deep: #00352F;
  --green: #037A68;
  --green-bright: #14c9a8;
  --bg: #05100e;
  --bg-2: #0b1210;
  --panel: #0f1a17;
  --ink: #f4f6f5;
  --ink-dim: #a9b8b3;
  --line: #1e2c28;
  --amber: #b8860b;
  --red: #ff4d4d;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, "Courier New", monospace;
  --wrap: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.mono { font-family: var(--font-mono); letter-spacing: 0.02em; }

a { color: var(--green-bright); }
a:hover { color: var(--ink); }

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

h1, h2, h3 { line-height: 1.05; margin: 0; letter-spacing: -0.01em; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--green-bright); color: #001a16; padding: 0.6rem 1rem;
  font-weight: 700; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

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

/* ---------- Broadcast top bar ---------- */
.broadcastbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 0.75rem;
  background: linear-gradient(90deg, var(--green-deep), #021b17);
  border-bottom: 1px solid var(--green);
  padding: 0.4rem 0.85rem;
  font-size: 0.72rem;
}
.broadcastbar .live { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 800; letter-spacing: 0.14em; color: var(--ink); }
.broadcastbar .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 8px var(--red); animation: pulse 1.6s infinite; }
.broadcastbar .ticker { color: var(--ink-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.broadcastbar .lap { color: var(--green-bright); font-weight: 700; white-space: nowrap; }

@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }

/* ---------- Breaking-news banner (the one intentionally-red element) ----------
   Contained red alert box sitting in the normal content column, between the
   hero and the Toll Counter. Aligns with the section content width below it. */
.breaking {
  --f1-red: #e10600;
  max-width: var(--wrap);
  margin: clamp(1.6rem, 4vw, 2.75rem) auto;
  padding: 0 1.1rem;
}
.breaking__box {
  background:
    radial-gradient(620px 260px at 0% 0%, rgba(225,6,0,0.5), transparent 66%),
    linear-gradient(180deg, #3a0a0c, #26080a);
  border: 2px solid var(--f1-red);
  border-radius: 12px;
  padding: clamp(1.1rem, 3vw, 1.6rem) clamp(1.1rem, 3vw, 1.6rem) clamp(0.9rem, 2.4vw, 1.25rem);
  box-shadow: 0 10px 34px rgba(225,6,0,0.18);
}
.breaking__top { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.8rem; margin-bottom: 0.75rem; }
.breaking__tag {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: var(--f1-red); color: #fff; font-weight: 900;
  font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 0.3rem 0.65rem; border-radius: 4px;
}
.breaking__dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px #fff; animation: breakpulse 1.4s infinite; }
.breaking__date { color: #ffc2bf; font-size: 0.75rem; letter-spacing: 0.14em; font-weight: 700; text-transform: uppercase; }
.breaking__headline {
  margin: 0; color: #fff; font-weight: 900; letter-spacing: -0.01em; line-height: 1.16;
  font-size: clamp(1.25rem, 3.4vw, 1.9rem); max-width: 34ch;
}
.breaking__headline strong { color: #fff; }
.breaking__hl { color: #ff8a86; text-shadow: 0 0 18px rgba(255,77,77,0.45); white-space: nowrap; }
.breaking__support { margin: 0.8rem 0 0; color: var(--ink); font-size: clamp(0.92rem, 1.8vw, 1.02rem); max-width: 72ch; }
.breaking__support strong { color: #fff; }
.breaking__burn {
  margin: 0.8rem 0 0; padding: 0.75rem 0.95rem; max-width: 74ch;
  border-left: 3px solid var(--f1-red); border-radius: 0 8px 8px 0;
  background: rgba(0,0,0,0.32); color: var(--ink); font-size: clamp(0.9rem, 1.7vw, 1rem);
}
.breaking__burn strong { color: #ffd7d5; }
.breaking__src {
  display: inline-block; color: var(--green-bright); text-decoration: none;
  font-size: 0.72rem; letter-spacing: 0.05em; white-space: nowrap; margin-left: 0.6rem;
}
.breaking__src:hover { text-decoration: underline; color: var(--ink); }

/* Single-line marquee ticker; separators + spacing rendered via ::before */
.breaking__ticker { margin-top: 0.95rem; overflow: hidden; border-top: 1px solid rgba(225,6,0,0.4); padding-top: 0.6rem; }
.breaking__ticker-track { display: inline-block; white-space: nowrap; will-change: transform; animation: breakticker 32s linear infinite; }
.breaking__ticker-track span { display: inline; color: #ffb9b6; font-size: 0.74rem; letter-spacing: 0.06em; }
.breaking__ticker-track span::before { content: "▸"; color: var(--f1-red); margin: 0 0.55rem; }

@keyframes breakpulse { 0%,100% { opacity: 1; } 50% { opacity: 0.2; } }
@keyframes breakticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Layout ---------- */
.section { max-width: var(--wrap); margin: 0 auto; padding: clamp(3rem, 7vw, 5.5rem) 1.1rem; }
.section__head { margin-bottom: 2rem; }
.eyebrow { color: var(--green-bright); font-size: 0.78rem; letter-spacing: 0.16em; margin: 0 0 0.5rem; text-transform: uppercase; }
h2 { font-size: clamp(1.9rem, 5vw, 3rem); font-weight: 800; }
.lede { color: var(--ink-dim); max-width: 62ch; margin: 0.9rem 0 0; font-size: 1.02rem; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(3,122,104,0.35), transparent 60%),
    linear-gradient(180deg, var(--green-deep), var(--bg) 90%);
  border-bottom: 1px solid var(--line);
}
.hero__inner {
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(2rem, 6vw, 4.5rem) 1.1rem clamp(2.5rem, 6vw, 4rem);
  display: grid; gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: 1fr;
  align-items: center;
}
.hero__photo { margin: 0; position: relative; }
.hero__photo img {
  width: 100%; border-radius: 14px;
  border: 2px solid var(--green);
  box-shadow: 0 18px 50px rgba(0,0,0,0.55), inset 0 0 0 6px rgba(0,0,0,0.2);
  aspect-ratio: 3 / 2; object-fit: cover;
}
.hero__photo figcaption {
  position: absolute; left: 12px; bottom: 12px;
  background: rgba(0,0,0,0.72); color: var(--green-bright);
  padding: 0.3rem 0.6rem; font-size: 0.68rem; letter-spacing: 0.14em; border-radius: 5px;
  border-left: 3px solid var(--green-bright);
}
.kicker { color: var(--green-bright); font-size: 0.8rem; letter-spacing: 0.08em; margin: 0 0 0.85rem; text-transform: uppercase; }
h1 { font-size: clamp(2.6rem, 9vw, 5.2rem); font-weight: 900; letter-spacing: -0.02em; }
h1 .hl { color: var(--green-bright); text-shadow: 0 0 30px rgba(20,201,168,0.35); }
.subhead { font-size: clamp(1.05rem, 2.4vw, 1.35rem); color: var(--ink); margin: 1.1rem 0 0; max-width: 40ch; }
.hero__credit { color: var(--ink-dim); font-style: italic; font-size: 0.9rem; margin: 0.7rem 0 0; }
.hero__nav { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.6rem; }
.hero__nav a {
  text-decoration: none; font-size: 0.82rem; font-weight: 600;
  padding: 0.45rem 0.85rem; border: 1px solid var(--green);
  border-radius: 999px; color: var(--ink); background: rgba(3,122,104,0.12);
}
.hero__nav a:hover { background: var(--green); color: #001a16; }

@media (min-width: 780px) {
  .hero__inner { grid-template-columns: 1fr 1.05fr; }
  .hero__copy { order: 2; }
  .hero__photo { order: 1; }
}

/* ---------- Toll counter ---------- */
.statgrid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.stat {
  background: var(--panel); border: 1px solid var(--line);
  border-top: 3px solid var(--green);
  border-radius: 12px; padding: 1.4rem 1.3rem 1.2rem;
}
.stat--satire { border-top-color: var(--amber); }
.stat--drought { border-top-color: var(--red); }
.stat__num { font-size: clamp(2.8rem, 7vw, 4rem); font-weight: 800; line-height: 1; color: var(--green-bright); margin: 0; font-variant-numeric: tabular-nums; }
.stat--satire .stat__num { color: var(--amber); }
.stat--drought .stat__num { color: var(--red); }
.stat__label { margin: 0.7rem 0 0.9rem; color: var(--ink); font-size: 0.98rem; }
.stat__tag { display: inline-block; font-size: 0.66rem; letter-spacing: 0.12em; padding: 0.25rem 0.5rem; border-radius: 4px; }
.stat__tag--real { background: rgba(3,122,104,0.2); color: var(--green-bright); border: 1px solid var(--green); }
.stat__note { margin: 0.7rem 0 0; font-size: 0.8rem; }
.stat__note a { text-decoration: none; }

/* ---------- Radio cards ---------- */
.radiogrid {
  display: grid; gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.radiocard { margin: 0; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 0.7rem 0.7rem 0.55rem; }
.radiocard svg { width: 100%; height: auto; display: block; border-radius: 8px; }
.radiocard figcaption { margin-top: 0.5rem; font-size: 0.78rem; }
.radiocard figcaption a { text-decoration: none; }
.radiocard figcaption a:hover { text-decoration: underline; }
.radiocard--behavior { border-color: rgba(184,134,11,0.4); }

/* Parody / dramatization card — deliberately distinct from the real cards */
.radiocard__parody-cap { margin-top: 0.5rem; font-size: 0.78rem; color: var(--ink-dim); }
.svg-role { font-family: var(--font-mono); font-weight: 700; fill: var(--green-bright); }

/* SVG broadcast text */
.svg-tag { font-family: var(--font-sans); font-weight: 800; font-size: 18px; fill: #fff; letter-spacing: 1px; }
.svg-meta { font-family: var(--font-mono); font-size: 12px; fill: #cfe0db; letter-spacing: 1px; }
.svg-quote { font-family: var(--font-sans); font-weight: 700; font-size: 26px; fill: #fff; }
.svg-quote--sm { font-size: 19px; }
.svg-src { font-family: var(--font-mono); font-size: 11px; fill: #7fb8ac; letter-spacing: 0.5px; }

/* ---------- Crash timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.crash {
  background: var(--panel); border: 1px solid var(--line);
  border-left: 4px solid var(--green); border-radius: 10px; padding: 1.1rem 1.2rem;
}
.crash__meta { display: flex; align-items: baseline; gap: 0.6rem; font-size: 0.72rem; color: var(--ink-dim); margin-bottom: 0.6rem; letter-spacing: 0.08em; }
.crash__no { color: var(--green-bright); font-weight: 800; font-size: 1.05rem; }
.crash__date { color: var(--ink-dim); }
.crash__desc { margin: 0 0 0.7rem; font-size: 0.95rem; }
.crash__caption { margin: 0 0 0.8rem; color: var(--green-bright); font-style: italic; font-size: 0.95rem; }
.crash__src { font-size: 0.74rem; text-decoration: none; letter-spacing: 0.05em; }
.crash__src:hover { text-decoration: underline; }

/* ---------- Org chart ---------- */
.orgchart { display: grid; gap: 0.4rem; justify-items: center; text-align: center; }
.org__node {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 10px; padding: 1rem 1.2rem; width: 100%; max-width: 520px;
}
.org__title { margin: 0; font-weight: 800; font-size: 1.15rem; }
.org__sub { margin: 0.4rem 0 0; color: var(--ink-dim); font-size: 0.76rem; line-height: 1.5; }
.org__node--boss { border-color: var(--green-bright); border-top: 3px solid var(--green-bright); }
.org__node--boss .org__title { color: var(--green-bright); }
.org__node--team { border-color: var(--green); }
.org__link { color: var(--ink-dim); font-size: 0.72rem; letter-spacing: 0.14em; padding: 0.15rem 0; }
.org__link--dotted { color: var(--amber); border-top: 2px dashed var(--amber); border-bottom: 2px dashed var(--amber); padding: 0.5rem 0.8rem; margin: 0.3rem 0; max-width: 520px; }
.org__row { display: grid; gap: 0.8rem; width: 100%; max-width: 520px; grid-template-columns: 1fr; }
.org__node--merit { border-left: 3px solid var(--green); }
.org__node--lance { border-left: 3px solid var(--amber); position: relative; }
.org__node--lance .org__title { color: var(--amber); }
.org__loopnote { margin: 0.5rem 0 0; color: var(--amber); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; }
.org__node--joe { border: 1px dashed var(--green-bright); background: rgba(20,201,168,0.06); }
.org__node--joe .org__title { color: var(--green-bright); }
.seat__foot { color: var(--ink-dim); font-size: 0.74rem; margin-top: 1.4rem; text-align: center; }

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

/* ---------- Fair's fair ---------- */
.faircards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.faircard { background: linear-gradient(160deg, rgba(3,122,104,0.14), var(--panel)); border: 1px solid var(--green); border-radius: 12px; padding: 1.3rem; }
.faircard__year { color: var(--green-bright); font-size: 1.4rem; font-weight: 800; margin: 0 0 0.5rem; }
.faircard__body { margin: 0; font-size: 0.98rem; }
.fair__take {
  margin: 2rem 0 0; padding: 1.4rem 1.6rem; border-left: 4px solid var(--amber);
  background: var(--panel); border-radius: 0 12px 12px 0;
}
.fair__take-body {
  margin: 0; font-size: clamp(1.1rem, 2.6vw, 1.5rem);
  font-weight: 600; color: var(--ink); font-style: italic;
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--green); background: linear-gradient(180deg, var(--bg), #021411); }
.footer > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; padding-left: 1.1rem; padding-right: 1.1rem; }
.footer__shrine { padding-top: clamp(2.5rem, 6vw, 4rem); text-align: center; }
.footer__shrine h2 { color: var(--green-bright); font-size: 1.3rem; letter-spacing: 0.1em; }
.footer__love { font-size: 1.15rem; margin: 0.8rem 0 0.4rem; }
.footer__wink { color: var(--ink-dim); max-width: 46ch; margin: 0.4rem auto 0; }
.footer__disclaimer { margin-top: 2.5rem; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 1.3rem 1.4rem; }
.footer__disclaimer-h { color: var(--amber); font-size: 0.74rem; letter-spacing: 0.16em; margin: 0 0 0.6rem; }
.footer__disclaimer p:last-child { margin: 0; color: var(--ink-dim); font-size: 0.86rem; }
.footer__credit { text-align: center; color: var(--ink-dim); font-size: 0.85rem; font-style: italic; margin: 1.4rem auto 0; max-width: 52ch; }
.footer__legal { text-align: center; color: var(--ink-dim); font-size: 0.74rem; padding-top: 1.6rem; padding-bottom: 2.5rem; }
.footer__legal a { text-decoration: none; }

/* ---------- Count-up entrance ---------- */
.stat__num { transition: opacity 0.3s ease; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .broadcastbar .dot { animation: none; }
  .breaking__dot { animation: none; }
  .breaking__ticker-track { animation: none; transform: none; }
  * { scroll-behavior: auto !important; }
}
