/* =========================================================
   Chapter 08 — 세계의 자전거 대회 (page-specific styles)
   ========================================================= */
:root {
  --rc-yellow: #f6c800; --rc-green: #1f9d48; --rc-polka: #d7263d; --rc-white: #fbfaf7;
  --rc-pink: #f27ba8; --rc-red: #d0122c; --rc-cyclamen: #b02a7a; --rc-azure: #2a7fd4; --rc-blue-dot: #1d4fbf;
  --rc-team-a: #2f5bea; --rc-team-b: #0f8b8d; --rc-team-c: #7a4de0;
  --rc-skin: #e3b48f; --rc-skin-2: #c9946c; --rc-shorts: #1d1c18; --rc-bike: #2b2924; --rc-tyre: #16140f; --rc-rim: #8b857a;
  --rc-sky-1: #ffe9d6; --rc-sky-2: #f6f3ee; --rc-snow: #fbfaf7; --rc-mtn-far: #e6d9c8; --rc-mtn-mid: #d4c2ab; --rc-mtn-near: #bfa98d;
  --rc-road: #3a3730; --rc-road-line: #f6f3ee; --rc-grass: #c9d9b0;
  --rc-g1: #2e9a4a; --rc-g2: #9cbc2b; --rc-g3: #f2b01e; --rc-g4: #ef6c1e; --rc-g5: #d7263d; --rc-g6: #7d1027;
  --rc-cobble: #9b9184; --rc-cobble-2: #807669; --rc-cobble-gap: #5d554b;
  --rc-track: #c99a62; --rc-track-2: #b98650; --rc-infield: #2f6b4f;
  --rc-dot: #cfc6b8; --rc-dot-hi: #ff5a1f;
  --rc-air: rgba(47, 91, 234, .55); --rc-air-slow: rgba(15, 139, 141, .45);
  --rc-shadow: rgba(22, 20, 15, .16);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --rc-white: #f2eee6; --rc-skin: #d9a985; --rc-skin-2: #b9845e; --rc-shorts: #0b0a08; --rc-bike: #cfc8bb; --rc-tyre: #77716a; --rc-rim: #5f5a52; --rc-snow: #4a463e;
    --rc-sky-1: #2a1d16; --rc-sky-2: #12110e; --rc-mtn-far: #24221d; --rc-mtn-mid: #2e2b25; --rc-mtn-near: #3a362e;
    --rc-road: #1f1d19; --rc-road-line: #9a948a; --rc-grass: #1f2a1a;
    --rc-cobble: #5b554c; --rc-cobble-2: #4a443c; --rc-cobble-gap: #23211c;
    --rc-track: #8a6a43; --rc-track-2: #6d5232; --rc-infield: #18382a;
    --rc-dot: #3d3a33; --rc-dot-hi: #ff6a33; --rc-g6: #e0457b;
    --rc-air: rgba(109, 141, 255, .6); --rc-air-slow: rgba(47, 184, 186, .5);
    --rc-shadow: rgba(0, 0, 0, .45);
  }
}
:root[data-theme="dark"] {
  --rc-white: #f2eee6; --rc-skin: #d9a985; --rc-skin-2: #b9845e; --rc-shorts: #0b0a08; --rc-bike: #cfc8bb; --rc-tyre: #77716a; --rc-rim: #5f5a52; --rc-snow: #4a463e;
  --rc-sky-1: #2a1d16; --rc-sky-2: #12110e; --rc-mtn-far: #24221d; --rc-mtn-mid: #2e2b25; --rc-mtn-near: #3a362e;
  --rc-road: #1f1d19; --rc-road-line: #9a948a; --rc-grass: #1f2a1a;
  --rc-cobble: #5b554c; --rc-cobble-2: #4a443c; --rc-cobble-gap: #23211c;
  --rc-track: #8a6a43; --rc-track-2: #6d5232; --rc-infield: #18382a;
  --rc-dot: #3d3a33; --rc-dot-hi: #ff6a33; --rc-g6: #e0457b;
  --rc-air: rgba(109, 141, 255, .6); --rc-air-slow: rgba(47, 184, 186, .5);
  --rc-shadow: rgba(0, 0, 0, .45);
}

