/* HSL, The Hybrid Split Lab.
   Layout: one centred column (max 1080px), sticky brand bar, bottom tab bar on phones.
   Look: cool concrete ground, ink type, safety-orange for stations and the brand,
   timing-blue for runs. Condensed race-poster display face, plain civic body face. */
@font-face { font-family: "Big Shoulders Display"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/bsd-700.woff2") format("woff2"); }
@font-face { font-family: "Big Shoulders Display"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/bsd-800.woff2") format("woff2"); }
@font-face { font-family: "Big Shoulders Display"; font-weight: 900; font-style: normal; font-display: swap; src: url("../fonts/bsd-900.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/ps-400.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/ps-500.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/ps-600.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/ps-700.woff2") format("woff2"); }
:root {
  --bg: #EDF0F3; --surface: #FFFFFF; --surface-2: #F5F7F9; --ink: #121C28; --muted: #5A6777;
  --line: #D5DCE4; --line-2: #E6EBF0; --brand: #E8501A; --brand-ink: #FFFFFF; --brand-soft: #FDE9E0;
  --run: #2C5BD8; --run-soft: #E2E9FB; --gold: #C1921A; --silver: #8E99A6; --bronze: #A9653A;
  --good: #1D7F55; --good-soft: #DDF2E8; --warn: #B76D00; --warn-soft: #FBEFD9; --bad: #C93A2A; --bad-soft: #FBE3DF;
  --shadow: 0 1px 2px rgba(18, 28, 40, .06), 0 6px 18px rgba(18, 28, 40, .05);
  --display: "Big Shoulders Display", "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --body: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --r: 14px; --r-sm: 9px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px)); --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0D131B; --surface: #151E29; --surface-2: #1A2531; --ink: #E7EDF3; --muted: #93A2B3;
  --line: #2A3747; --line-2: #212C39; --brand: #FF6A33; --brand-ink: #160A04; --brand-soft: #3A1C10;
  --run: #7397FF; --run-soft: #1B2847; --gold: #E3B740; --silver: #B6C0CC; --bronze: #D08A5A;
  --good: #3DBB83; --good-soft: #12301F; --warn: #E89B2D; --warn-soft: #362611; --bad: #F0624F; --bad-soft: #3A1A16;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3); color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #0D131B; --surface: #151E29; --surface-2: #1A2531; --ink: #E7EDF3; --muted: #93A2B3;
  --line: #2A3747; --line-2: #212C39; --brand: #FF6A33; --brand-ink: #160A04; --brand-soft: #3A1C10;
  --run: #7397FF; --run-soft: #1B2847; --gold: #E3B740; --silver: #B6C0CC; --bronze: #D08A5A;
  --good: #3DBB83; --good-soft: #12301F; --warn: #E89B2D; --warn-soft: #362611; --bad: #F0624F; --bad-soft: #3A1A16;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3); color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.5 var(--body); font-variant-numeric: tabular-nums; }
a { color: inherit; text-decoration-color: color-mix(in srgb, var(--brand) 55%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--brand); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.display { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .01em; line-height: .92; }
.h3 { font-size: 1.05rem; font-weight: 700; letter-spacing: -.005em; }
.h4 { font-size: .95rem; font-weight: 700; }
.lede { color: var(--muted); max-width: 60ch; margin-top: 10px; }
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
code { font-size: .85em; background: var(--surface-2); padding: 1px 5px; border-radius: 5px; overflow-wrap: anywhere; }

/* ---- shell ---- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--surface); }
.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar-in { max-width: 1080px; margin: 0 auto; padding: 10px var(--gutter-r) 10px var(--gutter-l); display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.brand { align-items: center !important; }
.mark-svg { width: 36px; height: 36px; flex: none; }
.mk-bg { fill: #121C28; } .mk-run { fill: #6F93FF; } .mk-stn { fill: #E8501A; }
.mk-txt { fill: #F3F5F7; font-family: var(--display); font-weight: 900; }
:root[data-theme="dark"] .mk-bg { fill: #1E2A38; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mk-bg { fill: #1E2A38; } }
.wordmark { font: 900 1.75rem/1 var(--display); letter-spacing: .02em; }
.brand-name { font-size: .8rem; color: var(--muted); font-weight: 600; white-space: nowrap; }
.topnav { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.topnav a { text-decoration: none; padding: 7px 12px; border-radius: 99px; font-weight: 600; font-size: .92rem; color: var(--muted); }
.topnav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.icon-btn { border: 0; background: transparent; color: var(--muted); width: 38px; height: 38px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.icon-btn:hover { color: var(--ink); background: var(--surface-2); }
main { max-width: 1080px; margin: 0 auto; padding: 22px var(--gutter-r) 120px var(--gutter-l); display: flex; flex-direction: column; gap: 22px; min-height: 70vh; }
.foot { max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter-r) 110px var(--gutter-l); color: var(--muted); font-size: .8rem; display: flex; gap: 14px; flex-wrap: wrap; }
.tabbar { display: none; }
@media (max-width: 720px) {
  .topnav a { display: none; }
  .brand-name { display: none; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 9;
    background: var(--surface); border-top: 1px solid var(--line);
    padding: 6px max(8px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px)); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; font-size: .72rem; font-weight: 600; color: var(--muted); padding: 4px 0; border-radius: 10px; }
  .tabbar a[aria-current="page"] { color: var(--brand); }
  .tabbar svg { width: 22px; height: 22px; }
  main { padding-bottom: 110px; }
}
.note { background: var(--run-soft); border-radius: var(--r-sm); padding: 10px 14px; font-size: .9rem; }

/* ---- shared pieces ---- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 22px; align-items: start; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font: 600 .95rem var(--body); text-decoration: none; cursor: pointer; }
.btn:hover { border-color: var(--ink); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.primary:hover { filter: brightness(1.05); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.small { min-height: 34px; padding: 0 12px; font-size: .85rem; }
.btn.big { min-height: 52px; font-size: 1.05rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: .78rem; font-weight: 700; background: var(--surface-2); color: var(--muted); white-space: nowrap; box-shadow: inset 0 0 0 1px var(--line); }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip.st-live { background: var(--brand); color: var(--brand-ink); box-shadow: none; }
.chip.st-raceweek { color: var(--brand); background: var(--brand-soft); box-shadow: none; }
.chip.st-results { color: var(--good); background: var(--good-soft); box-shadow: none; }
.chip.st-tbc::before { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
.toggle { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 99px; padding: 7px 14px; font: 600 .88rem var(--body); cursor: pointer; }
.toggle[aria-pressed="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 3px; gap: 2px; }
.seg-btn { border: 0; background: transparent; color: var(--muted); font: 600 .9rem var(--body); padding: 6px 14px; border-radius: 99px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.seg-btn[aria-current="page"] { background: var(--ink); color: var(--surface); }
.seg.small .seg-btn { padding: 4px 10px; font-size: .82rem; }
.medal { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font: 700 .9rem/1 var(--body); color: #fff; flex: none; }
.medal.sm { width: 22px; height: 22px; font-size: .72rem; }
.medal.gold { background: var(--gold); } .medal.silver { background: var(--silver); } .medal.bronze { background: var(--bronze); }
.pips { display: inline-flex; gap: 3px; vertical-align: middle; }
.pip { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; color: #fff; font: 700 .72rem/1 var(--body); }
.pip.gold { background: var(--gold); } .pip.silver { background: var(--silver); } .pip.bronze { background: var(--bronze); }
.count-badge { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 99px; background: var(--surface-2); font-size: .8rem; margin-left: 6px; box-shadow: inset 0 0 0 1px var(--line); }
.tag { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: .75rem; font-weight: 600; background: var(--surface-2); color: var(--muted); }
.tag.r-bags { background: var(--brand-soft); color: var(--brand); }
.tag.r-photos, .tag.r-video { background: var(--run-soft); color: var(--run); }
.callout { padding: 10px 14px; border-radius: var(--r-sm); font-size: .92rem; font-weight: 600; }
.callout.warn { background: var(--bad-soft); color: var(--bad); }
.callout.ok { background: var(--good-soft); color: var(--good); }
.empty { text-align: center; padding: 48px 16px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty.inline { padding: 28px 16px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r); }
.empty p { color: var(--muted); max-width: 46ch; }
.loading { display: flex; align-items: center; gap: 10px; color: var(--muted); padding: 40px 0; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); animation: pulse 1s ease-in-out infinite alternate; }
@keyframes pulse { from { opacity: .3; transform: scale(.8); } to { opacity: 1; transform: scale(1); } }
.link-more { font-weight: 600; font-size: .92rem; color: var(--brand); text-decoration: none; }
.link-more:hover { text-decoration: underline; }
.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tbl th { text-align: left; font-size: .78rem; color: var(--muted); font-weight: 600; padding: 6px 10px 6px 0; border-bottom: 1px solid var(--line); }
.tbl td { padding: 9px 10px 9px 0; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.tbl th.num, .tbl td.num { text-align: right; }
.tbl tr.us td { font-weight: 700; }
.tbl tr.us td:first-child { box-shadow: inset 3px 0 0 var(--brand); padding-left: 8px; }
.pl-sub { display: block; font-size: .78rem; color: var(--muted); font-weight: 400; }
#toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(84px + env(safe-area-inset-bottom, 0px)); z-index: 20;
  background: var(--ink); color: var(--surface); padding: 11px 18px; border-radius: 99px; font-weight: 600; font-size: .92rem; max-width: calc(100vw - 32px); box-shadow: var(--shadow); }
#toast[data-kind="err"] { background: var(--bad); color: #fff; }
@media (min-width: 721px) { #toast { bottom: 28px; } }

/* ---- season hub ---- */
.hub-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap; }
.hub-title h1 { font-size: clamp(3rem, 11vw, 6.2rem); display: flex; align-items: baseline; gap: .25em; flex-wrap: wrap; }
.season-years { font-size: .36em; font-weight: 700; color: var(--brand); letter-spacing: .04em; }
.track-section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 8px 0 4px; }
.track { display: block; width: 100%; height: auto; }
.t-base { stroke: var(--line); stroke-width: 4; stroke-linecap: round; }
.t-done { stroke: var(--ink); stroke-width: 4; stroke-linecap: round; }
.t-hit { fill: transparent; cursor: pointer; }
.t-node { cursor: pointer; outline: none; }
.t-dot { fill: var(--surface); stroke: var(--ink); stroke-width: 3; }
.t-node.past .t-dot { fill: var(--ink); }
.t-node.tbc .t-dot { stroke-dasharray: 4 3; stroke: var(--muted); }
.t-node.current .t-dot { fill: var(--brand); stroke: var(--brand); }
.t-halo { fill: none; stroke: var(--brand); stroke-width: 2; opacity: .45; }
.t-num { font: 800 15px var(--display); fill: var(--muted); }
.t-name { font: 700 13px var(--body); fill: var(--ink); }
.t-date { font: 500 12px var(--body); fill: var(--muted); }
.t-medal { font: 700 11px var(--body); fill: var(--gold); }
.t-node.sel .t-name { fill: var(--brand); }
.t-node.sel .t-num { fill: var(--brand); }
.t-node:focus-visible .t-dot { stroke: var(--brand); stroke-width: 4; }
@media (prefers-reduced-motion: no-preference) { .t-halo { animation: halo 2.4s ease-out 1; transform-origin: center; transform-box: fill-box; } }
@keyframes halo { from { opacity: .9; transform: scale(.6); } to { opacity: .45; transform: scale(1); } }
.focus { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
@media (max-width: 820px) { .focus { grid-template-columns: 1fr; } }
.focus-main { padding: 22px; display: flex; flex-direction: column; gap: 12px; border-top: 5px solid var(--brand); }
.focus-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.count { font: 800 1.15rem var(--display); text-transform: uppercase; letter-spacing: .03em; color: var(--brand); }
.focus-name { font-size: clamp(2.4rem, 8vw, 4rem); }
.focus-when { color: var(--muted); font-weight: 500; }
.focus-stats, .stat-row { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 4px 0 0; }
.focus-stats dt, .stat-row dt { font-size: .78rem; color: var(--muted); font-weight: 600; }
.focus-stats dd, .stat-row dd { margin: 0; font: 800 1.9rem/1.05 var(--display); display: flex; align-items: center; gap: 8px; }
.focus-side { padding: 22px; background: var(--surface-2); border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; min-width: 0; }
@media (max-width: 820px) { .focus-side { border-left: 0; border-top: 1px solid var(--line); } .focus-side:empty { display: none; } }
.podium-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.podium-list li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.podium-list li:last-child { border-bottom: 0; }
.pl-main { flex: 1; min-width: 0; font-weight: 600; }
.pl-main a { text-decoration: none; } .pl-main a:hover { text-decoration: underline; }
.pl-time { font-weight: 700; }
.podium-list.wide { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); column-gap: 24px; }
.season-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 22px; }
.tally-list { display: flex; gap: 24px; flex-wrap: wrap; margin: 0; }
.tally-list dt { font-size: .78rem; color: var(--muted); font-weight: 600; }
.num-xl { margin: 0; font: 900 2.8rem/1 var(--display); display: flex; align-items: center; gap: 10px; }
.league { list-style: none; margin: 0; padding: 0; }
.league li { display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-2); align-items: baseline; }
.league li.us { font-weight: 700; } .league li.us .lg-rank { color: var(--brand); }
.lg-rank { font: 800 1.2rem var(--display); color: var(--muted); }
.event-list { list-style: none; margin: 0; padding: 0; }
.event-row { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--line-2); text-decoration: none; }
.event-list li:last-child .event-row { border-bottom: 0; }
.event-row:hover .er-name { color: var(--brand); }
.er-num { font: 800 1.4rem var(--display); color: var(--muted); }
.er-main { display: flex; flex-direction: column; min-width: 0; }
.er-name { font-weight: 700; }
.er-when { font-size: .85rem; color: var(--muted); }
.er-side { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 520px) { .er-side .small { display: none; } }

