/* 8brCam Legacy Archive — "hall of records".
   Visual refinement v2: closer to the original 8brCam look — black canvas,
   square silver bevel frames, horizontal program bands, film perforations,
   chrome display type. Monochrome by default; blue only for focus, the
   header hairline and the bridge to the current era.
   One webfont (display only); body text uses the system stack. */

@font-face {
  font-family: "Heros Cn";
  src: url("fonts/texgyreheroscn-bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #0a0b0c;
  --bg-2: #0e1012;
  --panel: #131619;
  --line: #24292e;
  --line-2: #373d43;
  --ink: #eceef0;
  --ink-2: #c3c8cd;
  --muted: #9aa1a8;
  --dim: #858c94;
  --silver-hi: #cfd4d8;
  --silver: #8d949b;
  --silver-lo: #4a5158;
  --accent: #5aa9ff;
  --accent-ink: #a9d1ff;
  --chrome: linear-gradient(180deg, #ffffff 0%, #d3d7db 44%, #8f969d 56%, #e4e7ea 100%);
  --perf: repeating-linear-gradient(90deg, #2b3035 0 10px, transparent 10px 21px);
  --display: "Heros Cn", "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --r: 2px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
  --sticky-top: 0px;          /* phones: height of the part of the header that stays pinned */
  --anchor: 96px;             /* where in-page links land: below the sticky header (and contents line) */
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  background-image: radial-gradient(1100px 480px at 50% -160px, #1a1d21 0%, rgba(10,11,12,0) 70%);
  background-repeat: no-repeat;
  color: var(--ink);
  font: 16px/1.55 var(--body);
  min-height: 100vh;
}
/* Links: off-white with a thin silver underline — monochrome, but never
   colour-only, so they stay recognisable as links. */
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--silver-lo); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; text-decoration-color: var(--silver-hi); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r); }
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--panel); padding: 8px 12px; z-index: 60; color: var(--ink); }
.skip:focus { top: 12px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.num, table { font-variant-numeric: tabular-nums; }
.id { font-family: var(--mono); font-size: .88em; color: var(--ink-2); letter-spacing: -.01em; overflow-wrap: anywhere; }
.muted { color: var(--muted); }
.nw { white-space: nowrap; }
.dim { color: var(--dim); }

/* ---------------------------------------------------------------- type */
.overline {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  letter-spacing: .16em; font-size: 13px; color: var(--muted); margin: 0 0 6px;
}
.display { font-family: var(--display); font-weight: 700; line-height: .95; letter-spacing: .005em; margin: 0; color: var(--ink); }
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .chrome { background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
}
/* decorative outlined numerals (always aria-hidden duplicates of real text) */
.ghost { font-family: var(--display); font-weight: 700; line-height: .8; color: transparent; -webkit-text-stroke: 1px #30363c; pointer-events: none; user-select: none; }
@supports not (-webkit-text-stroke: 1px black) { .ghost { display: none; } }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: .01em; margin: 0; }
h3 { font-size: 19px; letter-spacing: .04em; text-transform: uppercase; }
p { margin: 0 0 12px; }
.lede { font-size: clamp(17px, 2vw, 19px); color: var(--ink-2); max-width: 62ch; }

/* ---------------------------------------------------------------- motifs */
.film {
  height: 22px; background: #050607; position: relative;
  border-top: 1px solid #1e2226; border-bottom: 1px solid #1e2226;
}
.film::before, .film::after { content: ""; position: absolute; left: 0; right: 0; height: 5px; background: var(--perf); }
.film::before { top: 3px; }
.film::after { bottom: 3px; }
.rule { height: 1px; border: 0; margin: 28px 0; background: linear-gradient(90deg, transparent, var(--line-2) 20%, #7b838a 50%, var(--line-2) 80%, transparent); }

/* The original banner's frame: square, a bright top edge, a dark bottom
   edge, an inner hairline, and small silver corner ticks. */
.plate, .frame {
  position: relative; border-radius: var(--r);
  background: linear-gradient(180deg, #16191c, #0d0f11);
  border: 1px solid #5b626a; border-top-color: #a3aab1; border-bottom-color: #2b3035;
  box-shadow: inset 0 0 0 1px #07080a, inset 0 0 0 2px #23282d;
}
.plate::after, .frame::after {
  content: ""; position: absolute; inset: -1px; pointer-events: none;
  background:
    linear-gradient(var(--silver-hi), var(--silver-hi)) left top / 12px 1px no-repeat,
    linear-gradient(var(--silver-hi), var(--silver-hi)) left top / 1px 12px no-repeat,
    linear-gradient(var(--silver-hi), var(--silver-hi)) right top / 12px 1px no-repeat,
    linear-gradient(var(--silver-hi), var(--silver-hi)) right top / 1px 12px no-repeat,
    linear-gradient(var(--silver), var(--silver)) left bottom / 12px 1px no-repeat,
    linear-gradient(var(--silver), var(--silver)) left bottom / 1px 12px no-repeat,
    linear-gradient(var(--silver), var(--silver)) right bottom / 12px 1px no-repeat,
    linear-gradient(var(--silver), var(--silver)) right bottom / 1px 12px no-repeat;
}
.frame { padding: 6px; }

/* Program band: film perforations over a double silver rule, then the
   section title with a quiet count on the right. */
.band { position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; margin: 60px 0 18px; padding-top: 16px; border-top: 1px solid #6f777f; scroll-margin-top: var(--anchor); }
.band::before { content: ""; position: absolute; left: 0; right: 0; top: -9px; height: 4px; background: var(--perf); }
.band::after { content: ""; position: absolute; left: 0; right: 0; top: 3px; height: 1px; background: #2b3035; }
.band h2 { font-size: clamp(22px, 3vw, 30px); text-transform: uppercase; letter-spacing: .06em; }
.band-meta { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: 12px; color: var(--muted); }
.band.small { margin-top: 36px; }
.band.small h2, .band.small h3 { font-size: 20px; }
h2.section { font-size: clamp(22px, 3vw, 30px); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 18px; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; font: 600 14px/1 var(--body); color: var(--ink); text-decoration: none;
  background: #15181b; border: 1px solid #555c64; border-top-color: #858c93; border-bottom-color: #2b3035;
  border-radius: var(--r); padding: 11px 16px; cursor: pointer;
}
.btn:hover { background: #1c2024; border-color: #7a8189; color: #fff; }
.btn svg { width: 16px; height: 16px; }
.btn.now { border-color: #3d5876; border-top-color: #5e84ad; background: #0f1a28; }
.btn.now:hover { background: #142438; border-color: #5aa9ff; }

/* ---------------------------------------------------------------- header */
.site-header { background: rgba(5,6,7,.96); border-bottom: 1px solid #1d2125; position: sticky; top: 0; z-index: 30; }
.site-header .bar { display: flex; align-items: center; gap: 22px; min-height: 62px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); flex: none; text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand img { height: 22px; width: auto; display: block; }
.brand span { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .2em; font-size: 12px; color: var(--muted); padding-left: 12px; border-left: 1px solid var(--line-2); }
.nav { display: flex; gap: 2px; }
.nav a { color: var(--ink-2); font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: 14px; padding: 10px 11px; text-decoration: none; }
.nav a:hover { color: #fff; background: #121518; }
.nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--silver-hi); }
.header-search { margin-left: auto; position: relative; width: min(300px, 32vw); }
.search-toggle { display: none; }
.current-link { font-size: 13px; color: var(--ink-2); white-space: nowrap; text-decoration: none; border-bottom: 1px solid #3d5876; padding-bottom: 2px; }
.current-link:hover { color: #fff; border-bottom-color: var(--accent); }
.site-header .film { height: 10px; border-bottom: 1px solid #23364b; }
.site-header .film::before, .site-header .film::after { height: 2px; background: repeating-linear-gradient(90deg, #262a2f 0 8px, transparent 8px 17px); }
.site-header .film::before { top: 2px; } .site-header .film::after { bottom: 2px; }

@media (max-width: 860px) {
  /* Pure-CSS "sticky tail": the brand row scrolls away; the nav row stays. */
  :root { --sticky-top: 54px; --anchor: 128px; }
  .site-header { top: -48px; }
  .site-header .bar { display: grid; grid-template-columns: 1fr 44px; grid-template-areas: "brand brand" "nav tog" "srch srch"; gap: 0 4px; padding: 0 var(--gutter); min-height: 0; }
  .brand { grid-area: brand; height: 48px; }
  .brand span { font-size: 11px; letter-spacing: .16em; }
  .nav { grid-area: nav; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-left: -8px; }
  .nav a { font-size: 13px; letter-spacing: .05em; padding: 0 4px; height: 44px; display: flex; align-items: center; justify-content: center; }
  .nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--silver-hi); }
  .search-toggle { grid-area: tog; display: grid; place-items: center; width: 44px; height: 44px; color: var(--ink-2); text-decoration: none; }
  .search-toggle svg { width: 20px; height: 20px; }
  .header-search { grid-area: srch; display: none; width: 100%; margin: 0 0 10px; }
  .site-header.search-open .header-search { display: block; }
  .current-link { display: none; }
}

/* ---------------------------------------------------------------- search */
.search { position: relative; }
.search input {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #0c0e10;
  border: 1px solid var(--line-2); border-top-color: #4d545b; border-radius: var(--r); padding: 10px 12px 10px 36px; min-height: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%239aa1a8' stroke-width='1.8'%3E%3Ccircle cx='7' cy='7' r='5.2'/%3E%3Cpath d='m11 11 3.6 3.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 12px 50%;
}
.search input::placeholder { color: var(--dim); }
.search input:focus { border-color: #8a9299; outline: none; box-shadow: 0 0 0 3px rgba(90,169,255,.28); }
.search.big input { font-size: clamp(17px, 2.2vw, 21px); padding: 18px 20px 18px 52px; background-position: 20px 50%; background-size: 20px;
  border: 1px solid #5b626a; border-top-color: #a3aab1; border-bottom-color: #2b3035; box-shadow: inset 0 0 0 1px #07080a; }
.results {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 40;
  background: #111416; border: 1px solid var(--line-2); border-top-color: #6f777f; border-radius: var(--r);
  box-shadow: 0 18px 50px rgba(0,0,0,.65); max-height: min(70vh, 560px); overflow-y: auto; padding: 4px;
}
.results[hidden] { display: none; }
.result { display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; padding: 11px 12px; color: var(--ink); text-decoration: none; border-bottom: 1px solid #1b1f23; }
.result:last-child { border-bottom: 0; }
.result:hover, .result[aria-selected="true"] { background: #1a1e22; color: #fff; }
.result .r-name { font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: .02em; line-height: 1.1; }
.result .r-meta { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
.result .r-side { font-size: 13px; color: var(--muted); text-align: right; white-space: nowrap; }
.result mark { background: none; color: #fff; box-shadow: inset 0 -2px 0 var(--silver-hi); }
.results .group-label { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: 11px; color: var(--dim); padding: 10px 12px 4px; }
.results .empty { padding: 14px 12px; color: var(--muted); font-size: 14px; }
@media (max-width: 560px) { .result { grid-template-columns: 1fr; } .result .r-side { text-align: left; } }

/* ---------------------------------------------------------------- home */
.hero { padding: clamp(28px, 6vw, 72px) 0 12px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 500px); gap: 48px; align-items: center; }
.hero .display { font-size: clamp(38px, 5.4vw, 70px); }
.hero .lede { margin-top: 18px; }
.hero .search { margin-top: 26px; max-width: 720px; }
.hero .hint { font-size: 13px; color: var(--muted); margin-top: 10px; }
.masthead { margin: 0; }
.masthead img { display: block; width: 100%; height: auto; aspect-ratio: 769 / 134; }
.masthead figcaption { font-size: 12.5px; color: var(--muted); margin-top: 10px; display: flex; justify-content: space-between; gap: 12px; }
.masthead figcaption span:last-child { font-family: var(--display); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 11px; color: var(--dim); white-space: nowrap; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 22px; }
  .masthead { order: -1; }
  .masthead figcaption span:last-child { display: none; }
}

/* Contents: the four ways in, set like a program's table of contents */
.contents { margin: 40px 0 0; }
.contents ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid #6f777f; border-bottom: 1px solid var(--line-2); }
.contents li + li { border-left: 1px solid var(--line-2); }
.contents a { display: block; padding: 16px 18px 18px; text-decoration: none; color: var(--ink); min-height: 44px; }
.contents a:hover { background: #111416; }
.contents .c-line { display: flex; align-items: baseline; gap: 8px; }
.contents .c-title { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 22px; }
.contents .c-dots { flex: 1; border-bottom: 1px dotted #4a5158; transform: translateY(-5px); min-width: 12px; }
.contents .c-num { font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--ink-2); }
.contents .c-sub { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; }
@media (max-width: 860px) {
  .contents ol { grid-template-columns: 1fr; }
  .contents li + li { border-left: 0; border-top: 1px solid var(--line); }
  .contents a { padding: 13px 2px; }
  .contents .c-title, .contents .c-num { font-size: 20px; }
}

/* three editorial columns separated by rules, not boxes */
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 48px; border-top: 1px solid var(--line-2); }
.cols3 > section { padding: 22px 24px 8px; }
.cols3 > section:first-child { padding-left: 0; }
.cols3 > section:last-child { padding-right: 0; }
.cols3 > section + section { border-left: 1px solid var(--line); }
.cols3 h3 { margin-bottom: 10px; }
.cols3 p { color: var(--ink-2); font-size: 15px; }
@media (max-width: 900px) {
  .cols3 { grid-template-columns: 1fr; border-top: 0; }
  .cols3 > section { padding: 20px 0 6px; border-top: 1px solid var(--line-2); }
  .cols3 > section + section { border-left: 0; }
}
.champ-strip { list-style: none; margin: 0; padding: 0; }
.champ-strip li { display: flex; align-items: baseline; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); min-height: 40px; }
.champ-strip .when { font-family: var(--display); font-weight: 700; color: var(--muted); letter-spacing: .06em; min-width: 88px; font-size: 14px; text-transform: uppercase; }

/* the bridge to the current era */
.story { margin-top: 64px; padding: 26px 0 8px; position: relative; }
.story::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, #6f777f 0%, #6f777f 55%, var(--accent) 100%); }
.story h2 { font-size: clamp(24px, 3vw, 32px); text-transform: uppercase; letter-spacing: .06em; }
.story p { color: var(--ink-2); max-width: 64ch; margin-top: 10px; }
.eras { list-style: none; margin: 22px 0 18px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); position: relative; }
.eras::before { content: ""; position: absolute; left: 6px; right: 6px; top: 6px; height: 1px; background: linear-gradient(90deg, #7b838a 0%, #7b838a 60%, var(--accent) 100%); }
.eras li { position: relative; padding-top: 22px; }
.eras li::before { content: ""; position: absolute; left: 0; top: 0; width: 11px; height: 11px; background: #0a0b0c; border: 1px solid #9aa1a8; transform: rotate(45deg); }
.eras li.now::before { border-color: var(--accent); background: #0f1a28; }
.eras b { display: block; font-family: var(--display); letter-spacing: .08em; text-transform: uppercase; font-size: 16px; }
.eras span { font-size: 13px; color: var(--muted); }
.eras li.now span { color: var(--accent-ink); }
.story-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
@media (max-width: 640px) {
  .eras { grid-template-columns: 1fr; gap: 16px; padding-left: 24px; }
  .eras::before { left: 5px; right: auto; top: 6px; bottom: 6px; width: 1px; height: auto; background: linear-gradient(180deg, #7b838a 0%, #7b838a 60%, var(--accent) 100%); }
  .eras li { padding-top: 0; }
  .eras li::before { left: -24px; top: 4px; }
  .story-links .btn { flex: 1 1 100%; }
}

/* ---------------------------------------------------------------- page heads */
.page-head { padding: clamp(24px, 5vw, 52px) 0 10px; }
.page-head .display { font-size: clamp(40px, 7vw, 80px); }
.crumbs { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: 12px; color: var(--muted); margin-bottom: 14px; padding-top: 22px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.page-head .crumbs { padding-top: 0; }

/* ---------------------------------------------------------------- player */
.profile-top { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
@media (max-width: 900px) { .profile-top { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
.entry { padding: 26px 28px 0; overflow: hidden; }
.entry-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: end; }
.entry .display { font-size: clamp(52px, 9vw, 112px); overflow-wrap: anywhere; }
.entry .display.as-id { font-family: var(--mono); font-weight: 600; font-size: clamp(30px, 5.4vw, 58px); letter-spacing: -.02em; line-height: 1.05; }
.entry .primary { font-family: var(--mono); font-size: clamp(17px, 2.2vw, 22px); color: var(--ink-2); margin-top: 10px; overflow-wrap: anywhere; }
.entry-years { text-align: right; padding-bottom: 6px; }
.entry-years .yrs { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 3.4vw, 40px); line-height: 1; white-space: nowrap; }
.entry-years .overline { margin: 6px 0 0; }
.aka { margin-top: 16px; font-size: 14px; color: var(--muted); }
.aka .aka-k { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: 12px; margin-right: 8px; }
.aka .ids { font-family: var(--mono); font-size: 13.5px; color: var(--ink-2); }
.aka .ids span[data-id] { white-space: nowrap; }
.aka .ids span[data-id].hit { color: #fff; box-shadow: inset 0 -2px 0 var(--accent); }
.aka .sep { color: #4a5158; margin: 0 2px; }
details.more-ids { display: inline; }
details.more-ids > summary { display: inline; cursor: pointer; list-style: none; color: var(--muted); font-size: 13px; margin-left: 8px; text-decoration: underline; text-decoration-color: var(--silver-lo); text-underline-offset: 3px; }
details.more-ids > summary::-webkit-details-marker { display: none; }
details.more-ids[open] > summary { display: none; }
.statline { display: grid; grid-template-columns: repeat(3, minmax(0, auto)); justify-content: start; margin: 22px -28px 0; padding: 0 28px; border-top: 1px solid var(--line-2); background: rgba(0,0,0,.18); }
.statline > div { padding: 14px 22px 14px 0; margin-right: 22px; border-right: 1px solid var(--line); }
.statline > div:nth-child(3n) { border-right: 0; margin-right: 0; }
.statline > div:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
.stat-note { margin: 0; padding: 10px 0 16px; font-size: 12.5px; color: var(--muted); }
.statline dt { font-size: 11.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); order: 2; }
.statline dd { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(24px, 2.8vw, 32px); line-height: 1; white-space: nowrap; }
.statline > div { display: flex; flex-direction: column-reverse; gap: 6px; }
.entry-summary { font-size: 16px; color: var(--ink-2); margin: 18px 0 0; max-width: 62ch; }
.searched { font-size: 13.5px; color: var(--ink-2); margin: 10px 0 0; }
@media (max-width: 700px) {
  .entry { padding: 20px 18px 0; }
  .entry-top { grid-template-columns: 1fr; gap: 6px; }
  .entry-years { text-align: left; padding: 0; display: flex; align-items: baseline; gap: 10px; }
  .entry-years .overline { margin: 0; }
  .statline { grid-template-columns: 1fr 1fr; margin: 18px -18px 0; padding: 0 18px; }
  .statline > div { padding: 12px 0; margin: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .statline > div:nth-child(odd) { padding-right: 12px; }
  .statline > div:last-child { border-bottom: 0; }
  .statline > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
.card-col .frame img { display: block; width: 100%; }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.card-actions .btn { flex: 1 1 auto; white-space: nowrap; padding: 11px 10px; }
.btn-status { font-size: 13px; color: var(--muted); min-height: 1.3em; margin-top: 6px; }
@media (max-width: 900px) { .card-col { max-width: 340px; width: 100%; margin: 0 auto; } }

/* honours roll */
.honours { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
.honours li { border-bottom: 1px solid var(--line); }
.honours a { display: grid; grid-template-columns: 26px 58px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 11px 0; text-decoration: none; color: var(--ink); min-height: 44px; }
.honours a:hover { background: #111416; }
.honours .h-mark svg { width: 18px; height: 18px; color: var(--silver-hi); vertical-align: -3px; }
.honours .h-year { font-family: var(--display); font-weight: 700; font-size: 20px; }
.honours .h-where { color: var(--muted); font-size: 14px; }
.honours .h-res { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: 13px; color: var(--ink-2); }
.honours li.champ .h-res { color: #fff; }
@media (max-width: 700px) { .honours { grid-template-columns: 1fr; } .honours a { grid-template-columns: 22px 50px minmax(0, 1fr) auto; } }

/* career timeline: one frame per year on a strip of film */
.timeline { display: grid; grid-template-columns: repeat(var(--years, 9), minmax(0, 1fr)); gap: 0; position: relative; padding: 12px 0; background: #07080a; border-top: 1px solid #1f2327; border-bottom: 1px solid #1f2327; }
.timeline::before, .timeline::after { content: ""; position: absolute; left: 0; right: 0; height: 3px; background: repeating-linear-gradient(90deg, #262a2f 0 7px, transparent 7px 15px); }
.timeline::before { top: 3px; } .timeline::after { bottom: 3px; }
.tl-year { padding: 4px 8px 2px; border-left: 1px solid #1f2327; }
.tl-year:first-child { border-left: 0; }
.tl-year .y { font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--muted); letter-spacing: .06em; }
.tl-cells { display: grid; grid-template-columns: repeat(var(--per-year, 7), minmax(0, 1fr)); gap: 3px; margin-top: 6px; max-width: 150px; }
.tl-cell { height: 26px; border-radius: 1px; background: #14171a; border: 1px solid #22262b; display: block; position: relative; }
.tl-cell.on { background: #59616a; border-color: #6f7780; }
.tl-cell.po { background: #aab1b8; border-color: #c9ced3; }
.tl-cell.champ { background: var(--chrome); border-color: #fff; box-shadow: 0 0 0 1px #0b0c0e, 0 0 0 2px #cfd4d8; }
a.tl-cell:hover { outline: 2px solid var(--accent); outline-offset: 1px; }
.tl-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 12.5px; color: var(--muted); margin-top: 12px; }
.tl-legend span { display: inline-flex; align-items: center; gap: 6px; }
.tl-legend i { width: 10px; height: 14px; border-radius: 1px; display: inline-block; }
@media (max-width: 700px) { .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 10px; } .tl-year:nth-child(3n+1) { border-left: 0; } }

/* opponents: a ruled two-column list */
.opp-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
.opp-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 14px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line); }
.opp-list .who a, .opp-list .who .unlinked { font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: .02em; }
.opp-list .as { grid-column: 1; font-family: var(--mono); font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.opp-list .rec { grid-column: 2; grid-row: 1; text-align: right; font-family: var(--display); font-weight: 700; font-size: 20px; }
.opp-list .rec-sub { grid-column: 2; text-align: right; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
@media (max-width: 700px) {
  .opp-list { grid-template-columns: minmax(0, 1fr); }
  .opp-list .as, .opp-list .rec-sub { grid-column: 1 / -1; text-align: left; white-space: normal; }
}

/* ---------------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; border-top: 1px solid #6f777f; border-bottom: 1px solid var(--line-2); }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
.t th, .t td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.t thead th {
  position: sticky; top: 0; z-index: 1; background: #101215; font-family: var(--display); font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; font-size: 12px; color: var(--muted); white-space: nowrap; border-bottom: 1px solid var(--line-2);
}
.t tbody tr:last-child td { border-bottom: 0; }
.t tbody tr:hover td { background: #101316; }
.t .r { text-align: right; }
.t td.name { min-width: 150px; }
.t td.name .id { display: block; font-size: 12.5px; color: var(--muted); }
.t td.name .gm { display: none; }
.t .rank { width: 58px; white-space: nowrap; color: var(--muted); font-family: var(--display); font-weight: 700; font-size: 15px; }
.t tr.adv td:first-child { box-shadow: inset 2px 0 0 #9ba2a9; }
.t .fin { white-space: nowrap; }
.fin-champ { font-weight: 700; color: #fff; }
.t td.num { white-space: nowrap; }
.t a { text-decoration-color: #3a4046; }
.t a:hover { text-decoration-color: var(--silver-hi); }
.show-more { margin-top: 12px; }
@media (max-width: 640px) {
  /* stacked rows instead of a shrunken desktop table */
  table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.stack, table.stack tbody { display: block; }
  table.stack tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 12px; padding: 12px 2px; border-bottom: 1px solid var(--line); }
  table.stack td { display: block; border: 0; padding: 0; text-align: left !important; font-size: 13.5px; }
  table.stack td[data-label]::before { content: attr(data-label); display: block; font-family: var(--display); font-weight: 700; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 1px; }
  table.stack td.lead { grid-column: 1 / -1; font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: .03em; }
  table.stack td.id { grid-column: span 2; }
  table.stack tbody tr:hover td { background: none; }
  /* season-by-season: two compact lines per season */
  table.seasons-t tr { grid-template-columns: 64px minmax(0, 1fr) auto auto auto; grid-template-areas: "a b b b c" "d d e f g"; gap: 3px 10px; padding: 10px 0; }
  table.seasons-t td::before { display: none !important; }
  table.seasons-t td.lead { grid-area: a; font-size: 16px; }
  table.seasons-t td.c-grp { grid-area: b; }
  table.seasons-t td.c-po { grid-area: c; text-align: right !important; }
  table.seasons-t td.id { grid-area: d; font-size: 12.5px; color: var(--muted); }
  table.seasons-t td.c-fin { grid-area: e; color: var(--muted); font-size: 12.5px; }
  table.seasons-t td.c-wld { grid-area: f; color: var(--muted); font-size: 12.5px; }
  table.seasons-t td.c-pts { grid-area: g; color: var(--muted); font-size: 12.5px; }
  table.seasons-t td.c-pts:not(:empty)::after { content: " pts"; }
  table.seasons-t.collapsed tr.more { display: none; }
  /* standings: Games moves under the player so nothing scrolls sideways */
  .t .c-games { display: none; }
  .t td.name .gm { display: block; font-size: 12px; color: var(--dim); }
  .t th, .t td { padding: 9px 7px; }
  .t .rank { width: 40px; }
}
@media (min-width: 641px) { .show-more { display: none; } }

/* ---------------------------------------------------------------- season */
.cover { background: #060708; border-top: 1px solid #1d2125; border-bottom: 1px solid #1d2125; position: relative; overflow: hidden; margin-top: 8px; }
.cover-film { height: 16px; position: relative; background: #040505; }
.cover-film::before { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 6px; background: repeating-linear-gradient(90deg, #2a2f34 0 12px, transparent 12px 26px); }
.cover-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: end; padding-top: 28px; padding-bottom: 30px;
  border-top: 1px solid #6f777f; border-bottom: 1px solid #3a4046; }
.cover-ghost { position: absolute; left: 40%; bottom: -0.17em; font-size: clamp(160px, 26vw, 340px); -webkit-text-stroke: 1px #2e343a; }
.cover h1 { position: relative; }
.cover .year { display: block; font-size: clamp(72px, 13vw, 150px); }
.cover .sn { display: block; font-size: clamp(30px, 5vw, 52px); color: var(--ink-2); text-transform: uppercase; letter-spacing: .08em; margin-top: 6px; }
.season-meta { position: relative; color: var(--muted); font-size: 14px; margin-top: 12px; }
.cover-champs { position: relative; display: grid; gap: 10px; min-width: 250px; align-content: end; }
.cover-champs > .overline { margin: 0; }
.cplate { padding: 12px 16px 12px; }
.cplate .dv { font-family: var(--display); font-weight: 700; font-size: 11.5px; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.cplate .who { font-family: var(--display); font-weight: 700; font-size: 28px; line-height: 1.1; }
.cplate .who a { text-decoration: none; }
.cplate .who a:hover { text-decoration: underline; }
.cplate .who .id { font-family: var(--mono); font-weight: 400; font-size: 13px; display: block; color: var(--muted); }
@media (max-width: 760px) {
  .cover-inner { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 20px; padding-bottom: 20px; }
  .cover-ghost { left: auto; right: -0.02em; top: -0.12em; bottom: auto; font-size: 190px; }
  .cover-champs { min-width: 0; gap: 0; border-top: 1px solid var(--line-2); }
  .cover-champs > .overline { padding-top: 10px; }
  .cplate { padding: 10px 0; border: 0; background: none; box-shadow: none; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 96px 1fr auto; align-items: baseline; gap: 10px; }
  .cplate::after { display: none; }
  .cplate .who { font-size: 22px; }
}
/* contents line: pinned under the header on phones */
.contents-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; padding: 12px 0; margin: 0 0 8px; border-bottom: 1px solid var(--line); font-size: 14px; }
.contents-line .cl-grp { display: inline-flex; gap: 12px; align-items: baseline; white-space: nowrap; }
.contents-line .cl-k { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; color: var(--muted); }
.contents-line a { color: var(--ink-2); }
.contents-line .cl-sep { width: 1px; height: 14px; background: var(--line-2); flex: none; }
.contents-line a.cl-k { color: var(--muted); text-decoration: none; }
.contents-line a.cl-k:hover { color: #fff; }
.contents-line .g-l { display: inline-block; min-width: 24px; text-align: center; font-family: var(--display); font-weight: 700; font-size: 15px; text-decoration: none; }
.contents-line .g-l:hover { color: #fff; text-decoration: underline; }
.contents-line .cl-grp { gap: 6px 10px; }
@media (max-width: 860px) {
  .contents-line { position: sticky; top: var(--sticky-top); z-index: 20; background: rgba(6,7,8,.97); flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)) 8px; padding: 10px var(--gutter); scrollbar-width: none; }
  .contents-line::-webkit-scrollbar { display: none; }
  .contents-line a { padding: 8px 0; }
}
.division { margin-bottom: 30px; scroll-margin-top: var(--anchor); }
.stage-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 26px 0 14px; scroll-margin-top: var(--anchor); }
.stage-h h3 { font-size: 18px; }
.groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; }
@media (max-width: 980px) { .groups { grid-template-columns: 1fr; } }
.group { scroll-margin-top: var(--anchor); }
.group-h { display: flex; align-items: baseline; justify-content: space-between; padding: 0 0 8px; }
.group-h h3 { font-size: 21px; }
.group-h .muted { font-size: 13px; }
.group details.results-list > summary { cursor: pointer; padding: 11px 0; font-size: 13.5px; color: var(--muted); list-style: none; min-height: 44px; display: flex; align-items: center; }
.group details.results-list > summary::-webkit-details-marker { display: none; }
.group details.results-list > summary::before { content: "+"; display: inline-block; width: 16px; color: var(--dim); }
.group details.results-list[open] > summary::before { content: "\2212"; }
.sets { list-style: none; margin: 0; padding: 0 0 12px; font-size: 13.5px; }
.sets li { display: grid; grid-template-columns: minmax(0, 1fr) 78px minmax(0, 1fr) 22px; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px dashed #1e2226; }
.sets li:last-child { border-bottom: 0; }
.sets .a { text-align: right; overflow-wrap: anywhere; }
.sets .b { overflow-wrap: anywhere; }
.sets .sc { text-align: center; font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .04em; color: var(--ink); }
.sets .sc.np { font-family: var(--body); font-weight: 400; font-size: 12px; color: var(--dim); }
.sets .w { color: #fff; font-weight: 600; }
.sets .l { color: var(--muted); }
.sets a { text-decoration-color: #33393f; }
.adv-key { font-size: 12.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.adv-key i { width: 2px; height: 14px; background: #9ba2a9; display: inline-block; }

/* bracket: a printed bracket sheet on desktop, one round at a time on phones */
.round-tabs { display: none; }
.bracket-wrap { overflow-x: auto; padding: 14px 0 10px; border-top: 1px solid #6f777f; border-bottom: 1px solid var(--line-2); background: #0b0d0f; }
.bracket { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(154px, 1fr); column-gap: 22px; padding: 0 12px; min-width: min-content; }
.round { display: flex; flex-direction: column; scroll-snap-align: start; scroll-margin-top: var(--anchor); }
.round > h4 { margin: 0 0 10px; height: 18px; font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.round .ms { display: flex; flex-direction: column; flex: 1; }
.pair { display: flex; flex-direction: column; flex: 1; position: relative; }
.slot { flex: 1; display: flex; flex-direction: column; justify-content: center; position: relative; min-height: 74px; padding: 4px 0; }
.round:not(:first-child) .slot { min-height: 0; }
/* connectors */
.slot::after { content: ""; position: absolute; right: -11px; top: 50%; width: 11px; border-top: 1px solid #454c53; }
.pair::after { content: ""; position: absolute; right: -11px; top: 25%; bottom: 25%; border-right: 1px solid #454c53; }
.round:not(:first-child) .slot::before { content: ""; position: absolute; left: -11px; top: 50%; width: 11px; border-top: 1px solid #454c53; }
.round.final .slot::after { right: -11px; }
.pair.single::after { display: none; }
.round.champ-col .slot::after { display: none; }
.m { border: 1px solid var(--line-2); border-top-color: #4f565d; border-radius: var(--r); background: #111416; font-size: 13px; position: relative; }
.m .s { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 5px 9px; align-items: center; min-height: 28px; }
.m .s + .s { border-top: 1px solid var(--line); }
.m .s .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m .s .n a { color: inherit; text-decoration: none; }
.m .s .n a:hover { color: #fff; text-decoration: underline; }
.m .s.win { color: #fff; font-weight: 600; }
.m .s.lose { color: var(--muted); }
.m .s.bye .n { color: var(--dim); font-style: italic; }
.m .s .g { font-family: var(--display); font-weight: 700; font-size: 14px; min-width: 14px; text-align: right; }
.m .seed { color: var(--dim); font-size: 11px; margin-right: 6px; font-family: var(--display); }
.m .mnote { position: absolute; right: -7px; top: -7px; }
.round.final .m { border-color: #7b838a; border-top-color: #b9bfc5; }
.champ-slot { padding: 14px 12px; text-align: center; }
.champ-slot > svg { width: 22px; height: 22px; color: var(--silver-hi); display: block; margin: 0 auto 4px; }
.champ-slot .who { font-family: var(--display); font-weight: 700; font-size: 24px; }
.champ-slot .who a { color: #fff; text-decoration: none; }
.champ-slot .who a:hover { text-decoration: underline; }
.m .s .n .tag, .tag { font-size: 10px; font-family: var(--display); font-weight: 700; letter-spacing: .08em; color: var(--dim); border: 1px solid #2c3136; border-radius: 1px; padding: 0 3px; margin-left: 5px; vertical-align: 1px; text-decoration: none; }
@media (max-width: 760px) {
  /* phones: rounds stack top to bottom; a row of round links jumps between them */
  .round-tabs { display: flex; gap: 0; overflow-x: auto; border-bottom: 1px solid var(--line); margin: 0 calc(-1 * var(--gutter)) 4px; padding: 0 var(--gutter); scrollbar-width: none; }
  .round-tabs::-webkit-scrollbar { display: none; }
  .round-tabs a { flex: none; padding: 12px 10px; min-height: 44px; display: flex; align-items: center; font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); text-decoration: none; border-bottom: 2px solid transparent; }
  .round-tabs a:first-child { padding-left: 0; }
  .round-tabs a:hover, .round-tabs a:focus-visible { color: #fff; border-bottom-color: var(--silver-hi); }
  .bracket-wrap { overflow: visible; border: 0; padding: 0; background: none; }
  .bracket { display: block; padding: 0; min-width: 0; }
  .round { margin-top: 18px; scroll-margin-top: var(--anchor); }
  .round > h4 { height: auto; padding: 0 0 8px; margin: 0 0 10px; border-bottom: 1px solid var(--line-2); color: var(--ink-2); font-size: 14px; }
  .round .ms, .pair { flex: none; }
  .pair { margin-bottom: 10px; padding-left: 10px; border-left: 1px solid #2b3035; }
  .pair.single { padding-left: 0; border-left: 0; }
  .slot { flex: none; min-height: 0; padding: 0 0 6px; }
  .slot::after, .slot::before, .pair::after, .round:not(:first-child) .slot::before { display: none; }
  .m { font-size: 14px; }
  .m .s { min-height: 38px; }
  .champ-slot { text-align: left; display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 2px 10px; }
  .champ-slot > svg { margin: 0; grid-row: span 2; }
  .champ-slot .id { grid-column: 2; }
}

/* ---------------------------------------------------------------- notes (footnotes, never headlines) */
details.note { display: inline-block; position: relative; vertical-align: middle; margin-left: 4px; }
details.note > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 5px;
  color: var(--dim); font-size: 12px; line-height: 1; padding: 4px; border-radius: 999px; min-width: 24px; min-height: 24px; justify-content: center;
}
details.note > summary::-webkit-details-marker { display: none; }
details.note > summary:hover, details.note[open] > summary { color: var(--ink-2); }
.note-mark {
  width: 15px; height: 15px; border-radius: 50%; border: 1px solid currentColor; display: inline-grid; place-items: center;
  font: italic 700 10px/1 Georgia, "Times New Roman", serif;
}
details.note.material > summary { color: var(--muted); }
.note-body {
  position: absolute; z-index: 25; top: calc(100% + 6px); left: -8px; width: min(340px, 82vw);
  background: #14171a; border: 1px solid var(--line-2); border-top-color: #6f777f; border-radius: var(--r); padding: 12px 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,.6); font-size: 13px; color: var(--ink-2); text-align: left; font-weight: 400; white-space: normal;
}
.note-body.right { left: auto; right: -8px; }
.note-body strong { color: var(--ink); display: block; margin-bottom: 4px; font-size: 13px; }
.note-body dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; margin: 8px 0 0; }
.note-body dt { color: var(--dim); }
.note-body dd { margin: 0; font-family: var(--mono); font-size: 12px; overflow-wrap: anywhere; }
.note-body p { margin: 6px 0 0; }
.source-details { border-top: 1px solid var(--line); margin-top: 44px; padding-top: 16px; }
.source-details > summary { cursor: pointer; color: var(--muted); font-size: 14px; list-style: none; display: inline-flex; gap: 8px; align-items: center; min-height: 44px; }
.source-details > summary::-webkit-details-marker { display: none; }
.source-details[open] > summary { color: var(--ink-2); margin-bottom: 10px; }
.source-details .sd-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 32px; font-size: 14px; color: var(--ink-2); }
@media (max-width: 760px) { .source-details .sd-grid { grid-template-columns: 1fr; } }
.source-details h4 { margin: 0 0 6px; font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: 12px; color: var(--muted); }
.source-details ul { margin: 0; padding-left: 18px; }
.source-details li { margin-bottom: 6px; }
.inline-note { font-size: 13px; color: var(--muted); margin-top: 8px; }
.inline-note details.note { margin-left: 4px; }

/* ---------------------------------------------------------------- champions */
.leaders-line { list-style: none; margin: 0 0 8px; padding: 12px 0; display: flex; flex-wrap: wrap; gap: 6px 0; border-top: 1px solid #6f777f; border-bottom: 1px solid var(--line-2); }
.leaders-line li { display: flex; align-items: baseline; }
.leaders-line li + li::before { content: "\00b7"; color: #4a5158; margin: 0 12px; }
.leaders-line a { text-decoration: none; display: inline-flex; align-items: baseline; gap: 7px; padding: 4px 0; }
.leaders-line b { font-family: var(--display); font-size: 26px; line-height: 1; }
.leaders-line span { font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: .03em; }
.leaders-line .id { font-style: normal; font-size: 12px; color: var(--muted); align-self: center; }
.leaders-line a:hover span { text-decoration: underline; text-decoration-color: var(--silver-hi); }
@media (max-width: 640px) {
  .leaders-line { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
  .leaders-line li + li::before { display: none; }
  .leaders-line li { border-bottom: 1px solid var(--line); }
  .leaders-line a { padding: 8px 0; min-height: 40px; }
}
.years { position: relative; margin-top: 28px; }
.yr { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; padding: 22px 0 18px; border-top: 1px solid #6f777f; position: relative; }
.yr::before { content: ""; position: absolute; left: 0; right: 0; top: 3px; height: 1px; background: #2b3035; }
.yr .yr-n { font-family: var(--display); font-weight: 700; font-size: clamp(44px, 6vw, 72px); line-height: .9; position: sticky; top: calc(var(--sticky-top) + 84px); align-self: start; }
@media (max-width: 860px) { .yr .yr-n { top: calc(var(--sticky-top) + 10px); } }
@media (max-width: 760px) {
  .yr { grid-template-columns: 1fr; gap: 6px; padding-top: 0; }
  .yr .yr-n { position: sticky; top: var(--sticky-top); z-index: 5; background: rgba(10,11,12,.97); padding: 10px 0 8px; font-size: 40px; margin: 0 calc(-1 * var(--gutter)); padding-left: var(--gutter); border-bottom: 1px solid var(--line); }
}
.ys { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 6px 0 10px; }
.ys + .ys { border-top: 1px solid var(--line); padding-top: 12px; }
.ys .sl { font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; padding-top: 6px; }
.ys .sl a { color: var(--muted); text-decoration: none; }
.ys .sl a:hover { color: #fff; text-decoration: underline; }
.title-rows { list-style: none; margin: 0; padding: 0; }
.title-rows li { display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; gap: 4px 14px; align-items: baseline; padding: 5px 0; }
.title-rows .dv { font-family: var(--display); font-weight: 700; font-size: 11.5px; letter-spacing: .14em; color: var(--dim); text-transform: uppercase; }
.title-rows .who a, .title-rows .who .unlinked { font-family: var(--display); font-weight: 700; font-size: 25px; line-height: 1.1; text-decoration: none; }
.title-rows .who a:hover { text-decoration: underline; }
.title-rows .who .id { margin-left: 10px; font-size: 13px; color: var(--muted); }
.title-rows .meta { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; justify-content: flex-end; }
.title-rows .nth { font-family: var(--display); font-weight: 700; letter-spacing: .08em; color: var(--ink-2); font-size: 12px; text-transform: uppercase; }
@media (max-width: 560px) {
  .ys { grid-template-columns: 1fr; gap: 2px; }
  .ys .sl { padding-top: 4px; }
  .title-rows li { grid-template-columns: 1fr auto; }
  .title-rows .dv { grid-column: 1 / -1; }
  .title-rows .dv:empty { display: none; }
  .title-rows .meta { justify-content: flex-end; }
  .title-rows .who .id { display: block; margin: 0; }
}

/* ---------------------------------------------------------------- seasons index */
.season-years { display: grid; gap: 0; }
.sy { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; padding: 18px 0 14px; border-top: 1px solid #6f777f; position: relative; }
.sy::before { content: ""; position: absolute; left: 0; right: 0; top: 3px; height: 1px; background: #2b3035; }
.sy .yr-n { font-family: var(--display); font-weight: 700; font-size: 46px; line-height: .9; }
.sy-list { list-style: none; margin: 0; padding: 0; }
.sy-list a { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 4px 16px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line); text-decoration: none; min-height: 44px; }
.sy-list li:last-child a { border-bottom: 0; }
.sy-list a:hover { background: #111416; }
.sy-list .t1 { font-family: var(--display); font-weight: 700; font-size: 20px; text-transform: uppercase; letter-spacing: .05em; }
.sy-list .t2 { font-size: 13.5px; color: var(--muted); }
.sy-list .t3 { font-size: 14px; color: var(--ink-2); text-align: right; }
@media (max-width: 640px) {
  .sy { grid-template-columns: 1fr; gap: 4px; }
  .sy .yr-n { font-size: 38px; }
  .sy-list a { grid-template-columns: 1fr auto; }
  .sy-list .t2 { grid-column: 1 / -1; grid-row: 2; }
}

/* ---------------------------------------------------------------- players index */
.letters { display: flex; flex-wrap: wrap; gap: 0; margin: 18px 0 22px; border-top: 1px solid #6f777f; border-bottom: 1px solid var(--line-2); }
.letters a { font-family: var(--display); font-weight: 700; font-size: 15px; min-width: 40px; height: 44px; display: grid; place-items: center; color: var(--ink-2); text-decoration: none; }
.letters a:hover { background: #121518; color: #fff; }
.dir-letter { scroll-margin-top: var(--anchor); font-size: 34px; margin: 26px 0 8px; color: var(--ink-2); border-bottom: 1px solid var(--line-2); padding-bottom: 6px; }
.dir { list-style: none; margin: 0; padding: 0; columns: 3 260px; column-gap: 28px; }
.dir li { break-inside: avoid; padding: 6px 0; border-bottom: 1px solid #16191c; font-size: 14px; }
.dir li a { font-weight: 600; text-decoration-color: #33393f; }
.dir li .id { font-size: 12.5px; color: var(--muted); margin-left: 6px; }
.dir li .y { font-size: 12px; color: var(--dim); margin-left: 6px; }
.dir li[hidden], [data-dir-block][hidden] { display: none; }
.dir-filter { max-width: 560px; margin-top: 18px; }
.dir-none { margin: 12px 0 0; font-size: 14px; color: var(--muted); }

/* ---------------------------------------------------------------- records */
.records { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 44px; }
@media (max-width: 860px) { .records { grid-template-columns: 1fr; } }
.book { padding-bottom: 12px; }
.book .band { margin-top: 44px; }
.book .def { font-size: 13.5px; color: var(--muted); margin: -8px 0 10px; }
.book .holder { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; padding: 6px 0 12px; border-bottom: 1px solid var(--line-2); }
.book .holder .overline { margin-bottom: 2px; }
.book .holder .who + .who { margin-top: 6px; }
.book .holder .who a { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.05; text-decoration: none; }
.book .holder .who a:hover { text-decoration: underline; }
.book .holder .who .id { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.book .holder .cnt { font-family: var(--display); font-weight: 700; font-size: clamp(40px, 5vw, 56px); line-height: .9; }
.book ol { list-style: none; margin: 0; padding: 0; }
.book ol li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line); min-height: 40px; }
.book ol li .pos { font-family: var(--display); font-weight: 700; color: var(--dim); }
.book ol li .cnt { font-family: var(--display); font-weight: 700; font-size: 19px; }

/* ---------------------------------------------------------------- misc blocks */
details.block { margin-top: 14px; }
details.block > summary { cursor: pointer; color: var(--ink-2); font-size: 14px; list-style: none; padding: 10px 0; min-height: 44px; display: flex; align-items: center; }
details.block > summary::-webkit-details-marker { display: none; }
details.block > summary::before { content: "+"; width: 16px; color: var(--dim); }
details.block[open] > summary::before { content: "\2212"; }
.meet-season { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: 13px; color: var(--muted); }
.res-w { color: #fff; font-weight: 600; }
.res-l { color: var(--muted); }
.res-d { color: var(--ink-2); }
section.block-s { margin-top: 0; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; }
.pager a { color: var(--ink-2); }

/* a very quiet end-of-page link to the current era */
.continue { margin-top: 56px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.continue a { color: var(--ink-2); text-decoration-color: #3d5876; }
.continue a:hover { text-decoration-color: var(--accent); }

/* ---------------------------------------------------------------- footer */
.site-footer { margin-top: 72px; background: #050607; position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, #3a4046 0%, #6f777f 50%, var(--accent) 100%); }
.site-footer .inner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 36px; padding: 34px var(--gutter) 44px; font-size: 14px; color: var(--muted); }
.site-footer h4 { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: 12px; color: var(--ink-2); margin: 0 0 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 18px; }
.site-footer li a { display: inline-block; padding: 8px 0; color: var(--ink-2); }
.site-footer img { height: 20px; width: auto; margin-bottom: 12px; display: block; }
.site-footer p + h4 { margin-top: 20px; }
.site-footer .now p { max-width: 46ch; }
.site-footer .now h4 { color: var(--accent-ink); }
.site-footer .now li a { text-decoration-color: #3d5876; }
.site-footer .now li a:hover { text-decoration-color: var(--accent); }
@media (max-width: 760px) { .site-footer .inner { grid-template-columns: 1fr; gap: 24px; } }

@media (prefers-reduced-motion: no-preference) {
  .contents a, .honours a, .sy-list a, .btn, .result, .nav a, .letters a { transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
}
@media print {
  .site-header, .site-footer, .card-actions, .story, .search, .contents-line, .round-tabs { display: none !important; }
  body { background: #fff; color: #000; }
}
