/* resultsweb — mobile-first, no external assets */

:root {
  --link-line: color-mix(in srgb, var(--accent) 45%, transparent);
  --bg: #f4f6fa;
  --surface: #ffffff;
  --surface-2: #eef1f6;
  --line: #e2e6ee;
  --text: #0e1525;
  --muted: #5d6779;
  --accent: #1d4ed8;
  --accent-soft: #e3ebff;
  --live: #e5372b;
  --live-soft: #ffe7e4;
  --ok: #0f7b4f;
  --ok-soft: #dcf5e9;
  --warn: #a15c00;
  --warn-soft: #fff1d6;
  --gold: #c99400;
  --silver: #8a96a8;
  --bronze: #b0672e;
  --mark: #fff7c2;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(16 24 40 / 6%), 0 1px 3px rgb(16 24 40 / 6%);
  --hdr-h: 56px;
  --tabs-h: 60px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0f17;
    --surface: #131a26;
    --surface-2: #1a2333;
    --line: #243046;
    --text: #e9eef7;
    --muted: #93a0b6;
    --accent: #7aa2ff;
    --accent-soft: #1c2a4d;
    --live: #ff5a4e;
    --live-soft: #3a1713;
    --ok: #4cd39a;
    --ok-soft: #12301f;
    --warn: #f2b14a;
    --warn-soft: #3a2a0c;
    --mark: #3a3410;
    --shadow: none;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.4 var(--font);
  font-variant-numeric: tabular-nums;
  padding-bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom) + 52px);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.muted { color: var(--muted); }
.pad { padding: 32px 16px; }

/* ---------------------------------------------------------------- header */
.hdr {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}
.hdr-in { display: flex; align-items: center; gap: 10px; height: var(--hdr-h); padding: 0 max(12px, env(safe-area-inset-left)); max-width: 820px; margin: 0 auto; }
.back { font-size: 30px; line-height: 1; width: 36px; height: 36px; display: grid; place-items: center; margin-left: -6px; border-radius: 10px; color: var(--accent); }
.back:active { background: var(--surface-2); }
.logo { flex: none; display: flex; align-items: center; color: var(--text); }
.logo .ic, .logo svg { display: block; width: 63px; height: 21px; }
.ttl { flex: 1; min-width: 0; }
.t1 { font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t2 { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conn { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 99px; background: var(--surface-2); color: var(--muted); flex: none; }
.conn.c-live { background: var(--ok-soft); color: var(--ok); }
.conn.c-offline { background: var(--warn-soft); color: var(--warn); }

/* ---------------------------------------------------------------- tabs */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; justify-content: center;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabs[hidden] { display: none; }
.tab { flex: 1; max-width: 200px; height: var(--tabs-h); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--muted); }
.tab .ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tab.on { color: var(--accent); }
.tab:first-child .ic circle { fill: currentColor; }

/* ---------------------------------------------------------------- now bar */
.nowbar {
  position: fixed; z-index: 25; left: 10px; right: 10px;
  bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom) + 8px);
  max-width: 800px; margin: 0 auto;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 12px;
  background: var(--text); color: var(--bg);
  box-shadow: 0 6px 24px rgb(0 0 0 / 22%);
  font-size: 13.5px; font-weight: 600;
  animation: rise .25s ease-out;
}
.nb-t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nb-x { flex: none; font-weight: 700; color: var(--live); filter: brightness(1.3); }
.nb-go { font-size: 20px; line-height: 1; opacity: .7; }
@keyframes rise { from { transform: translateY(12px); opacity: 0; } }