/* ---------- Rider ---------- */
.rc-rider path, .rc-rider circle { vector-effect: non-scaling-stroke; }
.rc-r-tyre { fill: none; stroke: var(--rc-tyre); stroke-width: 4.2; }
.rc-r-rim { fill: none; stroke: var(--rc-rim); stroke-width: 1.4; }
.rc-r-spk { stroke: var(--rc-rim); stroke-width: .7; opacity: .8; }
.rc-r-frame { fill: none; stroke: var(--rc-bike); stroke-width: 3.6; stroke-linejoin: round; stroke-linecap: round; }
.rc-r-bar, .rc-r-seat { fill: none; stroke: var(--rc-bike); stroke-width: 2.6; stroke-linecap: round; }
.rc-r-crank { stroke: var(--rc-rim); stroke-width: 2.4; stroke-linecap: round; }
.rc-r-ring { fill: none; stroke: var(--rc-rim); stroke-width: 2; }
.rc-r-leg { fill: none; stroke-width: 7.5; stroke-linecap: round; stroke-linejoin: round; }
.rc-r-leg.near { stroke: var(--rc-skin); }
.rc-r-leg.far { stroke: var(--rc-skin-2); }
.rc-r-foot { stroke: var(--rc-shorts); stroke-width: 5; stroke-linecap: round; }
.rc-r-torso { fill: none; stroke-width: 15; stroke-linecap: round; }
.rc-r-arm { fill: none; stroke-width: 6.5; stroke-linecap: round; }
.rc-r-fore { fill: none; stroke: var(--rc-skin); stroke-width: 5; stroke-linecap: round; }
.rc-r-head { fill: var(--rc-skin); }
.rc-r-helmet { fill: var(--ink); }
.rc-r-dots { stroke: var(--rc-polka); stroke-width: 4.2; stroke-linecap: round; }
.rc-r-rb { stroke: var(--rc-azure); stroke-width: 4; }
.is-white .rc-r-torso, .is-white .rc-r-arm { filter: drop-shadow(0 0 .6px var(--ink-2)); }
.rc-rider .rc-r-torso[style*="--rc-white"] { filter: drop-shadow(0 0 .7px var(--muted)); }
.rc-r-shorts { fill: none; stroke: var(--rc-shorts); stroke-width: 9; stroke-linecap: round; }
.rc-r-shorts.far { opacity: .85; }

