/* Stats Orb — site styles
   Palette: navy #0E1726 · ground #F5F6F8 · orange #FF6A1A
   Type: Archivo (variable, wdth+wght) for text, JetBrains Mono for numbers.
   Both fonts are self-hosted (SIL Open Font License, see /static/fonts). */

@font-face { font-family: "Archivo"; src: url("../fonts/archivo-var.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --navy: #0E1726; --navy-2: #16243C; --navy-3: #22324F;
  --text: #1B2433; --muted: #566174; --line: #DCE1E9; --ground: #F5F6F8; --card: #FFFFFF;
  --orange: #FF6A1A; --orange-ink: #B4460A; --orange-soft: #FFF1E8;
  --blue: #1C58C4; --red: #BE3329; --green: #15803D; --sky: #7FB2FF;
  --radius: 16px; --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(14,23,38,.06), 0 6px 24px rgba(14,23,38,.06);
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--ground); }
img, svg { max-width: 100%; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3 { color: var(--navy); line-height: 1.12; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-stretch: 112%; }
h2 { font-size: clamp(1.55rem, 3vw, 2.3rem); font-stretch: 108%; }
h3, .h3 { font-size: 1.2rem; font-weight: 750; }
p { margin: 0 0 1em; }
.mono { font-family: var(--mono); font-feature-settings: "zero" 1; }
.small { font-size: .875rem; }
.muted { color: var(--muted); }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.wrap.narrow { max-width: 720px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }

.demo-banner { background: #FFF4C2; color: #5A4500; text-align: center; padding: 8px 16px; font-size: .9rem; border-bottom: 1px solid #F0D96B; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 2px solid var(--navy); background: var(--navy); color: #fff; font: 700 1rem/1 var(--sans); text-decoration: none; cursor: pointer; transition: transform .15s, background .15s; }
.btn:hover { color: #fff; background: var(--navy-3); border-color: var(--navy-3); transform: translateY(-1px); }
.btn.big { min-height: 52px; padding: 14px 26px; font-size: 1.05rem; }
.btn.small { min-height: 36px; padding: 6px 14px; font-size: .9rem; }
.btn.ghost { background: transparent; color: var(--navy); }
.btn.ghost:hover { background: var(--navy); color: #fff; }
.btn.ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn.ghost-light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.hero .btn:not(.ghost-light) { background: var(--orange); border-color: var(--orange); color: var(--navy); }
.hero .btn:not(.ghost-light):hover { background: #ff8340; border-color: #ff8340; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(14,23,38,.97); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(255,255,255,.08); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.logo { text-decoration: none; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.wm { font-weight: 850; font-size: 1.55rem; letter-spacing: -.04em; color: #fff; }
.wm span { font-weight: 400; }
.tag { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.nav { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: 10px 16px; border-radius: 999px; color: #D5DDEA; text-decoration: none; font-weight: 650; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav a[aria-current="page"] { color: var(--navy); background: var(--orange); }

/* ---------- hero ---------- */
.hero { background: radial-gradient(1200px 500px at 85% -10%, #1C2D4D 0%, transparent 60%), var(--navy); color: #fff; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 56px; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 5.6vw, 4.4rem); font-stretch: 118%; letter-spacing: -.025em; }
.eyebrow { color: var(--orange-ink); font-size: .85rem; letter-spacing: .04em; margin-bottom: 14px; }
.hero .eyebrow { color: var(--orange); }
.lede { font-size: 1.2rem; color: #C9D3E3; max-width: 36em; }
.lede-dark { font-size: 1.15rem; color: var(--muted); max-width: 44em; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-art { margin: 0; }
.field .yard { font: 700 15px var(--mono); fill: #fff; fill-opacity: .28; }
.field .chip rect { fill: #0E1726; stroke: #FF6A1A; stroke-width: 1.5; }
.field .chip text { font: 700 14px var(--mono); fill: #fff; }
.field .chip.alt rect { stroke: var(--sky); }
.field .draw { stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 2.2s ease-out .2s forwards; }
.field .draw.slow { animation-duration: 3s; animation-delay: .6s; }
.field .bob { animation: bob 3.2s ease-in-out infinite; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes bob { 50% { transform: translate(470px, 58px); } }
.ticker { border-top: 1px solid rgba(255,255,255,.08); background: #0A111D; overflow: hidden; }
.ticker-track { display: flex; gap: 28px; width: max-content; padding: 14px 0; color: #9FB0C8; font-size: .9rem; animation: tick 40s linear infinite; }
.ticker-track span:nth-child(even) { color: var(--orange); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: 80px 0; }
.section.tight { padding: 36px 0 72px; }
.section.tint { background: #EAEEF4; }
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head .sub { color: var(--muted); font-size: 1.1rem; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.feature-ic { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: var(--orange-soft); color: var(--orange-ink); margin-bottom: 18px; }
.feature .q { color: var(--orange-ink); font-size: .92rem; margin-bottom: .6em; }
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; }
.split.rev { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.legend-inline { display: flex; gap: 22px; list-style: none; padding: 0; margin: 18px 0 0; font-size: .95rem; }
.sw { display: inline-block; width: 14px; height: 14px; border-radius: 50%; vertical-align: -2px; margin-right: 6px; }
.sw.navy { background: var(--navy); } .sw.orange { background: var(--orange); }
.dotgrid { margin: 0; background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); text-align: center; }
.dotgrid svg { width: 100%; max-width: 340px; }
.dotgrid .fav { fill: var(--navy); } .dotgrid .dog { fill: var(--orange); }
.dotgrid circle { animation: pop .5s ease-out backwards; animation-delay: var(--d); }
@keyframes pop { from { opacity: 0; transform: scale(.4); transform-origin: center; } }
.dotgrid figcaption, .sos-art figcaption { color: var(--muted); margin-top: 10px; }
.sos-art { margin: 0; background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.sos-art figcaption { grid-column: 1 / -1; text-align: center; margin: 0; }
.sos-label { display: flex; justify-content: space-between; margin-bottom: 10px; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 150px; border-bottom: 2px solid var(--line); margin-bottom: 8px; }
.bars span { flex: 1; height: var(--h); background: var(--navy); border-radius: 6px 6px 0 0; }
.sos-team.b .bars span { background: var(--orange); }
.versus .scores { display: flex; justify-content: center; align-items: center; gap: 16px; font-size: 1.3rem; font-weight: 700; background: var(--navy); color: #fff; border-radius: 12px; padding: 18px; margin-bottom: 20px; }
.versus .vs { color: var(--orange); font-size: 1rem; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; counter-reset: s; }
.steps li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.steps .num { display: block; font-size: 2.2rem; font-weight: 700; color: var(--orange); margin-bottom: 8px; }
.leagues { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.league { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-decoration: none; color: var(--text); box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.league:hover { transform: translateY(-3px); border-color: var(--orange); color: var(--text); }
.league-ic { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--orange); margin-bottom: 8px; }
.league-name { font-weight: 800; font-size: 1.15rem; color: var(--navy); }
.league-meta { font-size: .82rem; color: var(--muted); }
.league-go { margin-top: auto; padding-top: 10px; color: var(--blue); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.cta-band { background: var(--orange); color: var(--navy); padding: 56px 0; }
.cta-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { margin-bottom: .2em; }
.cta-band p { margin: 0; font-size: 1.1rem; }

/* ---------- page headers ---------- */
.pagehead { background: #fff; border-bottom: 1px solid var(--line); padding: 36px 0 30px; }
.pagehead h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
.pagehead .year { color: var(--orange-ink); font-weight: 700; font-size: .7em; vertical-align: .12em; margin-left: .2em; }
.pagehead-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.season { display: flex; align-items: center; gap: 10px; margin-bottom: .6em; }
.season label { font-weight: 700; }
select, input[type="text"], input[type="email"], input[type="search"], textarea { font: inherit; font-size: 16px; color: var(--text); background: #fff; border: 1.5px solid #C5CDD9; border-radius: var(--radius-sm); padding: 10px 14px; min-height: 44px; }
select:focus, input:focus, textarea:focus { border-color: var(--navy); outline: 3px solid rgba(255,106,26,.35); outline-offset: 0; }
.sporttabs { margin-bottom: 26px; overflow-x: auto; }
.sporttabs ul { display: flex; gap: 8px; list-style: none; margin: 0; padding: 2px; width: max-content; }
.sporttabs a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line); color: var(--text); text-decoration: none; font-weight: 650; font-size: .95rem; background: #fff; white-space: nowrap; }
.sporttabs a:hover { border-color: var(--navy); color: var(--navy); }
.sporttabs a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.sporttabs a[aria-current="page"] .icon { color: var(--orange); }
.crumbs { margin-bottom: 18px; color: var(--muted); }
.teamhead { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.teamhead h1 { margin-bottom: .15em; }
.rankbadge { width: 96px; height: 96px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-content: center; text-align: center; font-size: 1.9rem; font-weight: 700; box-shadow: inset 0 0 0 5px var(--orange); }
.rankbadge small { display: block; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: #9FB0C8; font-weight: 400; }
.teammeta { color: var(--muted); margin: 0; }
.teammeta .dot { color: var(--orange); }

/* ---------- toolbars & keys ---------- */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.filter { display: flex; align-items: center; gap: 12px; }
.filter input { width: 260px; max-width: 70vw; }
.keys { display: flex; gap: 18px; flex-wrap: wrap; list-style: none; margin: 0 0 14px; padding: 0; color: var(--muted); align-items: center; }
.toolbar .keys { margin: 0; }
.key { display: inline-block; font-family: var(--mono); font-weight: 700; margin-right: 4px; }
.key.up { background: var(--green); color: #fff; border-radius: 50%; min-width: 24px; height: 24px; line-height: 24px; text-align: center; font-size: .8rem; }
.key.proj, td.proj, .proj { color: var(--orange-ink); }
.key.w { color: var(--blue); } .key.lo { color: var(--red); }
.key.sortk::before { content: "⇅"; color: var(--navy); }
.alert { background: #FFF1EE; border: 1px solid #F2B8AE; color: #7A2117; border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 18px; }

/* ---------- data tables ---------- */
.tablecard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.tablewrap { overflow: auto; max-height: 78vh; -webkit-overflow-scrolling: touch; }
.tablewrap:focus-visible { outline-offset: -3px; }
.scrollhint { display: none; margin: 0; padding: 10px 16px 0; }
table.data { border-collapse: separate; border-spacing: 0; width: 100%; font-size: .9rem; }
table.data th, table.data td { padding: 9px 12px; white-space: nowrap; border-bottom: 1px solid #EDF0F5; text-align: center; }
table.data td.n { font-family: var(--mono); font-size: .86rem; font-feature-settings: "tnum" 1, "zero" 1; }
table.data .l { text-align: left; }
table.data thead th { position: sticky; top: 0; z-index: 2; background: var(--navy); color: #fff; font-weight: 700; font-size: .8rem; letter-spacing: .02em; }
table.data thead tr.groups th { top: 0; background: #0A111D; color: #FF9A5E; font-family: var(--mono); font-weight: 700; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; padding: 7px 12px; border-bottom: 0; border-left: 1px solid rgba(255,255,255,.08); }
table.data thead tr.groups th.g-empty { border-left: 0; }
table.data thead tr + tr th { top: 30px; }
table.data tbody tr:nth-child(even) td { background: #F8FAFC; }
table.data tbody tr:hover td { background: #FFF6EF; }
table.data .teamcell { font-weight: 650; }
a.team { color: inherit; text-decoration: underline; text-decoration-color: #BCC6D4; text-underline-offset: 3px; }
a.team:hover, a.team:focus { color: var(--blue); text-decoration-color: var(--blue); }
.up { display: inline-block; min-width: 26px; padding: 3px 6px; border-radius: 999px; background: var(--green); color: #fff; font-weight: 700; line-height: 1.1; }
.tip { border-bottom: 1px dotted currentColor; cursor: help; }
td.final { color: var(--text); font-weight: 700; }
th .sort { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
th .sort:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 3px; }
th .arr::after { content: "⇅"; opacity: .6; }
th[aria-sort="ascending"] .arr::after { content: "▲"; opacity: 1; color: var(--orange); }
th[aria-sort="descending"] .arr::after { content: "▼"; opacity: 1; color: var(--orange); }
table.games td.w { color: var(--blue); }
table.games td.lo { color: var(--red); }
table.games td.b { font-weight: 800; }
table.games tr.upcoming td { background: #FFFCF8; }
table.games tr.divider td { background: var(--orange-soft) !important; color: var(--orange-ink); font: 700 .72rem var(--mono); text-transform: uppercase; letter-spacing: .12em; text-align: left; padding: 6px 12px; }
.check { color: var(--navy); font-weight: 800; }
table.data.plain { margin: 1em 0 1.6em; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; font-size: .92rem; }
table.data.plain td, table.data.plain th { white-space: normal; vertical-align: top; }
table.data.plain thead th { position: static; }

/* filter */
tr.hidden-row { display: none; }

/* glossary */
.howto { margin-top: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 22px; }
.howto summary { cursor: pointer; padding: 16px 0; font-weight: 750; color: var(--navy); }
.glossary { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 6px 28px; margin: 0 0 20px; }
.glossary dt { font-family: var(--mono); font-weight: 700; color: var(--orange-ink); font-size: .9rem; }
.glossary dd { margin: 0 0 12px; color: var(--muted); font-size: .95rem; }

/* standings */
.h2-section { margin-top: 48px; font-size: 1.6rem; }
.stangrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.stanbox { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.stanbox h3 { margin: 0; padding: 12px 16px; background: var(--navy); color: #fff; font-size: 1rem; }
.stanbox table.data th { position: static; background: #EEF1F6; color: var(--navy); font-size: .76rem; }
.stanbox table.data th, .stanbox table.data td { padding: 7px 10px; }
.stanbox table.data td.l { white-space: normal; }

/* projection */
.projcard { padding: 26px; }
.projwrap { display: grid; grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); gap: 32px; align-items: start; }
.kicker { font: 700 .74rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--orange-ink); margin-bottom: 12px; }
.projlist ol { list-style: none; margin: 0; padding: 0; }
.projlist li { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 4px 10px; padding: 8px 0; border-bottom: 1px solid #EDF0F5; position: relative; }
.projrank { width: 24px; height: 24px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font: 700 .75rem var(--mono); }
.projrec { font: 700 1.05rem var(--mono); color: var(--navy); }
.projpct { font-family: var(--mono); color: var(--muted); }
.projbar { grid-column: 2 / 4; height: 5px; border-radius: 3px; background: linear-gradient(90deg, var(--blue) var(--w), #E6EBF2 var(--w)); }
.projnote { margin-top: 16px; color: var(--muted); font-size: .92rem; }
.projchart { margin: 0; }
.projchart svg { width: 100%; height: auto; display: block; }
.projchart .grid { stroke: #E6EBF2; } .projchart .axis { stroke: #98A3B3; }
.projchart .tick { font: 11px var(--mono); fill: var(--muted); }
.projchart .axislabel { font: 12px var(--sans); fill: var(--muted); }
.projchart .area { fill: var(--blue); fill-opacity: .12; }
.projchart .curve { fill: none; stroke: var(--blue); stroke-width: 2.5; stroke-linejoin: round; }
.projchart .drop { stroke: var(--blue); stroke-opacity: .4; }
.projchart .dot { fill: var(--blue); stroke: #fff; stroke-width: 2; }
.projchart .dot.hollow { fill: #fff; stroke: var(--blue); }
.projchart .dotlabel { font: 700 12px var(--mono); fill: var(--navy); }
.projchart .hit { fill: transparent; }
.projsimple { display: flex; gap: 48px; flex-wrap: wrap; }
.bigrec { font: 700 2.4rem var(--mono); color: var(--navy); }
.bigrec.proj { color: var(--orange-ink); }
.back { margin-top: 28px; }

/* tooltip */
.tipbox { position: fixed; z-index: 90; max-width: 280px; padding: 8px 11px; border-radius: 8px; background: var(--navy); color: #fff; font-size: .82rem; line-height: 1.35; pointer-events: none; box-shadow: 0 6px 18px rgba(0,0,0,.25); }

/* ---------- forms ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: 26px; align-items: start; }
.form .field { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.form label { font-weight: 700; color: var(--navy); }
.form .bad input, .form .bad select, .form .bad textarea { border-color: var(--red); }
.form .err { color: var(--red); margin: 0; font-size: .9rem; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-side { display: grid; gap: 18px; }
.cf-turnstile { margin-bottom: 14px; }
.bigcode { font-size: 4rem; font-weight: 700; color: var(--orange); margin: 0; }

/* ---------- legal ---------- */
.legal { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 36px; align-items: start; }
.toc { position: sticky; top: 92px; padding: 22px; font-size: .9rem; max-height: calc(100vh - 110px); overflow: auto; }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin: 4px 0; }
.prose { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 40px; max-width: 860px; }
.prose h2 { font-size: 1.4rem; margin-top: 1.8em; padding-top: .2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.05rem; margin-top: 1.3em; }
.prose li { margin-bottom: .4em; }

/* ---------- footer ---------- */
.foot { background: var(--navy); color: #C9D3E3; padding: 48px 0 26px; margin-top: 0; }
.foot-in { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot-brand { max-width: 440px; }
.foot-brand .muted { color: #93A3BC; margin-top: 16px; }
.foot .tag { color: #93A3BC; }
.foot-nav { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, auto); gap: 10px 36px; }
.foot-nav a, .foot .linkish { color: #fff; text-decoration: none; font-weight: 600; }
.foot-nav a:hover, .foot .linkish:hover { color: var(--orange); }
.foot-base { border-top: 1px solid rgba(255,255,255,.1); margin-top: 32px; padding-top: 20px; color: #93A3BC; }

/* ---------- cookie banner ---------- */
.cc { position: fixed; z-index: 80; left: 16px; right: 16px; bottom: 16px; display: flex; justify-content: center; }
.cc[hidden] { display: none; }
.cc-in { background: #fff; color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 50px rgba(14,23,38,.25); padding: 22px 24px; max-width: 760px; width: 100%; border-top: 5px solid var(--orange); }
.cc h2 { font-size: 1.2rem; margin-bottom: .4em; }
.cc p { font-size: .95rem; margin-bottom: .8em; }
.cc-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.cc-actions .btn { min-height: 44px; }
.cc-prefs { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 14px; display: grid; gap: 10px; }
.cc-row { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; }
.cc-row input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--navy); }
.cc-gpc { background: var(--orange-soft); border-radius: 8px; padding: 8px 12px; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-in, .split, .split.rev, .contact-grid, .legal, .projwrap { grid-template-columns: minmax(0, 1fr); }
  .split.rev > figure { order: 2; }
  .grid3, .steps { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .toc { position: static; max-height: none; }
  .section { padding: 60px 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .top-in { min-height: 60px; padding-top: 6px; padding-bottom: 6px; }
  .wm { font-size: 1.3rem; }
  .nav a { padding: 8px 11px; font-size: .95rem; }
  .grid3, .grid2, .steps { grid-template-columns: minmax(0, 1fr); }
  .sos-art { grid-template-columns: minmax(0, 1fr); }
  .scrollhint { display: block; }
  .prose { padding: 24px 18px; }
  .cc { left: 8px; right: 8px; bottom: 8px; }
  .cc-actions .btn { flex: 1 1 auto; justify-content: center; }
  .foot-nav { grid-template-columns: minmax(0, 1fr); }
  .filter input { width: 100%; max-width: none; }
  .filter { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .field .draw { stroke-dashoffset: 0; }
}
@media print {
  .top, .foot, .cc, .toolbar, .sporttabs, .season, .ticker { display: none !important; }
  .tablewrap { max-height: none; overflow: visible; }
}

/* ---------- small-screen refinements ---------- */
.prose table.data.plain { display: block; overflow-x: auto; }
.prose table.data.plain td { overflow-wrap: anywhere; min-width: 110px; }
[data-filter-count] { white-space: nowrap; }
@media (max-width: 640px) {
  .top-in { flex-wrap: nowrap; }
  .brand .mark { width: 28px; height: 28px; }
  .wm { font-size: 1.15rem; }
  .nav { gap: 0; }
  .nav a { padding: 7px 10px; font-size: .9rem; }
  .cc-actions .btn { flex: 1 1 100%; }
  .cc-in { padding: 18px; }
}
