/* The Majors — YEAH issue 03. Tokens from the yeah-weekly-digest reference
   defaults; tuned after rendered review. */
:root {
  --paper: #fff; --ink: #182126; --muted: #566169; --line: #dce1e3; --soft: #f4f6f6;
  --accent: #c74332; --accent-tint: rgba(199, 67, 50, .07);
  --display: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --reading: -apple-system, BlinkMacSystemFont, ui-sans-serif, system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --figure-width: 1180px;
  --gutter: clamp(20px, calc(11.71875vw - 70px), 80px);
  --spine-room: 96px;
  --chapter-gap: 240px; --figure-gap: 64px; --related-gap: 24px;
  --pin: 72px; --feedback: 160ms; --ease-out: cubic-bezier(.23, 1, .32, 1);
  color-scheme: light; background: var(--paper); color: var(--ink); font-family: var(--reading);
}
@media (max-width: 1099px) { :root { --spine-room: 0px; } }
@media (max-width: 899px) { :root { --gutter: 20px; --chapter-gap: 128px; --figure-gap: 40px; --pin: 56px; } }

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); }
h1, h2, h3, p, figure, ol, dl, dd { margin: 0; }
ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 3px; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; touch-action: manipulation; }
::selection { background: #f3c5bd; color: var(--ink); }
:is(a, button, summary):focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
html { scroll-padding-top: calc(var(--pin) + 24px); }
.if-js { display: none; }
.js .if-js { display: inline; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 100; background: var(--paper); padding: 14px; }
.skip:focus { top: 10px; }

/* Top bar and Contents */
.topbar { position: sticky; top: 0; z-index: 30; height: var(--pin); display: flex; align-items: center; gap: 24px;
  padding: 0 var(--gutter); background: var(--paper); border-bottom: 1px solid #eef0f1; }
.brand { font-size: 27px; font-weight: 850; letter-spacing: -1.7px; color: var(--accent); text-decoration: none; }
.edition { margin-right: auto; color: var(--muted); font-size: 13px; }
.contents { position: relative; font-size: 14px; }
.contents summary { min-height: 44px; display: flex; align-items: center; gap: 12px; list-style: none; cursor: pointer; }
.contents summary::-webkit-details-marker { display: none; }
.contents summary::after { content: '⌄'; font-size: 17px; }
.contents[open] summary::after { content: '×'; }
.contents nav { position: absolute; right: 0; top: 48px; width: 280px; max-height: 70svh; overflow: auto; padding: 8px;
  background: var(--paper); border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(24, 33, 38, .08); }
.contents a { display: block; padding: 12px 14px; text-decoration: none; line-height: 1.3; }
.contents a:hover, .contents a[aria-current="true"] { background: var(--soft); }

/* Left chapter spine (wide screens; Contents covers narrow ones) */
.spine { position: fixed; left: 40px; top: 50%; transform: translateY(-50%); z-index: 20; display: grid; width: 46px; }
.spine a { position: relative; height: 44px; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.spine a::before { content: ''; width: 30px; height: 2px; background: #98a1a5; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .9); transform: scale(.433, .5); transition: transform var(--feedback) var(--ease-out), background var(--feedback); }
.spine a[aria-current="true"]::before { transform: none; background: var(--accent); }
.spine span { position: absolute; left: 46px; padding: 8px 12px; font-size: 12px; white-space: nowrap; background: var(--paper);
  box-shadow: 0 3px 15px rgba(24, 33, 38, .06); opacity: 0; pointer-events: none; }
.spine a:is(:hover, :focus-visible) span { opacity: 1; }
@media (max-width: 1099px) { .spine { display: none; } }

/* Layout */
.chapter, .hero-copy, .interlude, .sources {
  width: min(var(--figure-width), calc(100% - 2 * var(--gutter) - var(--spine-room)));
  margin-inline: auto;
}
.chapter { margin-top: var(--chapter-gap); }
.hero { padding: clamp(64px, 12vw, 168px) 0 0; }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(64px, 11vw, 168px); line-height: .92; letter-spacing: -.055em; }
.hero .asof { margin-top: 28px; font-size: 13px; color: var(--muted); }
.next .asof { margin-top: 14px; font-size: 13px; }
.hero .dek { max-width: 30ch; margin-top: 36px; font-size: clamp(19px, 1.8vw, 23px); line-height: 1.5; color: var(--muted); }
h2 { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 4.6vw, 64px); line-height: 1.04; letter-spacing: -.045em; text-wrap: balance; }
.chapter-head { display: grid; grid-template-columns: 1.05fr 1fr; gap: 72px; align-items: end; margin-bottom: var(--figure-gap); }
.chapter-head h2 { max-width: 13ch; }
.chapter-head .dek { max-width: 46ch; font-size: 18px; line-height: 1.6; color: var(--muted); }
.chapter-head .dek strong { font-weight: 500; color: var(--ink); }
.takeaway { max-width: 26ch; margin-top: var(--figure-gap); font-family: var(--display); font-size: clamp(28px, 3vw, 40px);
  line-height: 1.22; letter-spacing: -.035em; text-wrap: balance; }
.caption { max-width: 78ch; margin-top: 18px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.caption a { color: var(--muted); }
@media (max-width: 899px) {
  .chapter-head { grid-template-columns: 1fr; gap: 20px; }
  .chapter-head .dek { font-size: 17px; }
}

/* Records chapter: picker (dots = choose one) */
.picker { display: none; flex-wrap: wrap; gap: 4px 20px; margin-bottom: 28px; }
.is-interactive .picker { display: flex; }
.picker button { min-height: 44px; display: inline-flex; align-items: center; gap: 9px; font-size: 15px; color: var(--muted); }
.picker button::before { content: ''; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid #8d979c;
  transition: background var(--feedback), border-color var(--feedback); }
.picker button[aria-pressed="true"] { color: var(--ink); font-weight: 600; }
.picker button[aria-pressed="true"]::before { background: var(--accent); border-color: var(--accent); }
.records-figure { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.records-figure figcaption { grid-column: 1 / -1; margin-top: 0; }
@media (max-width: 899px) { .records-figure { grid-template-columns: 1fr; gap: 36px; } }

/* The legal-course chart (positioned HTML so labels keep their reading size) */
.legal { padding: 0 8px 0 36px; }
.legal-y-title { font-size: 12px; color: var(--muted); margin: 0 0 14px -36px; }
.legal-plot { position: relative; height: clamp(300px, 34vw, 430px); border-left: 1px solid #aeb6ba; border-bottom: 1px solid #aeb6ba; }
.legal-zone { position: absolute; left: 0; bottom: 0; background: var(--accent-tint); }
/* Labels sit in space no course can occupy: the zone's bottom-right corner and
   the empty band right of the separation limit (x 50–75%, drop ≈ 2). */
.legal-zone span { position: absolute; right: 12px; bottom: 10px; font-size: 12px; font-weight: 600; letter-spacing: .01em; color: var(--accent); }
.legal-limit { position: absolute; }
.legal-limit--x { top: 0; bottom: 0; border-left: 1px dashed #8d979c; }
.legal-limit--x span { position: absolute; top: 38%; left: 8px; width: 9em; font-size: 12px; line-height: 1.35; color: var(--muted); }
.legal-limit--y { left: 0; right: 0; border-top: 1px dashed #8d979c; }
.legal-limit--y span { position: absolute; right: 0; bottom: 6px; font-size: 12px; color: var(--muted); }
.tick { position: absolute; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tick--y { left: -12px; transform: translate(-100%, 50%); }
.tick--x { top: calc(100% + 8px); transform: translateX(-50%); }
.tick--x:first-of-type { transform: none; }
.legal-x-title { margin-top: 34px; font-size: 12px; color: var(--muted); }
.pt { position: absolute; transform: translate(-50%, 50%); display: grid; place-items: center; width: 28px; height: 28px; cursor: pointer; }
.pt i { width: 12px; height: 12px; border-radius: 50%; background: var(--ink); transition: transform var(--feedback) var(--ease-out), background var(--feedback); }
.pt--measured i { background: var(--paper); border: 2px solid var(--ink); }
.pt.is-selected i { background: var(--accent); border-color: var(--accent); transform: scale(1.35); }
.pt-label { position: absolute; top: 50%; transform: translateY(-50%); font-size: 13px; font-weight: 500; white-space: nowrap;
  text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff; }
.pt-label--right { left: 26px; }
.pt-label--left { right: 26px; }
.pt.is-selected .pt-label { color: var(--accent); font-weight: 700; }
.unplotted { margin-top: 22px; max-width: 60ch; font-size: 14px; line-height: 1.6; color: var(--muted); }
.unplotted strong { color: var(--ink); font-weight: 600; transition: color var(--feedback); }
.unplotted.is-active { color: var(--ink); }
.unplotted.is-active strong { color: var(--accent); }
@media (max-width: 420px) {
  .pt[data-course="tokyo"] .pt-label { left: 50%; right: auto; top: auto; bottom: 20px; transform: translateX(-50%); }
  .pt[data-course="london"] .pt-label { left: 50%; right: auto; top: 22px; transform: translateX(-50%); }
}
@media (max-width: 899px) {
  .legal-plot { height: 300px; }
  .legal-limit--x span { width: 6.5em; }
}

/* Verdict panel */
.verdict h3 { font-family: var(--display); font-weight: 400; font-size: 32px; letter-spacing: -.03em; margin-bottom: 20px; }
.tests { display: grid; gap: 0; border-top: 1px solid var(--line); }
.test { display: grid; grid-template-columns: 9.5em 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.test dt { font-size: 13px; color: var(--muted); padding-top: 2px; }
.test dd strong { display: block; font-size: 16px; font-weight: 600; line-height: 1.4; }
.test dd span { display: block; margin-top: 3px; font-size: 13px; color: var(--muted); }
.test.is-pass dd span::before { content: '✓ '; color: var(--ink); }
.test.is-fail dd span { color: var(--accent); font-weight: 600; }
.test.is-fail dd span::before { content: '✕ '; }
.test.is-unknown dd span::before { content: '– '; }
.verdict-story { margin-top: 20px; font-size: 16px; line-height: 1.6; }
.verdict-source { margin-top: 14px; font-size: 12px; line-height: 1.5; color: var(--muted); }
@media (max-width: 480px) { .test { grid-template-columns: 1fr; gap: 4px; } }

/* Record timeline (evidence) */
.evidence { margin-top: calc(var(--figure-gap) * 1.5); }
.evidence h3 { font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 14px 0 26px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.wr-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) 36px; align-items: center; min-height: 40px; border-bottom: 1px solid #eef0f1; }
.wr-name { font-size: 14px; font-weight: 500; }
.wr-row.is-empty .wr-name, .wr-row.is-empty .wr-count { color: #8d979c; }
.wr-count { text-align: right; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.wr-track { position: relative; height: 40px; }
.wr-track::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--line); }
/* The shape lives on ::before so rotating the diamond never rotates its tooltip. */
.wr-mark, .key { position: relative; display: inline-block; width: 12px; height: 12px; }
.wr-mark { position: absolute; top: 50%; transform: translate(-50%, calc(-50% - var(--stack, 0) * 11px)); }
.wr-mark::before, .key::before { content: ''; position: absolute; inset: 1px; background: var(--ink); }
.wr-mark--men::before, .key--men::before { border-radius: 50%; }
.wr-mark--women::before, .key--women::before { inset: 2px; transform: rotate(45deg); }
.wr-mark--womenOnly::before, .key--womenOnly::before { inset: 1.5px; }
.wr-mark.is-current::before, .key--current::before { background: var(--accent); }
.wr-mark--ghost::before, .key--ghost::before { border-radius: 50%; background: var(--paper); border: 1.5px dashed #6f797e; }
/* display:none (not opacity) so hidden tips add no layout width — invisible
   nowrap tips once widened the phone layout from 375 to 450 px. */
.wr-tip { display: none; position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%); padding: 7px 10px;
  width: max-content; max-width: min(280px, 70vw); font-size: 12px; line-height: 1.4; background: var(--paper);
  box-shadow: 0 4px 18px rgba(24, 33, 38, .14); pointer-events: none; z-index: 5; }
.tip-end .wr-tip { left: auto; right: -4px; transform: none; }
.tip-start .wr-tip { left: -4px; transform: none; }
.wr-mark:hover .wr-tip { display: block; }
.wr-axis { position: relative; height: 26px; margin: 0 36px 0 96px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.wr-axis span { position: absolute; top: 8px; transform: translateX(-50%); }
@media (max-width: 480px) {
  .wr-row { grid-template-columns: 72px minmax(0, 1fr) 28px; }
  .wr-axis { margin: 0 28px 0 72px; }
  .wr-mark { width: 10px; height: 10px; }
}

/* Star chase: finder (dots = choose one, square = on/off) */
.finder { display: none; flex-wrap: wrap; align-items: end; gap: 16px 32px; padding: 26px 0 30px; border-top: 2px solid var(--ink); }
.is-interactive .finder { display: flex; }
.field { display: grid; gap: 8px; font-size: 13px; color: var(--muted); }
.field input { width: 8.5em; min-height: 48px; padding: 0 14px; font: 500 20px/1 var(--reading); font-variant-numeric: tabular-nums;
  color: var(--ink); background: var(--paper); border: 1px solid #aeb6ba; border-radius: 0; }
.field--age input { width: 5em; }
.field input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.seg { display: flex; flex-wrap: wrap; gap: 0 20px; margin: 0; padding: 0; border: 0; }
.seg legend { float: left; width: 100%; padding: 0; margin-bottom: 2px; font-size: 13px; color: var(--muted); }
.seg label, .check { position: relative; min-height: 44px; display: inline-flex; align-items: center; font-size: 15px; cursor: pointer; }
.seg input, .check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span::before, .check span::before { content: ''; display: inline-block; margin-right: 9px; border: 1.5px solid #8d979c;
  transition: background var(--feedback), border-color var(--feedback); }
.seg span::before { width: 9px; height: 9px; border-radius: 50%; }
.check span::before { width: 13px; height: 13px; vertical-align: -2px; }
.seg input:checked + span { font-weight: 600; }
:is(.seg, .check) input:checked + span::before { background: var(--accent); border-color: var(--accent); }
.check input:checked + span::before { box-shadow: inset 0 0 0 2px var(--paper); }
:is(.seg, .check) input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 4px; }
.finder-msg { flex-basis: 100%; font-size: 14px; color: var(--muted); }
.entries { border-top: 1px solid var(--line); }
.entry { display: grid; grid-template-columns: 170px minmax(0, 1fr) minmax(0, 1fr); column-gap: 40px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.entry h3 { font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1.15; letter-spacing: -.03em; }
.entry-status { font-size: 15px; line-height: 1.55; }
.entry-status strong, .entry-other strong { display: flex; align-items: center; gap: 9px; margin-bottom: 4px; }
.entry-status strong { font-size: 16px; font-weight: 600; }
.entry-status strong::before { content: ''; flex: none; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid #8d979c; }
.entry-status.is-yes strong { color: var(--accent); }
.entry-status.is-yes strong::before { background: var(--accent); border-color: var(--accent); }
.entry-status.is-queue strong::before { border-color: var(--accent); }
.entry-status.is-no strong { color: var(--muted); }
.entry-other { font-size: 14px; line-height: 1.55; color: var(--muted); }
.entry-other strong { font-size: 13px; font-weight: 600; color: var(--ink); }
.entry-other a, .race-src a, .calendar a { color: var(--muted); text-decoration-color: var(--line); }
@media (max-width: 899px) { .entry { grid-template-columns: minmax(0, 1fr); row-gap: 12px; } }
.limits { margin-top: 22px; }
.limit, .limit-axis { display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: 16px; }
.limit { align-items: center; padding: 7px 0; }
.limit-name { font-size: 14px; font-weight: 500; }
.limit-track { position: relative; height: 8px; background: var(--soft); }
.limit-bar { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ink); }
.limit.is-open .limit-bar { background: linear-gradient(90deg, var(--ink) 60%, rgba(24, 33, 38, 0)); }
.limit-text { grid-column: 2; margin-top: 5px; font-size: 13px; color: var(--muted); text-decoration-color: var(--line); }
.limit-axis { height: 26px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.limit-axis-track { grid-column: 2; position: relative; }
.limit-axis-track span { position: absolute; top: 6px; transform: translateX(-50%); white-space: nowrap; }
.limit-axis-track span:first-child { transform: none; }
.limit-axis-track span:last-child { transform: translateX(-100%); }
.medal { max-width: 760px; margin-top: calc(var(--figure-gap) * 1.5); }
.medal h3 { margin-bottom: 12px; font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.medal > p:first-of-type { font-size: 17px; line-height: 1.65; }

/* Shoes: small multiples and the drop-vs-study bars */
.wins-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; }
.wins { padding-left: 40px; }
.wins h3 { margin: 0 0 18px -40px; font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.wins h3 span { margin-left: 8px; font-weight: 500; color: var(--accent); }
.wins-plot { position: relative; height: clamp(260px, 26vw, 340px); margin-bottom: 30px; border-left: 1px solid #aeb6ba; border-bottom: 1px solid #aeb6ba; }
.w-pt { position: absolute; width: 16px; height: 16px; transform: translate(-50%, 50%); }
.w-pt::before { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: var(--ink); opacity: .7; }
.w-pt:hover::before { opacity: 1; }
.w-pt:hover .wr-tip { display: block; }
.w-era { position: absolute; border-top: 2px solid var(--accent); }
.w-era b { position: absolute; bottom: 4px; padding: 1px 4px; font-size: 12px; font-weight: 600; color: var(--accent); white-space: nowrap;
  background: rgba(255, 255, 255, .9); z-index: 1; }
.w-era--pre b { left: 0; }
.w-era--post b { right: 0; }
.w-shoe { position: absolute; top: 0; bottom: 0; border-left: 1px dashed #8d979c; }
.w-shoe b { position: absolute; top: 0; left: 8px; width: 10em; font-size: 12px; font-weight: 400; line-height: 1.35; color: var(--muted);
  text-shadow: 0 0 3px #fff, 0 0 3px #fff; }
.fx { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; margin-top: 22px; }
.fx h4 { margin: 0 0 8px; font-size: 15px; font-weight: 600; }
.fx-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 3.4em; gap: 12px; align-items: center; padding: 9px 0;
  border-bottom: 1px solid #eef0f1; font-size: 13px; }
.fx-label, .fx-label a { color: var(--muted); }
.fx-row.is-drop .fx-label { color: var(--ink); font-weight: 600; }
.fx-track { position: relative; height: 10px; background: var(--soft); }
.fx-bar { position: absolute; left: 0; top: 0; bottom: 0; background: #8d979c; }
.fx-bar--drop { background: var(--accent); }
.fx-val { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 899px) {
  .wins-pair, .fx { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .wins-plot { height: 260px; }
}
@media (max-width: 480px) {
  .fx-row { grid-template-columns: minmax(0, 1fr) 3.4em; row-gap: 6px; }
  .fx-label { grid-column: 1 / -1; }
}

/* What to watch */
.calendar { border-top: 1px solid var(--line); }
.calendar li { display: grid; grid-template-columns: 170px minmax(0, 1fr); column-gap: 40px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.calendar time { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.calendar p { max-width: 68ch; font-size: 16px; line-height: 1.6; }
.calendar a { font-size: 13px; color: var(--muted); }
@media (max-width: 480px) { .calendar li { grid-template-columns: minmax(0, 1fr); row-gap: 4px; } }

/* Depth disclosures and sources */
.depth { margin-top: 40px; border-top: 1px solid var(--line); }
.depth summary { min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 24px; font-size: 14px;
  font-weight: 500; list-style: none; cursor: pointer; }
.depth summary::-webkit-details-marker { display: none; }
.depth summary::after { content: '+'; font-size: 24px; font-weight: 300; }
.depth[open] summary::after { content: '−'; }
.depth-body { max-width: 820px; padding: 4px 0 32px; font-size: 15px; line-height: 1.7; color: var(--muted); }
.depth-body > * + * { margin-top: 20px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; color: var(--ink); }
.data-table caption { text-align: left; font-weight: 600; padding-bottom: 8px; }
.data-table th, .data-table td { text-align: left; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table thead th { font-weight: 500; color: var(--muted); }
.table-scroll { overflow-x: auto; }
.sources { margin-top: var(--chapter-gap); padding-bottom: 120px; }
.sources h2 { font-size: clamp(32px, 3.4vw, 44px); margin-bottom: 24px; }
.sources ol { list-style: decimal; padding-left: 1.4em; max-width: 820px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.sources li + li { margin-top: 10px; }
.sources summary { cursor: pointer; width: fit-content; font-size: 15px; color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.sources details[open] summary { margin-bottom: 20px; }

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