/* ---------- Hero ---------- */
.rc-hero-stage { margin-top: 40px; border-radius: calc(var(--radius) + 6px); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--rc-sky-2); }
.rc-hero-stage svg { width: 100%; height: clamp(220px, 34vw, 400px); }
.rc-hero-sun { fill: var(--accent); opacity: .22; }
.rc-hero-mtn.far { fill: var(--rc-mtn-far); }
.rc-hero-mtn.mid { fill: var(--rc-mtn-mid); }
.rc-hero-snow { fill: var(--rc-snow); opacity: .9; }
.rc-rider.far { opacity: .82; }
.rc-hero-grass { fill: var(--rc-grass); }
.rc-hero-roadbed { fill: var(--rc-road); }
.rc-hero-dash { stroke: var(--rc-road-line); stroke-width: 4; opacity: .6; }
.rc-hero-arch { fill: none; stroke: var(--rc-polka); stroke-width: 16; stroke-linejoin: round; opacity: .9; }
.rc-hero-flag { fill: var(--rc-polka); }
.rc-hero-km { font: 700 18px var(--mono); fill: var(--rc-polka); text-anchor: middle; letter-spacing: .1em; }
.rc-hero-stats { margin-top: 40px; }
.rc-hero-stats .stat-label { max-width: 26ch; }
:root { --rc-rb1: #1f5fc8; --rc-rb2: #d7263d; --rc-rb3: #16140f; --rc-rb4: #f6c800; --rc-rb5: #1f9d48; }

/* ---------- Shared bits ---------- */
.rc-note { font-size: .8rem; color: var(--muted); line-height: 1.6; margin: 14px 0 0; }
.rc-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.rc-seg .chip { padding: 6px 12px; font-size: .82rem; }
.rc-mini-h { font-size: .8rem; font-family: var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 18px 0 10px; font-weight: 600; }
.rc-mini-h small { text-transform: none; letter-spacing: 0; }
.rc-land { fill: none; stroke: var(--rc-dot); stroke-linecap: round; }
.rc-land.w { stroke-width: 2.6; }
.rc-land.e { stroke-width: 2.4; }
.tag[style*="--dc"] { background: color-mix(in srgb, var(--dc) 16%, transparent); color: var(--dc); }

/* ---------- Calendar / map ---------- */
.rc-filter { margin-bottom: 16px; }
.rc-filter .chip b { font-family: var(--mono); font-weight: 600; font-size: .75rem; opacity: .7; }
.rc-dchip::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--dc); }
.rc-cal-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.rc-map-wrap { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; overflow: hidden; }
.rc-map { width: 100%; height: auto; aspect-ratio: 720 / 272; max-height: 460px; margin: 0 auto; }
.rc-eu-box { fill: none; stroke: var(--line-2); stroke-dasharray: 4 4; }
.rc-mk { cursor: pointer; outline: none; }
.rc-mk-dot { fill: var(--mc); stroke: var(--surface); stroke-width: 1.6; transition: r .2s; }
.rc-mk-ring { fill: none; stroke: var(--mc); stroke-width: 1.2; stroke-dasharray: 2 2; }
.rc-mk:hover .rc-mk-dot, .rc-mk:focus-visible .rc-mk-dot { stroke: var(--ink); stroke-width: 2.2; }
.rc-mk.is-sel .rc-mk-dot { stroke: var(--ink); stroke-width: 2.4; }
.rc-mk-pulse { fill: var(--mc); opacity: .25; transform-box: fill-box; transform-origin: center; animation: rc-pulse 1.8s ease-out infinite; }
@keyframes rc-pulse { from { transform: scale(.6); opacity: .5; } to { transform: scale(2.2); opacity: 0; } }
.rc-mk-lab rect { fill: var(--ink); }
.rc-mk-lab text { fill: var(--bg); font: 700 12px var(--font); text-anchor: middle; dominant-baseline: middle; }
.rc-cal-card { background: var(--ink); color: var(--bg); border-radius: var(--radius); padding: 20px 22px; font-size: .9rem; line-height: 1.6; outline: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr) minmax(0, 1.3fr); gap: 8px 24px; align-items: start; }
.rc-cc-b p { margin-top: 0; }
@media (max-width: 860px) { .rc-cal-card { grid-template-columns: 1fr; } }
.rc-cal-card:focus-visible { outline: 3px solid var(--accent); }
.rc-cal-card .tag { background: color-mix(in srgb, var(--bg) 14%, transparent); color: var(--bg); margin: 0 4px 4px 0; }
.rc-cal-card .tag[style*="--dc"] { background: var(--dc); color: #fff; }
.rc-cc-title { font-size: 1.35rem; margin: 8px 0 0; color: var(--bg); }
.rc-cc-en { font-family: var(--serif); font-style: italic; opacity: .7; margin-bottom: 12px; }
.rc-cc-dl { display: grid; gap: 6px; margin: 0 0 12px; }
.rc-cc-dl div { display: grid; grid-template-columns: 64px 1fr; gap: 8px; }
.rc-cc-dl dt { font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; opacity: .65; padding-top: 2px; }
.rc-cc-dl dd { margin: 0; font-weight: 600; }
.rc-cal-card p { margin: 0 0 14px; opacity: .9; }
.rc-cal-card .btn-ghost { color: var(--bg); border-color: color-mix(in srgb, var(--bg) 35%, transparent); }
.rc-months-scroll { overflow-x: auto; margin-top: 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
.rc-months { min-width: 720px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 26px; gap: 4px 4px; padding: 10px; position: relative;
  background-image: repeating-linear-gradient(90deg, transparent 0 calc((100% - 0px) / 12 - 1px), var(--line) calc((100% - 0px) / 12 - 1px) calc((100% - 0px) / 12)); background-origin: content-box; background-clip: content-box; }
.rc-mh { grid-row: 1; font: 600 .72rem var(--mono); color: var(--muted); text-align: center; align-self: center; }
.rc-mh.now { color: var(--accent-ink); }
.rc-mh.now::after { content: " ●"; }
.rc-mbar { border: 0; border-radius: 6px; font-size: .72rem !important; padding: 0 6px !important; background: color-mix(in srgb, var(--mc) 18%, var(--surface)); color: var(--ink); font-size: .74rem; font-weight: 700; text-align: left; padding: 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-left: 4px solid var(--mc); transition: background .2s, transform .15s; }
.rc-mbar:hover { background: color-mix(in srgb, var(--mc) 32%, var(--surface)); }
.rc-mbar.is-sel { background: var(--mc); color: #fff; }
@media (max-width: 860px) { .rc-cal-grid { grid-template-columns: 1fr; } }

/* ---------- Grand tours ---------- */
.rc-gt-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.rc-gt-mapbox { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; position: relative; }
.rc-gt-map { width: 100%; height: auto; display: block; }
.rc-host { fill: color-mix(in srgb, var(--accent) 7%, transparent); stroke: var(--ink-2); stroke-linejoin: round; opacity: .75; }
.rc-st { fill: none; stroke: var(--sc); stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: var(--len, 400); stroke-dashoffset: var(--len, 400); }
.rc-st.x { stroke-dasharray: 2 3; opacity: .7; }
.rc-tr { fill: none; stroke: var(--muted); stroke-dasharray: 2 3; opacity: 0; }
.drawn .rc-st:not(.x) { stroke-dashoffset: 0; transition: stroke-dashoffset .35s ease calc(var(--i) * 70ms); }
.drawn .rc-st.x, .drawn .rc-tr { opacity: .8; transition: opacity .3s ease calc(var(--i) * 70ms); }
.drawn.instant .rc-st, .drawn.instant .rc-tr { transition: none; }
.rc-sd { cursor: pointer; outline: none; }
.rc-sd .hit { fill: transparent; }
.rc-sd .dot { fill: var(--surface); stroke: var(--sc); stroke-width: 1.4; }
.rc-sd:hover .dot, .rc-sd:focus-visible .dot, .rc-sd.on .dot { fill: var(--sc); stroke: var(--ink); }
.rc-flag path { stroke: var(--ink); stroke-width: 1.4; fill: none; }
.rc-flag .f { fill: var(--ink); stroke: none; }
.rc-flag.e .f { fill: var(--accent); }
.rc-flag text { font: 800 11px var(--font); fill: var(--ink); paint-order: stroke; stroke: var(--surface-2); stroke-width: 3px; }
.rc-gt-tip { font-size: .85rem; color: var(--ink-2); padding: 10px 6px 4px; min-height: 2.6em; }
.rc-st-badge { display: inline-block; padding: 1px 8px; border-radius: 6px; font-size: .75rem; font-weight: 700; background: var(--sc); color: #fff; }
.rc-gt-replay { float: right; margin: 8px 4px 0 8px; background: var(--surface); }
.rc-gt-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rc-gt-tiles > div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.rc-gt-tiles b { display: block; font-family: var(--serif); font-size: 1.6rem; line-height: 1.1; letter-spacing: -.03em; }
.rc-gt-tiles b small { font-family: var(--font); font-size: .8rem; color: var(--muted); margin-left: 3px; }
.rc-gt-tiles span { font-size: .76rem; color: var(--muted); line-height: 1.45; display: block; margin-top: 4px; }
.rc-st-bar { display: flex; height: 22px; border-radius: 999px; overflow: hidden; margin-top: 16px; gap: 2px; }
.rc-st-bar span { background: var(--sc); color: #fff; font: 700 .72rem var(--mono); display: grid; place-items: center; }
.rc-st-legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; font-size: .75rem; color: var(--muted); }
.rc-st-legend span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--sc); margin-right: 5px; }
.rc-jerseys { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rc-jerseys li { display: grid; grid-template-columns: 52px 1fr; gap: 10px; align-items: center; font-size: .8rem; line-height: 1.4; }
.rc-jerseys b { display: block; font-size: .88rem; }
.rc-jerseys i { display: block; font-family: var(--serif); color: var(--muted); font-size: .76rem; }
.rc-jerseys span { color: var(--ink-2); }
.rc-jersey { width: 52px; height: 52px; filter: drop-shadow(0 2px 3px var(--rc-shadow)); }
.rc-j-line { fill: none; stroke: var(--ink-2); stroke-width: 1.4; stroke-linejoin: round; opacity: .55; }
.rc-j-collar { fill: none; stroke: var(--ink-2); stroke-width: 2; opacity: .5; }
.rc-j-zip { stroke: var(--ink-2); stroke-width: 1; opacity: .3; }
.rc-gt-table { margin-top: 20px; }
.rc-gt-rec { font-size: .85rem; color: var(--ink-2); margin: 10px 0 0; }
@media (max-width: 860px) { .rc-gt-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .rc-jerseys { grid-template-columns: 1fr; } .rc-gt-tiles b { font-size: 1.35rem; } }

/* ---------- Climbs ---------- */
.rc-climb-pick { margin-bottom: 14px; }
.rc-climb-body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.rc-climb-fig { margin: 0; }
.rc-climb-svg { width: 100%; height: auto; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); }
.rc-cgrid line { stroke: var(--line); }
.rc-cgrid text, .rc-hgrid text { fill: var(--muted); font: 11px var(--mono); }
.rc-cax { fill: var(--muted); font: 600 11px var(--mono); }
.rc-seg { stroke: var(--surface-2); stroke-width: 1; }
.rc-ctop { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linejoin: round; }
.rc-gl { font: 700 10.5px var(--mono); fill: var(--ink-2); text-anchor: middle; }
.rc-cflag path { stroke: var(--ink); stroke-width: 1.6; fill: none; }
.rc-cflag .f { fill: var(--accent); stroke: none; }
.rc-csum { font: 800 14px var(--font); fill: var(--ink); }
.rc-crider circle { fill: var(--accent); stroke: var(--surface); stroke-width: 2.5; }
.rc-crider .halo { fill: none; stroke: var(--accent); stroke-width: 2; opacity: .35; }
.rc-grad-legend { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.rc-grad-legend span { font: 600 .72rem var(--mono); color: var(--ink-2); display: inline-flex; align-items: center; gap: 5px; padding-right: 8px; }
.rc-grad-legend span::before { content: ""; width: 14px; height: 10px; border-radius: 3px; background: var(--c); }
.rc-climb-info h4 { font-size: 1.35rem; margin: 10px 0 0; }
.rc-climb-info h4 small { font-family: var(--serif); font-weight: 400; color: var(--muted); font-size: .9rem; font-style: italic; }
.rc-ci-head .tag { margin-right: 4px; }
.rc-ci-from { color: var(--muted); font-size: .85rem; margin: 2px 0 12px; }
.rc-ci-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 14px; }
.rc-ci-stats div { border-top: 2px solid var(--ink); padding-top: 6px; }
.rc-ci-stats dt { font-size: .72rem; color: var(--muted); }
.rc-ci-stats dd { margin: 0; font-family: var(--serif); font-weight: 800; font-size: 1.3rem; line-height: 1.2; }
.rc-ci-stats dd small { font-family: var(--font); font-size: .7rem; color: var(--muted); margin-left: 2px; }
.rc-ci-rec { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.rc-ci-rec li { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; display: grid; grid-template-columns: 1fr auto; gap: 0 10px; font-size: .84rem; }
.rc-ci-rec .t { font-family: var(--mono); font-weight: 600; color: var(--accent-ink); text-align: right; }
.rc-ci-rec .s { grid-column: 1 / -1; color: var(--muted); font-size: .75rem; }
.rc-ci-note { font-size: .86rem; color: var(--ink-2); line-height: 1.65; }
.rc-wkg { margin: 0; }
.rc-wkg label { display: flex; justify-content: space-between; gap: 10px; }
.rc-wkg output { font-family: var(--mono); color: var(--accent-ink); }
.rc-wkg .hint b { font-family: var(--mono); color: var(--ink); }
@media (max-width: 860px) { .rc-climb-body { grid-template-columns: 1fr; } }

/* ---------- Paris–Roubaix ---------- */
.rc-pr-strip { width: 100%; height: auto; margin-bottom: 14px; }
.rc-pr-base { fill: var(--line-2); }
.rc-pr-strip line { stroke: var(--line-2); }
.rc-pr-strip text { fill: var(--muted); font: 10.5px var(--mono); text-anchor: middle; }
.rc-pr-strip .rc-pr-end { font: 700 11.5px var(--font); fill: var(--ink-2); text-anchor: start; }
.rc-pr-strip .rc-pr-end[text-anchor="end"] { text-anchor: end; }
.rc-pr-strip .rc-pr-5 { fill: var(--rc-g6); font-weight: 700; }
.rc-pr-strip .rc-pr-sum { font: 700 12px var(--font); fill: var(--ink); text-anchor: start; }
.rc-pr-sec { fill: var(--pc); cursor: pointer; transition: opacity .2s, transform .2s; }
.rc-pr-sec.off { opacity: .15; cursor: default; }
.rc-pr-sec.sel { stroke: var(--ink); stroke-width: 2; }
.rc-pr-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px; }
.rc-pr-list { max-height: 330px; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); padding: 4px; }
.rc-pr-opt { display: grid; grid-template-columns: 28px minmax(0, 1fr) 46px auto; gap: 8px; align-items: center; padding: 7px 10px; border-radius: 8px; font-size: .82rem; cursor: pointer; }
.rc-pr-opt:hover { background: var(--surface); }
.rc-pr-opt[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.rc-pr-opt .no { font: 600 .74rem var(--mono); color: var(--muted); }
.rc-pr-opt[aria-selected="true"] .no { color: inherit; opacity: .7; }
.rc-pr-opt .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-pr-opt .ln { font-family: var(--mono); font-size: .76rem; text-align: right; }
.rc-pr-opt .st { color: var(--pc); letter-spacing: -1px; font-size: .78rem; }
.rc-pr-opt[aria-selected="true"] .st { color: var(--rc-yellow); }
.rc-pr-list:focus-visible { outline: 3px solid var(--accent); }
.rc-pr-vib { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface-2); }
.rc-vib-sky { fill: var(--surface-2); }
.rc-cob { fill: var(--rc-cobble); }
.rc-cob.b { fill: var(--rc-cobble-2); }
.rc-cob-gap { fill: var(--rc-cobble-gap); }
.rc-vib-t { font: 700 12px var(--mono); fill: var(--accent-ink); }
.rc-pr-info { margin-top: 12px; }
.rc-pr-big .no { font: 600 .74rem var(--mono); color: var(--muted); display: block; letter-spacing: .08em; }
.rc-pr-big b { font-size: 1.2rem; }
.rc-pr-stars { color: var(--pc); font-size: 1.4rem; letter-spacing: 2px; }
.rc-pr-dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 8px 0 10px; }
.rc-pr-dl div { border-top: 2px solid var(--ink); padding-top: 4px; }
.rc-pr-dl dt { font-size: .72rem; color: var(--muted); }
.rc-pr-dl dd { margin: 0; font-family: var(--mono); font-weight: 600; }
.rc-pr-info p { font-size: .88rem; color: var(--ink-2); margin: 0; }
@media (max-width: 760px) { .rc-pr-body { grid-template-columns: 1fr; } .rc-pr-list { max-height: 240px; } }