/* ---- event ---- */
.back { font-size: .88rem; font-weight: 600; color: var(--muted); text-decoration: none; }
.back::before { content: "‹ "; }
.ev-head { display: flex; flex-direction: column; gap: 8px; }
.ev-title { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ev-title h1 { font-size: clamp(2.6rem, 9vw, 4.8rem); }
.ev-when { color: var(--muted); font-weight: 500; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 58px); z-index: 5; background: var(--bg); }
.tab { padding: 10px 12px; text-decoration: none; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; }
.tab[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brand); }
#tab-body { display: flex; flex-direction: column; gap: 22px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.wave-day { display: flex; flex-direction: column; gap: 10px; }
.wave { display: grid; grid-template-columns: 74px 1fr; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.wave-time { font: 800 1.7rem/1.1 var(--display); text-align: left; }
.wave-entries { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; min-width: 0; }
.we { display: grid; grid-template-columns: minmax(110px, 160px) 1fr auto; gap: 4px 12px; padding: 6px 0; border-bottom: 1px solid var(--line-2); align-items: baseline; }
.we:last-child { border-bottom: 0; }
.we-div { font-size: .82rem; color: var(--muted); font-weight: 600; }
.we-names { font-weight: 600; min-width: 0; }
.ath { text-decoration: none; } .ath:hover { text-decoration: underline; color: var(--brand); }
.amp { color: var(--muted); font-weight: 400; }
.we-status { font-size: .85rem; color: var(--muted); white-space: nowrap; }
.we.st-course .we-status { color: var(--brand); font-weight: 700; }
.we.st-done .we-status { color: var(--ink); font-weight: 700; }
@media (max-width: 560px) { .wave { grid-template-columns: 1fr; gap: 6px; } .we { grid-template-columns: 1fr auto; } .we-div { grid-column: 1 / -1; } }
.res-div { display: flex; flex-direction: column; gap: 8px; }
.res-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.res { border-bottom: 1px solid var(--line-2); }
.res:last-child { border-bottom: 0; }
.res summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 92px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; }
.res summary::-webkit-details-marker { display: none; }
.res summary:hover .res-names { color: var(--brand); }
.res-time { font: 800 1.45rem/1 var(--display); text-align: left; }
.res-main { display: flex; flex-direction: column; min-width: 0; }
.res-names { font-weight: 700; }
.res-ranks { font-size: .82rem; color: var(--muted); }
.res-pct { display: flex; align-items: center; gap: 8px; }
.mini { width: 64px; height: 6px; border-radius: 3px; background: var(--line-2); overflow: hidden; }
.mini span { display: block; height: 100%; background: var(--brand); border-radius: 3px; }
.res-body { padding: 4px 14px 18px; display: flex; flex-direction: column; gap: 14px; }
.res[open] summary { background: var(--surface-2); }
@media (max-width: 480px) { .res summary { grid-template-columns: 78px 1fr; } .res-pct { display: none; } }
.pres { list-style: none; margin: 0; padding: 0; columns: 2 200px; }
.pres li { display: flex; gap: 12px; padding: 5px 0; break-inside: avoid; font-size: .92rem; }
.pres .num { font-weight: 700; text-align: left; min-width: 44px; }

