/* ============================================================
   OGOPOGO EXTREME — 2027 Race Manual
   Layout system built on the design-system tokens.
   ============================================================ */

* { box-sizing: border-box; }

/* ============================================================
   NAVIGATION CHROME
   ============================================================ */
.hdr {
  position: sticky; top: 0; z-index: var(--z-sticky);
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-3);
  padding: 0 var(--space-3) 0 var(--space-3);
  padding-top: env(safe-area-inset-top);
  background: rgba(13,18,15,0.86);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.hdr__brand { display: flex; align-items: center; gap: var(--space-2); color: inherit; min-width: 0; }
.hdr__mark { width: 30px; height: 30px; object-fit: contain; flex: none; }
.hdr__wm { display: flex; flex-direction: column; line-height: 1; min-width: 0; }
.hdr__wm-top {
  font-family: var(--font-body); font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.04em; font-size: 9.5px; color: var(--green-400);
}
.hdr__wm-bot {
  font-family: var(--font-display); font-weight: 900; font-style: italic; text-transform: uppercase;
  letter-spacing: var(--tracking-tight); font-size: 14px; color: var(--bone); margin-top: 2px;
}
.hdr__menu {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  background: transparent; border: 1px solid var(--border-strong); color: var(--bone);
  border-radius: var(--radius-md); padding: 8px 13px; cursor: pointer;
  font-family: var(--font-body); font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.06em; font-size: 11px;
}
.hdr__menu:hover { background: var(--surface-raised); }

.progress {
  position: absolute; left: 0; bottom: -1px; height: 2px;
  background: var(--red-600); transition: width 80ms linear; max-width: 100%;
}

/* scrim shared by drawer + sheet */
.scrim {
  position: fixed; inset: 0; z-index: var(--z-overlay);
  background: rgba(8,11,9,0.6); opacity: 0; pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out);
}
.scrim.is-open { opacity: 1; pointer-events: auto; }

/* drawer */
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 1010;
  width: min(86vw, 360px);
  background: var(--ink-900); border-left: 1px solid var(--border);
  transform: translateX(100%);
  transition: transform var(--dur-slow) var(--ease-out);
  display: flex; flex-direction: column;
}
.drawer.is-open { transform: translateX(0); }
.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-4); padding-top: max(var(--space-4), env(safe-area-inset-top));
  border-bottom: 1px solid var(--border); flex: none;
}
.drawer__title {
  font-family: var(--font-display); font-weight: 900; font-style: italic; text-transform: uppercase;
  letter-spacing: var(--tracking-tight); color: var(--bone); font-size: var(--text-lg);
}
.drawer__close, .esheet__close {
  width: 40px; height: 40px; border-radius: var(--radius-md); border: 1px solid var(--border);
  background: var(--ink-800); color: var(--bone); display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.drawer__scroll { overflow-y: auto; padding: var(--space-3) 0 var(--space-7); -webkit-overflow-scrolling: touch; }
.drawer__group { margin-bottom: var(--space-4); }
.drawer__glabel {
  font-family: var(--font-body); font-weight: 800; text-transform: uppercase;
  letter-spacing: var(--tracking-label); font-size: 10px; color: var(--green-400);
  padding: var(--space-2) var(--space-4); margin-top: var(--space-2);
}
.drawer__list { list-style: none; margin: 0; padding: 0; }
.drawer__link {
  display: flex; align-items: center; gap: var(--space-3);
  padding: 11px var(--space-4); color: var(--text-body); font-size: var(--text-base);
  border-left: 3px solid transparent;
}
.drawer__link:hover { background: var(--surface-raised); color: var(--bone); }
.drawer__link.is-active { border-left-color: var(--red-600); color: var(--bone); background: rgba(209,18,18,0.07); }
.drawer__num { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); min-width: 18px; }
.drawer__link.is-active .drawer__num { color: var(--red-400); }
.drawer__foot {
  display: flex; align-items: center; gap: var(--space-3); padding: var(--space-5) var(--space-4) 0;
  margin-top: var(--space-3); border-top: 1px solid var(--border); padding-top: var(--space-4);
}
.drawer__foot img { width: 44px; height: 44px; opacity: 0.85; }
.drawer__foot p { margin: 0; font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); line-height: 1.5; }