/* ---------- Monuments ---------- */
.rc-mon-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 2.4em 0; }
.rc-mon { text-align: left; padding: 16px; display: flex; flex-direction: column; gap: 4px; font: inherit; color: inherit; cursor: pointer; }
.rc-mon:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
.rc-mon-y { font: 600 .7rem var(--mono); color: var(--muted); }
.rc-mon > b { font-size: 1rem; line-height: 1.3; }
.rc-mon > i { font-family: var(--serif); font-size: .82rem; color: var(--accent-ink); }
.rc-spark { width: 100%; height: 44px; margin: 6px 0; }
.rc-spark .a { fill: color-mix(in srgb, var(--accent) 18%, transparent); }
.rc-spark .l { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.rc-spark.big { height: 90px; }
.rc-mon-w { font-size: .76rem; color: var(--muted); }
.rc-mon-w b { color: var(--ink); display: block; font-size: .84rem; }
.rc-mon-km { font: 600 .74rem var(--mono); color: var(--ink-2); margin-top: auto; }
@media (max-width: 1100px) { .rc-mon-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .rc-mon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rc-dialog { border: 0; padding: 0; border-radius: calc(var(--radius) + 4px); background: var(--surface); color: var(--ink); width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); box-shadow: var(--shadow-lg); }
.rc-dialog::backdrop { background: rgba(10, 9, 7, .55); backdrop-filter: blur(3px); }
.rc-dialog-inner { padding: 28px; position: relative; }
.rc-dialog-close { position: absolute; top: 14px; right: 14px; }
.rc-dialog h3 small { font-family: var(--serif); font-weight: 400; color: var(--muted); font-size: .85rem; display: block; }
.rc-dialog .rc-cc-dl { margin: 14px 0; }
.rc-dialog .rc-cc-dl dt { color: var(--muted); opacity: 1; }
.rc-dlg-nick { font-family: var(--serif); color: var(--accent-ink); margin: 0; }

/* ---------- Drafting ---------- */
.rc-draft-body { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.rc-draft-stage { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); touch-action: none; }
.rc-draft-stage canvas { width: 100%; height: auto; display: block; cursor: grab; aspect-ratio: 26 / 10.4; }
.rc-draft-stage canvas:active { cursor: grabbing; }
.rc-draft-me { position: absolute; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; border: 0; background: transparent; cursor: grab; touch-action: none; }
.rc-draft-me:focus-visible { outline: 3px solid var(--accent); outline-offset: 0; }
.rc-draft-wind { position: absolute; right: 10px; top: 6px; font: 600 .72rem var(--mono); color: var(--blue); }
.rc-dr-big span { font-size: .8rem; color: var(--muted); display: block; }
.rc-dr-big b { font-family: var(--serif); font-size: 3.2rem; line-height: 1; letter-spacing: -.04em; }
.rc-dr-big b small { font-size: .45em; color: var(--muted); }
.rc-dr-big em { font-style: normal; font-size: .78rem; color: var(--muted); margin-left: 6px; }
.rc-dr-meter { height: 10px; border-radius: 999px; background: var(--bg-2); overflow: hidden; margin: 10px 0 14px; }
.rc-dr-meter i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--teal), var(--gold), var(--red)); background-size: 300px 100%; transition: width .25s; }
.rc-dr-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 12px; }
.rc-dr-dl div { border-top: 2px solid var(--ink); padding-top: 4px; }
.rc-dr-dl dt { font-size: .72rem; color: var(--muted); }
.rc-dr-dl dd { margin: 0; font-family: var(--mono); font-weight: 600; font-size: 1.1rem; }
.rc-dr-dl dd small { font-size: .7rem; color: var(--muted); margin-left: 2px; }
.rc-dr-tip { font-size: .84rem; color: var(--ink-2); background: var(--surface-2); border-radius: 12px; padding: 10px 12px; margin: 0; }
@media (max-width: 860px) { .rc-draft-body { grid-template-columns: 1fr; } }