/* ---- crew ---- */
.crew-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 22px; }
.basecamp { border-top: 5px solid var(--brand); }
.bc-text { font: 800 1.7rem/1.1 var(--display); text-transform: uppercase; }
.inline-form summary { list-style: none; width: fit-content; } .inline-form summary::-webkit-details-marker { display: none; }
.inline-form[open] summary { margin-bottom: 10px; }
.here-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.here-list li { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.who { font-weight: 700; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.lg.lvl-gap { background: var(--bad-soft); box-shadow: inset 0 0 0 1.5px var(--bad); }
.lg.lvl-thin { background: var(--warn-soft); box-shadow: inset 0 0 0 1.5px var(--warn); }
.lg.lvl-covered { background: var(--good-soft); box-shadow: inset 0 0 0 1.5px var(--good); }
.cov { display: flex; gap: 3px; padding: 4px 2px 0; min-width: max-content; }
.cov-slot { width: 30px; display: grid; grid-template-rows: 64px 4px 64px 18px; border: 0; padding: 4px 3px 0; border-radius: 7px; background: transparent; cursor: pointer; font: inherit; color: inherit; }
.cov-slot.lvl-gap { background: var(--bad-soft); }
.cov-slot.lvl-thin { background: var(--warn-soft); }
.cov-slot.lvl-covered { background: var(--good-soft); }
.cov-slot.sel { box-shadow: inset 0 0 0 2px var(--ink); }
.cov-a, .cov-s { display: flex; position: relative; }
.cov-a { align-items: flex-end; grid-row: 1; }
.cov-s { align-items: flex-start; grid-row: 3; }
.cov-a span, .cov-s span { display: block; width: 100%; border-radius: 3px; }
.cov-a span { background: var(--brand); }
.cov-s span { background: var(--run); }
.cov-t { grid-row: 4; font-size: .7rem; color: var(--muted); text-align: left; font-weight: 600; }
.slot-detail { border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.sd-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 12px; }
.sd-h { font-size: .78rem; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.rsvp-list { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rsvp { padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface-2); display: flex; flex-direction: column; gap: 6px; }
.rsvp.mine { box-shadow: inset 3px 0 0 var(--brand); }
.rv-top { display: flex; justify-content: space-between; gap: 10px; }
.rv-win { font-weight: 700; }
.rv-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.rv-actions { display: flex; gap: 6px; }

/* ---- forms ---- */
.stack { display: flex; flex-direction: column; gap: 8px; }
label { font-size: .85rem; font-weight: 600; }
input, select, textarea { font: 400 1rem var(--body); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; width: 100%; min-height: 44px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: transparent; }
.mono-in { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85rem; }
.row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.row3 > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
@media (max-width: 520px) { .row3 { grid-template-columns: 1fr 1fr; } .row3 > div:first-child { grid-column: 1 / -1; } }
fieldset { border: 0; padding: 0; margin: 4px 0; min-width: 0; }
legend { font-size: .85rem; font-weight: 600; margin-bottom: 6px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips legend { width: 100%; }
.chip-check { position: relative; }
.chip-check input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.chip-check span { display: inline-block; padding: 7px 12px; border-radius: 99px; border: 1px solid var(--line); font-weight: 600; font-size: .86rem; cursor: pointer; background: var(--surface); }
.chip-check input:checked + span { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.chip-check input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.pick-list { max-height: 210px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 4px; margin-top: 6px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); }
.pick-item { display: flex; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 6px; font-weight: 500; cursor: pointer; }
.pick-item:hover { background: var(--surface-2); }
.pick-item input { width: 18px; height: 18px; min-height: 0; accent-color: var(--brand); }
.warns { font-size: .85rem; color: var(--warn); padding-left: 18px; margin: 0; }

/* ---- athletes ---- */
.page-head h1 { font-size: clamp(2.6rem, 9vw, 4.6rem); }
.search-bar input { font-size: 1.05rem; min-height: 50px; border-radius: 99px; padding: 0 20px; }
.ath-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 8px; }
.ath-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); text-decoration: none; }
.ath-row:hover { border-color: var(--ink); }
.ar-name { font-weight: 700; flex: 1; min-width: 0; }
.ath-badge { width: 72px; height: 72px; border-radius: 18px; background: var(--ink); color: var(--surface); display: grid; place-items: center; font: 900 2rem var(--display); flex: none; position: relative; overflow: hidden; }
.ath-badge::after { content: ""; position: absolute; width: 5px; height: 140%; background: var(--brand); transform: rotate(18deg); right: 22%; }
.ath-badge.sm { width: 38px; height: 38px; border-radius: 10px; font-size: 1.05rem; }
.ath-badge.sm::after { width: 3px; }
.ath-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.ath-id { flex: 1; min-width: 0; }
.ath-name { font-size: clamp(2.6rem, 10vw, 5.2rem); overflow-wrap: anywhere; }
.ath-gym { color: var(--muted); font-weight: 500; margin-top: 6px; }
.race-picker { margin: 0 calc(-1 * var(--gutter-l)) 0 0; }
.chips-row { display: flex; gap: 8px; padding: 2px 2px 6px; min-width: max-content; }
.race-chip { display: flex; flex-direction: column; align-items: flex-start; gap: 0; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 12px; padding: 8px 14px; cursor: pointer; font: inherit; text-align: left; }
.race-chip[aria-pressed="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.rc-ev { font: 800 1.05rem/1.1 var(--display); text-transform: uppercase; }
.rc-div { font-size: .76rem; opacity: .75; font-weight: 600; }
.race-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: flex; flex-direction: column; gap: 18px; }
.rc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.rc-event { font-weight: 700; font-size: 1.05rem; }
.rc-time { display: flex; align-items: center; gap: 12px; }
.finish { font-size: clamp(3rem, 12vw, 4.8rem); color: var(--ink); }
.strips { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px 24px; }
.strip { display: flex; flex-direction: column; gap: 6px; }
.strip-head { display: flex; justify-content: space-between; gap: 8px; font-size: .85rem; }
.strip-name { font-weight: 700; } .strip-rank { color: var(--muted); font-weight: 600; }
.strip-track { position: relative; height: 12px; border-radius: 6px; background: var(--line-2); }
.strip-fill { position: absolute; inset: 0 auto 0 0; border-radius: 6px; background: linear-gradient(90deg, color-mix(in srgb, var(--brand) 18%, transparent), color-mix(in srgb, var(--brand) 55%, transparent)); }
.strip-mark { position: absolute; top: 50%; width: 22px; height: 22px; margin-left: -11px; margin-top: -11px; border-radius: 50%; background: var(--brand); border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--brand); }
.strip .q { position: absolute; top: 2px; bottom: 2px; width: 1px; background: color-mix(in srgb, var(--muted) 35%, transparent); }
.strip-foot { display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted); }
.strip-pct { color: var(--ink); font-weight: 700; font-size: .82rem; }
.radar-wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; align-items: center; }
@media (max-width: 720px) { .radar-wrap { grid-template-columns: 1fr; } }
.radar-fig { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.radar { width: 100%; max-width: 420px; height: auto; }
.r-ring { fill: none; stroke: var(--line); stroke-width: 1; }
.r-ring.outer { stroke: var(--muted); stroke-opacity: .5; }
.r-axis { stroke: var(--line); stroke-width: 1; }
.r-tick { font: 600 9px var(--body); fill: var(--muted); }
.r-primary { fill: color-mix(in srgb, var(--brand) 22%, transparent); stroke: var(--brand); stroke-width: 2.5; stroke-linejoin: round; }
.r-compare { fill: color-mix(in srgb, var(--run) 10%, transparent); stroke: var(--run); stroke-width: 2; stroke-dasharray: 5 4; stroke-linejoin: round; }
.r-dot { fill: var(--brand); stroke: var(--surface); stroke-width: 1.5; }
.r-label { font: 700 12.5px var(--body); fill: var(--ink); }
.r-value { font: 800 13px var(--display); fill: var(--muted); }
.radar-legend { display: flex; gap: 14px; font-size: .8rem; color: var(--muted); flex-wrap: wrap; justify-content: center; }
.radar-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg-primary { width: 16px; height: 4px; background: var(--brand); border-radius: 2px; display: inline-block; }
.lg-compare { width: 16px; height: 0; border-top: 3px dashed var(--run); display: inline-block; }
.radar-notes { display: flex; flex-direction: column; gap: 10px; }
.radar-notes select { max-width: 360px; }
.insights { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: .94rem; }
.splits-wrap summary { cursor: pointer; margin-bottom: 8px; }
.splits { display: flex; flex-direction: column; font-size: .88rem; }
.sp-row { display: grid; grid-template-columns: minmax(120px, 170px) 1fr 58px 64px; gap: 10px; align-items: center; padding: 4px 0; border-bottom: 1px solid var(--line-2); }
.sp-head { font-size: .75rem; color: var(--muted); font-weight: 600; }
.sp-name { font-weight: 600; }
.sp-bar-cell { position: relative; height: 10px; }
.sp-bar { position: absolute; inset: 0 auto 0 0; border-radius: 3px; }
.sp-bar.run { background: var(--run); } .sp-bar.stn { background: var(--brand); }
.sp-ghost { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink); opacity: .6; }
.gain { color: var(--good); font-weight: 700; } .loss { color: var(--bad); font-weight: 700; }
@media (max-width: 480px) { .sp-row { grid-template-columns: 96px 1fr 48px 52px; gap: 6px; font-size: .82rem; } }
.progression { width: 100%; min-width: 520px; height: auto; display: block; }
.p-grid { stroke: var(--line-2); stroke-width: 1; }
.p-ytick { font: 600 10px var(--body); fill: var(--muted); }
.p-area { fill: color-mix(in srgb, var(--brand) 10%, transparent); }
.p-line { fill: none; stroke: var(--brand); stroke-width: 2.5; stroke-linejoin: round; }
.p-dot { fill: var(--surface); stroke: var(--brand); stroke-width: 2.5; }
.p-dot.last { fill: var(--brand); }
.p-xlabel { font: 700 11px var(--body); fill: var(--ink); }
.p-xsub { font: 500 10px var(--body); fill: var(--muted); }
.p-end { font: 800 14px var(--display); fill: var(--brand); text-transform: uppercase; }
.hist td a { font-weight: 600; text-decoration: none; } .hist td a:hover { text-decoration: underline; }
.claim-note { text-align: center; }

