/* Results athlete page /result/<id>: E / Course Profile with shell S3 (owner's choice, 21 Nov 2026).
   Ported from docs/design-references/results-designs-r3-2026-11-19/E/variation.css (rounds 3.1-3.12) and
   shared/identity.css. Every class is namespaced (.ap-*, plus the identity kit's .sgl; the ladder, the type glyphs
   and the --t-* type scale come from results-identity.css, linked first) so the
   site's global .fine, .hero and h1 rules never apply. Sizes come from the round-2 type scale only.
   Dark theme by default; the light theme derives from site.css's light tokens. The race card is paper with
   ink text in both themes (the only light object in Results); on the light canvas it gets a rule and a
   shadow. Text accents, rules and focus rings use --accent-text (terracotta in light); yellow (--accent) is used
   for fills only, since it is 1.12:1 on the light canvas. Selected text that sits on the yellow selection band uses
   --ap-sel-text: --accent-text in dark, ink in light (terracotta on the light band is 4.17:1, under 4.5:1).

   Selection is declarative: .ap[data-sel] names the selected metric key and every per-segment element
   carries data-k. The matched element receives the --sel-* custom properties below; the rules read them
   with a fallback, so an unselected element keeps its normal style. A client script only changes data-sel
   (and aria-pressed); the server rendered every state. */

.ap-page {
  --row: 60px;
  --ap-gut: 52px;
  --ap-stn: #1f2527; --ap-stn-strong: #2b3335; --ap-run-bar: #c9cfcb; --ap-run-bar-slow: #596366;
  --ap-band: rgba(255, 237, 0, .07); --ap-hatch: #596366; --ap-dist-fill: rgba(242, 244, 239, .09);
  --ap-hover: rgba(242, 244, 239, .035); --ap-you: var(--accent); --ap-sel-text: var(--accent-text);
  font-size: var(--t-body); line-height: 1.55;
}
@media (max-width: 760px) {
  .ap-page { --row: 56px; --ap-gut: 40px; }
}
:root[data-theme="light"] .ap-page {
  --ap-stn: #dfe2dc; --ap-stn-strong: #cfd3cc; --ap-run-bar: #444b48; --ap-run-bar-slow: #949c96;
  --ap-band: rgba(255, 237, 0, .24); --ap-hatch: #949c96; --ap-dist-fill: rgba(9, 11, 12, .07);
  --ap-hover: rgba(9, 11, 12, .045); --ap-you: var(--accent-text); --ap-sel-text: var(--ink);
}

/* ---------- selection ---------- */
.ap[data-sel="t_r1"] [data-k="t_r1"],
.ap[data-sel="t_r2"] [data-k="t_r2"],
.ap[data-sel="t_r3"] [data-k="t_r3"],
.ap[data-sel="t_r4"] [data-k="t_r4"],
.ap[data-sel="t_r5"] [data-k="t_r5"],
.ap[data-sel="t_r6"] [data-k="t_r6"],
.ap[data-sel="t_r7"] [data-k="t_r7"],
.ap[data-sel="t_r8"] [data-k="t_r8"],
.ap[data-sel="t_w1"] [data-k="t_w1"],
.ap[data-sel="t_w2"] [data-k="t_w2"],
.ap[data-sel="t_w3"] [data-k="t_w3"],
.ap[data-sel="t_w4"] [data-k="t_w4"],
.ap[data-sel="t_w5"] [data-k="t_w5"],
.ap[data-sel="t_w6"] [data-k="t_w6"],
.ap[data-sel="t_w7"] [data-k="t_w7"],
.ap[data-sel="t_w8"] [data-k="t_w8"],
.ap[data-sel="t_rx"] [data-k="t_rx"] {
  --sel-vis: visible; --sel-disp: block; --sel-dispf: flex; --sel-w: 600; --sel-sw: 2.25;
  --sel-fill: var(--accent); --sel-ink: #090b0c; --sel-fg: var(--foreground); --sel-acc: var(--ap-sel-text);
  --sel-bg: var(--ap-band); --sel-bar: inset 3px 0 0 var(--accent-text); --sel-dash: none;
}
.ap-so { visibility: var(--sel-vis, hidden); }
.ap-sp { display: var(--sel-disp, none); }
.ap-spf { display: var(--sel-dispf, none); }
.ap-none { display: none; }
.ap[data-sel=""] .ap-none { display: block; }
[data-needs-js][hidden] { display: none !important; }