/* emergency fab */
.efab {
  position: fixed; right: var(--space-4); z-index: 1005;
  bottom: max(var(--space-4), env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red-600); color: #fff; border: none; cursor: pointer;
  border-radius: var(--radius-pill); padding: 12px 18px;
  font-family: var(--font-body); font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; font-size: 12px;
  box-shadow: var(--glow-red);
}
.efab:hover { background: var(--red-500); }
.efab:active { transform: translateY(1px); }

/* back to top */
.totop {
  position: fixed; left: var(--space-4); z-index: 1004;
  bottom: max(var(--space-4), env(safe-area-inset-bottom));
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink-800); border: 1px solid var(--border-strong); color: var(--bone);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.totop:hover { background: var(--ink-700); }

/* emergency sheet */
.esheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1100;
  background: var(--ink-850); border-top: 3px solid var(--red-600);
  border-top-left-radius: var(--radius-xl); border-top-right-radius: var(--radius-xl);
  padding: var(--space-3) var(--space-5) calc(var(--space-6) + env(safe-area-inset-bottom));
  max-width: 760px; margin: 0 auto;
  transform: translateY(110%);
  transition: transform var(--dur-slow) var(--ease-out);
  max-height: 88vh; overflow-y: auto;
}
.esheet.is-open { transform: translateY(0); }
.esheet__grab { width: 40px; height: 4px; border-radius: 2px; background: var(--ink-500); margin: 4px auto var(--space-3); }
.esheet__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-4); }
.esheet__eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-body); font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.1em; font-size: 11px; color: var(--red-300);
}
.ecall {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--red-600); color: #fff; border-radius: var(--radius-lg);
  padding: var(--space-4); margin-bottom: var(--space-3);
}
.ecall:hover { background: var(--red-500); color: #fff; }
.ecall__big { font-family: var(--font-impact); font-size: 52px; line-height: 0.9; letter-spacing: 0.02em; }
.ecall__sub { font-family: var(--font-body); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 11px; margin-top: 4px; opacity: 0.92; }
.esheet__note { font-size: var(--text-sm); color: var(--text-muted); margin: 0 0 var(--space-4); line-height: 1.55; }
.erow {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  padding: var(--space-3) var(--space-4); background: var(--surface-card);
  border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: var(--space-2);
}
.erow__k { font-family: var(--font-body); font-size: var(--text-sm); color: var(--text-muted); font-weight: 600; }
.erow__v { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--bone); display: inline-flex; align-items: center; gap: 6px; }
.erow--link:hover { border-color: var(--border-strong); }
.erow--link:hover .erow__v { color: var(--green-300); }
.esheet__more {
  width: 100%; margin-top: var(--space-3); background: transparent; cursor: pointer;
  border: 1px solid var(--border-strong); border-radius: var(--radius-md); color: var(--bone);
  font-family: var(--font-body); font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; font-size: 12px;
  padding: 13px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.esheet__more:hover { background: var(--surface-raised); }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--selection); }

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

a { color: var(--green-300); text-decoration: none; }
a:hover { color: var(--green-200); }

/* anchor offset so sticky header doesn't cover section tops */
:root { --header-h: 56px; }
.section { scroll-margin-top: calc(var(--header-h) + 12px); }