/* ---- series switch, side by side ---- */
.mode-switch { display: inline-flex; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px; width: fit-content; }
.mode { border: 0; background: transparent; color: var(--muted); font: 800 1.15rem/1 var(--display); letter-spacing: .06em; padding: 10px 22px; border-radius: 9px; cursor: pointer; }
.mode[aria-selected="true"] { background: var(--ink); color: var(--surface); }
.series-tag { display: inline-block; font: 800 .8rem/1 var(--display); letter-spacing: .08em; padding: 4px 8px; border-radius: 5px; vertical-align: middle; }
.series-tag.tryka { background: var(--brand); color: var(--brand-ink); }
.series-tag.hyrox { background: var(--ink); color: var(--surface); }
.sbs-tbl th[scope="row"] { font-weight: 600; color: var(--muted); font-size: .88rem; }
.sbs-tbl td.num { font-weight: 700; }
.podium-gap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 12px; background: var(--surface-2); border-radius: var(--r-sm); font-size: .9rem; }
.pg-label { font-weight: 700; }
.pg-step { display: inline-flex; align-items: center; gap: 6px; }
.pg-gap { font-weight: 700; color: var(--brand); }
.podium-gap .link-more { margin-left: auto; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
/* ---- age groups ---- */
.picker { gap: 10px; }
.ag-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ag-chip { text-decoration: none; padding: 7px 12px; border-radius: 99px; border: 1px solid var(--line); font-weight: 600; font-size: .88rem; background: var(--surface); }
.ag-chip[aria-current="page"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
#ag-body { display: flex; flex-direction: column; gap: 22px; }
.ag-title { font-size: clamp(2rem, 7vw, 3.4rem); }
.ag-ag { color: var(--brand); }
.fieldbars { display: flex; flex-direction: column; gap: 6px; }
.fb-row { display: grid; grid-template-columns: minmax(110px, 180px) 1fr 64px; gap: 10px; align-items: center; font-size: .9rem; }
.fb-ev { font-weight: 600; }
.fb-bar { height: 14px; background: var(--line-2); border-radius: 4px; overflow: hidden; }
.fb-bar span { display: block; height: 100%; background: var(--ink); border-radius: 4px; }
.timeline { display: flex; flex-direction: column; gap: 4px; }
.tl-row { display: grid; grid-template-columns: minmax(80px, 120px) 1fr; gap: 10px; align-items: center; min-height: 30px; }
.tl-ev { font-size: .85rem; font-weight: 600; }
.tl-track { position: relative; height: 26px; border-bottom: 1px solid var(--line-2); margin: 0 12px; }
.tl-medal { position: absolute; top: 2px; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; display: grid; place-items: center; font: 700 .7rem var(--body); color: #fff; }
.tl-medal.gold { background: var(--gold); } .tl-medal.silver { background: var(--silver); } .tl-medal.bronze { background: var(--bronze); }
.tl-dot { position: absolute; top: 7px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--brand); border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--brand); }
.tl-axis { display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); margin-left: calc(min(120px, 30%) + 22px); margin-right: 12px; }
.squad { list-style: none; margin: 0; padding: 0; }
.squad li { display: grid; grid-template-columns: 1fr auto 110px; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line-2); align-items: baseline; }
.squad a { font-weight: 700; text-decoration: none; }
.sq-gap { text-align: right; font-weight: 700; color: var(--muted); }
.sq-gap.in { color: var(--good); }
.ag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.agb { display: flex; flex-direction: column; gap: 4px; }
.agb-row { display: grid; grid-template-columns: 70px 1fr 92px; gap: 8px; align-items: center; text-decoration: none; padding: 3px 4px; border-radius: 6px; }
.agb-row:hover { background: var(--surface-2); }
.agb-ag { font-weight: 600; font-size: .88rem; }
.agb-bar { position: relative; height: 12px; background: var(--line-2); border-radius: 3px; overflow: hidden; }
.agb-bar span { position: absolute; inset: 0 auto 0 0; background: var(--muted); opacity: .45; border-radius: 3px; }
.agb-bar i { position: absolute; inset: 0 auto 0 0; background: var(--brand); border-radius: 3px; }
.agb-n { font-weight: 700; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; }
.agb-s { font-size: .7rem; color: var(--brand); font-weight: 700; }
@media (max-width: 480px) { .fb-row { grid-template-columns: 96px 1fr 52px; } .squad li { grid-template-columns: 1fr auto 80px; } .topnav a[data-nav="stats"] { display: none; } }
@media (max-width: 860px) and (min-width: 721px) { .topnav a { padding: 7px 8px; } }

