/* ============================================================================
   THE FUNBOY SPORTS NETWORK
   App shell · editorial surface · progressive disclosure
   Webfonts are linked from each page's <head> (see build.py).
   ========================================================================= */

/* ---------------------------------------------------------------- tokens */
:root {
  --paper:      #faf8f4;
  --surface:    #ffffff;
  --surface-2:  #f4f1eb;
  --surface-3:  #edeae2;
  --ink:        #14161a;
  --ink-2:      #3a3f47;
  --muted:      #6b7079;
  --faint:      #969ba3;
  --rule:       #e6e2d9;
  --rule-2:     #d3cec2;

  --red:        #c8102e;
  --navy:       #0d3b66;
  --gold:       #a9822c;
  --green:      #1c7a4d;
  --amber:      #b26a00;

  --tint-red:   #fdeff1;
  --tint-navy:  #eef3f9;
  --tint-gold:  #f9f3e2;
  --tint-green: #ecf6f0;
  --tint-amber: #fdf3e5;

  --sans:  'Archivo', 'Helvetica Neue', 'TeX Gyre Heros', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --serif: 'Source Serif 4', Charter, 'Bitstream Charter', 'TeX Gyre Termes', Georgia, serif;
  --mono:  'Roboto Mono', ui-monospace, SFMono-Regular, 'DejaVu Sans Mono', Menlo, monospace;

  --rail: 232px;
  --bar: 56px;
  --tabbar: 60px;
  --gut: clamp(16px, 2.6vw, 30px);
  --wrap: 1180px;

  --sh-1: 0 1px 2px rgba(20,22,26,.05);
  --sh-2: 0 2px 6px rgba(20,22,26,.07), 0 10px 26px rgba(20,22,26,.06);
  --sh-3: 0 8px 24px rgba(20,22,26,.10), 0 32px 70px rgba(20,22,26,.16);

  --r: 3px;
}