/* ---------------------------------------------------------------- layout */
.page { max-width: 820px; margin: 0 auto; padding: 12px 12px 8px; display: flex; flex-direction: column; gap: 12px; }
.page .page { padding: 0; max-width: none; }
.page-title { font-size: 26px; padding: 8px 4px 0; }
.sec-title { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px 4px 0; }
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; }
.card-h { display: flex; align-items: center; gap: 8px; padding: 12px 14px 8px; flex-wrap: wrap; }
.card-h h3 { font-size: 15px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-f { padding: 10px 14px 12px; font-size: 13.5px; font-weight: 600; color: var(--accent); border-top: 1px solid var(--line); }
.sub { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 10px 14px 4px; }
.empty { color: var(--muted); padding: 14px; text-align: center; font-size: 14px; }
.meta { font-size: 13px; color: var(--muted); padding: 2px 14px 6px; }
.hero .meta { padding: 4px 0 0; }

/* ---------------------------------------------------------------- chips */
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; padding: 3px 8px; border-radius: 99px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.st-virtual { background: var(--accent-soft); color: var(--accent); }
.st-hold { background: var(--warn-soft); color: var(--warn); }
.st-prov { background: var(--warn-soft); color: var(--warn); }
.st-final { background: var(--ok-soft); color: var(--ok); }
.st-live { background: var(--live-soft); color: var(--live); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); display: inline-block; flex: none; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--live) 55%, transparent); } 50% { box-shadow: 0 0 0 5px transparent; } }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 600; font-size: 14px; }
.btn.live { background: var(--live); }
.btn .dot { background: #fff; }
.btns { display: flex; gap: 8px; margin-top: 14px; }
.pill { display: inline-block; padding: 7px 12px; border-radius: 99px; background: var(--surface-2); font-weight: 600; font-size: 13.5px; }
.pill.has { background: var(--accent-soft); color: var(--accent); }
.pill.sm { padding: 3px 9px; font-size: 12.5px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 14px 14px; }

/* ---------------------------------------------------------------- hero */
.hero { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 16px; box-shadow: var(--shadow); }
.hero h1 { font-size: 22px; letter-spacing: -.01em; margin-top: 6px; }
.hero h2 { font-size: 17px; font-weight: 600; color: var(--muted); margin-top: 2px; }
.hero p { margin: 6px 0 0; font-size: 14px; }
.hero.slim h1 { font-size: 20px; }
.hero.quiet { text-align: center; padding: 32px 16px; }
.hero.quiet .btns { justify-content: center; }
.eyebrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); font-weight: 600; min-height: 22px; }
.evno { color: var(--accent); font-weight: 800; }
.hero-links { display: flex; gap: 16px; margin-top: 12px; font-size: 13.5px; font-weight: 600; color: var(--accent); }
.evchips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; }