.sbs-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 0; }
.sbs-grid > div { padding: 9px 8px 9px 0; border-bottom: 1px solid var(--line-2); min-width: 0; }
.sbs-head { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; text-align: right; }
.sbs-l { font-size: .88rem; color: var(--muted); font-weight: 600; }
.sbs-v { font-weight: 800; font-size: 1.05rem; text-align: right; }
.rbr { list-style: none; margin: 0; padding: 0; }
.rbr li { padding: 12px 0; border-bottom: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 8px; }
.rbr li:last-child { border-bottom: 0; }
.rbr-head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.rbr-head a { font-weight: 700; text-decoration: none; }
.rbr-pod { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .9rem; }
.rbr-st { display: flex; flex-direction: column; gap: 4px; font-size: .92rem; padding-left: 10px; border-left: 3px solid var(--brand); }
.rbr-st a { font-weight: 600; text-decoration: none; }
.scroll-x > .tbl { min-width: 540px; }
.scroll-x > .tbl.sbs-tbl { min-width: 0; }

/* ---- statistics ---- */
.st-body { display: flex; flex-direction: column; gap: 18px; margin-top: 16px; }
.scope-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.div-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 14px; align-items: start; }
.div-card > summary { cursor: pointer; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.div-card > summary::-webkit-details-marker { display: none; }
.div-card > summary::after { content: "Show age groups"; font-size: .78rem; color: var(--brand); font-weight: 700; }
.div-card[open] > summary::after { content: "Hide age groups"; }
.dc-name { font: 800 1.35rem/1.1 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.dc-nums { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .88rem; }
.rec-hero, .pred-hero { gap: 6px; align-items: flex-start; }
.rec-hero .rec-time, .pred-hero .rec-time { text-align: left; }
.rec-time { font: 900 clamp(2.6rem, 11vw, 4.2rem)/1 var(--display); letter-spacing: .01em; }
.st-pill { display: inline-block; background: var(--brand); color: var(--brand-ink); font-size: .72rem; font-weight: 700; border-radius: 99px; padding: 2px 8px; vertical-align: middle; }
.ex-filters { flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; }
.ex-filters label, .cmp-controls label, .cmp-controls > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ex-filters select { min-width: 130px; }
.th-sort { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.ex-tbl tr.has-st td:first-child { box-shadow: inset 3px 0 0 var(--brand); padding-left: 8px; }
.ex-tbl td a { text-decoration: none; font-weight: 600; }
.cmp-controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px 16px; align-items: end; }
.cmp-controls .seg { flex-wrap: wrap; border-radius: 14px; width: fit-content; max-width: 100%; }
.radar-wrap { display: flex; justify-content: center; }
.radar-wrap .radar { width: 100%; max-width: 460px; height: auto; }
.legend { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; font-size: .88rem; font-weight: 600; }
.legend span::before { content: ""; display: inline-block; width: 18px; height: 0; margin-right: 6px; vertical-align: middle; }
.lg-you::before { border-top: 3px solid var(--brand); }
.lg-ref::before { border-top: 2px dashed var(--run); }
.conf { display: inline-block; font-size: .75rem; font-weight: 700; border-radius: 99px; padding: 2px 9px; margin-left: 6px; text-transform: capitalize; }
.conf-good { background: var(--good-soft); color: var(--good); }
.conf-fair { background: var(--brand-soft); color: var(--brand); }
.conf-low { background: var(--bad-soft); color: var(--bad); }
.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.steps .btn { margin-left: 6px; }
textarea.code { width: 100%; font: 12px/1.4 ui-monospace, monospace; margin: 6px 0; word-break: break-all; }
.ok-line { color: var(--good); } .err-line { color: var(--bad); font-weight: 600; }
.scroll-x > .tbl.ex-tbl { min-width: 760px; } .ex-tbl td:nth-child(3) { white-space: nowrap; }
.agc > summary { list-style: none; cursor: pointer; }
.agc > summary::-webkit-details-marker { display: none; }
.agc[open] > summary { background: var(--surface-2); }
.agc-body { padding: 8px 4px 12px 10px; margin: 2px 0 6px 4px; border-left: 3px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.agc-count { font-size: .9rem; margin: 0; }
.agc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.agc-list li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line-2); font-size: .92rem; }
.agc-list li:last-child { border-bottom: 0; }
.agc-list li.is-st { font-weight: 600; }
.agc-list li.is-st > span:first-child { box-shadow: inset 3px 0 0 var(--brand); padding-left: 8px; }
.agc-list a { text-decoration: none; font-weight: 600; }
.agb-l { font-size: .66rem; color: var(--muted); font-weight: 600; }

/* ---- HYROX ---- */
.pres li.us { font-weight: 700; }
.hub-title .series-tag.hyrox { font-size: .55em; vertical-align: .35em; margin-right: .3em; }

/* ---- series switch (header) ---- */
.series-switch { display: inline-flex; margin-left: 14px; padding: 3px; gap: 2px; border-radius: 99px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); flex: none; }
.series-switch a { font: 800 .82rem/1 var(--display); letter-spacing: .08em; text-decoration: none; padding: 7px 12px; border-radius: 99px; color: var(--muted); }
.series-switch a[aria-current="true"][data-series="tryka"] { background: var(--brand); color: var(--brand-ink); }
.series-switch a[aria-current="true"][data-series="hyrox"] { background: var(--ink); color: var(--surface); }
@media (max-width: 720px) { .series-switch { margin-left: auto; } .series-switch a { padding: 8px 12px; } }