/* ----------------------------------------------------------------
   Hero
---------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(8,11,9,0.55) 0%, rgba(8,11,9,0.42) 30%, rgba(8,11,9,0.66) 60%, rgba(8,11,9,0.90) 82%, rgba(8,11,9,0.99) 100%);
}
.hero__inner {
  max-width: 760px; margin: 0 auto;
  min-height: calc(100svh - var(--header-h));
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--space-9) var(--space-4) var(--space-6);
}
.hero__logo { width: 132px; height: auto; margin-bottom: var(--space-5); filter: drop-shadow(0 6px 22px rgba(0,0,0,0.5)); }
.hero__eyebrow {
  font-family: var(--font-mono); font-weight: 600; font-size: var(--text-xs);
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--bone-300); margin-bottom: var(--space-3);
}
.hero__title {
  font-family: var(--font-display); font-weight: 900; font-style: italic; text-transform: uppercase;
  line-height: 0.9; letter-spacing: var(--tracking-tighter); color: var(--bone);
  font-size: clamp(3.2rem, 16vw, 5.5rem); margin: 0 0 var(--space-4);
  text-shadow: 0 4px 30px rgba(0,0,0,0.45);
}
.hero__tag { color: var(--text-body); font-size: var(--text-md); max-width: 54ch; margin: 0 0 var(--space-5); line-height: 1.5; }
.hero__races { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-5); }
.hero__race {
  display: flex; flex-direction: column; gap: 2px; padding: 9px 13px;
  background: rgba(22,29,24,0.7); border: 1px solid var(--border-strong); border-radius: var(--radius-md);
  backdrop-filter: blur(4px);
}
.hero__race b { font-family: var(--font-display); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 13px; color: var(--bone); letter-spacing: -0.01em; }
.hero__race span { font-family: var(--font-mono); font-size: 11px; color: var(--green-400); }
.hero__facts { display: grid; gap: var(--space-3); margin-bottom: var(--space-6); }
@media (min-width: 520px) { .hero__facts { grid-template-columns: repeat(3, 1fr); } }
.hero__fact { display: flex; align-items: center; gap: 10px; color: var(--bone); }
.hero__fact svg { color: var(--red-500); flex: none; }
.hero__fact span { display: block; font-family: var(--font-body); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); font-weight: 700; }
.hero__fact b { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--bone); font-weight: 600; }
.hero__cue { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: var(--text-xs); font-family: var(--font-mono); }
.hero__cue svg { color: var(--green-400); animation: bob 1.8s var(--ease-inout) infinite; }
.hero__cue b { color: var(--bone); font-weight: 600; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
@media (prefers-reduced-motion: reduce) { .hero__cue svg { animation: none; } }

/* ----------------------------------------------------------------
   Key things to know — numbered cards
---------------------------------------------------------------- */
.keygrid { display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-5); }
.keycard {
  display: flex; gap: var(--space-4); align-items: flex-start;
  background: var(--surface-card); border: 1px solid var(--border);
  border-left: 3px solid var(--green-500); border-radius: var(--radius-md);
  padding: var(--space-4);
}
.keycard__n {
  font-family: var(--font-impact); font-size: 34px; line-height: 0.8; color: var(--ink-500);
  flex: none; min-width: 44px;
}
.keycard__t {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: var(--tracking-tight);
  color: var(--bone); font-size: var(--text-md); margin: 2px 0 4px;
}
.keycard__d { margin: 0; color: var(--text-muted); font-size: var(--text-sm); }

/* ----------------------------------------------------------------
   App shell
---------------------------------------------------------------- */
.shell { max-width: 760px; margin: 0 auto; }

.section {
  padding: var(--space-7) var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--border);
}
.section:last-of-type { border-bottom: none; }
@media (min-width: 600px) {
  .section { padding: var(--space-8) var(--space-6) var(--space-7); }
}

/* group divider band */
.group-band {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-5) var(--space-4) var(--space-2);
  background: var(--ink-900);
  border-bottom: 1px solid var(--border);
}
.group-band__rule { flex: 1; height: 2px; background: var(--red-600); opacity: 0.55; }
.group-band__label {
  font-family: var(--font-body); font-weight: 800;
  font-size: var(--text-2xs); letter-spacing: var(--tracking-label);
  text-transform: uppercase; color: var(--bone-300);
}

/* ----------------------------------------------------------------
   Section header
---------------------------------------------------------------- */
.sh { margin-bottom: var(--space-5); }
.sh__eyebrow {
  display: flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-mono); font-weight: 600;
  font-size: var(--text-xs); letter-spacing: var(--tracking-wide);
  text-transform: uppercase; color: var(--green-400);
  margin-bottom: var(--space-3);
}
.sh__eyebrow .n { color: var(--red-500); }
.sh__title {
  font-family: var(--font-display); font-weight: 900; font-style: italic;
  text-transform: uppercase; line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight); color: var(--bone);
  font-size: clamp(1.85rem, 7vw, 2.6rem); margin: 0;
}
.sh__sub {
  margin-top: var(--space-3); color: var(--text-muted);
  font-size: var(--text-md); max-width: 60ch;
}