.meters { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; margin-top: 14px; }
.meter { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; }
.mv { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.ml { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-top: 2px; }
.m-clock { grid-column: span 2; }
.m-clock .mv { font-size: 34px; }
.m-bell { background: var(--live-soft); }
.m-bell .mv { color: var(--live); }
.clock.idle { color: var(--muted); }

.duel { display: grid; gap: 8px; margin-top: 12px; }
.duel-side { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.duel-side.lead { border-color: var(--accent); background: var(--accent-soft); }
.ds-head { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.ds-ab { font-weight: 800; font-size: 12px; background: var(--text); color: var(--bg); border-radius: 6px; padding: 1px 6px; }
.ds-no { color: var(--muted); font-weight: 700; }
.ds-nm { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-af { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-row { display: flex; align-items: baseline; gap: 10px; margin-top: 4px; }
.ds-lab { font-size: 12px; color: var(--muted); font-weight: 600; min-width: 48px; }
.ds-t { font-size: 22px; font-weight: 800; }
.ds-dn { font-size: 14px; color: var(--live); font-weight: 700; }
.elim { display: flex; gap: 10px; align-items: baseline; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--live-soft); font-weight: 600; }
.elim-l { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--live); }
.elim-p { font-weight: 800; }

.seg { display: inline-flex; background: var(--surface-2); border-radius: 10px; padding: 3px; }
.seg button { border: 0; background: none; padding: 5px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }

.next .next-link { display: block; padding: 0 14px 14px; }
.nx-t { font-weight: 700; }
.nx-s { color: var(--muted); font-size: 14px; }
.nx-who { color: var(--muted); font-size: 12.5px; margin-top: 6px; }
.weather { text-align: center; font-size: 12.5px; color: var(--muted); padding: 4px; }

/* ---------------------------------------------------------------- result rows */
/* --pl / --no: rank and number column widths, set per table to its widest value */
.tbl { display: flex; flex-direction: column; --pl: 2.6em; --no: 2.2em; font-variant-numeric: tabular-nums; }
.row {
  display: grid; align-items: center; column-gap: 8px;
  grid-template-columns: var(--pl) minmax(0, 1fr) auto;
  grid-template-areas: "pl who res";
  padding: 9px 14px; border-top: 1px solid var(--line);
  min-height: 48px;
}
.tbl > .row:first-child { border-top: 0; }
.has-no .row { grid-template-columns: var(--pl) var(--no) minmax(0, 1fr) auto; grid-template-areas: "pl no who res"; }
.has-inf .row { grid-template-columns: var(--pl) minmax(0, 1fr) auto auto; grid-template-areas: "pl who inf res"; }
.has-no.has-inf .row { grid-template-columns: var(--pl) var(--no) minmax(0, 1fr) auto auto; grid-template-areas: "pl no who inf res"; }
.start .row .pl { display: none; }
.start .row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "who res"; }
.start.has-no .row { grid-template-columns: var(--no) minmax(0, 1fr) auto; grid-template-areas: "no who res"; }
.start.has-inf .row { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "who inf res"; }
.start.has-no.has-inf .row { grid-template-columns: var(--no) minmax(0, 1fr) auto auto; grid-template-areas: "no who inf res"; }
.pl { grid-area: pl; font-weight: 700; white-space: nowrap; }
.no { grid-area: no; text-align: right; color: var(--muted); font-weight: 600; }
.who { grid-area: who; min-width: 0; }
.nm { font-weight: 600; display: flex; align-items: center; gap: 6px; min-width: 0; }
.nm > span:first-child, .nm > a:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.af { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inf { grid-area: inf; font-size: 12.5px; color: var(--muted); text-align: right; white-space: nowrap; }
.res { grid-area: res; text-align: right; font-weight: 700; white-space: nowrap; }
.ex { font-size: 12px; color: var(--muted); font-weight: 600; }
.row.p1 .pl { color: var(--gold); }
.row.p2 .pl { color: var(--silver); }
.row.p3 .pl { color: var(--bronze); }
.row.mark { background: var(--mark); }
.row.chg { animation: flash 1.6s ease-out; }
@keyframes flash { from { background: var(--accent-soft); } }

.badges { display: inline-flex; gap: 3px; flex: none; }
.bd { font-size: 10px; font-weight: 800; line-height: 1; padding: 3px 5px; border-radius: 5px; background: var(--surface-2); color: var(--muted); }
.b-gold, .b-silver, .b-bronze { color: #fff; border-radius: 50%; width: 17px; height: 17px; padding: 0; display: grid; place-items: center; }
.b-gold { background: var(--gold); }
.b-silver { background: var(--silver); }
.b-bronze { background: var(--bronze); }
.b-q { background: var(--accent-soft); color: var(--accent); }
.b-warn { background: var(--warn-soft); color: var(--warn); }
.b-bad { background: var(--live-soft); color: var(--live); }
.b-rec { background: var(--ok-soft); color: var(--ok); }

.decisions { margin: 4px 14px 14px; padding: 10px 12px; border-radius: 10px; background: var(--warn-soft); font-size: 13px; }
.dh { font-weight: 700; color: var(--warn); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.decisions ul { margin: 4px 0 0; padding-left: 18px; }

/* ---------------------------------------------------------------- sections */
.sec { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.sec > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 14px; font-weight: 700; font-size: 15px; }
.sec > summary::-webkit-details-marker { display: none; }
.sec > summary::after { content: ""; width: 8px; height: 8px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg); margin: -4px 4px 0 auto; transition: transform .15s; flex: none; }
.sec[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
.sec > summary .st { flex: 1; min-width: 0; }
.sec-body { border-top: 1px solid var(--line); }
.sec.contest { border-radius: 0; border-width: 1px 0 0; box-shadow: none; }
.sec.contest > summary { font-size: 14px; padding: 12px 14px; background: var(--surface-2); }
.heat { border-top: 1px solid var(--line); }
.heat-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px 2px; font-size: 13px; font-weight: 700; color: var(--muted); }

/* ---------------------------------------------------------------- schedule */
.sess { display: flex; flex-direction: column; }
.sess-h { position: sticky; top: calc(var(--hdr-h) + env(safe-area-inset-top)); z-index: 5; display: flex; justify-content: space-between; align-items: baseline; padding: 10px 4px 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; background: var(--bg); }
.evlist { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.ev { border-top: 1px solid var(--line); scroll-margin-top: calc(var(--hdr-h) + 48px); }
.ev:first-child { border-top: 0; }
.ev > a, .ev > div { display: grid; grid-template-columns: 2.4em minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 11px 14px; min-height: 56px; }
.ev > a:active { background: var(--surface-2); }
.ev-no { font-weight: 800; color: var(--accent); font-size: 15px; }
.ev-t { font-weight: 600; }
.ev-s { font-size: 13.5px; }
.ev-i { font-size: 12px; color: var(--muted); }
.ev-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.ev-x { font-size: 12px; color: var(--muted); white-space: nowrap; }
.ev.done .ev-t, .ev.done .ev-s { color: var(--muted); }
.ev.brk > div { background: var(--surface-2); min-height: 44px; }
.ev.brk .ev-t { color: var(--muted); font-style: italic; font-weight: 500; }
.ev.now { background: var(--live-soft); box-shadow: inset 3px 0 0 var(--live); }
.ev.now .ev-t, .ev.now .ev-s { color: var(--text); }
.evnav { display: flex; justify-content: space-between; padding: 6px 4px; font-weight: 600; color: var(--accent); }

/* ---------------------------------------------------------------- results index */
.searchbar { position: sticky; top: calc(var(--hdr-h) + env(safe-area-inset-top)); z-index: 6; background: var(--bg); padding: 0 0 4px; }
.search { width: 100%; font: inherit; font-size: 16px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); -webkit-appearance: none; appearance: none; }
.links { list-style: none; margin: 0; padding: 0 0 4px; }
.links li a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); font-weight: 600; min-height: 48px; }
.links li a:active { background: var(--surface-2); }
.plain { margin: 0; padding: 4px 14px 14px 32px; font-size: 13.5px; }

/* ---------------------------------------------------------------- home */
.meet-card { display: block; padding: 16px; }
.mc-top { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.mc-title { font-size: 19px; font-weight: 800; margin-top: 6px; }
.mc-sub { font-weight: 600; color: var(--muted); }
.mc-loc { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ---------------------------------------------------------------- loading */
.loading { display: flex; justify-content: center; gap: 6px; padding: 18px; }
.loading span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); opacity: .35; animation: blink 1s infinite; }
.loading span:nth-child(2) { animation-delay: .15s; }
.loading span:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: 1; } }

