/* OK Marching: "Flag Blue" (approved mockup, round 5b, 2026-10).
   One token set drives light + dark: follows the device, or data-theme on <html>. */
:root {
  --page: #EEF2F6; --bg: #FFFFFF; --surface: #FFFFFF; --stripe: #EEF4FA; --ink: #0F1C2B; --gray: #5A6676; --rule: #E1E7EE;
  --flag: #1E5B9B; --flagtext: #1E5B9B; --nav: #1E5B9B; --navtext: #D5E3F2; --tan: #B98F5A; --warn: #8A5A12; --warnbg: #FBF3E4;
  --foot: #0F2A47; --foottext: #C3D3E4; --tansoft: #F6EEE3;
  --gold: #E2B33C; --goldink: #3A2A05; --silver: #B9C3CE; --silverink: #1C2632; --bronze: #B8733A; --bronzeink: #FFFFFF;
  --hd: "Barlow Semi Condensed", "Arial Narrow", sans-serif; --wmf: "Saira Extra Condensed", "Barlow Semi Condensed", "Arial Narrow", sans-serif; --body: "Barlow", system-ui, sans-serif;
  --wrap: 1180px; --gut: 22px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --page: #070C12; --bg: #0D1620; --surface: #122030; --stripe: #15263A; --ink: #E6EDF5; --gray: #94A4B7; --rule: #22344A;
  --flag: #5E9BDB; --flagtext: #8DBBEA; --nav: #0A2440; --navtext: #B9CDE3; --tan: #C9A36E; --warn: #E5B66A; --warnbg: #2A2216;
  --foot: #08182A; --foottext: #A9BBCF; --tansoft: #2A2216; color-scheme: dark } }
:root[data-theme="dark"] {
  --page: #070C12; --bg: #0D1620; --surface: #122030; --stripe: #15263A; --ink: #E6EDF5; --gray: #94A4B7; --rule: #22344A;
  --flag: #5E9BDB; --flagtext: #8DBBEA; --nav: #0A2440; --navtext: #B9CDE3; --tan: #C9A36E; --warn: #E5B66A; --warnbg: #2A2216;
  --foot: #08182A; --foottext: #A9BBCF; --tansoft: #2A2216; color-scheme: dark }

/* ---------- base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--body); overflow-x: hidden; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
a { color: var(--flagtext); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img, svg { max-width: 100%; }
h1, h2, h3 { margin: 0; }
button { font-family: inherit; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid #F2B632; outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gut); }
.muted { color: var(--gray); }
.small { font-size: 13px; }
.tnum { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #F2B632; color: #000; padding: 8px 12px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }
.pad-block { padding-block: 22px 4px; }
.h2, h2.h2 { font: 800 26px/1.1 var(--hd); text-transform: uppercase; color: var(--flagtext); margin: 0 0 10px; }
.sub { margin: 2px 0 12px; color: var(--gray); font-size: 15px; }
.link { display: inline-block; margin-top: 12px; color: var(--flagtext); font-weight: 600; }
.link.pad { margin: 0; padding: 0 16px 14px; }
.btn { display: inline-flex; align-items: center; gap: 6px; background: var(--flag); color: #fff; border: 1px solid var(--flag); border-radius: 999px; padding: 9px 16px; font: 700 14px/1.1 var(--body); cursor: pointer; text-decoration: none; }
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--flagtext); border-color: var(--flag); }
.btn.ghost:hover { background: var(--stripe); filter: none; }
.btn.sm { padding: 6px 12px; font-size: 13px; }
.btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; flex: none; }
.btn.off { background: transparent; color: var(--gray); border-color: var(--rule); }
.btn.soon { background: var(--stripe); color: var(--flagtext); border-color: var(--stripe); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.dotsep span + span::before { content: "·"; margin: 0 8px; color: var(--gray); }
kbd { font: 600 12px var(--body); border: 1px solid currentColor; border-radius: 6px; padding: 2px 7px; opacity: .6; }

/* ---------- nav */
.topnav { background: var(--nav); color: #fff; position: relative; z-index: 30; }
.topnav-in { display: flex; align-items: center; gap: 18px; min-height: 64px; padding-block: 12px; }
.wm { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; flex: none; }
.wm:hover { text-decoration: none; }
.wm-mark { height: 56px; width: auto; display: block; flex: none; margin-block: -10px -6px; }
.wm-text { font: 800 33px/1 var(--wmf); text-transform: uppercase; letter-spacing: .01em; color: #fff; white-space: nowrap; }
.links { display: flex; gap: 16px; margin-left: auto; flex-wrap: wrap; }
.links a { padding: 4px 0; font: 600 15px/1 var(--hd); text-transform: uppercase; letter-spacing: .04em; color: var(--navtext); border-bottom: 2px solid transparent; text-decoration: none; }
.links a:hover { color: #fff; text-decoration: none; }
.links a[aria-current="page"] { color: #fff; border-bottom-color: var(--tan); }
.tools { display: flex; gap: 8px; flex: none; }
.rbtn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; flex: none; padding: 0; }
.rbtn:hover { background: rgba(255,255,255,.1); }
.rbtn svg { width: 18px; height: 18px; }
.rbtn.menu { display: none; }
.i-sun { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .i-sun { display: block; } :root:not([data-theme="light"]) .i-moon { display: none; } }
:root[data-theme="dark"] .i-sun { display: block; }
:root[data-theme="dark"] .i-moon { display: none; }
.strip { height: 8px; background: linear-gradient(90deg, var(--flag) 0 70%, var(--tan) 70% 100%); }

/* ---------- page header (stripe band) */
.phead, .bhead { background: var(--stripe); border-bottom: 1px solid var(--rule); }
.phead { padding: 28px 0 20px; }
.phead h1 { font: 800 clamp(32px, 5vw, 48px)/1 var(--hd); text-transform: uppercase; overflow-wrap: anywhere; }
.phead-sub { margin: 8px 0 0; color: var(--gray); max-width: 70ch; }
.crumb { font-size: 13px; color: var(--gray); margin-bottom: 6px; }
.crumb a { color: var(--gray); }
.crumb a:hover { color: var(--flagtext); }

/* ---------- hero */
.hero { position: relative; overflow: hidden; height: 430px; background: #0b0f14; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s ease; }
.hero img.on { opacity: 1; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,10,14,.08) 0%, rgba(8,10,14,.18) 40%, rgba(8,10,14,.86) 100%); pointer-events: none; }
.heroin { position: absolute; left: 0; right: 0; bottom: 22px; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: #fff; }
.heroin h1 { margin: 0; max-width: 13ch; font: 800 clamp(36px, 5.8vw, 62px)/.95 var(--hd); text-transform: uppercase; text-wrap: balance; }
.search { margin-top: 14px; display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.96); color: #1a1f26; padding: 12px 18px; border-radius: 999px; width: min(430px, 100%); font: 15px var(--body); border: 0; cursor: pointer; text-align: left; }
.search:hover { background: #fff; }
.ctrl { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; font-size: 12px; color: #D4DAE2; text-align: right; max-width: 100%; }
.ctrl a { color: #D4DAE2; text-decoration: underline; text-decoration-color: rgba(255,255,255,.35); }
.ctrl .btns { display: flex; align-items: center; gap: 8px; }
.ctrl button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.55); background: rgba(10,14,20,.38); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; cursor: pointer; display: grid; place-items: center; padding: 0; transition: background .15s, transform .15s, border-color .15s; }
.ctrl button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ctrl button:hover { background: rgba(255,255,255,.18); border-color: #fff; transform: scale(1.06); }
.ctrl button:active { transform: scale(.96); }
.ctrl .btns { gap: 10px; }
@media (prefers-reduced-motion: reduce) { .hero img { transition: none; } .ctrl button { transition: none; } }

/* ---------- home */
.hbody { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 28px; padding-block: 26px 30px; }
.hbody h2 { font: 800 26px/1.1 var(--hd); text-transform: uppercase; color: var(--flagtext); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 14px; }
.chip { border: 1px solid var(--rule); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 7px 12px; font: 600 14px/1 var(--body); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; text-decoration: none; }
.chip:hover { border-color: var(--flag); text-decoration: none; }
.chip[aria-selected="true"], .chip[aria-pressed="true"] { background: var(--flag); border-color: var(--flag); color: #fff; }
.chip b { font-weight: 700; opacity: .7; }
.pt { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--tan); flex: none; }
.ctitle { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 10px; flex-wrap: wrap; }
.ctitle h3 { font: 700 21px/1.2 var(--hd); }
.ctitle h3 a { color: var(--ink); }
.ctitle span { color: var(--gray); font-size: 14px; }
.partial { margin: 10px 0 4px; background: var(--warnbg); color: var(--warn); border-radius: 8px; padding: 10px 12px; font-size: 14px; display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.pbtn { border: 1px solid currentColor; background: transparent; color: inherit; border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: 13px; white-space: nowrap; }
.pbtn:hover { text-decoration: none; background: rgba(0,0,0,.05); }
.rows { margin-top: 8px; }
.row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; font-size: 16px; }
.rows .row:nth-child(odd) { background: var(--stripe); }
.row .p { font: 700 15px var(--hd); color: var(--gray); text-align: center; }
.row .p .pl { margin: 0 auto; }
.row.w .n { font-weight: 600; }
.row .n a { color: var(--ink); }
.row .n small { color: var(--gray); font-size: 13px; margin-left: 6px; font-weight: 400; }
.row .s { font: 700 17px var(--hd); font-variant-numeric: tabular-nums; }
.row .s.r { font-weight: 600; color: var(--gray); font-size: 14px; }
.side { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.card { border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; background: var(--surface); }
.ch { padding: 14px 16px 10px; border-bottom: 3px solid var(--tan); display: flex; align-items: baseline; gap: 4px 12px; flex-wrap: wrap; }
.ch h2 { font: 800 22px/1.1 var(--hd); text-transform: uppercase; color: var(--flagtext); }
.ch-x { color: var(--gray); font-size: 13px; }
.wk { padding: 4px 16px 12px; }
.wk .d { font: 800 13px/1 var(--hd); text-transform: uppercase; letter-spacing: .06em; color: var(--gray); margin: 12px 0 6px; }
.ev { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--rule); font-size: 15px; color: var(--ink); }
.ev:hover { text-decoration: none; }
.ev:hover .t { color: var(--flagtext); }
.wk .ev:last-child { border-bottom: 0; }
.ev .t { font-weight: 600; display: block; }
.ev .c { color: var(--gray); font-size: 13px; display: block; }
.tag { align-self: center; font: 700 11px/1 var(--hd); text-transform: uppercase; letter-spacing: .05em; padding: 4px 7px; border-radius: 4px; background: var(--stripe); color: var(--flagtext); white-space: nowrap; }
.tag.now { background: var(--tan); color: #fff; }
.season { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 14px 16px; }
.season div { font-size: 13px; color: var(--gray); }
.season b { display: block; font: 800 30px/1.05 var(--hd); color: var(--ink); }
.season .miss b { color: var(--warn); }
.help { padding: 0 16px 16px; font-size: 14px; color: var(--gray); margin: 0; }
.help .btn { margin-top: 10px; }

/* ---------- result tables (contest, records, champions) */
.cpage { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; padding-block: 22px 30px; }
.cside { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.round { font: 800 26px/1.1 var(--hd); text-transform: uppercase; color: var(--flagtext); margin: 22px 0 4px; }
.cmain > .round:first-child, .cmain > .partial + .round { margin-top: 6px; }
.div { font: 700 20px/1.2 var(--hd); margin: 14px 0 6px; }
.results { margin-bottom: 8px; }
.rt { width: 100%; border-collapse: collapse; font-size: 16px; }
.rt th { text-align: left; font: 700 12px/1 var(--hd); text-transform: uppercase; letter-spacing: .06em; color: var(--gray); padding: 8px 10px; border-bottom: 1px solid var(--rule); }
.rt td { padding: 8px 10px; vertical-align: middle; }
.rt tbody tr:nth-child(odd) { background: var(--stripe); }
.rt tr.w .c-band { font-weight: 600; }
.rt .c-pl { width: 52px; text-align: center; }
.rt .c-sc { text-align: right; font: 700 17px var(--hd); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rt th.c-sc { font: 700 12px/1 var(--hd); }
.rt .c-yr { width: 64px; font: 700 16px var(--hd); font-variant-numeric: tabular-nums; }
.rt .c-band a, .bandlink { color: var(--ink); }
.rt .c-band a:hover { color: var(--flagtext); }
.rt .c-judges { white-space: nowrap; }
.st { color: var(--gray); font-size: 13px; font-weight: 500; }
.pl { display: inline-grid; place-items: center; min-width: 26px; height: 26px; font: 700 15px var(--hd); color: var(--gray); }
.pl.m1, .pl.m2, .pl.m3 { border-radius: 50%; width: 26px; }
.pl.m1 { background: var(--gold); color: var(--goldink); }
.pl.m2 { background: var(--silver); color: var(--silverink); }
.pl.m3 { background: var(--bronze); color: var(--bronzeink); }
.pl.sm { min-width: 20px; width: 20px; height: 20px; font-size: 12px; }
.pl-x { font-size: 13px; }
.rating { display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 5px; border-radius: 4px; background: var(--flag); color: #fff; font: 700 13px/1 var(--hd); border: 1px solid var(--flag); vertical-align: middle; }
.rating + .rating { margin-left: 3px; }
.rating.r-2 { background: var(--stripe); color: var(--flagtext); border-color: var(--flag); }
.rating.r-3, .rating.r-4, .rating.r-5, .rating.r-x { background: var(--surface); color: var(--gray); border-color: var(--rule); }
.notice { background: var(--stripe); border-radius: 8px; padding: 10px 12px; margin: 10px 0; color: var(--ink); }
.lineup { columns: 2 220px; padding-left: 20px; margin: 6px 0; }
.lineup li { padding: 2px 0; }
.kv { list-style: none; margin: 0; padding: 6px 16px 12px; }
.kv li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }
.kv li:last-child { border-bottom: 0; }
.kv .k { color: var(--gray); }
.kv .k em { font-style: normal; opacity: .8; }
.kv .v { text-align: right; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.kv a { display: contents; }
.kv.hist a .k { color: var(--flagtext); font: 700 15px var(--hd); }
.kv.hist li:hover .k { text-decoration: underline; }
.prevnext { display: grid; gap: 8px; }
.prevnext a { border: 1px solid var(--rule); border-radius: 10px; padding: 10px 14px; background: var(--surface); color: var(--ink); font-weight: 600; font-size: 14px; }
.prevnext a:hover { border-color: var(--flag); text-decoration: none; }
.prevnext small { display: block; color: var(--gray); font-weight: 500; font-size: 12px; }

/* ---------- band page */
.bhead { padding-top: 26px; }
.bhead .nm { font: 800 clamp(36px, 6vw, 56px)/.95 var(--hd); text-transform: uppercase; overflow-wrap: anywhere; }
.bhead .nk { color: var(--gray); font-size: 16px; margin-top: 6px; }
.bstats { display: flex; gap: 12px 30px; flex-wrap: wrap; margin: 16px 0 18px; }
.bstats div { font-size: 13px; color: var(--gray); }
.bstats b { display: block; font: 800 30px/1.05 var(--hd); color: var(--ink); }
.tabs { display: flex; gap: 4px; }
.tabs a { border-bottom: 3px solid transparent; padding: 10px 14px; font: 700 16px/1 var(--hd); text-transform: uppercase; letter-spacing: .03em; color: var(--gray); text-decoration: none; }
.tabs a:hover { color: var(--flagtext); text-decoration: none; }
.tabs a[aria-current="page"] { color: var(--flagtext); border-bottom-color: var(--flag); }
.tabs .cnt { font-size: 12px; background: var(--bg); border-radius: 999px; padding: 2px 7px; margin-left: 4px; color: var(--gray); }
.bbody { padding-block: 24px 30px; }
.bgrid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; }
.bside { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.bside h2, .galhead h2 { font: 800 22px/1.1 var(--hd); text-transform: uppercase; color: var(--flagtext); }
.galhead h2 { font-size: 26px; }
.sea { border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; margin-bottom: 14px; background: var(--surface); }
.sea .sh { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; padding: 10px 14px; background: var(--stripe); cursor: pointer; list-style: none; }
.sea .sh::-webkit-details-marker { display: none; }
.sea .sh b { font: 800 22px/1 var(--hd); color: var(--flagtext); }
.sea .sh .n { margin-left: auto; color: var(--gray); font-size: 13px; }
.sea .sh .n::after { content: " ▾"; }
.sea:not([open]) .sh .n::after { content: " ▸"; }
.pill { font: 700 12px/1 var(--hd); text-transform: uppercase; letter-spacing: .04em; padding: 5px 8px; border-radius: 4px; background: var(--surface); border: 1px solid var(--rule); color: var(--ink); white-space: nowrap; }
.pill.gold { background: var(--tan); border-color: var(--tan); color: #fff; }
.res { display: grid; grid-template-columns: 56px minmax(0, 1fr) 40px minmax(64px, auto); gap: 10px; align-items: center; padding: 9px 14px; border-top: 1px solid var(--rule); font-size: 15px; }
.res .dt { color: var(--gray); font-size: 13px; font-variant-numeric: tabular-nums; }
.res .ct a { color: var(--ink); }
.res .ct a:hover { color: var(--flagtext); }
.res .ct small { display: block; color: var(--gray); font-size: 13px; }
.res .pl-c { font: 700 15px var(--hd); text-align: center; }
.res .pl-c .pl { margin: 0 auto; }
.res .sc { font: 700 16px var(--hd); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.chart { display: block; }
.chart text { fill: var(--gray); font: 500 11px var(--body); }
.chart .gl { stroke: var(--rule); }
.chart .gap { fill: var(--stripe); }
.chart .ln { fill: none; stroke: var(--flag); stroke-width: 2.2; }
.chart .dot { fill: var(--flag); }
.chart .dot.won { fill: var(--tan); }
.chart .lastv { fill: var(--flagtext); font-weight: 700; }
.mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.mini img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; display: block; }
.mini + .link { margin-top: 10px; }
.galhead { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.galhead .sub { margin: 2px 0 0; }
.gal { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.gal figure { margin: 0; border-radius: 8px; overflow: hidden; background: var(--stripe); }
.gal figure > a { display: block; overflow: hidden; }
.gal img { width: 100%; aspect-ratio: 3/2; object-fit: cover; display: block; transition: transform .3s; }
.gal figure:hover img { transform: scale(1.03); }
.gal figcaption { font-size: 12px; color: var(--gray); padding: 6px 8px; }
.gal figcaption a { color: var(--gray); text-decoration: underline; text-decoration-color: var(--rule); }
.gal .add { display: grid; place-items: center; text-align: center; border: 2px dashed var(--rule); border-radius: 8px; color: var(--gray); padding: 18px; min-height: 160px; font-size: 14px; }
.gal .add b { display: block; color: var(--ink); font: 700 18px var(--hd); text-transform: uppercase; margin-bottom: 4px; }
.gal .add .btn { margin-top: 12px; }
.lb { position: fixed; inset: 0; background: rgba(5,8,12,.94); z-index: 60; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; gap: 10px; }
.lb[hidden] { display: none; }
.lb img { max-width: 100%; max-height: 72vh; object-fit: contain; border-radius: 4px; }
.lb .cap { color: #D4DAE2; font-size: 13px; text-align: center; max-width: 70ch; }
.lb .row2 { display: flex; gap: 10px; }
.lb button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.45); background: rgba(255,255,255,.08); color: #fff; font-size: 20px; cursor: pointer; padding: 0; }
.lb button:hover { background: rgba(255,255,255,.18); }

/* ---------- FAQ */
.fbody { padding-block: 24px 30px; }
.fbody > div { max-width: 820px; }
.toc { display: flex; flex-direction: column; gap: 8px; font: 600 15px var(--hd); text-transform: uppercase; letter-spacing: .03em; position: sticky; top: 14px; align-self: start; }
.toc a { color: var(--gray); }
.toc a:hover { color: var(--flagtext); }
.fgroup { margin-bottom: 22px; scroll-margin-top: 14px; }
.fgroup h2 { font: 800 22px/1.1 var(--hd); text-transform: uppercase; color: var(--flagtext); margin-bottom: 6px; }
.fgroup details { border-bottom: 1px solid var(--rule); }
.fgroup summary { list-style: none; cursor: pointer; padding: 13px 0; font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; gap: 12px; }
.fgroup summary::-webkit-details-marker { display: none; }
.fgroup summary::after { content: "+"; font: 700 22px/1 var(--hd); color: var(--flagtext); }
.fgroup details[open] summary::after { content: "–"; }
.fgroup .a { padding: 0 0 14px; color: var(--gray); max-width: 68ch; }
.fgroup .a b { color: var(--ink); }
.ratings { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin-top: 8px; align-items: center; justify-items: start; }

/* ---------- about */
.about { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; padding-block: 24px 30px; }
.story h2 { font: 800 24px/1.1 var(--hd); text-transform: uppercase; color: var(--flagtext); margin: 18px 0 6px; }
.story h2:first-child { margin-top: 0; }
.story p { margin: 0 0 10px; max-width: 64ch; }
.story .after { margin-top: 14px; }
.promise { border-left: 6px solid var(--tan); background: var(--stripe); padding: 14px 16px; font-size: 17px; font-weight: 600; border-radius: 0 8px 8px 0; max-width: 62ch; }
.facts { display: flex; flex-direction: column; gap: 10px; align-self: start; }
.fact { border: 1px solid var(--rule); border-radius: 10px; padding: 12px 16px; color: var(--gray); font-size: 14px; background: var(--surface); }
.fact b { display: block; font: 800 30px/1.05 var(--hd); color: var(--ink); }

/* ---------- support */
.dpage { max-width: 560px; padding-block: 40px 46px; text-align: center; }
.dpage h1 { margin: 0 0 8px; font: 800 clamp(32px, 5vw, 44px)/1 var(--hd); text-transform: uppercase; }
.dpage p { color: var(--gray); margin: 0 auto 18px; max-width: 52ch; }
.give { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 14px; }
.give button { border: 1px solid var(--rule); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 10px 16px; font: 700 16px/1 var(--hd); cursor: pointer; }
.give button[aria-pressed="true"] { border-color: var(--flag); box-shadow: inset 0 0 0 1px var(--flag); }
.btn.big { font: 700 18px/1 var(--hd); text-transform: uppercase; letter-spacing: .04em; padding: 13px 28px; }
.dpage .fine { font-size: 12px; margin-top: 16px; margin-bottom: 0; }

/* ---------- lists: seasons, season page, bands, champions, records, schedule */
.list-card { border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; background: var(--surface); }
.lrow { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 16px; color: var(--ink); border-top: 1px solid var(--rule); }
.lrow:first-child { border-top: 0; }
.lrow:nth-child(odd) { background: var(--stripe); }
.lrow:hover { text-decoration: none; }
.lrow:hover .lrow-y { text-decoration: underline; }
.lrow-y { font: 800 26px/1 var(--hd); color: var(--flagtext); }
.lrow-b { display: flex; flex-direction: column; font-size: 14px; min-width: 0; }
.lrow-b em { font-style: normal; color: var(--flagtext); }
.lrow-b .muted { font-size: 13px; }
.go { color: var(--gray); font: 700 22px/1 var(--hd); }
.seasonnav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.seasonnav select, .filter input { font: 500 14px var(--body); color: var(--ink); background: var(--surface); border: 1px solid var(--rule); border-radius: 999px; padding: 7px 14px; }
.champ-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.champ { border: 1px solid var(--rule); border-top: 3px solid var(--tan); border-radius: 10px; padding: 10px 14px; background: var(--surface); color: var(--ink); display: flex; flex-direction: column; }
.champ:hover { border-color: var(--flag); border-top-color: var(--tan); text-decoration: none; }
.champ-class { font: 700 12px/1 var(--hd); text-transform: uppercase; letter-spacing: .06em; color: var(--gray); }
.champ-band { font: 700 19px/1.2 var(--hd); margin-top: 4px; }
.champ-note { font-size: 12px; color: var(--gray); }
.jump { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; padding-top: 18px; }
.filter { margin-left: auto; }
.jump .filter input { width: 250px; }
.filter.grow { flex: 1; margin-left: 0; }
.filter.grow input { width: 100%; max-width: 420px; }
.clist { display: flex; flex-direction: column; }
.ccard { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 16px; border-top: 1px solid var(--rule); color: var(--ink); }
.ccard:first-child { border-top: 0; }
.ccard:nth-child(even) { background: var(--stripe); }
.ccard:hover { text-decoration: none; }
.ccard:hover .ccard-name { color: var(--flagtext); }
.ccard-date { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.cd-m { font: 700 12px var(--hd); text-transform: uppercase; letter-spacing: .06em; color: var(--gray); }
.cd-d { font: 800 24px var(--hd); }
.cd-y { font-size: 11px; color: var(--gray); }
.ccard-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ccard-name { font-weight: 600; font-size: 16px; }
.ccard-meta { display: flex; flex-wrap: wrap; gap: 2px 12px; color: var(--gray); font-size: 13px; }
.warn { color: var(--warn); display: inline-flex; align-items: center; gap: 5px; }
.soon { color: var(--flagtext); }
.ccard-win, .srow-win { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; }
.win { display: inline-flex; align-items: center; gap: 6px; }
.win em { font-style: normal; color: var(--gray); font-size: 13px; }
.lead { list-style: none; margin: 0; padding: 4px 0 8px; }
.lead a { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 7px 16px; color: var(--ink); }
.lead li:nth-child(odd) a { background: var(--stripe); }
.lead a:hover { text-decoration: none; color: var(--flagtext); }
.lead .r { font: 700 14px var(--hd); color: var(--gray); text-align: center; }
.lead .r.top { background: var(--flag); color: #fff; border-radius: 50%; width: 24px; height: 24px; display: grid; place-items: center; }
.lead .v { font: 800 18px var(--hd); font-variant-numeric: tabular-nums; }
.records { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }
.records .span2 { grid-column: 1 / -1; }
.sched { padding-block: 18px 30px; display: flex; flex-direction: column; gap: 16px; }
.week.is-past { opacity: .82; }
.week.is-now { border-color: var(--flag); }
.week-head h2 { font-size: 22px; }
.sched-list { list-style: none; margin: 0; padding: 0; }
.srow { display: grid; grid-template-columns: 82px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--rule); }
.srow:first-child { border-top: 0; }
.srow:nth-child(even) { background: var(--stripe); }
.srow-date { display: flex; flex-direction: column; line-height: 1.1; }
.sd-dow { font: 700 12px var(--hd); text-transform: uppercase; letter-spacing: .06em; color: var(--gray); }
.sd-day { font: 800 19px var(--hd); }
.srow-main { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.srow-name { font-weight: 600; font-size: 16px; color: var(--ink); }
.srow-name:hover { color: var(--flagtext); }
.srow-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; color: var(--gray); font-size: 13px; }
.srow-ok { font-size: 13px; color: var(--gray); }
.srow-ok b { color: var(--ink); }
.srow-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.upnext { display: flex; align-items: center; gap: 12px; font: 800 14px var(--hd); text-transform: uppercase; letter-spacing: .08em; color: var(--tan); scroll-margin-top: 14px; }
.upnext::before, .upnext::after { content: ""; height: 2px; background: var(--tan); flex: 1; }
.sched-foot { margin-top: 4px; }

/* ---------- thanks + footer */
.thanks { border-top: 1px solid var(--rule); font-size: 14px; color: var(--gray); margin-top: 20px; }
.thanks-in { display: flex; gap: 6px 14px; align-items: center; flex-wrap: wrap; padding-block: 14px; }
.thanks .tq { color: var(--ink); }
.thanks-in > span + span { flex: 1 1 380px; }
.thanks a { font-weight: 600; margin-left: auto; }
.foot { background: var(--foot); color: var(--foottext); font-size: 14px; }
.foot-in { padding-block: 22px; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.fw { font: 800 26px/1 var(--wmf); text-transform: uppercase; letter-spacing: .01em; color: #fff; }
.fl { display: flex; gap: 6px 16px; flex-wrap: wrap; }
.fl a { color: inherit; }
.fl a:hover { color: #fff; }
.foot small { display: block; margin-top: 6px; opacity: .8; }
.sup { display: inline-block; margin-top: 10px; background: transparent; border: 1px solid rgba(255,255,255,.35); color: #fff; border-radius: 999px; padding: 5px 12px; font: 600 12px var(--body); }
.sup:hover { background: rgba(255,255,255,.1); text-decoration: none; }

/* ---------- search */
.search-layer { position: fixed; inset: 0; z-index: 50; background: rgba(5,8,12,.55); backdrop-filter: blur(3px); display: flex; justify-content: center; padding: 10vh 16px 16px; }
.search-layer[hidden] { display: none; }
.search-box { width: min(640px, 100%); max-height: 76vh; display: flex; flex-direction: column; background: var(--surface); color: var(--ink); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,.3); align-self: flex-start; }
.search-field { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 3px solid var(--tan); }
.search-field svg { width: 20px; height: 20px; color: var(--gray); flex: none; }
.search-field input { flex: 1; border: 0; outline: 0; background: transparent; color: var(--ink); font: 500 17px var(--body); min-width: 0; }
.search-results { list-style: none; margin: 0; padding: 6px; overflow: auto; }
.search-results a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 8px; color: var(--ink); }
.search-results a:hover, .search-results a.is-active { background: var(--stripe); text-decoration: none; }
.sr-type { flex: none; font: 700 11px var(--hd); letter-spacing: .08em; text-transform: uppercase; padding: 4px 7px; border-radius: 4px; background: var(--flag); color: #fff; width: 64px; text-align: center; }
.sr-type.c { background: var(--stripe); color: var(--flagtext); }
.sr-main { display: flex; flex-direction: column; min-width: 0; }
.sr-main b { font-weight: 600; }
.sr-main span { color: var(--gray); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-hint { margin: 0; padding: 14px 18px; color: var(--gray); font-size: 14px; }

/* ---------- round 6: contest page (years strip, two-column results, schedule tab) */
.pts { font: 600 10px/1 var(--body); color: var(--gray); margin-left: 3px; letter-spacing: .03em; }
.scale { margin: 10px 0 0; color: var(--gray); font-size: 14px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.scale .pill { background: var(--tansoft); border-color: var(--tan); color: var(--warn); }
.phead:has(.ctabs) { padding-bottom: 0; }
.ctabs { margin-top: 10px; }
.years { background: var(--bg); border-bottom: 1px solid var(--rule); }
.years-in { display: flex; gap: 6px; overflow-x: auto; padding-block: 12px; scrollbar-width: thin; }
.years a { flex: none; display: flex; flex-direction: column; align-items: center; min-width: 64px; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--rule); color: var(--ink); font-size: 12px; background: var(--surface); }
.years a:hover { border-color: var(--flag); text-decoration: none; }
.years a b { font: 800 16px/1 var(--hd); }
.years a span { color: var(--gray); white-space: nowrap; max-width: 104px; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.years a.cur { background: var(--flag); border-color: var(--flag); color: #fff; }
.years a.cur span { color: #DCE8F5; }
.years .lbl { flex: none; align-self: center; font: 700 12px/1.2 var(--hd); text-transform: uppercase; letter-spacing: .05em; color: var(--gray); width: 52px; }
.cbody { padding-block: 22px 30px; }
.cbody > .round:first-child, .cbody > .partial + .round, .cbody > .notice + .round { margin-top: 6px; }
.cls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 26px; align-items: start; }
.cls > .grp:only-child { grid-column: 1 / -1; max-width: 760px; }
.grp { min-width: 0; }
.grp .div { margin: 6px 0 6px; }
.cls .rows { margin-top: 0; }
.row .n small { white-space: nowrap; }
.capaw, .past { margin-top: 28px; }
.capgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; margin-top: 8px; }
.capgrid div { border: 1px solid var(--rule); border-radius: 8px; padding: 8px 12px; background: var(--surface); font-size: 14px; display: flex; flex-direction: column; gap: 1px; }
.capgrid b { font-weight: 600; color: var(--gray); font-size: 13px; }
.capgrid em { font-style: normal; font-size: 12px; color: var(--gray); }
.capgrid span { font-weight: 600; }
.capgrid span a { color: var(--ink); }
.past .sub { margin-bottom: 0; }
.pastgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; margin-top: 10px; }
.pastgrid a { border: 1px solid var(--rule); border-radius: 8px; padding: 8px 10px; font-size: 14px; background: var(--surface); color: var(--ink); display: flex; gap: 8px; align-items: baseline; min-width: 0; }
.pastgrid a:hover { border-color: var(--flag); text-decoration: none; }
.pastgrid a.cur { border-color: var(--flag); box-shadow: inset 0 0 0 1px var(--flag); }
.pastgrid b { font: 800 16px var(--hd); color: var(--flagtext); flex: none; }
.pastgrid span { min-width: 0; overflow-wrap: anywhere; }
.pastgrid small { display: block; color: var(--gray); font-size: 12px; }
.sources { margin-top: 18px; }
.grp .lowwins { margin: -2px 0 8px; font-size: 13px; }
.cbody .prevnext { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 30px; }
.cbody .prevnext .nx { text-align: right; grid-column: 2; }
.schedwrap { max-width: 760px; }
.mine { display: flex; gap: 8px; align-items: center; margin: 4px 0 14px; flex-wrap: wrap; }
.mine input { border: 1px solid var(--rule); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 8px 14px; font: 500 15px var(--body); width: min(300px, 100%); }
.mine-note { margin-top: -6px; }
.slots { border-top: 1px solid var(--rule); margin-bottom: 16px; }
.slot { display: grid; grid-template-columns: 82px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 12px; border-bottom: 1px solid var(--rule); font-size: 16px; }
.slot .t { font: 700 17px var(--hd); color: var(--flagtext); white-space: nowrap; }
.slot .n a { color: var(--ink); }
.slot.brk { background: var(--tansoft); color: var(--warn); font-weight: 600; font-size: 14px; }
.slot.brk .t { color: var(--warn); font-size: 15px; }
.slot.now { box-shadow: inset 4px 0 0 var(--tan); background: var(--tansoft); font-weight: 700; }

/* ---------- round 6: recap sheet (screen + print/PDF) */
.sheetbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding-block: 14px; }
.sheetbar-r { display: flex; gap: 8px; }
.sheetwrap { background: var(--page); padding: 24px 16px 30px; display: flex; justify-content: center; }
.sheet { width: min(816px, 100%); background: #fff; color: #111; box-shadow: 0 2px 14px rgba(0,0,0,.15); padding: 30px 34px; font-family: var(--body); }
.sheet .top { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 3px solid #1E5B9B; padding-bottom: 10px; gap: 12px; }
.sheet .brand { font: 800 22px var(--wmf); color: #1E5B9B; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.sheet .brand img { width: auto; height: 27px; }
.sheet h1 { margin: 10px 0 2px; font: 800 26px/1.05 var(--hd); text-transform: uppercase; color: #111; }
.sheet .sm { font-size: 12px; color: #555; }
.sheet .sm.r { text-align: right; flex: none; }
.sheet .warnline { color: #8A5A12; font-weight: 600; }
.sheet .sgrp { break-inside: auto; }
.sheet h2 { margin: 16px 0 0; font: 800 15px var(--hd); text-transform: uppercase; letter-spacing: .03em; color: #1E5B9B; break-after: avoid; }
.sheet table { width: 100%; border-collapse: collapse; margin-top: 6px; font-size: 13px; }
.sheet table.many { font-size: 11px; }
.sheet th { font: 700 11px var(--hd); text-transform: uppercase; letter-spacing: .04em; text-align: left; border-bottom: 1.5px solid #111; padding: 5px 6px; color: #333; vertical-align: bottom; }
.sheet table.many th { font-size: 10px; letter-spacing: 0; }
.sheet th.n, .sheet td.n { text-align: right; }
.sheet th.pl { width: 48px; }
.sheet th.n { width: 1%; }
.sheet td { padding: 5px 6px; border-bottom: 1px solid #ddd; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sheet td.tot { font-weight: 800; }
.sheet .rn { font-weight: 400; color: #555; font-size: 11px; }
.sheet tr { break-inside: avoid; }
.sheet tbody tr:nth-child(even) td { background: #F4F7FA; }
.sheet .cap { margin-top: 6px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 18px; font-size: 12px; }
.sheet .foot2 { margin-top: 18px; border-top: 1px solid #ccc; padding-top: 8px; font-size: 11px; color: #666; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.recap-page .thanks { margin-top: 0; }
@media (max-width: 640px) {
  .sheet { padding: 18px 14px; }
  .sheet .top { flex-direction: column; }
  .sheet .sm.r { text-align: left; }
  .sheet .sgrp { overflow-x: auto; }
  .sheet .cap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@page { size: Letter; margin: 0.45in 0.5in; }
@media print {
  :root { color-scheme: light; }
  body { background: #fff; }
  .topnav, .thanks, .foot, .sheetbar, .skip, .search-layer { display: none !important; }
  .sheetwrap { padding: 0; background: none; display: block; }
  .sheet { width: 100%; box-shadow: none; padding: 0; }
  .sheet .sgrp { overflow: visible; }
}

/* ---------- round 6: bands index */
.bfilters { background: var(--bg); border-bottom: 1px solid var(--rule); padding-block: 14px; }
.bfilters .wrap { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 781px) { .bfilters { position: sticky; top: 0; z-index: 5; } }
.frow { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.frow .lab { font: 700 12px var(--hd); text-transform: uppercase; letter-spacing: .06em; color: var(--gray); width: 52px; }
.frow input[type=search] { border: 1px solid var(--rule); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 9px 14px; font: 500 15px var(--body); flex: 1; min-width: 200px; }
.frow select, .chead select { border: 1px solid var(--rule); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 8px 12px; font: 600 14px var(--body); }
.count { color: var(--gray); font-size: 14px; margin: 14px 0 10px; }
.blist { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; padding-bottom: 20px; }
.bcard { border: 1px solid var(--rule); border-radius: 10px; padding: 12px 14px; background: var(--surface); color: var(--ink); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bcard:hover { border-color: var(--flag); text-decoration: none; }
.bcard .top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.bcard .top > span:first-child { min-width: 0; }
.bcard .nm { display: block; font: 800 20px/1.05 var(--hd); text-transform: uppercase; overflow-wrap: anywhere; }
.bcard .nk { display: block; color: var(--gray); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bcard .pill { flex: none; background: var(--stripe); border-color: var(--stripe); color: var(--flagtext); }
.bcard .st { display: flex; gap: 4px 14px; font-size: 12px; color: var(--gray); flex-wrap: wrap; align-items: baseline; }
.bcard .st b { font: 800 16px var(--hd); color: var(--ink); margin-right: 3px; }
.bcard .tt b { color: var(--tan); }

/* ---------- round 6: champions grid */
.chead { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; padding: 22px 0 10px; }
.chead .h2 { margin: 0; }
.ctab { overflow-x: auto; border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); }
.ctab table { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 820px; font-size: 14px; }
.ctab th { background: var(--surface); font: 800 15px var(--hd); text-transform: uppercase; letter-spacing: .03em; text-align: left; padding: 10px; border-bottom: 3px solid var(--tan); color: var(--flagtext); white-space: nowrap; }
.ctab th.y { width: 64px; }
.ctab td { padding: 7px 10px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.ctab tr:last-child td { border-bottom: 0; }
.ctab td a { color: var(--ink); font-weight: 600; }
.ctab td.y { font: 800 16px var(--hd); }
.ctab td.y a { color: var(--flagtext); font-weight: 800; }
.ctab tbody tr:nth-child(even) td { background: var(--stripe); }
.ctab td.hl { background: var(--flag) !important; }
.ctab td.hl a { color: #fff; }
.ctab td.unk { color: var(--gray); font-style: italic; }
.ctab td.na { color: var(--rule); }
.ctab.small-t table { min-width: 0; width: auto; }
.ctab.small-t th, .ctab.small-t td { padding-inline: 14px; }
.champs-page > .muted { margin: 8px 0 0; }
.champs-page .old-h { margin: 34px 0 0; }
.most { margin: 30px 0 10px; }
.lead.cols { columns: 3 220px; column-gap: 0; }
.lead.cols li { break-inside: avoid; }

/* ---------- round 6: forms */
.fpage { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 26px; padding-block: 24px 30px; align-items: start; }
.form { border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); overflow: hidden; max-width: 680px; }
.form .fh { padding: 14px 18px; border-bottom: 3px solid var(--tan); }
.form .fh h2 { font: 800 22px/1.1 var(--hd); text-transform: uppercase; color: var(--flagtext); }
.form .fh p { margin: 2px 0 0; color: var(--gray); font-size: 14px; }
.form .formoff { margin: 14px 18px 0; }
.form form { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 14px; }
.form label, .form .field { font-weight: 600; font-size: 14px; display: flex; flex-direction: column; gap: 5px; }
.form label small, .form .flabel small { font-weight: 400; color: var(--gray); }
.form input[type=text], .form input[type=email], .form select, .form textarea { border: 1px solid var(--rule); background: var(--bg); color: var(--ink); border-radius: 8px; padding: 9px 11px; font: 500 15px var(--body); width: 100%; }
.form textarea { min-height: 96px; resize: vertical; }
.segf { border: 0; padding: 0; margin: 0; min-width: 0; }
.segf legend { font-weight: 600; font-size: 14px; padding: 0; margin-bottom: 5px; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.form .seg label { display: inline-flex; font-weight: 600; position: relative; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { border: 1px solid var(--rule); background: var(--bg); color: var(--ink); border-radius: 999px; padding: 7px 12px; font: 600 13px var(--body); cursor: pointer; }
.seg input:checked + span { border-color: var(--flag); box-shadow: inset 0 0 0 1px var(--flag); color: var(--flagtext); }
.seg input:focus-visible + span { outline: 2px solid #F2B632; outline-offset: 2px; }
.drop { border: 2px dashed var(--rule); border-radius: 10px; padding: 16px; text-align: center; color: var(--gray); font-weight: 400 !important; cursor: pointer; position: relative; }
.drop.over { border-color: var(--flag); background: var(--stripe); }
.drop b { color: var(--ink); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop-list { display: block; color: var(--ink); font-weight: 600; font-size: 13px; }
.drop-list:empty { display: none; }
.form .check { flex-direction: row; align-items: flex-start; gap: 8px; font-weight: 500; }
.form .check input { margin-top: 3px; flex: none; }
.ts { display: flex; align-items: center; gap: 10px; border: 1px solid var(--rule); border-radius: 6px; padding: 9px 12px; font-size: 13px; color: var(--gray); width: fit-content; max-width: 100%; }
.ts i { width: 18px; height: 18px; border-radius: 4px; border: 2px solid var(--rule); display: block; flex: none; }
.form .btn[type=submit] { align-self: flex-start; }
.form .btn[disabled] { opacity: .6; cursor: wait; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.prefill { background: var(--stripe); border-radius: 8px; padding: 10px 12px; font-size: 14px; }
.prefill b { display: block; }
.prefill span { color: var(--gray); }
.fstatus { border-radius: 8px; padding: 10px 12px; font-size: 14px; background: var(--stripe); }
.fstatus.err { background: var(--warnbg); color: var(--warn); }
.sent { padding: 18px; }
.sent b { display: block; font: 800 20px var(--hd); text-transform: uppercase; color: var(--flagtext); margin-bottom: 4px; }
.fside { min-width: 0; }
.help.pad-top { padding-top: 12px; }
.help p { margin: 0 0 10px; }
.help p:last-child { margin-bottom: 0; }
[data-for][hidden] { display: none !important; }

/* ---------- narrow screens */
@media (max-width: 980px) {
  .links { gap: 12px; }
  .links a { font-size: 14px; }
  .cpage, .fpage { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 820px) {
  .cls { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .rbtn.menu { display: grid; }
  .topnav-in { flex-wrap: wrap; }
  .tools { margin-left: auto; }
  .links { display: none; order: 3; width: 100%; flex-direction: column; gap: 0; margin: 4px 0 0; padding-top: 6px; border-top: 1px solid rgba(255,255,255,.18); }
  .topnav.open .links { display: flex; }
  .links a { padding: 10px 0; font-size: 16px; border-bottom: 0; }
  .links a[aria-current="page"] { color: #fff; box-shadow: inset 3px 0 0 var(--tan); padding-left: 10px; }
}
@media (max-width: 780px) {
  :root { --gut: 16px; }
  .hbody, .bgrid, .fbody, .about, .records { grid-template-columns: minmax(0, 1fr); }
  .hero { height: 400px; }
  .ctrl { align-items: flex-start; text-align: left; }
  .gal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toc { display: none; }
  .res { grid-template-columns: 48px minmax(0, 1fr) 34px minmax(52px, auto); gap: 8px; padding-inline: 12px; }
  .thanks a { margin-left: 0; }
  .srow { grid-template-columns: 64px minmax(0, 1fr); }
  .srow-actions { grid-column: 2; justify-content: flex-start; }
  .filter { margin-left: 0; width: 100%; }
  .filter input, .jump .filter input { width: 100%; }
  .hide-sm { display: none; }
  .wm-text { font-size: 28px; }
  .wm-mark { height: 46px; margin-block: -8px -4px; }
  .slot { grid-template-columns: 70px minmax(0, 1fr) auto; padding-inline: 8px; gap: 8px; }
  .frow input[type=search] { min-width: 0; width: 100%; flex-basis: 100%; }
  .frow .lab { width: 100%; }
  .blist { grid-template-columns: minmax(0, 1fr); }
  .capgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .capgrid div { padding: 7px 9px; font-size: 13px; }
  .capgrid b { font-size: 12px; }
  .cbody .prevnext { grid-template-columns: minmax(0, 1fr); }
  .cbody .prevnext .nx { grid-column: 1; text-align: left; }
}
@media (max-width: 420px) {
  .rt { font-size: 15px; }
  .rt td, .rt th { padding-inline: 6px; }
  .rt .c-pl { width: 40px; }
  .bstats { gap: 10px 20px; }
  .bstats b { font-size: 26px; }
  .season b { font-size: 26px; }
  .heroin h1 { font-size: 34px; }
}
