/* Base: reset, type scale, layout, header/footer, controls. */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.55 var(--font); font-stretch: 100%; min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--red-ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
p { margin: 0; } img { max-width: 100%; } button { font-family: inherit; }
h1, h2, h3 { margin: 0; }
/* poster headlines: condensed black, tight */
.poster-h, h1, h2 { font-family: var(--font); font-weight: 860; font-stretch: 64%; line-height: .92; letter-spacing: -.01em; text-transform: uppercase; }
h1 { font-size: clamp(52px, 10vw, 112px); }
h2 { font-size: clamp(38px, 6vw, 64px); }
h3 { font-size: 20px; font-weight: 750; line-height: 1.2; font-stretch: 92%; }
.num { font-weight: 860; font-stretch: 70%; font-variant-numeric: tabular-nums; line-height: 1; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 15px; } .tiny { font-size: 13px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hidden { display: none !important; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 920px; }
main { flex: 1; outline: none; overflow-x: hidden; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: var(--s4); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.list { display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 720px) { .split { grid-template-columns: 1fr; } .wrap { padding: 0 16px; } }

/* sections read like poster blocks: thick rule, index number, headline */
.section { padding: var(--s7) 0 var(--s2); display: flex; flex-direction: column; gap: var(--s5); }
.section-head { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: end; justify-content: space-between; border-top: var(--rule); border-color: var(--text); padding-top: 14px; }
.kicker { display: flex; gap: 10px; align-items: baseline; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.kicker b { color: var(--red-ink); font-variant-numeric: tabular-nums; }
.section-sub { font-size: 18px; color: var(--muted); max-width: 640px; margin-top: 10px; }
.more { font-weight: 700; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }
.page-top { padding-top: 40px; }
.page-h { font-size: clamp(48px, 8vw, 92px); }

/* header */
.top { position: sticky; top: 0; z-index: 20; display: flex; gap: 8px; align-items: center; justify-content: space-between; padding: 10px 24px;
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: var(--rule); border-color: var(--text); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; min-width: 44px; justify-content: center; }
.logo svg { width: 34px; height: 34px; flex: none; }
.logo .word { font-weight: 860; font-stretch: 112%; font-size: 23px; letter-spacing: -.03em; }
.logo .word .wm-rr { color: inherit; }   /* 0.17.91: one-colour logo everywhere – white on dark, ink on a light page (docs/BRAND.md) */
.top nav { display: flex; gap: 2px; align-items: center; }
.top nav a, .lang { padding: 10px 12px; text-decoration: none; font-weight: 650; border-radius: var(--r-s); min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap; }
.top nav a:hover { background: var(--surface-2); color: var(--text); }
.top nav a.active { box-shadow: inset 0 -3px 0 var(--red); border-radius: 0; }
.top nav a.nav-watch.is-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-right: 7px; animation: blink 1.6s infinite; }
.top nav a.pill { margin-left: 6px; background: var(--text); color: var(--bg); border-radius: 999px; padding: 10px 16px; }
.top nav a.pill.active { box-shadow: none; background: var(--red); color: #fff; }
.lang { background: none; border: 2px solid var(--line); color: var(--text); font: 700 14px var(--font); cursor: pointer; margin-left: 4px; min-width: 48px; justify-content: center; }
@media (max-width: 760px) {
  .top { padding: 8px 12px; }
  .logo .word { font-size: 20px; }
  .top nav a { padding: 8px 8px; font-size: 15px; }
  .top nav a.opt { display: none; }
  .opt-t { display: none; }
}

/* footer */
.foot { border-top: var(--rule); border-color: var(--text); margin-top: var(--s7); }
.foot .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; padding-top: 28px; padding-bottom: 32px; font-size: 15px; color: var(--muted); }
.foot b { color: var(--text); display: block; margin-bottom: 6px; }
.foot a { display: block; padding: 6px 0; }
.foot button.linklike { display: block; text-align: left; background: none; border: 0; color: inherit; font: inherit; padding: 6px 0; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; cursor: pointer; }
@media (max-width: 720px) { .foot .wrap { grid-template-columns: 1fr 1fr; } .foot .about { grid-column: 1 / -1; } }

/* buttons: ink-outlined, offset shadow = poster print */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border-radius: 999px; border: 2px solid var(--ink);
  background: var(--red); color: #fff; font: 750 17px var(--font); font-stretch: 96%; text-decoration: none; cursor: pointer; box-shadow: 3px 3px 0 var(--ink);
  transition: transform .08s var(--ease), box-shadow .08s var(--ease); }
.btn:hover { color: #fff; transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn.light, .btn.ghost { background: var(--surface); color: var(--text); border-color: var(--text); box-shadow: none; }
.btn.light:hover, .btn.ghost:hover { color: var(--text); background: var(--surface-2); transform: none; }
.btn.dark { background: var(--ink); color: var(--paper); box-shadow: 3px 3px 0 var(--red); }
.btn.dark:hover { color: var(--paper); }
.btn.blue { background: var(--blue); }
.btn.small { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn[disabled] { opacity: .45; cursor: default; transform: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--line); background: var(--surface); color: var(--text); font: 650 15px var(--font); cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.chip:hover { border-color: var(--text); color: var(--text); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip.radio input { width: 18px; height: 18px; min-height: 0; margin: 0; }
.chip.radio:has(input:checked) { background: var(--text); color: var(--bg); border-color: var(--text); }
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 600; color: var(--muted); }
input, select, textarea { min-height: 52px; padding: 12px 14px; border-radius: var(--r-s); border: 2px solid var(--line); background: var(--surface); color: var(--text); font: 17px var(--font); width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--text); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 35%, transparent); }
textarea { min-height: 100px; resize: vertical; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--red); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--muted); }
.check input { width: 24px; height: 24px; min-height: 24px; flex: none; margin-top: 1px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); border: 2px solid var(--text); border-radius: 999px; padding: 3px; background: var(--surface); }
.seg button { min-height: 44px; border: none; background: transparent; color: var(--text); border-radius: 999px; font: 700 15px var(--font); cursor: pointer; padding: 0 10px; }
.seg button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.error { color: var(--red-ink); font-size: 15px; font-weight: 600; } .ok { color: var(--ok); font-weight: 700; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; letter-spacing: .02em; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text); white-space: nowrap; }
.tag.live { background: var(--red); color: #fff; } .tag.before { background: #dbe4fb; color: #16378f; } .tag.gold { background: var(--warn-bg); color: #6b5100; }
.tag.ok { background: var(--ok-bg); color: var(--ok); }
.tag.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
code { font: 600 15px ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; }
.crumbs { padding-top: 22px; font-size: 15px; color: var(--muted); } .crumbs a { color: var(--muted); }
@media (max-width: 760px) { body.has-actionbar { padding-bottom: 88px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
@media (max-width: 440px) { .logo .word { display: none; } .top nav a.pill { margin-left: 2px; padding: 8px 12px; } .lang { min-width: 44px; padding: 8px; } }
main:focus, main:focus-visible { outline: none; }
.stack > .tag { align-self: flex-start; }
[hidden] { display: none !important; }
/* phones: Watch is always in the menu now – tighter items, Callouts only from 400 px up (also on the home page) */
@media (max-width: 440px) { .top nav { gap: 0; } .top nav a { padding: 8px 7px; font-size: 14.5px; } .top nav a.pill { padding: 8px 11px; } .top nav a.nav-watch.is-live::before { margin-right: 5px; } }
@media (max-width: 400px) { .top nav a.opt-s { display: none; } }

/* features.callouts off (league.yaml): everything about callouts disappears */
.no-callouts a[href^="/#/callouts"], .no-callouts a[href^="/ops/#/callouts"], .no-callouts .callouts-only { display: none !important; }