/* ---------------------------------------------------------------- wider screens */
@media (min-width: 720px) {
  body { font-size: 15.5px; }
  .page { padding: 18px 20px; gap: 16px; }
  .hero h1 { font-size: 28px; }
  .duel { grid-template-columns: 1fr 1fr; }
  .m-clock .mv { font-size: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* competitor links in tables */
.who .nm a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--link-line);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  padding: 4px 0; margin: -4px 0; /* taller tap target without moving the layout */
  -webkit-tap-highlight-color: transparent;
}
.who .nm a:hover, .who .nm a:focus-visible, .who .nm a:active { color: var(--accent); text-decoration-color: currentColor; }

/* lap / sprint splits under a result row */
.spl-t { appearance: none; border: 0; background: none; padding: 2px 0 0; margin: 0; font: inherit; font-size: 12px; font-weight: 700; color: var(--accent); cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.spl-t::after { content: ""; width: 5px; height: 5px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); margin-top: -3px; transition: transform .15s; }
.spl-t[aria-expanded="true"]::after { transform: rotate(-135deg); margin-top: 2px; }
.spl { padding: 2px 14px 10px; background: var(--surface-2); border-top: 1px dashed var(--line); }
.splits { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.splits th, .splits td { padding: 5px 6px; text-align: right; white-space: nowrap; }
.splits thead th { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.splits tbody th { text-align: left; font-weight: 600; color: var(--muted); }
.splits tbody tr + tr > * { border-top: 1px solid var(--line); }
.splits td.c-split { font-weight: 700; }
.splits tr.best td.c-split { color: var(--accent); }
.splits th:first-child { padding-left: 0; }
.splits td:last-child { padding-right: 0; }

/* competitor page */
.bib { display: inline-block; min-width: 2.2em; text-align: center; padding: 2px 7px; border-radius: 6px; background: var(--text); color: var(--bg); font-weight: 800; font-size: 13px; font-variant-numeric: tabular-nums; }
.hero.rider .eyebrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hero.rider p { margin: 4px 0 0; }
.rcomp .card-h h3 a { color: inherit; }
.rplace { font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums; }
.rplace.p1 { color: var(--gold); } .rplace.p2 { color: var(--silver); } .rplace.p3 { color: var(--bronze); }
.rlist { list-style: none; margin: 0; padding: 0; }
.rlist > li { border-top: 1px solid var(--line); }
.rl { display: grid; grid-template-columns: 2.6em minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 10px 14px; color: inherit; text-decoration: none; min-height: 48px; }
.rlist > li.d1 .rl { padding-left: 26px; } .rlist > li.d2 .rl, .rlist > li.d3 .rl { padding-left: 38px; }
.rl-pl { font-weight: 800; font-variant-numeric: tabular-nums; }
.rl-t { min-width: 0; font-weight: 600; display: flex; flex-direction: column; }
.rl-up { font-size: 12px; color: var(--muted); font-weight: 500; }
.rl-r { text-align: right; font-weight: 700; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-variant-numeric: tabular-nums; }
.rlist .spl-sec > summary { padding: 8px 14px 8px 26px; font-size: 12.5px; color: var(--accent); }
.rlist .spl-sec .sec-body { padding: 4px 14px 10px; background: var(--surface-2); }

/* rider search hits */
.links.riders li a { justify-content: flex-start; gap: 10px; }
.links.riders .rn { display: flex; flex-direction: column; min-width: 0; }
.links.riders .rn .muted { font-size: 12.5px; font-weight: 500; }
.card.next .card-h .evno { font-size: 13px; }
.rl-pl.won { color: var(--ok, #15803d); font-size: 13px; }
.rl-pl.lost { color: var(--muted); font-size: 13px; font-weight: 700; }
.pips { display: inline-flex; gap: 3px; }
.pip { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; font-size: 10.5px; font-weight: 800; }
.pip.w { background: var(--accent-soft); color: var(--accent); }
.pip.l { background: var(--surface-2); color: var(--muted); }
.phase-more { padding: 8px 14px 12px; font-size: 13px; color: var(--muted); }
.rcomp .card-h h3 { display: flex; flex-direction: column; min-width: 0; }
.rcat { font-size: 12px; font-weight: 600; color: var(--muted); }

/* nation / team flags */
.flag { flex: none; width: 21px; height: 14px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px var(--line); background: var(--surface-2); vertical-align: middle; }
.rider-name { display: flex; align-items: center; gap: 10px; }
.flag.team { width: 20px; height: 20px; object-fit: contain; box-shadow: none; background: none; border-radius: 0; }
.rider-name .flag { width: 30px; height: 20px; border-radius: 3px; }
.rider-name .flag.team { width: 30px; height: 30px; }
.duel .flag { margin-right: 2px; }