/* ----------------------------------------------------------------
   Prose
---------------------------------------------------------------- */
.prose p { margin: 0 0 var(--space-4); color: var(--text-body); }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--bone); font-weight: 700; }
.prose em.native {
  font-style: italic; color: var(--green-300);
  font-weight: 600;
}
.lead { font-size: var(--text-md); color: var(--text-body); }

/* ----------------------------------------------------------------
   Cards / panels
---------------------------------------------------------------- */
.panel {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}
.panel + .panel { margin-top: var(--space-4); }
.panel--green { border-top: 3px solid var(--green-500); }
.panel--red { border-top: 3px solid var(--red-600); }

.panel__title {
  font-family: var(--font-display); font-weight: 800;
  text-transform: uppercase; letter-spacing: var(--tracking-tight);
  color: var(--bone); font-size: var(--text-lg);
  margin: 0 0 var(--space-3);
}

/* ----------------------------------------------------------------
   Callouts
---------------------------------------------------------------- */
.callout {
  display: flex; gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface-raised);
  margin: var(--space-4) 0;
}
.callout__ico { flex: none; width: 22px; height: 22px; margin-top: 1px; }
.callout__ico svg { width: 100%; height: 100%; }
.callout__body { font-size: var(--text-base); }
.callout__body p { margin: 0; }
.callout__body p + p { margin-top: var(--space-2); }
.callout__title {
  font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em;
  font-size: var(--text-xs); margin-bottom: 4px; display: block;
}
.callout--warn { background: rgba(224,146,43,0.10); border-color: rgba(224,146,43,0.38); }
.callout--warn .callout__ico, .callout--warn .callout__title { color: #F0B566; }
.callout--danger { background: rgba(209,18,18,0.10); border-color: rgba(209,18,18,0.42); }
.callout--danger .callout__ico, .callout--danger .callout__title { color: var(--red-300); }
.callout--info { background: rgba(30,111,148,0.12); border-color: rgba(30,111,148,0.42); }
.callout--info .callout__ico, .callout--info .callout__title { color: #76B8D6; }
.callout--note { background: rgba(46,139,67,0.10); border-color: rgba(46,139,67,0.4); }
.callout--note .callout__ico, .callout--note .callout__title { color: var(--green-300); }

/* ----------------------------------------------------------------
   Fact list (mono label : value rows)
---------------------------------------------------------------- */
.facts { display: flex; flex-direction: column; gap: 1px; background: var(--border); border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); }
.fact {
  display: grid; grid-template-columns: 1fr auto; gap: var(--space-3);
  align-items: baseline; padding: var(--space-3) var(--space-4);
  background: var(--surface-card);
}
.fact__k { font-family: var(--font-body); color: var(--text-muted); font-size: var(--text-sm); font-weight: 600; }
.fact__v {
  font-family: var(--font-mono); color: var(--bone); font-weight: 600;
  font-size: var(--text-base); text-align: right; font-variant-numeric: tabular-nums;
}
.fact__v.accent { color: var(--red-400); }
.fact__v.green { color: var(--green-300); }

/* ----------------------------------------------------------------
   Bullet lists
---------------------------------------------------------------- */
.blist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.blist > li {
  position: relative; padding-left: var(--space-5);
  color: var(--text-body); font-size: var(--text-base);
}
.blist > li::before {
  content: ""; position: absolute; left: 4px; top: 0.55em;
  width: 7px; height: 7px; background: var(--green-500);
  transform: rotate(45deg);
}
.blist--red > li::before { background: var(--red-600); }
.blist strong { color: var(--bone); }

/* checklist variant */
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.checklist > li {
  display: flex; gap: var(--space-3); align-items: flex-start;
  padding: var(--space-2) 0; color: var(--text-body);
}
.checklist > li .ck {
  flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--green-400);
}