/* ---------- Worlds / Olympics ---------- */
.rc-wo-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: 28px; align-items: center; }
.rc-rainbow { display: grid; justify-items: center; gap: 10px; }
.rc-jersey-big { width: min(220px, 70%); height: auto; filter: drop-shadow(0 10px 18px var(--rc-shadow)); }
.rc-jb-body { fill: var(--rc-white); }
.rc-jb-line { fill: none; stroke: var(--ink-2); stroke-width: 1.6; stroke-linejoin: round; opacity: .5; }
.rc-jb-zip { stroke: var(--ink-2); stroke-width: 1; opacity: .25; }
.rc-jb-cuff { fill: none; }
.rc-rb-facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; width: 100%; font-size: .84rem; }
.rc-rb-facts li { display: grid; grid-template-columns: 54px 1fr; gap: 8px; color: var(--ink-2); }
.rc-rb-facts b { font-family: var(--mono); color: var(--accent-ink); }
.rc-oly-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.rc-oly-head b { font-family: var(--serif); font-size: 3.4rem; line-height: 1; color: var(--gold); }
.rc-oly-head span { font-size: .86rem; color: var(--ink-2); line-height: 1.5; }
.rc-oly-row { display: grid; grid-template-columns: 130px 1fr; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.rc-oly-n { font-weight: 800; color: var(--oc); font-size: .95rem; line-height: 1.3; }
.rc-oly-n small { display: block; font-weight: 500; color: var(--muted); font-size: .72rem; margin-top: 2px; }
.rc-oly-medals { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.rc-oly-medals .m { display: inline-flex; align-items: center; gap: 3px; font-size: .78rem; color: var(--ink-2); outline: none; border-radius: 6px; }
.rc-oly-medals .m:focus-visible { outline: 2px solid var(--accent); }
.rc-oly-medals i { width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffe58a, var(--gold) 60%, #a87400); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--oc) 55%, transparent); }
.rc-oly-medals em { font-style: normal; margin-left: 3px; }
@media (max-width: 760px) { .rc-wo-grid { grid-template-columns: 1fr; } .rc-oly-row { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- Velodrome ---------- */
.rc-velo-body { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.rc-velo-svg { width: 100%; height: auto; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); }
.rc-v-out { fill: var(--line); }
.rc-v-track { fill: var(--rc-track); }
.rc-v-cote { fill: var(--blue); opacity: .55; }
.rc-v-in { fill: var(--rc-infield); }
.rc-v-l { fill: none; stroke-width: 1.6; }
.rc-v-l.black { stroke: #16140f; }
.rc-v-l.red { stroke: var(--rc-red); }
.rc-v-l.blue { stroke: var(--rc-azure); }
.rc-v-fin { stroke: #fff; stroke-width: 4; stroke-dasharray: 3 3; }
.rc-v-t { fill: #f2eee6; font: 600 11px var(--mono); text-anchor: middle; }
.rc-v-t.big { font: 800 30px var(--serif); }
.rc-v-t.side { fill: var(--muted); }
.rc-velo-svg > text:not(.big):not(.side) { }
.rc-v-legend text { fill: #f2eee6; font: 600 10px var(--mono); }
.rc-v-legend .red { fill: #ff9aa8; }
.rc-v-legend .blue { fill: #9cc3ff; }
.rc-v-derny ellipse { fill: #16140f; stroke: #f2eee6; stroke-width: 1.4; }
.rc-v-derny .h { fill: var(--rc-yellow); }
.rc-v-derny text { font: 800 9px var(--font); fill: #16140f; text-anchor: middle; paint-order: stroke; stroke: #f2eee6; stroke-width: 2.5px; }
.rc-v-r ellipse { fill: var(--rc); stroke: #16140f; stroke-width: 1.2; }
.rc-v-r circle { fill: #2b2924; }
.rc-v-r text { font: 800 9px var(--mono); fill: #f2eee6; text-anchor: middle; paint-order: stroke; stroke: #16140f; stroke-width: 2.5px; }
.rc-v-r text.n { font-size: 8.5px; }
.rc-velo-hud { background: var(--ink); color: var(--bg); border-radius: var(--radius); padding: 16px; }
.rc-vh-phase { font-weight: 800; font-size: .95rem; margin-bottom: 10px; min-height: 2.8em; }
.rc-velo-hud dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 12px; }
.rc-velo-hud dt { font-size: .7rem; opacity: .6; }
.rc-velo-hud dd { margin: 0; font: 600 1.25rem var(--mono); }
.rc-velo-hud dd small { font-size: .65rem; opacity: .6; margin-left: 2px; }
.rc-vh-order { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.rc-vh-order li span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--rc); color: #16140f; font: 800 .75rem var(--mono); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--bg) 60%, transparent); }
.rc-vh-order li[style*="--ink"] span { color: var(--bg); }
.rc-bank { width: 100%; max-width: 280px; height: auto; margin: 12px auto 0; }
.rc-bank-ground { stroke: var(--line-2); stroke-width: 2; }
.rc-bank-track { fill: var(--rc-track); }
.rc-bank-arc { fill: none; stroke: var(--accent); stroke-width: 2; }
.rc-bank-t { font: 700 13px var(--mono); fill: var(--accent-ink); }
.rc-bank-t2 { font: 600 11px var(--mono); fill: var(--muted); }
.rc-bank-w { fill: none; stroke: var(--ink); stroke-width: 2.4; }
.rc-bank-rider { stroke: var(--blue); stroke-width: 7; stroke-linecap: round; }
.rc-bank-head { fill: var(--ink); }
.rc-tr-events { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.rc-tre { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; }
.rc-tre h4 { margin: 8px 0 4px; }
.rc-tre p { font-size: .82rem; color: var(--ink-2); line-height: 1.6; margin: 0 0 10px; }
.rc-tre-fig { margin-top: auto; border-top: 1px dashed var(--line-2); padding-top: 8px; }
.rc-tre-fig b { font-family: var(--serif); font-size: 1.3rem; display: block; line-height: 1.1; }
.rc-tre-fig span { font-size: .72rem; color: var(--muted); }
@media (max-width: 860px) { .rc-velo-body { grid-template-columns: 1fr; } .rc-tr-events { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .rc-tr-events { grid-template-columns: 1fr; } }

/* ---------- Hour record ---------- */
.rc-hour-svg { width: 100%; height: auto; }
.rc-hgrid line { stroke: var(--line); }
.rc-hb { fill: var(--bc); opacity: .08; }
.rc-hline { fill: none; stroke: var(--ink-2); stroke-width: 2; stroke-linejoin: round; }
.rc-hp { cursor: pointer; outline: none; }
.rc-hp .hit { fill: transparent; }
.rc-hp .dot { fill: var(--pc); stroke: var(--surface); stroke-width: 2; transition: r .2s; }
.rc-hp.on .dot, .rc-hp:focus-visible .dot { r: 8; stroke: var(--ink); }
.rc-hlab { font: 800 12px var(--font); fill: var(--accent-ink); }
.rc-hour-legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: .78rem; color: var(--ink-2); margin: 6px 0 12px; }
.rc-hour-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--pc); margin-right: 6px; vertical-align: -1px; }
.rc-hour-read { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; }
.rc-hour-read > b { font-family: var(--serif); font-size: 1.6rem; }
.rc-hour-read .nm { font-weight: 800; }
.rc-hour-read .km { font: 600 1.1rem var(--mono); color: var(--accent-ink); }
.rc-hour-read .pl, .rc-hour-read .df { font-size: .82rem; color: var(--muted); }
.rc-hour-read .era { font-size: .74rem; font-weight: 700; padding: 2px 8px; border-radius: 6px; color: var(--pc); background: color-mix(in srgb, var(--pc) 14%, transparent); }

/* ---------- Off-road ---------- */
.rc-off-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; align-items: center; }
.rc-off-svg { width: 100%; height: auto; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); }
.rc-off-ground { fill: none; stroke: color-mix(in srgb, var(--rc-track-2) 45%, transparent); stroke-width: 16; stroke-linecap: round; stroke-linejoin: round; }
.rc-off-path { fill: none; stroke: var(--ink-2); stroke-width: 2; stroke-dasharray: 6 6; }
.rc-off-mk circle { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.rc-off-mk text { font: 700 11.5px var(--font); fill: var(--ink); text-anchor: middle; paint-order: stroke; stroke: var(--surface-2); stroke-width: 4px; }
.rc-off-dot { fill: var(--blue); stroke: var(--surface); stroke-width: 3; }
.rc-off-txt { font-size: .92rem; color: var(--ink-2); }
.rc-off-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.rc-off-dl div { border-top: 2px solid var(--ink); padding-top: 4px; }
.rc-off-dl dt { font-size: .72rem; color: var(--muted); }
.rc-off-dl dd { margin: 0; font-weight: 700; font-size: .92rem; }
@media (max-width: 760px) { .rc-off-grid { grid-template-columns: 1fr; } }

/* ---------- Distance / time ---------- */
.rc-dist-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.rc-dist .bar-fill, .rc-logbars .bar-fill { background: var(--bc, var(--accent)); }
.rc-dist .bar-row { grid-template-columns: 118px 1fr 92px; font-size: .84rem; }
.rc-dist .bar-row .val { font-size: .76rem; }
.rc-logbars { position: relative; padding-bottom: 22px; }
.rc-logaxis { position: absolute; left: 132px; right: 106px; bottom: 0; height: 16px; font: 10px var(--mono); color: var(--muted); }
.rc-logaxis span { position: absolute; transform: translateX(-50%); }
.rc-logaxis span:first-child { transform: none; }
@media (max-width: 860px) { .rc-dist-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .rc-dist .bar-row { grid-template-columns: 92px 1fr 76px; gap: 8px; font-size: .78rem; } .rc-logaxis { left: 100px; right: 84px; } }

/* ---------- Korea timeline ---------- */
.rc-kr-tl { list-style: none; margin: 0; padding: 0 0 0 4px; display: grid; gap: 0; }
.rc-kr-tl li { display: grid; grid-template-columns: 64px 1fr; gap: 14px; position: relative; padding: 0 0 16px; }
.rc-kr-tl li::before { content: ""; position: absolute; left: 70px; top: 8px; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.rc-kr-tl li::after { content: ""; position: absolute; left: 75px; top: 20px; bottom: 0; width: 1px; background: var(--line-2); }
.rc-kr-tl li:last-child::after { display: none; }
.rc-kr-tl b { font-family: var(--mono); color: var(--accent-ink); }
.rc-kr-tl span { padding-left: 24px; color: var(--ink-2); font-size: .92rem; }

/* ---------- Numbers ---------- */
.rc-num-tiles { margin: 2em 0; }
.rc-num-tiles .stat-value { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.rc-speed-svg { width: 100%; height: auto; }
.rc-sbar rect { fill: var(--line-2); transform-box: fill-box; transform-origin: bottom; transform: scaleY(0); transition: transform .9s cubic-bezier(.2,.8,.2,1) calc(var(--i) * 90ms); }
.rc-sbar.best rect { fill: var(--accent); }
.rc-speed-svg.in .rc-sbar rect { transform: none; }
.rc-sbar text { text-anchor: middle; }
.rc-sbar .v { font: 700 12px var(--mono); fill: var(--ink); }
.rc-sbar .y { font: 11px var(--mono); fill: var(--muted); }
.rc-sbreak { stroke: var(--muted); stroke-width: 1.5; }

/* ---------- Sources ---------- */
.rc-sources ul { font-size: .86rem; }
.rc-sources li { word-break: break-word; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .rc-mk-pulse { display: none; }
  .rc-st { stroke-dashoffset: 0 !important; }
  .rc-tr { opacity: .8; }
  .rc-sbar rect { transform: none; }
}

.rc-j-since { display: block; font-style: normal; font: 600 .7rem var(--mono); color: var(--muted); margin-top: 2px; }
.rc-v-t.out { fill: var(--ink-2); font-weight: 700; }