/* ---------- type roles ---------- */
.ap-page .ap-lbl { font: 400 var(--t-label)/1.35 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ap-page .ap-fine { font-size: var(--t-small); line-height: 1.5; color: var(--muted); }
.ap-page .ap-num { font-family: var(--sans); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.ap-page .mt { font-family: var(--mono); white-space: nowrap; }
.ap-page .tc { display: inline-block; width: .3em; overflow: visible; }
.ap-page .nw { white-space: nowrap; }
.ap-h2 { font: 600 var(--t-h2)/1.1 var(--sans); letter-spacing: -.02em; color: var(--foreground); }
.ap-h3 { font: 600 var(--t-h3)/1.15 var(--sans); letter-spacing: -.01em; color: var(--foreground); }
.ap-sec { margin-top: 88px; }
.ap-sec-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px 24px; flex-wrap: wrap; margin-bottom: 22px; }
.ap-verdict { margin-top: 18px; font-size: var(--t-body); color: var(--foreground); }
.ap-verdict .ap-fine { display: inline; }

/* segment pictograms (identity-kit line style) */
.sgl { display: block; width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: square; stroke-linejoin: miter; }

/* ---------- the level ladder: results-identity.css ---------- */
.ap-page > .idl { margin-top: 0; }
/* the freshness note is fine print (--t-small, the role of the page's other notes); 13 px is for labels and ticks,
   and as 13 px it put Kurt's page at 800 px over the 20% under-14 px share */
.ap-page .results-source { font-family: var(--sans); font-size: var(--t-small); line-height: 1.5; color: var(--muted); }

/* ---------- the race card (paper; the share unit) ---------- */
.ap-card {
  --c-ink: #090b0c; --c-sub: #4a5052; --c-rule: #d6d6cf; --c-mute: #7d8684; --c-ref: #dcdcd4; --c-tick: #c9ccc6; --c-stn: #cfd2cb;
  --sel-ink-card: #090b0c;
  margin-top: 22px; background: var(--paper); color: var(--c-ink);
}
/* An outline, not a border: it separates the card on the light canvas without adding to its height (the 600 px share unit). */
:root[data-theme="light"] .ap-card { outline: 1px solid #c9ccc6; box-shadow: 0 22px 44px -28px rgba(9, 11, 12, .35); }
.ap-card .ap-lbl { color: var(--c-sub); }
.ap-band { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 50px; padding: 6px 12px 6px 28px; background: var(--accent); }
.ap-band-l { font: 400 var(--t-small)/1.35 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); overflow-wrap: anywhere; }
.ap-share { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; background: none; border: 1px solid var(--ink); color: var(--ink); font: 500 var(--t-small)/1 var(--sans); cursor: pointer; flex: none; }
.ap-share .idg { font-size: 18px; }
.ap-share:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ap-card-b { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 18px 40px; padding: 20px 28px 16px; }
.ap-card-id { display: flex; align-items: center; gap: 20px; min-width: 0; }
.ap-monogram { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: var(--paper); font: 600 var(--t-body)/1 var(--sans); }
.ap-monogram .idg { font-size: 26px; }
.ap-page h1.ap-name { font: 600 var(--t-h2)/1.05 var(--sans); letter-spacing: -.03em; color: var(--c-ink); overflow-wrap: anywhere; }
.ap-meta { margin-top: 10px; font-size: var(--t-body); color: var(--c-sub); }
.ap-card-time { text-align: right; }
.ap-finish { margin-top: 4px; font-size: var(--t-display); line-height: .9; color: var(--c-ink); }
.ap-card-f { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "fb st" "ln ln"; align-items: end; gap: 18px 48px; margin: 0 28px; padding: 20px 0 22px; border-top: 1px solid var(--c-rule); }
.ap-fb { grid-area: fb; }
.ap-card-stats { grid-area: st; }
.ap-card-line { grid-area: ln; min-width: 0; }
.ap-fb .ap-lbl { margin-bottom: 6px; }
.ap-fb-v { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 18px; }
.ap-fb-r { font: 600 var(--t-stat)/1 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: -.02em; color: var(--c-ink); white-space: nowrap; }
.ap-fb-r small { font: 400 var(--t-body)/1 var(--sans); letter-spacing: 0; color: var(--c-sub); }
.ap-fb-p { font-size: var(--t-body); font-weight: 600; color: var(--c-ink); }
.ap-fb-status { font-size: var(--t-body); color: var(--c-ink); }
.ap-fb-bar { position: relative; height: 12px; margin-top: 14px; background: var(--c-rule); }
.ap-fb-mid { position: absolute; left: 50%; top: -6px; bottom: -6px; width: 2px; margin-left: -1px; background: var(--c-ink); }
.ap-fb-me { position: absolute; top: 50%; width: 14px; height: 14px; transform: translate(-50%, -50%); background: var(--accent); border: 2px solid var(--c-ink); }
.ap-fb-ax { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; font-size: var(--t-floor); color: var(--c-sub); }
.ap-fb-ax .ap-fb-m { font-size: var(--t-small); color: var(--c-ink); }
.ap-stats { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin: 0; }
.ap-stats > div { padding: 0 24px; border-left: 1px solid var(--line); }
.ap-stats > div:first-child { padding-left: 0; border-left: 0; }
.ap-stats dt { margin-bottom: 10px; }
.ap-stats dd { margin: 0; font: 600 var(--t-stat)/1 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: -.02em; color: var(--foreground); white-space: nowrap; }
.ap-stats p { margin-top: 8px; font-size: var(--t-small); color: var(--muted-strong); }
.ap-card .ap-stats > div { border-left-color: var(--c-rule); }
.ap-card .ap-stats dd { color: var(--c-ink); }
.ap-attr { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 28px 14px; border-top: 1px solid var(--c-rule); }
.ap-wordmark { display: block; width: 53px; height: 20px; color: var(--c-ink); }
.ap-attr span { font: 400 var(--t-label)/1 var(--mono); letter-spacing: .08em; color: var(--c-sub); }

/* the card line without splits */
.ap-rl { display: flex; align-items: center; position: relative; min-height: 40px; }
.ap-rl-dash { flex: 1; border-top: 1.5px dashed var(--c-mute); }
/* The split state is the one message in this place on the no-splits card (the normal first view), so it is body size
   (the mockup's 15 px left the disabled no-splits page under the 17 px+ share: 33% at 390, 39% at 1440). */
.ap-rl-t { position: absolute; left: 0; top: 50%; transform: translateY(-50%); padding-right: 10px; background: var(--paper); font-size: var(--t-body); line-height: 1.3; color: var(--c-sub); }

/* ---------- the card's compact course profile ---------- */
.ap-cp {
  --cp-gut: 44px; --cp-padt: 20px; --cp-inner: 130px; --cp-padb: 8px;
  --cp-plot: calc(var(--cp-padt) + var(--cp-inner) + var(--cp-padb));
  --cp-under: calc(29px + var(--rows-w, 1) * 19px);
  position: relative; height: calc(var(--cp-plot) + var(--cp-under));
}
.ap-cp--boxes { --cp-gut: 0px; --cp-padt: 8px; --cp-inner: 24px; --cp-padb: 8px; }
.ap-cp-axis { position: absolute; left: 0; top: 0; width: var(--cp-gut); height: var(--cp-plot); }
.ap-cp-t { position: absolute; right: 8px; top: calc(var(--cp-padt) + var(--f) * var(--cp-inner)); transform: translateY(-50%); font-size: var(--t-floor); line-height: 1; color: var(--c-sub); white-space: nowrap; }
.ap-cp-in { position: absolute; left: var(--cp-gut); right: 0; top: 0; bottom: 0; }
.ap-cp-plot { position: absolute; left: 0; right: 0; top: 0; height: var(--cp-plot); border-bottom: 1px solid var(--c-rule); }
.ap-cp-lines, .ap-cp-boxes { position: absolute; left: 0; top: var(--cp-padt); display: block; width: 100%; height: var(--cp-inner); overflow: visible; }
.ap-cp-lines line, .ap-cp-lines path { fill: none; vector-effect: non-scaling-stroke; }
.ap-ln-ref { stroke: var(--c-ref); stroke-dasharray: 2 4; }
.ap-ln-avg { stroke: #7d8684; stroke-width: 2; stroke-linecap: round; stroke-dasharray: .5 4; }
.ap-ln-med { stroke: #4a5052; stroke-width: 1.5; stroke-dasharray: 5 3; }
.ap-ln-prev { stroke: #090b0c; stroke-opacity: .38; stroke-width: 1.5; }
.ap-ln-you { stroke: #090b0c; stroke-width: 2; }
.ap-cp-band { position: absolute; top: 0; bottom: 0; background: var(--accent); }
.ap-cp-l { position: absolute; top: 2px; transform: translateX(-50%); white-space: nowrap; font-size: var(--t-small); line-height: 1; font-weight: 600; color: var(--c-ink); pointer-events: none; }
.ap-cp-l .sgl { display: inline-block; font-size: 15px; margin-right: 3px; vertical-align: -2px; stroke-width: 2.25; }
.ap-cp-under { position: absolute; left: 0; right: 0; top: var(--cp-plot); bottom: 0; }
.ap-cp-under--narrow { display: none; }
.ap-cp-ic { position: absolute; top: 3px; transform: translateX(-50%); font-size: 20px; line-height: 0; color: var(--sel-ink, var(--c-mute)); pointer-events: none; }
.ap-cp-ic .sgl { stroke-width: var(--sel-sw, 1.75); }
.ap-cp-tm { position: absolute; transform: translateX(-50%); white-space: nowrap; font-size: var(--t-small); line-height: 1; font-weight: var(--sel-w, 400); color: var(--sel-ink, var(--c-sub)); font-variant-numeric: tabular-nums; pointer-events: none; }
.ap-cp-under--wide .ap-cp-tm { top: calc(27px + var(--r, 0) * 19px); }
.ap-cp-under--narrow .ap-cp-tm { top: calc(3px + var(--r, 0) * 17px); }
.ap-cp-tk { position: absolute; top: 0; width: 1px; height: calc(1px + var(--r, 0) * 17px); background: var(--c-tick); }
.ap-cp-col { position: absolute; top: 0; bottom: 0; padding: 0; margin: 0; background: transparent; border: 0; cursor: pointer; }
.ap-cp-col:hover { background: rgba(9, 11, 12, .07); }
.ap-cp-col:focus-visible { outline: 2px solid var(--c-ink); outline-offset: -2px; }
.ap-card .ap-bx--run, .ap-card .ap-bx--rx { fill: var(--sel-fill, none); stroke: var(--sel-ink, var(--c-mute)); vector-effect: non-scaling-stroke; }
.ap-card .ap-bx--rx { stroke-dasharray: var(--sel-dash, 3 2); }
.ap-card .ap-bx--stn { fill: var(--sel-fill, var(--c-stn)); stroke: var(--sel-ink, var(--c-stn)); vector-effect: non-scaling-stroke; }
.ap-cp-read { margin-top: 10px; }
.ap-cp-sel { flex-wrap: wrap; align-items: baseline; gap: 2px 14px; font-size: var(--t-small); color: var(--c-sub); }
.ap-cp-sel b { font-size: var(--t-body); font-weight: 600; color: var(--c-ink); }
.ap-cp-sel .ap-num { font-size: var(--t-body); color: var(--c-ink); }
.ap-cp-sw { align-self: center; width: 12px; height: 12px; background: var(--accent); box-shadow: inset 0 0 0 1.5px var(--c-ink); }
.ap-cp-none { color: var(--c-mute); font-size: var(--t-body); }
.ap-cp-key { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-top: 6px; font-size: var(--t-floor); line-height: 1.2; color: var(--c-sub); }
.ap-k { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.ap-k::before { content: ""; display: inline-block; width: 16px; height: 0; }
.ap-cp-key .k-avg::before { border-top: 2px dotted #7d8684; }
.ap-cp-key .k-med::before { border-top: 1.5px dashed #4a5052; }
.ap-cp-key .k-prev::before { border-top: 1.5px solid rgba(9, 11, 12, .38); }
.ap-cp-key .k-prev { white-space: normal; }
.ap-cp-key .k-ap { margin-left: auto; }
.ap-cp-key .k-ap::before { display: none; }

/* ---------- the page course profile ---------- */
.ap-notice { margin: 0 0 22px; font-size: var(--t-small); }
.ap-pf-key { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 12px; font-size: var(--t-small); line-height: 1.3; color: var(--muted-strong); }
.ap-pk-cap { margin-right: 6px; }
.ap-pf-key .ap-k::before { width: 20px; }
.ap-pf-key .k-avg::before { border-top: 2.5px dotted var(--muted-strong); }
.ap-pf-key .k-med::before { border-top: 1.5px dashed var(--muted); }
.ap-pf-key .k-prev::before { border-top: 1.5px solid color-mix(in srgb, var(--foreground) 38%, transparent); }
.ap-pf-frame { position: relative; display: grid; grid-template-columns: var(--ap-gut) minmax(0, 1fr); }
.ap-pf-scroll { grid-column: 2; grid-row: 1; position: relative; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.ap-pf-scroll::-webkit-scrollbar { display: none; }
.ap-pf-scroll:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.ap-pf-track { position: relative; min-width: 1100px; width: 100%; }
.ap-pf-svg { position: absolute; left: 0; top: 0; display: block; width: 100%; height: 100%; }
.ap-pf-svg line, .ap-pf-svg path { fill: none; vector-effect: non-scaling-stroke; }
.ap-pf-svg rect { vector-effect: non-scaling-stroke; }
.ap-hatch { stroke: var(--ap-hatch); stroke-width: 1.2; }
.ap-pf-ref { stroke: var(--line); stroke-dasharray: 2 5; }
.ap-pf-avg { stroke: var(--muted-strong); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: .5 5; }
.ap-pf-med { stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 6 4; }
.ap-pf-prev { stroke: var(--foreground); stroke-opacity: .38; stroke-width: 1.5; }
.ap-pf-you { stroke: var(--foreground); stroke-width: 2; }
.ap-pf-selstep { stroke: var(--accent); stroke-width: 4; }
.ap-pf-mid { stroke: var(--line-strong); }
.ap-pf-svg .ap-bx--run, .ap-pf-ov .ap-bx--run { fill: var(--sel-fill, none); stroke: var(--sel-fill, var(--line-strong)); }
.ap-pf-svg .ap-bx--stn { fill: var(--sel-fill, var(--ap-stn)); stroke: var(--sel-fill, var(--ap-stn)); }
.ap-pf-ov .ap-bx--stn { fill: var(--sel-fill, var(--ap-stn-strong)); stroke: var(--sel-fill, var(--ap-stn-strong)); }
.ap-pf-svg .ap-bx--rx, .ap-pf-ov .ap-bx--rx { fill: var(--sel-fill, url(#ap-pf-hatch)); stroke: var(--sel-fill, var(--line-strong)); stroke-dasharray: var(--sel-dash, 4 3); }
.ap-pf-ov rect { vector-effect: non-scaling-stroke; }
.ap-pf-bar--fast { fill: var(--sel-fill, var(--ap-run-bar)); }
.ap-pf-bar--slow { fill: var(--sel-fill, var(--ap-run-bar-slow)); }
/* a run past the largest pacing step: the bar stops at the scale's edge and this slanted gap marks the break */
.ap-pf-brk { fill: var(--canvas); }
.ap-pf-band { position: absolute; background: var(--ap-band); pointer-events: none; }
.ap-pf-mk { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; background: var(--accent); pointer-events: none; }
.ap-pf-l { position: absolute; transform: translateX(-50%); white-space: nowrap; pointer-events: none; padding: 0 4px; background: var(--canvas); font-size: var(--t-body); line-height: 1; font-weight: 600; color: var(--accent-text); }
.ap-pf-ic { position: absolute; transform: translateX(-50%); font-size: 18px; line-height: 0; color: var(--sel-fg, var(--muted)); pointer-events: none; }
.ap-pf-ic .sgl { stroke-width: var(--sel-sw, 1.75); }
.ap-pf-tm { position: absolute; transform: translateX(-50%); white-space: nowrap; pointer-events: none; font-size: var(--t-body); line-height: 1; font-weight: var(--sel-w, 400); color: var(--sel-fg, var(--muted-strong)); font-variant-numeric: tabular-nums; }
.ap-pf--small .ap-pf-tm { font-size: var(--t-small); }
.ap-pf-pv { position: absolute; transform: translateX(-50%); white-space: nowrap; pointer-events: none; font-size: var(--t-small); line-height: 1; font-weight: 500; color: var(--sel-acc, var(--muted-strong)); }
.ap-pf-pv.fast { color: var(--sel-acc, var(--foreground)); }
.ap-pf-col { position: absolute; padding: 0; margin: 0; background: transparent; border: 0; cursor: pointer; }
.ap-pf-col:hover { background: var(--ap-hover); }
.ap-pf-col:focus-visible { outline: 2px solid var(--accent-text); outline-offset: -2px; }
.ap-pf-gut { grid-column: 1; grid-row: 1; position: relative; }
.ap-pf-tick { position: absolute; left: 0; right: 8px; text-align: right; transform: translateY(-50%); font-size: var(--t-floor); line-height: 1; color: var(--muted); white-space: nowrap; }
.ap-pf-titles { position: absolute; left: var(--ap-gut); top: 0; right: 0; pointer-events: none; }
.ap-pf-tt { position: absolute; left: 0; max-width: 100%; padding-right: 8px; background: var(--canvas); font-size: var(--t-small); line-height: 1.3; color: var(--muted-strong); }
.ap-pf-ov { display: none; position: relative; height: 54px; margin: 0 0 14px; }
.ap-pf-ov svg { display: block; width: 100%; height: 54px; }
.ap-ov-avg { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 1 3; vector-effect: non-scaling-stroke; }
.ap-ov-you { fill: none; stroke: var(--muted-strong); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
:root[data-theme="light"] .ap-pf-selstep { stroke: var(--foreground); }
:root[data-theme="light"] .ap-pf-mk { box-shadow: inset 0 0 0 1.5px var(--ink); }

/* splits not loaded: the dashed empty course and the live state beside it */
.ap-busy { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px 40px; align-items: center; }
.ap-ec { position: relative; height: 200px; }
.ap-ec svg { position: absolute; left: 0; top: 0; display: block; width: 100%; height: 100%; }
.ap-ec-line { stroke: var(--line-strong); stroke-dasharray: 3 6; vector-effect: non-scaling-stroke; }
.ap-ec-box { fill: none; stroke: var(--line-strong); stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.ap-ec-dash { position: absolute; top: 124px; transform: translate(-50%, -50%); line-height: 1; font-weight: 600; color: var(--muted); }
.ap-ec-z { position: absolute; left: 0; font-size: var(--t-small); line-height: 1.2; color: var(--muted); }
.ap-busy-note { border-left: 2px solid var(--accent-text); padding: 4px 0 4px 22px; }
.ap-busy-note .results-notice { margin: 0; padding: 0; border: 0; font-size: var(--t-body); line-height: 1.5; color: var(--foreground); }
.ap-busy-note .results-notice a { display: inline-block; margin-top: 14px; color: var(--foreground); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.ap-busy-note .results-notice a:hover { border-bottom-color: var(--accent-text); }
.ap-busy-note .ap-fine { margin-top: 12px; }
/* a DNS has no split times: the status note alone, no empty course */
.ap-busy--status { grid-template-columns: minmax(0, 52ch); }
.ap-status-note { font-size: var(--t-body); line-height: 1.5; color: var(--foreground); }

/* published totals */
.ap-totals { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }

/* ---------- split table and the selected-segment detail ---------- */
.ap-split-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px 44px; align-items: start; }
.ap-tb { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
.ap-tb-h, .ap-tr { display: grid; gap: 10px; align-items: center; }
.ap-tb--c2 .ap-tb-h, .ap-tb--c2 .ap-tr { grid-template-columns: minmax(0, 1fr) 4.2em; }
.ap-tb--c3 .ap-tb-h, .ap-tb--c3 .ap-tr { grid-template-columns: minmax(0, 1fr) 4.2em 4.2em; }
.ap-tb--c4 .ap-tb-h, .ap-tb--c4 .ap-tr { grid-template-columns: minmax(0, 1fr) 4.2em 4.2em 4.2em; }
.ap-tb-h { padding: 0 12px 10px; border-bottom: 1px solid var(--line-strong); }
.ap-tb-h span:not(:first-child) { text-align: right; }
.ap-m-only { display: none; }
.ap-tr { min-height: var(--row); width: 100%; padding: 0 12px; margin: 0; text-align: left; background: var(--sel-bg, none); box-shadow: var(--sel-bar, none); border: 0; border-bottom: 1px solid var(--line); color: var(--text); font: 400 var(--t-body)/1.25 var(--sans); cursor: pointer; }
.ap-tr:hover { background: var(--sel-bg, var(--ap-hover)); }
.ap-tr:focus-visible { outline: 2px solid var(--accent-text); outline-offset: -2px; }
.ap-tr .nm { color: var(--sel-acc, var(--foreground)); }
.ap-tr--run .nm { color: var(--sel-acc, var(--muted-strong)); }
.ap-tr .t { text-align: right; font-size: var(--t-data); color: var(--sel-acc, var(--foreground)); }
.ap-tr .rk, .ap-tr .tp { text-align: right; color: var(--muted-strong); font-variant-numeric: tabular-nums; }
.ap-tb-note { margin-top: 14px; }
.ap-det { position: relative; border-top: 2px solid var(--accent-text); padding-top: 18px; }
.ap-det-nav { position: absolute; right: 0; top: 14px; display: flex; gap: 6px; }
.ap-det-nav button { width: 40px; height: 40px; background: none; border: 1px solid var(--line-strong); color: var(--foreground); font-size: var(--t-body); cursor: pointer; }
.ap-det-nav button:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.ap-det-card > .ap-lbl:first-child, .ap-det-none > .ap-lbl:first-child { padding-right: 96px; min-height: 26px; }
.ap-det .ap-h3 { margin-top: 10px; }
.ap-det-none .ap-h3 { color: var(--muted-strong); }
.ap-det-k { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 28px; margin-top: 14px; }
.ap-det-time { font-size: var(--t-stat); line-height: 1; color: var(--accent-text); }
.ap-det-k dl { display: flex; gap: 24px; margin: 0; }
.ap-det-k dd { margin: 6px 0 0; font-size: var(--t-data); color: var(--foreground); }
.ap-dist { margin: 22px 0 0; }
.ap-dist .ra-plot { position: relative; }
.ap-dist svg { display: block; width: 100%; height: auto; }
.ap-dist-fill { fill: var(--ap-dist-fill); stroke: none; }
.ap-dist-line { fill: none; stroke: var(--muted-strong); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.ap-dist-base { stroke: var(--line-strong); vector-effect: non-scaling-stroke; }
.ap-dm { vector-effect: non-scaling-stroke; }
.ap-dm--athlete { stroke: var(--ap-you); stroke-width: 3; }
.ap-dm--median { stroke: var(--foreground); stroke-width: 2; stroke-dasharray: 6 4; }
.ap-dm--mean { stroke: var(--muted-strong); stroke-width: 2; stroke-dasharray: 2 4; }
.ap-dist .ra-inspect-marker { pointer-events: none; }
.ap-dist .ra-inspect-marker line { stroke: var(--foreground); stroke-width: 1; opacity: .6; vector-effect: non-scaling-stroke; }
.ap-dist .ra-inspect-marker circle { fill: var(--ap-you); stroke: var(--canvas); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.ap-dist .ra-inspect-control { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; margin: 0; opacity: 0; cursor: crosshair; touch-action: pan-y; }
.ap-dist .ra-plot:focus-within { outline: 1px solid var(--line-strong); outline-offset: 4px; }
.ap-dist-ax { display: flex; justify-content: space-between; margin-top: 6px; font-size: var(--t-small); color: var(--muted); }
.ap-dist-empty { margin-top: 22px; padding: 18px 0; border-top: 1px dashed var(--line-strong); border-bottom: 1px dashed var(--line-strong); font-size: var(--t-small); color: var(--muted); }
.ap-dist-key { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.ap-dist-key li { display: flex; align-items: center; gap: 10px; font-size: var(--t-body); color: var(--muted-strong); }
.ap-dist-key li b { margin-left: auto; font-weight: 600; color: var(--foreground); }
.ap-dist-key li b.np { font-weight: 400; color: var(--muted); }
.ap-dist-key i { flex: none; width: 22px; height: 0; border-top: 2px solid var(--ap-you); }
.ap-dist-key .k-med i { border-top: 2px dashed var(--foreground); }
.ap-dist-key .k-mean i { border-top: 2px dotted var(--muted-strong); }
.ap-inspection { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; font-size: var(--t-small); color: var(--muted); }
.ap-inspection p { min-width: 0; }
.ap-inspection .ra-inspect-time, .ap-inspection .ra-inspect-percentile { font-weight: 600; color: var(--foreground); }
.ap-inspection .ra-reset { flex: none; min-height: 32px; padding: 0 10px; border: 1px solid var(--line-strong); background: none; color: var(--foreground); font: 500 var(--t-small)/1 var(--sans); cursor: pointer; }
.ap-det .ap-fine { margin-top: 14px; }

/* ---------- on demand: method and same-name history ---------- */
.ap-disc { border-top: 1px solid var(--line); }
.ap-disc:last-of-type { border-bottom: 1px solid var(--line); }
.ap-disc summary { cursor: pointer; list-style: none; padding: 20px 0; display: flex; justify-content: space-between; gap: 16px; font-size: var(--t-body); color: var(--foreground); }
.ap-disc summary::-webkit-details-marker { display: none; }
.ap-disc summary::after { content: ""; flex: none; width: 16px; height: 16px; margin-top: 5px; background: linear-gradient(var(--muted-strong), var(--muted-strong)) center / 16px 2px no-repeat, linear-gradient(var(--muted-strong), var(--muted-strong)) center / 2px 16px no-repeat; }
.ap-disc[open] summary::after { background: linear-gradient(var(--muted-strong), var(--muted-strong)) center / 16px 2px no-repeat; }
.ap-disc summary:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.ap-disc-b { padding: 0 0 26px; max-width: 78ch; color: var(--muted-strong); }
.ap-disc-b p + p, .ap-disc-b p + ul { margin-top: 12px; }
.ap-hist { list-style: none; margin: 0; padding: 0; }
.ap-hist a { display: grid; grid-template-columns: minmax(0, 1fr) 7em 5.4em; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: var(--t-body); color: var(--foreground); text-decoration: none; }
.ap-hist a:hover .t, .ap-hist a:hover > span:first-child { color: var(--accent-text); }
.ap-hist a:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.ap-hist a > span:not(:first-child) { text-align: right; color: var(--muted-strong); }
.ap-hist small { display: block; font-size: var(--t-small); color: var(--muted); }
.ap-page .results-panel { margin-top: 48px; }

/* ---------- client enhancement (/assets/results-e.js) ---------- */
.ap-share:hover { background: rgba(9, 11, 12, .08); }
/* the time rows are measured at the selected (bold) weight, so a selection never makes two labels touch */
.ap-measuring .ap-cp-tm { font-weight: 600; }
/* a readout row that would wrap (Burpee Broad Jump on a phone) stays on one line: the card keeps its height */
.ap-cp-sel.ap-cp-sel--tight { column-gap: 6px; }
.ap-cp-sel--tight b, .ap-cp-sel--tight .ap-num { font-size: var(--t-small); }
.ap-pf-ov.is-live { cursor: pointer; }
.ap-pf-win { position: absolute; top: -3px; bottom: -3px; border: 1.5px solid var(--foreground); pointer-events: none; }
/* the Share confirmation in the site's toast region; the kicker and division sizes keep the 13 px floor */
.ap-toast { white-space: normal; }
.ap-toast .banner-place { overflow-wrap: anywhere; }
.ap-page .toast .banner-kicker, .ap-page .toast .banner-division { font-size: var(--t-floor); }

/* ---------- wide and narrow layouts ---------- */
.ap-m { display: none; }
@media (max-width: 1099px) {
  .ap-cp { --cp-under: calc(5px + var(--rows-n, 1) * 17px); }
  .ap-cp-under--wide { display: none; }
  .ap-cp-under--narrow { display: block; }
}
@media (min-width: 1100px) {
  .ap-cp-l .sgl { display: none; }
}
@media (max-width: 760px) {
  .ap-d { display: none; }
  .ap-m { display: revert; }
  .ap-sec { margin-top: 64px; }
  .ap-sec-h { margin-bottom: 16px; }
  .ap-stats > div { padding: 0 12px; }
  .ap-stats dt { margin-bottom: 8px; }
  .ap-card { margin-top: 12px; }
  .ap-band { min-height: 44px; padding: 4px 6px 4px 16px; }
  .ap-band-l { letter-spacing: .04em; line-height: 1.2; }
  .ap-card-b { grid-template-columns: 1fr; gap: 8px; padding: 12px 16px 8px; }
  .ap-card-id { gap: 12px; }
  .ap-monogram { width: 40px; height: 40px; font-size: var(--t-small); }
  .ap-page h1.ap-name { font-size: var(--t-h3); }
  .ap-meta { margin-top: 2px; font-size: var(--t-small); line-height: 1.35; }
  .ap-card-time { display: flex; align-items: baseline; gap: 14px; text-align: left; }
  .ap-finish { margin-top: 0; }
  .ap-card-f { grid-template-columns: 1fr; grid-template-areas: "fb" "st" "ln"; gap: 8px; margin: 0 16px; padding: 9px 0; }
  .ap-card .ap-stats dt { margin-bottom: 4px; }
  .ap-card-stats { grid-template-columns: 1fr 1fr; grid-auto-flow: row; }
  .ap-card .ap-stats > div { padding: 0 10px; }
  .ap-card .ap-stats > div:first-child { padding-left: 0; }
  .ap-fb .ap-lbl { margin-bottom: 4px; }
  .ap-fb-p { font-size: var(--t-small); }
  .ap-fb-bar { margin-top: 8px; }
  .ap-fb-ax { margin-top: 4px; line-height: 1.2; }
  .ap-attr { padding: 7px 16px 8px; }
  .ap-wordmark { width: 48px; height: 18px; }
  .ap-rl { min-height: 20px; }
  .ap-cp { --cp-gut: 36px; --cp-padt: 18px; --cp-inner: 72px; }
  .ap-cp--boxes { --cp-gut: 0px; --cp-padt: 8px; --cp-inner: 24px; }
  .ap-cp-t { right: 5px; }
  .ap-cp-read { margin-top: 6px; }
  .ap-cp-sel { gap: 0 10px; line-height: 1.25; }
  .ap-cp-sw { display: none; }
  .ap-cp-key { margin-top: 4px; }
  .ap-pf-ov { display: block; }
  .ap-busy { grid-template-columns: 1fr; }
  .ap-split-grid { grid-template-columns: 1fr; }
  .ap-split-grid .ap-det { order: -1; }
  .ap-tb { grid-template-columns: 1fr; }
  .ap-tb-h, .ap-tr { gap: 8px; padding-left: 8px; padding-right: 8px; }
  .ap-tb-h.ap-r-only { display: none; }
  .ap-m-only { display: inline; }
  .ap-d-only { display: none; }
  .ap-det-k { gap: 20px; }
  .ap-hist a { grid-template-columns: minmax(0, 1fr) 5.2em; }
  .ap-hist a > span:nth-child(2) { display: none; }
}