/* ----------------------------------------------------------------
   Map figure
---------------------------------------------------------------- */
.mapfig {
  border: 1px solid var(--border); border-radius: var(--radius-md);
  overflow: hidden; background: var(--ink-900); margin-bottom: var(--space-4);
}
.mapfig img { width: 100%; height: auto; cursor: zoom-in; }
.mapfig__cap {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  padding: var(--space-3) var(--space-4); border-top: 1px solid var(--border);
  font-family: var(--font-mono); font-size: var(--text-xs);
  color: var(--text-muted); letter-spacing: 0.02em;
}
.mapfig__cap .z { color: var(--green-400); display: inline-flex; align-items: center; gap: 5px; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: var(--z-modal);
  background: rgba(8,11,9,0.94); display: flex; align-items: center; justify-content: center;
  padding: var(--space-3); cursor: zoom-out;
}
.lightbox img { max-width: 100%; max-height: 100%; width: auto; border-radius: var(--radius-sm); }
.lightbox__close {
  position: absolute; top: max(var(--space-4), env(safe-area-inset-top)); right: var(--space-4);
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border-strong);
  background: var(--ink-800); color: var(--bone); display: flex; align-items: center; justify-content: center;
}

/* ----------------------------------------------------------------
   Tables (schedule / cut-offs)
---------------------------------------------------------------- */
.rtable { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.rtable th, .rtable td { text-align: left; padding: var(--space-3); border-bottom: 1px solid var(--border); vertical-align: top; }
.rtable th {
  font-family: var(--font-body); font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.06em; font-size: var(--text-2xs); color: var(--text-muted);
}
.rtable td.time { font-family: var(--font-mono); color: var(--bone); white-space: nowrap; font-variant-numeric: tabular-nums; }
.rtable tr.is-cut td.time { color: var(--red-400); font-weight: 600; }
.rtable td.day { font-weight: 700; color: var(--green-300); }

/* schedule day groups */
.sched-day { margin-top: var(--space-5); }
.sched-day:first-child { margin-top: 0; }
.sched-day__h {
  font-family: var(--font-display); font-weight: 800; font-style: italic; text-transform: uppercase;
  color: var(--bone); font-size: var(--text-md); margin: 0 0 var(--space-2);
  display: flex; align-items: baseline; gap: var(--space-2);
}
.sched-day__h .date { font-family: var(--font-mono); font-style: normal; font-weight: 600; font-size: var(--text-sm); color: var(--green-400); }

/* ----------------------------------------------------------------
   Segmented control (race selector)
---------------------------------------------------------------- */
.seg {
  display: inline-flex; padding: 4px; gap: 4px; background: var(--ink-800);
  border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: var(--space-5);
  width: 100%;
}
.seg__btn {
  flex: 1; border: none; background: transparent; color: var(--text-muted); cursor: pointer;
  font-family: var(--font-body); font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em;
  font-size: var(--text-xs); padding: 10px 8px; border-radius: var(--radius-sm);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.seg__btn[aria-pressed="true"] { background: var(--green-600); color: #fff; }
.seg__btn[data-race="3500"][aria-pressed="true"] { background: var(--bike); color: var(--ink-950); }

/* ----------------------------------------------------------------
   Race comparison cards
---------------------------------------------------------------- */
.racegrid { display: grid; gap: var(--space-4); }
.racecard { display: flex; flex-direction: column; }
.racecard__media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.racecard__media img { width: 100%; height: 100%; object-fit: cover; }
.racecard__media::after { content: ""; position: absolute; inset: 0; background: var(--scrim-bottom); }
.racecard__name {
  position: absolute; left: var(--space-4); bottom: var(--space-3); z-index: 2;
  font-family: var(--font-display); font-weight: 900; font-style: italic; text-transform: uppercase;
  color: var(--bone); font-size: var(--text-xl); line-height: 1; letter-spacing: var(--tracking-tight);
}
.racecard__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: var(--space-4) 0 var(--space-4); }
.racecard__stats { display: flex; gap: var(--space-5); margin-top: auto; padding-top: var(--space-3); }

/* hero stat strip */
.statstrip { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.statstrip .ogo-stat { align-items: flex-start; }

/* ----------------------------------------------------------------
   Generic helpers
---------------------------------------------------------------- */
.stack-4 > * + * { margin-top: var(--space-4); }
.stack-5 > * + * { margin-top: var(--space-5); }
.muted { color: var(--text-muted); }
.tbc { font-family: var(--font-mono); font-size: 0.85em; color: var(--bike); letter-spacing: 0.03em; }
.divider { height: 1px; background: var(--border); margin: var(--space-5) 0; border: none; }

.subhead {
  font-family: var(--font-body); font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.06em; font-size: var(--text-xs); color: var(--green-400);
  margin: var(--space-5) 0 var(--space-3);
}
.leg-head {
  display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-3);
}
.leg-head__ico { width: 26px; height: 26px; flex: none; }
.leg-head__ico svg { width: 100%; height: 100%; }
.leg-head__t {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  color: var(--bone); font-size: var(--text-lg); letter-spacing: var(--tracking-tight);
}
.leg-head--swim .leg-head__ico { color: #7FC0DE; }
.leg-head--bike .leg-head__ico { color: #F0B566; }
.leg-head--run .leg-head__ico { color: var(--green-300); }

/* partners grid */
.partners { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
@media (min-width: 560px) { .partners { grid-template-columns: repeat(3, 1fr); } }
.partners__item {
  background: var(--surface-card); padding: var(--space-4) var(--space-3); text-align: center;
  font-family: var(--font-body); font-weight: 600; font-size: var(--text-sm); color: var(--text-body);
  display: flex; align-items: center; justify-content: center; min-height: 64px;
}

/* wildlife cards */
.wlife { display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-4); }
.wlife__card {
  background: var(--surface-card); border: 1px solid var(--border);
  border-left: 3px solid var(--bike); border-radius: var(--radius-md); padding: var(--space-4);
}
.wlife__where {
  display: block; font-family: var(--font-body); font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.06em; font-size: var(--text-xs); color: #F0B566; margin-bottom: 6px;
}
.wlife__card p { margin: 0; color: var(--text-body); font-size: var(--text-base); }
.wlife__card strong { color: var(--bone); }

/* final word */
.finalword { position: relative; overflow: hidden; border-bottom: none; padding: 0; isolation: isolate; }
.finalword__bg { position: absolute; inset: 0; z-index: -2; }
.finalword__bg img { width: 100%; height: 100%; object-fit: cover; }
.finalword::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(8,11,9,0.82) 0%, rgba(8,11,9,0.6) 45%, rgba(8,11,9,0.85) 100%);
}
.finalword__inner {
  max-width: 640px; margin: 0 auto; text-align: center;
  padding: var(--space-10) var(--space-5) var(--space-9);
  display: flex; flex-direction: column; align-items: center;
}
.finalword__title {
  font-family: var(--font-display); font-weight: 900; font-style: italic; text-transform: uppercase;
  line-height: 0.9; letter-spacing: var(--tracking-tighter); color: var(--bone);
  font-size: clamp(2.6rem, 12vw, 4.5rem); margin: var(--space-2) 0 var(--space-4);
  text-shadow: 0 4px 28px rgba(0,0,0,0.5);
}
.finalword__body { color: var(--text-body); font-size: var(--text-md); line-height: 1.6; margin: 0 0 var(--space-6); }
.finalword__mark { width: 84px; height: auto; opacity: 0.95; margin-bottom: var(--space-3); }
.finalword__sign {
  font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.08em;
  color: var(--bone-300); text-transform: uppercase; margin: 0;
}

/* document footer */
.docfoot {
  text-align: center; padding: var(--space-7) var(--space-4) calc(var(--space-9) + env(safe-area-inset-bottom));
  background: var(--ink-950); border-top: 1px solid var(--border);
}
.docfoot p { margin: 0; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-faint); line-height: 1.7; }
.docfoot p + p { margin-top: var(--space-2); }