/* ---- station profile: spider graph + race timeline ---- */
.sp-block { display: flex; flex-direction: column; gap: 14px; }
.sp-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.sp-head .seg-btn[disabled] { opacity: .4; cursor: not-allowed; }
.sp-grid { display: grid; grid-template-columns: minmax(0, 430px) 1fr; gap: 20px; align-items: start; }
@media (max-width: 860px) { .sp-grid { grid-template-columns: 1fr; } }
.tl { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 6px; }
.tl svg { display: block; }
.tl .tl-curve, .tl-svg .tl-curve { fill: var(--brand-soft); stroke: var(--brand); stroke-width: 1.5; }
.tl .tl-curve.run, .tl-svg .tl-curve.run { fill: var(--run-soft); stroke: var(--run); }
.tl .tl-curve.fin, .tl-svg .tl-curve.fin { fill: var(--surface-2); stroke: var(--ink); }
.tl .tl-curve.approx, .tl-svg .tl-curve.approx { stroke-dasharray: 3 3; }
.tl .tl-mark, .tl-svg .tl-mark { stroke: var(--ink); stroke-width: 2; }
.tl .tl-dot, .tl-svg .tl-dot { fill: var(--ink); stroke: var(--surface); stroke-width: 2; }
.tl .tl-label { font: 700 11px var(--body); fill: var(--ink); }
.tl .tl-sub, .tl-svg .tl-sub { font: 500 10px var(--body); fill: var(--muted); }
.tl .tl-pct { font: 800 12px var(--display); fill: var(--ink); letter-spacing: .02em; }
.tl .tl-path { fill: none; stroke: var(--ink); stroke-width: 1.5; opacity: .55; }
.tl .tl-axis, .tl-svg .tl-axis { stroke: var(--line); }
.tl .tl-band { fill: var(--surface-2); }
.sp-note { font-size: .82rem; color: var(--muted); margin: 0; }
.seg .seg-btn[aria-current="true"] { background: var(--ink); color: var(--surface); }