/* ---------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1,h2,h3,h4,h5 { margin: 0; font-weight: 800; letter-spacing: -.022em; line-height: 1.1; }
p { margin: 0 0 .85em; }
table { border-collapse: collapse; width: 100%; }
::selection { background: #ffe27a; color: var(--ink); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 2px; }

/* ---------------------------------------------------------------- shell */
.app { display: flex; min-height: 100vh; }
.canvas { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.wrap-narrow { max-width: 820px; }

/* ------------------------------------------------------------ left rail */
.rail {
  flex: 0 0 var(--rail); width: var(--rail);
  background: var(--ink); color: rgba(255,255,255,.72);
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; overflow-y: auto; scrollbar-width: thin;
}
.rail-brand { padding: 18px 18px 14px; border-bottom: 1px solid rgba(255,255,255,.12); }
.rail-brand .mark { font-size: 26px; font-weight: 900; letter-spacing: -.05em; color: #fff; line-height: 1; }
.rail-brand .mark em { font-style: normal; color: var(--red); }
.rail-brand .sub {
  font-size: 9px; letter-spacing: .19em; text-transform: uppercase;
  color: rgba(255,255,255,.42); font-weight: 700; margin-top: 6px;
}
.rail-nav { padding: 6px 10px 20px; flex: 1 1 auto; }
.rail-group {
  font-size: 9px; letter-spacing: .19em; text-transform: uppercase; font-weight: 800;
  color: rgba(255,255,255,.34); padding: 15px 10px 6px;
}
.rail a.item {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r);
  font-size: 13.5px; font-weight: 600; color: rgba(255,255,255,.74);
  position: relative; transition: background .14s, color .14s;
}
.rail a.item:hover { background: rgba(255,255,255,.08); color: #fff; }
.rail a.item[aria-current="page"] { background: rgba(255,255,255,.13); color: #fff; }
.rail a.item[aria-current="page"]::before {
  content: ''; position: absolute; left: -10px; top: 7px; bottom: 7px;
  width: 3px; background: var(--red); border-radius: 0 2px 2px 0;
}
.rail a.item svg { width: 15px; height: 15px; flex: none; opacity: .8; }
.rail a.item .badge {
  margin-left: auto; font-size: 9.5px; font-weight: 800;
  background: var(--red); color: #fff; padding: 1px 6px; border-radius: 20px;
}
.rail a.item .badge.q { background: rgba(255,255,255,.16); color: rgba(255,255,255,.8); }

.rail-you {
  margin: 10px 10px 0; padding: 10px; border-radius: var(--r);
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1);
}
.rail-you .lab {
  font-size: 9px; letter-spacing: .17em; text-transform: uppercase;
  color: rgba(255,255,255,.4); font-weight: 800; margin-bottom: 7px;
}
.rail-you .who { display: flex; align-items: center; gap: 9px; min-width: 0; }
.rail-you .who .nm { font-size: 12.5px; font-weight: 700; color: #fff; line-height: 1.25; min-width: 0; overflow: hidden; }
.rail-you .who .nm b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail-you .who .nm span { display: block; font-size: 10.5px; font-weight: 500; color: rgba(255,255,255,.5); }
.rail-you button.swap {
  margin-top: 9px; width: 100%; text-align: left; font-size: 10px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.5);
}
.rail-you button.swap:hover { color: #fff; }
.rail-foot {
  padding: 13px 20px 18px; font-size: 10.5px; color: rgba(255,255,255,.34);
  border-top: 1px solid rgba(255,255,255,.1); line-height: 1.45;
}

/* ------------------------------------------------------------- page bar */
.pagebar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(250,248,244,.93); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.pagebar .inner { display: flex; align-items: center; gap: 13px; min-height: var(--bar); padding-block: 9px; }
.pagebar h1 {
  font-size: clamp(17px, 2.1vw, 22px); letter-spacing: -.028em; font-weight: 800;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: none;
}
.pagebar .sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pagebar .acts { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: none; }
@media (max-width: 680px) { .pagebar .sub { display: none; } }

/* section jump strip */
.jump { border-bottom: 1px solid var(--rule); background: var(--surface); position: sticky; top: var(--bar); z-index: 39; }
.jump .inner { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.jump .inner::-webkit-scrollbar { display: none; }
.jump a {
  padding: 8px 11px; font-size: 10.5px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--muted); white-space: nowrap;
  border-bottom: 2px solid transparent; transition: .14s; min-height: 36px; display: flex; align-items: center;
}
.jump a:hover { color: var(--ink); }
.jump a.on { color: var(--ink); border-bottom-color: var(--red); }

/* ---------------------------------------------------------------- tabbar */
.tabbar { display: none; }
@media (max-width: 1023px) {
  .rail { display: none; }
  body { padding-bottom: calc(var(--tabbar) + env(safe-area-inset-bottom, 0px)); }
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    background: var(--ink); border-top: 1px solid rgba(255,255,255,.1);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .tabbar a, .tabbar button {
    flex: 1 1 0; min-width: 0; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 3px; height: var(--tabbar);
    color: rgba(255,255,255,.55); font-size: 9px; font-weight: 700;
    letter-spacing: .05em; text-transform: uppercase;
  }
  .tabbar svg { width: 19px; height: 19px; }
  .tabbar a[aria-current="page"] { color: #fff; }
  .tabbar a[aria-current="page"] svg { color: var(--red); }
}

.sheet-scrim { position: fixed; inset: 0; background: rgba(20,22,26,.44); z-index: 80; opacity: 0; pointer-events: none; transition: opacity .22s; }
.sheet-scrim.on { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: var(--surface);
  border-radius: 14px 14px 0 0; transform: translateY(101%);
  transition: transform .26s cubic-bezier(.2,.8,.25,1);
  padding: 0 0 calc(14px + env(safe-area-inset-bottom, 0px));
  max-height: 84vh; overflow-y: auto; box-shadow: var(--sh-3);
}
.sheet.on { transform: none; }
.sheet .grab { width: 36px; height: 4px; background: var(--rule-2); border-radius: 3px; margin: 9px auto 4px; }
.sheet .grp { font-size: 9.5px; letter-spacing: .17em; text-transform: uppercase; font-weight: 800; color: var(--faint); padding: 14px 20px 5px; }
.sheet a, .sheet button.row-item {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 12px 20px; font-size: 15px; font-weight: 600; text-align: left; min-height: 48px;
}
.sheet a:active, .sheet button.row-item:active { background: var(--surface-2); }
.sheet a[aria-current="page"] { color: var(--red); }
.sheet svg { width: 17px; height: 17px; flex: none; color: var(--faint); }

/* ---------------------------------------------------------------- type */
.eyebrow { display: flex; align-items: center; gap: 9px; font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.eyebrow::before { content: ''; width: 16px; height: 2px; background: var(--red); flex: none; }

.shead { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 9px; margin-bottom: 16px; border-bottom: 1.5px solid var(--ink); }
.shead h2 { font-size: clamp(19px, 2.3vw, 26px); }
.shead .note { font-size: 12.5px; color: var(--muted); margin: 0; max-width: 54ch; }
@media (min-width: 861px) { .shead .note { text-align: right; } }

.lede { font-family: var(--serif); font-size: 16px; line-height: 1.5; color: var(--ink-2); max-width: 66ch; }
.prose { font-family: var(--serif); font-size: 15.5px; line-height: 1.58; color: var(--ink-2); }
.small { font-size: 12.5px; color: var(--muted); }
.tiny { font-size: 11px; color: var(--faint); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.n, .num { font-variant-numeric: tabular-nums; }

section { padding-block: clamp(22px, 3vw, 40px); scroll-margin-top: 104px; }
section + section { padding-top: 0; }
.band { background: var(--surface); border-block: 1px solid var(--rule); }
.pull { font-family: var(--serif); font-style: italic; font-size: clamp(16px, 1.9vw, 20px); line-height: 1.4; color: var(--ink); border-left: 3px solid var(--red); padding-left: 16px; margin: 0; }

/* ---------------------------------------------------------------- stats */
.stats { display: grid; background: var(--surface); overflow: hidden; border: 1px solid var(--rule); border-radius: var(--r); grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); }
.stat { padding: 13px 14px; box-shadow: 1px 0 0 var(--rule), 0 1px 0 var(--rule); position: relative; }
/* the lead tile gets a rule so the eye has somewhere to land first */
.stat.accent::before {
  content: ''; position: absolute; left: 0; right: 1px; top: 0; height: 2px; background: var(--red);
}
.stat .k { font-size: 9px; letter-spacing: .16em; text-transform: uppercase; font-weight: 800; color: var(--muted); margin-bottom: 6px; }
.stat .v { font-size: clamp(20px, 2.4vw, 27px); font-weight: 900; letter-spacing: -.035em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.stat .n2 { font-size: 11px; color: var(--faint); margin-top: 4px; line-height: 1.3; }
.stat.accent .v { color: var(--red); }
@media (max-width: 520px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------------------------------------------------------------- cards */
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(178px, 1fr)); }

.card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); padding: 16px; position: relative; transition: box-shadow .16s, transform .16s, border-color .16s; }
a.card:hover, button.card:hover { box-shadow: var(--sh-2); transform: translateY(-1px); border-color: var(--rule-2); }
.card h3 { font-size: 16px; margin-bottom: 5px; }
.card .blurb { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.45; }
.card-top { border-top: 2px solid var(--ink); }

/* ---------------------------------------------------------------- pills */
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 7px; border-radius: 2px; border: 1px solid var(--rule-2); color: var(--ink-2); background: var(--surface); white-space: nowrap; }
.pill.ok    { color: var(--green); border-color: #bfe0cd; background: var(--tint-green); }
.pill.warn  { color: var(--amber); border-color: #f0d6ab; background: var(--tint-amber); }
.pill.bad   { color: var(--red);   border-color: #f2c3cb; background: var(--tint-red); }
.pill.gold  { color: var(--gold);  border-color: #e6d4a4; background: var(--tint-gold); }
.pill.navy  { color: var(--navy);  border-color: #c3d5e8; background: var(--tint-navy); }
.pill.solid { background: var(--ink); color: #fff; border-color: var(--ink); }

.tag { display: inline-block; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 1px 4px; border-radius: 2px; margin-left: 5px; vertical-align: middle; }
.tag.flx { background: var(--tint-navy); color: var(--navy); }
.tag.rk  { background: var(--tint-green); color: var(--green); }
.tag.p   { background: var(--surface-2); color: var(--muted); }
.tag.gld { background: var(--tint-gold); color: var(--gold); }

/* ---------------------------------------------------------------- tables */
.tw { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data { font-size: 13.5px; }
table.data thead th { position: sticky; top: 0; z-index: 3; background: var(--paper); font-size: 9px; letter-spacing: .13em; text-transform: uppercase; font-weight: 800; color: var(--muted); text-align: left; padding: 7px 10px; border-bottom: 1.5px solid var(--ink); white-space: nowrap; }
.band table.data thead th { background: var(--surface); }
table.data tbody td { padding: 8px 10px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
table.data tbody tr { transition: background .1s; }
/* a whisper of banding — enough to hold your eye across a wide row, not
   enough to read as stripes */
table.data.zebra tbody tr:nth-child(even) td { background: #fcfbf8; }
table.data tbody tr:hover td { background: var(--surface-2); }
table.data td.n, table.data th.n { text-align: right; font-variant-numeric: tabular-nums; }
table.data td.c, table.data th.c { text-align: center; }
table.data .primary { font-weight: 700; letter-spacing: -.008em; }
table.data .dim { color: var(--muted); }
table.data tbody tr.rank-1 td { background: var(--tint-gold); }
table.data tbody tr.mine td { background: var(--tint-red); }
table.data tbody tr.mine td:first-child { box-shadow: inset 3px 0 0 var(--red); }
th.sortable { cursor: pointer; user-select: none; }
th.sortable::after { content: '↕'; opacity: .3; margin-left: 4px; font-size: 9px; }
th.sortable.asc::after  { content: '↑'; opacity: 1; color: var(--red); }
th.sortable.desc::after { content: '↓'; opacity: 1; color: var(--red); }

/* A name you can open. It is the primary interaction on the site, so the hit
   area is padded out to a real touch target. The padding is on an INLINE box,
   which grows what you can tap without changing the line height around it. */
.ent {
  cursor: pointer;
  text-decoration: underline dotted var(--rule-2);
  text-underline-offset: 3px;
  padding: 11px 3px; margin: -11px -3px;
  transition: color .12s, text-decoration-color .12s;
}
.ent:hover { color: var(--red); text-decoration-color: var(--red); }
@media (hover: none) { .ent { text-decoration-color: var(--red); } }

/* the same padded hit area for any bare inline link or chip-button — a link in
   a table cell is otherwise only as tall as its text */
table.data td a:not(.teamline):not(.btn),
.trophy a, .move a { padding: 11px 3px; margin: -11px -3px; }
button.pill { min-height: 32px; padding-inline: 9px; }
.rail-you button.swap { padding: 7px 0; margin-top: 4px; }

}

.rankcell { display: inline-flex; align-items: center; justify-content: center; width: 23px; height: 23px; border-radius: 2px; background: var(--surface-2); font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.rankcell.top { background: var(--ink); color: #fff; }

/* mobile: reflow a wide table into two-line rows, no sideways scroll */
@media (max-width: 760px) {
  table.stack thead { display: none; }
  table.stack, table.stack tbody { display: block; }
  table.stack tbody tr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 9px; padding: 11px 2px; border-bottom: 1px solid var(--rule); }
  table.stack tbody tr:hover { background: transparent; }
  table.stack tbody tr.mine { box-shadow: inset 3px 0 0 var(--red); padding-left: 9px; }
  table.stack tbody tr.mine td, table.stack tbody tr.rank-1 td { background: transparent; }
  table.stack tbody tr.mine td:first-child { box-shadow: none; }
  table.stack td { display: block; padding: 0; border: 0; text-align: left !important; }
  table.stack td.pri { flex: 1 1 55%; order: 1; font-weight: 700; font-size: 14.5px; }
  table.stack td.key { order: 2; margin-left: auto; font-weight: 800; font-variant-numeric: tabular-nums; }
  table.stack td.meta { order: 3; flex: 0 0 auto; font-size: 11.5px; color: var(--muted); }
  table.stack td.meta:empty { display: none; }
  table.stack td.meta[data-lab]::before { content: attr(data-lab) ' '; font-size: 8.5px; letter-spacing: .11em; text-transform: uppercase; color: var(--faint); font-weight: 800; }
  table.stack td.mob-hide { display: none; }
  table.stack td.full { order: 4; flex: 1 1 100%; font-size: 12px; color: var(--muted); }
}

/* ---------------------------------------------------------------- bars */
.bar { display: block; height: 5px; background: var(--surface-2); border-radius: 1px; overflow: hidden; min-width: 48px; }
.bar > i { display: block; height: 100%; background: var(--ink); transition: width .6s cubic-bezier(.2,.7,.2,1); }
.bar.red > i { background: var(--red); }
.bar.gold > i { background: var(--gold); }

.grade { display: inline-flex; align-items: center; justify-content: center; min-width: 33px; height: 25px; padding: 0 6px; font-weight: 900; font-size: 13px; letter-spacing: -.02em; border: 1px solid var(--rule-2); background: var(--surface); border-radius: 2px; }
.grade.a { background: var(--tint-green); border-color: #bfe0cd; color: var(--green); }
.grade.b { background: var(--tint-navy);  border-color: #c3d5e8; color: var(--navy); }
.grade.c { background: var(--tint-amber); border-color: #f0d6ab; color: var(--amber); }
.grade.d { background: var(--tint-red);   border-color: #f2c3cb; color: var(--red); }
.grade.lg { min-width: 52px; height: 42px; font-size: 22px; }

/* ---------------------------------------------------------------- crest */
.crest { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; flex: none; border-radius: 2px; font-weight: 900; font-size: 12px; letter-spacing: -.03em; color: #fff; background: var(--ink); text-transform: uppercase; }
.crest.sm { width: 22px; height: 22px; font-size: 9.5px; }
.crest.lg { width: 44px; height: 44px; font-size: 17px; }
.crest.xl { width: 62px; height: 62px; font-size: 24px; }

.teamline { display: flex; align-items: center; gap: 9px; min-width: 0; }
.teamline .tt { min-width: 0; overflow: hidden; }
.teamline .t1, .teamline .t2 { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.teamline .t1 { font-weight: 700; letter-spacing: -.012em; line-height: 1.2; }
.teamline .t2 { font-size: 11px; color: var(--muted); }

/* ------------------------------------------------------- disclosure row */
.disc { border: 1px solid var(--rule); border-radius: var(--r); background: var(--surface); margin-bottom: 7px; overflow: hidden; }
.disc.open { box-shadow: var(--sh-2); }
.disc > .head { display: flex; align-items: center; gap: 11px; width: 100%; padding: 11px 13px; text-align: left; transition: background .12s; min-height: 52px; }
.disc > .head:hover { background: var(--surface-2); }
.disc > .head .chev { margin-left: auto; flex: none; width: 15px; height: 15px; color: var(--faint); transition: transform .2s; }
.disc.open > .head .chev { transform: rotate(90deg); color: var(--ink); }
.disc .body { display: none; padding: 0 13px 14px; border-top: 1px solid var(--rule); }
.disc.open .body { display: block; animation: fade .2s ease; }
.disc .body > :first-child { margin-top: 13px; }
.disc.tint { border-left: 3px solid var(--accent, var(--ink)); }
@keyframes fade { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
.disc .head-meta { display: flex; align-items: center; gap: 7px; flex: none; }
@media (max-width: 620px) { .disc > .head { padding: 10px 11px; gap: 9px; } .disc .head-meta .hide-xs { display: none; } }

/* --------------------------------------------------------------- lineup */
.lines { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; }
.linecol {
  padding: 10px 11px 12px; box-shadow: 1px 0 0 var(--rule), 0 1px 0 var(--rule);
  min-height: 76px; border-top: 2px solid var(--posc, var(--rule-2));
}
/* five positions, five markers — the columns become scannable at a glance */
.linecol:nth-child(1) { --posc: #c8102e; }
.linecol:nth-child(2) { --posc: #0d3b66; }
.linecol:nth-child(3) { --posc: #a9822c; }
.linecol:nth-child(4) { --posc: #1c7a4d; }
.linecol:nth-child(5) { --posc: #4a2a72; }
.linecol h5 { font-size: 8.5px; letter-spacing: .15em; text-transform: uppercase; font-weight: 800; color: var(--muted); padding-bottom: 6px; margin-bottom: 8px; border-bottom: 1px solid var(--rule); }
.linecol ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.linecol li { font-size: 12.5px; font-weight: 600; line-height: 1.28; }
.linecol li .sub { display: block; font-size: 9.5px; font-weight: 700; color: var(--faint); letter-spacing: .05em; text-transform: uppercase; }
.linecol li.empty { color: var(--faint); font-weight: 400; font-style: italic; }
@media (max-width: 860px) { .lines { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 430px) { .lines { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------- drawer */
.scrim { position: fixed; inset: 0; background: rgba(20,22,26,.42); z-index: 100; opacity: 0; pointer-events: none; transition: opacity .2s; }
.scrim.on { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 110;
  width: min(430px, 100%); background: var(--surface); border-left: 1px solid var(--rule);
  box-shadow: var(--sh-3); transform: translateX(101%);
  transition: transform .26s cubic-bezier(.2,.8,.25,1);
  display: flex; flex-direction: column;
}
.drawer.on { transform: none; }
.drawer-head { padding: 16px 18px 14px; border-bottom: 1px solid var(--rule); position: relative; flex: none; }
.drawer-head .close { position: absolute; top: 11px; right: 11px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 2px; color: var(--muted); }
.drawer-head .close:hover { background: var(--surface-2); color: var(--ink); }
.drawer-head .kick { font-size: 9.5px; letter-spacing: .17em; text-transform: uppercase; font-weight: 800; color: var(--red); margin-bottom: 7px; }
.drawer-head h3 { font-size: 22px; letter-spacing: -.03em; padding-right: 34px; }
.drawer-head .meta { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.drawer-body { padding: 14px 18px 30px; overflow-y: auto; flex: 1 1 auto; }
.drawer .row2 { display: grid; grid-template-columns: 96px 1fr; gap: 8px 12px; padding: 7px 0; border-bottom: 1px solid var(--rule); font-size: 13px; }
.drawer .row2 .k { font-size: 9px; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: var(--faint); padding-top: 2px; }
.drawer .sec { font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; font-weight: 800; color: var(--muted); margin: 20px 0 8px; padding-bottom: 5px; border-bottom: 1.5px solid var(--ink); }
.move { display: grid; grid-template-columns: 54px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: 12.5px; }
.move .d { font-family: var(--mono); font-size: 10px; color: var(--faint); line-height: 1.35; }
.move .m { line-height: 1.4; }
.move .m .to { color: var(--red); font-weight: 700; }
@media (max-width: 560px) {
  .drawer { width: 100%; top: auto; height: 88vh; border-radius: 14px 14px 0 0; border-left: 0; transform: translateY(101%); }
  .drawer.on { transform: none; }
}

/* -------------------------------------------------------------- controls */
.ctl { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.field { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 11px; border: 1px solid var(--rule-2); background: var(--surface); border-radius: var(--r); transition: border-color .14s, box-shadow .14s; }
.field:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(20,22,26,.07); }
.field svg { width: 14px; height: 14px; color: var(--faint); flex: none; }
.field input, .field select { border: 0; outline: 0; background: transparent; font: inherit; font-size: 13.5px; min-width: 0; width: 100%; height: 100%; color: var(--ink); }
.field select { cursor: pointer; }
.field.grow { flex: 1 1 210px; }

.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip { border: 1px solid var(--rule-2); background: var(--surface); border-radius: var(--r); padding: 7px 11px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); transition: .13s; min-height: 34px; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.count { font-size: 11.5px; color: var(--muted); margin-left: auto; font-variant-numeric: tabular-nums; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; border: 1px solid var(--ink); background: var(--ink); color: #fff; padding: 8px 14px; font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; transition: .14s; border-radius: var(--r); }
.btn:hover { background: var(--red); border-color: var(--red); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.sm { min-height: 30px; padding: 5px 10px; font-size: 10px; }
.more-btn { display: flex; width: 100%; margin-top: 12px; }

/* ------------------------------------------------------------- accordion */
details.acc { border-bottom: 1px solid var(--rule); }
details.acc > summary { cursor: pointer; list-style: none; padding: 12px 30px 12px 0; position: relative; font-weight: 700; font-size: 14.5px; min-height: 44px; display: flex; align-items: center; }
details.acc > summary::-webkit-details-marker { display: none; }
details.acc > summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 18px; font-weight: 400; color: var(--muted); }
details.acc[open] > summary::after { content: '−'; }
details.acc > summary:hover { color: var(--red); }
details.acc .acc-body { padding: 0 0 14px; font-family: var(--serif); font-size: 14.5px; color: var(--ink-2); line-height: 1.55; max-width: 74ch; }

.rulegroup { margin-bottom: 20px; }
.rulegroup h4 { font-size: 9.5px; letter-spacing: .15em; text-transform: uppercase; color: var(--red); font-weight: 800; margin-bottom: 8px; }
ul.clauses { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
ul.clauses li { position: relative; padding-left: 16px; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
ul.clauses li::before { content: ''; position: absolute; left: 2px; top: .6em; width: 5px; height: 5px; background: var(--rule-2); border-radius: 50%; }
ul.clauses li.sub { margin-left: 16px; font-family: var(--serif); font-style: italic; color: var(--muted); }
ul.clauses li.sub::before { background: transparent; border: 1px solid var(--rule-2); }
mark { background: #ffe9a8; color: inherit; padding: 0 1px; border-radius: 1px; }

/* --------------------------------------------------------------- trophy */
.trophy { display: grid; grid-template-columns: 36px 1fr; gap: 11px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.trophy .em { width: 36px; height: 36px; display: grid; place-items: center; font-size: 17px; background: var(--surface-2); border-radius: 2px; }
.trophy h4 { font-size: 13.5px; margin-bottom: 2px; }
.trophy .holder { font-size: 12px; font-weight: 700; color: var(--red); margin-bottom: 3px; }
.trophy .detail { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.trophy .crit { font-size: 10.5px; color: var(--faint); margin-top: 3px; }

/* --------------------------------------------------------------- trades */
.trade { border: 1px solid var(--rule); border-radius: var(--r); background: var(--surface); margin-bottom: 7px; }
.trade-head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; padding: 8px 12px; border-bottom: 1px solid var(--rule); background: var(--surface-2); }
.trade-head .no { font-family: var(--mono); font-size: 10px; color: var(--muted); }
.trade-head .when { font-size: 11.5px; font-weight: 700; }
.trade-head .badge { margin-left: auto; }
.trade-body { display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .trade-body { grid-template-columns: 1fr; } }
.trade-side { padding: 10px 12px; }
.trade-side + .trade-side { border-left: 1px solid var(--rule); }
@media (max-width: 640px) { .trade-side + .trade-side { border-left: 0; border-top: 1px solid var(--rule); } }
.trade-side .club { font-weight: 800; font-size: 12.5px; margin-bottom: 5px; }
.trade-side .gets { font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }
.trade-side .gets .pick { color: var(--muted); }

.bb { border: 1px solid var(--rule); border-radius: var(--r); background: var(--surface); padding: 15px; position: relative; overflow: hidden; }
.bb::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--red); }
.bb .rank { font-size: 32px; font-weight: 900; letter-spacing: -.05em; color: var(--rule-2); position: absolute; top: 10px; right: 14px; }
.bb .when { font-size: 9.5px; letter-spacing: .13em; text-transform: uppercase; font-weight: 800; color: var(--muted); margin-bottom: 10px; }
.bb .side + .side { margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--rule); }
.bb .club { font-weight: 800; font-size: 13.5px; margin-bottom: 3px; }
.bb .gets { font-size: 12px; color: var(--muted); line-height: 1.45; }

/* ----------------------------------------------------------- draft grid */
.board { overflow-x: auto; }
table.board-tbl { font-size: 10.5px; border-collapse: separate; border-spacing: 2px; min-width: 820px; }
table.board-tbl th { font-size: 8px; letter-spacing: .08em; text-transform: uppercase; font-weight: 800; color: var(--muted); padding: 5px 3px; text-align: center; white-space: nowrap; }
table.board-tbl th.rnd { text-align: left; font-family: var(--mono); letter-spacing: 0; color: var(--ink-2); }
table.board-tbl td { padding: 5px 4px; text-align: center; background: var(--surface); border: 1px solid var(--rule); font-weight: 600; white-space: nowrap; border-radius: 2px; transition: background .1s, color .1s; }
table.board-tbl td.own { background: var(--surface-2); color: var(--muted); font-weight: 500; }
table.board-tbl td.hit { background: var(--red); color: #fff; border-color: var(--red); font-weight: 800; }
table.board-tbl td.dim { opacity: .32; }

/* ---------------------------------------------------------- report card */
.report { display: grid; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; }
.report-row { background: var(--surface); box-shadow: 0 1px 0 var(--rule); display: grid; grid-template-columns: 112px 46px 1fr 66px minmax(0,1.3fr); gap: 11px; align-items: center; padding: 10px 13px; }
@media (max-width: 780px) { .report-row { grid-template-columns: 1fr auto; gap: 4px 10px; padding: 11px 12px; } .report-row .rp-bar, .report-row .rp-num { grid-column: 1 / -1; } }
.rp-cat { font-size: 9.5px; letter-spacing: .13em; text-transform: uppercase; font-weight: 800; color: var(--muted); }
.rp-rank { font-size: 11.5px; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.rp-num { font-size: 12px; color: var(--muted); }

/* ------------------------------------------------------------------ arc */
.arc { display: flex; gap: 3px; flex-wrap: wrap; }
.arc .yr { text-align: center; min-width: 30px; flex: 1 1 30px; max-width: 46px; }
.arc .yr .ic { font-size: 14px; line-height: 1.2; height: 20px; display: grid; place-items: center; }
.arc .yr .lb { font-size: 8.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.arc .yr.hit .lb { color: var(--ink); font-weight: 700; }

/* ----------------------------------------------------------------- tabs */
.tabs { display: flex; gap: 2px; border-bottom: 1.5px solid var(--ink); margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { padding: 9px 13px; font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1.5px; min-height: 38px; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--red); }

/* ------------------------------------------------------------- utilities */
.stack-v { display: grid; gap: 8px; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mt8{margin-top:8px}.mt12{margin-top:12px}.mt16{margin-top:16px}.mt24{margin-top:24px}
.mb0{margin-bottom:0}.mb8{margin-bottom:8px}.mb12{margin-bottom:12px}.mb16{margin-bottom:16px}.mb24{margin-bottom:24px}
.right{text-align:right}.center{text-align:center}.nowrap{white-space:nowrap}
.hide{display:none !important}
.divider { border: 0; border-top: 1px solid var(--rule); margin-block: 18px; }
.empty-note { padding: 26px 16px; text-align: center; color: var(--faint); font-family: var(--serif); font-style: italic; font-size: 14px; border: 1px dashed var(--rule-2); border-radius: var(--r); }
.sr { 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: -9999px; top: 0; z-index: 200; background: var(--ink); color: #fff; padding: 9px 14px; font-size: 13px; font-weight: 700; }
.skip:focus { left: 8px; top: 8px; }

footer.site { margin-top: auto; padding: 18px 0 24px; border-top: 1px solid var(--rule); font-size: 11.5px; color: var(--faint); }
footer.site .between { align-items: baseline; }
footer.site a:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .bar > i, .drawer, .sheet, .disc.open .body { transition: none; animation: none; }
}
@media print {
  .rail, .tabbar, .pagebar, .jump, .ctl, .drawer, .scrim { display: none !important; }
  body { background: #fff; padding: 0; }
  .disc .body { display: block !important; }
}

/* ============================================================================
   SCORE BUG — the trade ticker, reading each deal out in full
   ========================================================================= */
.ticker {
  background: var(--ink); color: #fff; position: relative;
  display: flex; align-items: stretch; overflow: hidden;
  border-bottom: 2px solid var(--gold);
}
.ticker .flag {
  flex: none; display: flex; align-items: center; gap: 7px;
  background: var(--red); padding: 0 13px; font-size: 10.5px; font-weight: 900;
  letter-spacing: .16em; text-transform: uppercase; z-index: 2;
  box-shadow: 6px 0 12px rgba(20,22,26,.5);
}
.ticker .flag .dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: bug 1.8s infinite; }
@keyframes bug { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
.ticker .track { flex: 1 1 auto; overflow: hidden; position: relative; min-width: 0; }
.ticker .lane { display: flex; align-items: center; width: max-content; animation: roll var(--dur, 90s) linear infinite; }
.ticker:hover .lane, .ticker:focus-within .lane, .ticker.paused .lane { animation-play-state: paused; }
@keyframes roll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker .fade { position: absolute; top: 0; bottom: 0; right: 0; width: 44px; background: linear-gradient(90deg, rgba(20,22,26,0), var(--ink)); pointer-events: none; z-index: 1; }

.ticker .deal {
  display: flex; align-items: center; gap: 7px; white-space: nowrap;
  padding: 0 20px; height: 38px; font-size: 12.5px;
  border-right: 1px solid rgba(255,255,255,.14);
}
.ticker .deal .lab {
  font-size: 9px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase;
  background: rgba(255,255,255,.14); padding: 3px 7px; border-radius: 2px; margin-right: 2px;
}
.ticker .deal .club { font-weight: 800; color: #fff; display: inline-flex; align-items: center; gap: 6px; }
.ticker .deal .club .sw { width: 3px; height: 13px; border-radius: 1px; display: inline-block; }
.ticker .deal .gets {
  font-size: 8.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.42); margin: 0 1px;
}
.ticker .deal .sep { color: var(--gold); font-weight: 700; margin: 0 5px; }
.ticker .deal .mid { color: rgba(255,255,255,.28); }
.ticker .deal .ast { color: rgba(255,255,255,.9); }
.ticker .deal .ast::before {
  content: ''; display: inline-block; width: 5px; height: 5px; border-radius: 50%;
  margin-right: 5px; vertical-align: 1px;
}
.ticker .deal .ast.roster::before   { background: #ff7f92; }
.ticker .deal .ast.prospect::before { background: #ffc463; }
.ticker .deal .ast.pick::before     { background: #7cb9ef; }
.ticker .deal .ast.pick { color: rgba(255,255,255,.62); }
.ticker .deal .when {
  font-family: var(--mono); font-size: 9.5px; color: rgba(255,255,255,.38); margin-left: 6px;
}

@media (prefers-reduced-motion: reduce) {
  .ticker .lane { animation: none; }
  .ticker .track { overflow-x: auto; scrollbar-width: none; }
  .ticker .track::-webkit-scrollbar { display: none; }
}
@media (max-width: 620px) {
  .ticker .flag span.lbl { display: none; }
  .ticker .flag { padding: 0 10px; }
  .ticker .deal { padding: 0 14px; font-size: 12px; gap: 6px; }
}

/* ============================================================================
   TRADE CARD — broadcast graphic
   ========================================================================= */
.tcard {
  border: 1px solid var(--rule); border-radius: 6px; overflow: hidden;
  background: var(--surface); box-shadow: var(--sh-1);
}
.tcard .tc-head {
  background: var(--red); color: #fff; padding: 11px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-bottom: 3px solid var(--gold);
}
.tcard .tc-head .ttl { font-size: 17px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; line-height: 1; }
.tcard .tc-head .meta { font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: .88; text-align: right; }
.tcard .tc-side {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 16px 9px 13px; border-left: 4px solid var(--accent, var(--ink));
  background: var(--tint, var(--surface-2));
}
.tcard .tc-side .nm { font-size: 14.5px; font-weight: 900; letter-spacing: -.01em; color: var(--accent, var(--ink)); line-height: 1.15; }
.tcard .tc-side .rc { font-size: 9.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.tcard .tc-side .cnt {
  flex: none; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  background: rgba(255,255,255,.7); border-radius: 20px; padding: 4px 10px; color: var(--accent, var(--ink));
}
.tcard .tc-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 16px; border-top: 1px solid var(--rule);
}
.tcard .tc-row:nth-child(even) { background: #fcfbf8; }
.tcard .tc-row .a { min-width: 0; }
.tcard .tc-row .a .n1 { font-size: 14px; font-weight: 800; letter-spacing: -.015em; line-height: 1.2; }
.tcard .tc-row .a .n2 { font-size: 11px; color: var(--muted); letter-spacing: .04em; margin-top: 1px; }
.tcard .tc-row .k {
  flex: none; font-size: 9.5px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 20px;
}
.tcard .k.roster   { background: var(--tint-red);   color: var(--red); }
.tcard .k.prospect { background: var(--tint-amber); color: var(--amber); }
.tcard .k.pick     { background: var(--tint-navy);  color: var(--navy); }
.tcard .tc-mid {
  display: flex; align-items: center; gap: 12px; padding: 7px 16px;
  background: var(--surface-2); border-top: 1px solid var(--rule);
  font-size: 9.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.tcard .tc-mid::before, .tcard .tc-mid::after { content: ''; flex: 1 1 auto; height: 1px; background: var(--rule-2); }
.tcard .tc-foot {
  padding: 8px 16px; background: var(--surface-2); border-top: 1px solid var(--rule);
  text-align: center; font-size: 9.5px; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted);
}
.tcard .tc-foot .dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--red); margin-right: 7px; vertical-align: middle; }
.tcard.compact .tc-head { padding: 8px 13px; }
.tcard.compact .tc-head .ttl { font-size: 14px; }
.tcard.compact .tc-row { padding: 7px 13px; }
.tcard.compact .tc-side { padding: 7px 13px 7px 10px; }
.tcard.compact .tc-row .a .n1 { font-size: 13px; }
.tcard.compact .tc-foot { display: none; }

.art { border-top: 2px solid var(--ink); padding-top: 14px; }
.art .hl { font-size: clamp(21px, 2.9vw, 30px); letter-spacing: -.032em; line-height: 1.08; margin-bottom: 9px; }
.art .stand { font-family: var(--serif); font-size: clamp(15px, 1.8vw, 17.5px); font-style: italic; color: var(--muted); line-height: 1.42; margin-bottom: 12px; }
.art .prose { font-size: 15px; }
.art .prose:nth-of-type(2)::first-letter { font-size: 2.6em; float: left; line-height: .82; padding: 2px 8px 0 0; font-weight: 900; font-family: var(--sans); color: var(--red); }

/* front-page lead */
.lead { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 940px) { .lead { grid-template-columns: 1fr; } }