.tl-rows { display: flex; flex-direction: column; gap: 2px; }
.tl-row { display: grid; grid-template-columns: 150px 1fr 64px; gap: 12px; align-items: center; padding: 4px 0; border-bottom: 1px solid var(--line-2); }
.tl-row:last-child { border-bottom: 0; }
.tl-name { display: flex; flex-direction: column; line-height: 1.2; }
.tl-seg { font-weight: 700; font-size: .88rem; padding-left: 8px; border-left: 3px solid var(--brand); }
.tl-seg.run { border-left-color: var(--run); } .tl-seg.fin { border-left-color: var(--ink); }
.tl-name .num { font-size: .82rem; color: var(--muted); padding-left: 11px; }
.tl-svg { width: 100%; height: auto; display: block; overflow: visible; }
.tl-svg .tl-curve, .tl-svg .tl-axis, .tl-svg .tl-mark { vector-effect: non-scaling-stroke; }
.tl-svg text { font-size: 10px; }
.tl-pctbox { display: flex; flex-direction: column; align-items: flex-end; line-height: 1; }
.tl-big { font: 800 1.35rem/1 var(--display); }
.tl-small { font-size: .72rem; color: var(--muted); margin-top: 3px; white-space: nowrap; }
.tl-over { margin: 14px 0 4px; }
.tl .tl-label.run { fill: var(--run); }
@media (max-width: 560px) { .tl-row { grid-template-columns: 1fr auto; grid-template-areas: 'name pct' 'svg svg'; gap: 2px 8px; } .tl-name { grid-area: name; flex-direction: row; align-items: baseline; gap: 6px; } .tl-name .num { padding-left: 0; } .tl-svg { grid-area: svg; } .tl-pctbox { grid-area: pct; flex-direction: row; align-items: baseline; gap: 6px; } .tl-big { font-size: 1.1rem; } }

.tl-svg .tl-cmp, .tl .tl-cmp { stroke: var(--run); stroke-width: 2; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; }
.tl-svg .tl-cmpdot, .tl .tl-cmpdot { fill: var(--surface); stroke: var(--run); stroke-width: 2; }
.tl .tl-cpath { fill: none; stroke: var(--run); stroke-width: 1.5; stroke-dasharray: 5 4; }
.tl-vs { font-weight: 800; color: var(--run); }
.tl-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); margin: 0 0 6px; }
.tl-legend i { display: inline-block; width: 18px; height: 3px; vertical-align: middle; margin-right: 6px; border-radius: 2px; }
.tl-legend .lg-primary { background: var(--ink); } .tl-legend .lg-compare { background: var(--run); }
.cmp-pick { display: grid; gap: 6px; }
