/* BallKnowMe NFL — sportsbook cockpit theme.
   Ported from mlb-dashboard's production bkm.css (the LIVE mlb.ballknowme.com
   look) via ncaaf.css: Saira grotesque sans, near-black radial ground, amber
   accent, flat gradient panels, transparent dense tables with tabular numerals.
   Token layer is byte-identical to the MLB/NCAAF sites (shared design spec);
   only the sport-specific chip classes differ. */

@import url('https://fonts.googleapis.com/css2?family=Saira:wght@400;500;600;700;800&display=swap');

:root {
    /* surfaces (near-black → panel steps; depth from fill, not shadow) */
    --bg:        #090b0f;
    --bg2:       #0c0f14;
    --panel:     #12151c;
    --panel2:    #171b23;
    --panel3:    #1e2430;
    /* hairlines */
    --line:      #242a35;
    --line-soft: #1a1f28;
    /* ink */
    --text:      #f3f5f9;
    --text2:     #98a1b1;
    --text3:     #626c7d;
    /* semantic — color only ever encodes meaning */
    --pos:       #2fd27a;
    --pos-soft:  rgba(47, 210, 122, 0.14);
    --neg:       #ff5b62;
    --neg-soft:  rgba(255, 91, 98, 0.14);
    --acc:       #ffb020;              /* brand + confidence gold */
    --acc-dim:   rgba(255, 176, 32, 0.14);
    --acc-line:  rgba(255, 176, 32, 0.50);
    /* type — one grotesque family, hierarchy from weight/size/mute */
    --font:      "Saira", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { background-color: var(--bg); }
html::before {
    content: ''; position: fixed; inset: 0; z-index: -2;
    background: radial-gradient(1200px 600px at 70% -10%, #10151d 0%, var(--bg) 55%);
}

body {
    margin: 0; background: transparent; color: var(--text);
    font-family: var(--font); font-size: 0.9rem; line-height: 1.5; letter-spacing: 0.005em;
    min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; width: min(1240px, 100% - 2rem); margin: 0 auto; padding: 18px 0 64px; }
.tnum, table, .hero-stat .num { font-variant-numeric: tabular-nums; }

/* ── masthead / nav ─────────────────────────────────────────────────────── */
.site-header {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
    padding: 12px 22px;
    background: linear-gradient(180deg, rgba(18, 21, 28, 0.95), rgba(9, 11, 15, 0.9));
    border-bottom: 1px solid var(--line);
}
.site-header h1 {
    font-family: var(--font); font-weight: 800; font-size: 17px;
    letter-spacing: 0.06em; text-transform: uppercase; color: var(--text); margin: 0;
}
.site-header h1 .bk-b2 { color: var(--acc); }
.site-tagline {
    font-family: var(--font); font-size: 11px; font-weight: 600; color: var(--text3);
    text-transform: none; letter-spacing: 0.02em; margin-left: 8px;
}
.site-header nav { display: flex; gap: 15px; align-items: center; margin-left: 6px; }
.site-header nav a {
    color: var(--text2); text-decoration: none; font-size: 13px; font-weight: 600;
    letter-spacing: 0.02em; padding: 5px 2px; background: none; border-radius: 0;
    transition: color 0.12s;
}
.site-header nav a:hover { color: var(--text); }
.site-header nav a.active { color: var(--acc); background: none; }

/* ── sections / cards ───────────────────────────────────────────────────── */
section, .dashboard-section {
    background: linear-gradient(180deg, var(--panel), var(--bg2));
    border: 1px solid var(--line); border-radius: 14px;
    box-shadow: 0 20px 50px -30px rgba(0, 0, 0, 0.8);
    padding: 16px 18px; margin: 18px 0;
}
.dashboard-section > h2:first-child, section > h2:first-child {
    font-family: var(--font); font-weight: 800; font-size: 18px; letter-spacing: -0.01em;
    color: var(--text); margin: 0 0 10px; text-transform: none;
}
.card, .metric-card {
    background: var(--panel2); border: 1px solid var(--line);
    border-radius: 11px; padding: 13px 14px;
}
.card:hover { border-color: var(--acc-line); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9rem; }
@media (max-width: 860px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ── hero stats ─────────────────────────────────────────────────────────── */
.hero-stat { text-align: center; }
.hero-stat .num {
    font-family: var(--font); font-size: 2.1rem; font-weight: 800; line-height: 1.1;
    color: var(--text);
}
.hero-stat .num.gold { color: var(--acc); }
.hero-stat .label {
    font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text3);
    font-weight: 700; margin-top: 2px;
}

/* ── tables ─────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: transparent; font-family: var(--font); }
thead th {
    background: transparent; color: var(--text3);
    font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
    text-align: left; padding: 8px 9px; border-bottom: 1px solid var(--line);
    white-space: nowrap; cursor: default;
}
thead th[data-sortable] { cursor: pointer; }
thead th[data-sortable]:hover { color: var(--text2); }
thead th.sorted { color: var(--acc); }
tbody td {
    font-family: var(--font); font-variant-numeric: tabular-nums; font-size: 12.5px;
    color: var(--text); padding: 7px 9px; border-bottom: 1px solid var(--line-soft);
    white-space: nowrap;
}
tbody td:first-child { color: var(--text); font-weight: 600; }
tbody tr:hover td { background: rgba(255, 255, 255, 0.03); }
td a, .team-link { color: var(--text); text-decoration: none; font-weight: 600; }
td a:hover, .team-link:hover { color: var(--acc); }

/* ── chips / badges / pills ─────────────────────────────────────────────── */
.chip {
    display: inline-block; padding: 0.1rem 0.45rem; border: 1px solid var(--line);
    border-radius: 6px; font-family: var(--font); font-size: 0.68rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em; color: var(--text2);
    font-variant-numeric: tabular-nums;
}
/* Conference tags are identity, not a tier ranking — both stay neutral so amber
   keeps its one job (wayfinding). */
.chip.afc, .chip.nfc { color: var(--text2); }
.chip.pos, .positive-diff { color: var(--pos); }
.chip.neg, .negative-diff { color: var(--neg); }
.badge-gold {
    display: inline-block; background: var(--acc); color: #14100a;
    font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
    padding: 0.14rem 0.5rem; border-radius: 6px;
}
.disclosure {
    color: var(--text2); border-left: 2px solid var(--line);
    padding: 0.1rem 0 0.1rem 0.75rem; margin-top: 0.6rem;
}
.disclosure strong { color: var(--text); }

/* Vegas book number shown for CONTEXT only — never a pick, never coloured as an
   outcome. Neutral pill, same weight as the surrounding data. */
.line-chip {
    display: inline-block; background: var(--panel3); border: 1px solid var(--line);
    color: var(--text); font-family: var(--font); font-weight: 700; font-size: 0.72rem;
    padding: 0.12rem 0.5rem; border-radius: 6px; font-variant-numeric: tabular-nums;
}

/* small inline helpers */
.mu-at { color: var(--text3); font-weight: 600; }
.conf-tag { font-size: 9.5px; font-weight: 700; letter-spacing: 0.05em; color: var(--text3); }

/* ── Matchup tab: feed cards + detail preview ────────────────────────────── */
.mu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; margin-top: 8px; }
.mu-card { display: block; background: var(--panel2); border: 1px solid var(--line); border-radius: 11px; padding: 12px 13px; text-decoration: none; transition: border-color 0.12s; }
.mu-card:hover { border-color: var(--acc-line); }
.mu-card-head { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; }
.mu-date { font-size: 10px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text3); }
.mu-teams { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; color: var(--text); font-weight: 700; font-size: 13.5px; line-height: 1.35; }
.mu-line { margin-top: 8px; font-size: 12.5px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mu-line-sep { color: var(--text3); }
.mu-noline { color: var(--text3); font-weight: 600; }
.mu-venue { margin-top: 7px; font-size: 10.5px; color: var(--text3); }

.mu-back { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text2); text-decoration: none; margin-bottom: 6px; }
.mu-back:hover { color: var(--acc); }
.mu-detail-sub { color: var(--text3); font-size: 12px; margin-top: 2px; }
.mu-headline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
@media (max-width: 560px) { .mu-headline { grid-template-columns: 1fr; } }
.mu-hl-item { background: var(--panel2); border: 1px solid var(--line); border-radius: 11px; padding: 12px; text-align: center; }
.mu-hl-num { font-size: 1.7rem; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; line-height: 1.05; }
.mu-hl-label { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text3); font-weight: 700; margin-top: 4px; }

/* Prior-team tag: this player's reference-season stats were earned somewhere else
   (trade / free agency). A caveat on the number, so it reads as a quiet warning —
   never amber, which is reserved for wayfinding. */
.prior-team {
    display: inline-block; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--text3); border: 1px solid var(--line-soft);
    border-radius: 5px; padding: 0.05rem 0.3rem; vertical-align: 1px; white-space: nowrap;
}

/* ── team marks ─────────────────────────────────────────────────────────── */
/* Square club marks (256px source). Identity only — never a data signal, so they
   stay visually quiet and never compete with the amber accent. */
.mark { width: 18px; height: 18px; object-fit: contain; vertical-align: -4px; flex: none; }
.mark-sm { width: 15px; height: 15px; vertical-align: -3px; }
.mark-lg { width: 34px; height: 34px; vertical-align: -9px; }
.mark-xl { width: 46px; height: 46px; vertical-align: -12px; }

/* ── landing panels: standings / leaders / injuries / news ───────────────── */
.mini-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 3px 0; font-size: 12.5px; }
.mini-row + .mini-row { border-top: 1px solid var(--line-soft); }
.mini-row .rk { color: var(--text3); font-weight: 700; font-size: 11px; width: 1.1rem; flex: none; }
.mini-row .nm { color: var(--text); font-weight: 600; text-decoration: none; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-row a.nm:hover { color: var(--acc); }
.mini-row .sub { color: var(--text3); font-size: 11px; font-weight: 600; }
.mini-row .val { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; flex: none; }
.mini-row .val.pos { color: var(--pos); }
.mini-row .val.neg { color: var(--neg); }
.panel-label { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text3); font-weight: 700; margin-bottom: 6px; }

.inj-status { font-weight: 800; font-size: 11px; letter-spacing: 0.04em; }
.inj-status.out { color: var(--neg); }
.inj-status.doubt { color: var(--neg); opacity: 0.8; }
.inj-status.quest { color: var(--acc); }

.news-list { display: flex; flex-direction: column; }
.news-item { display: block; padding: 7px 0; border-bottom: 1px solid var(--line-soft); color: var(--text); text-decoration: none; font-size: 12.5px; font-weight: 600; line-height: 1.35; }
.news-item:last-child { border-bottom: none; }
.news-item:hover { color: var(--acc); }
.news-item::after { content: ' ↗'; color: var(--text3); font-weight: 700; }

/* ── the mismatch board (matchups feed) ──────────────────────────────────── */
/* One data-to-color scale site-wide: --heat is amber at an alpha computed from
   the rank gap. Amber = wayfinding ("the action is here"); the WEAK side of a
   pairing carries the warning red; green remains outcomes-only. */

/* two-up tiles: room for team ranks, book/model, and four mismatch rows */
.hb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(460px, 100%), 1fr)); gap: 12px; margin-top: 8px; }
.hb-card {
    display: block; text-decoration: none; border-radius: 13px; padding: 14px 16px 13px;
    background: linear-gradient(180deg, var(--heat, transparent), transparent 26%), var(--panel2);
    border: 1px solid var(--line); border-top: 2px solid var(--heat, var(--line));
    transition: border-color .12s, transform .12s;
}
.hb-card:hover { border-color: var(--acc-line); transform: translateY(-1px); }
.hb-head { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.hb-when { font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text2); }
.hb-when em { color: var(--text2); font-style: normal; }
.hb-mkt { font-size: 11px; font-weight: 700; color: var(--text2); font-variant-numeric: tabular-nums; }
.hb-mkt i { color: var(--text3); font-style: normal; }

.hb-venue { font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    color: var(--text3); text-align: right; }

/* aligned team grid: mark | team | 'YY rec | OFF | DEF — column labels kill any
   ambiguity about which number belongs to whom */
.hb-teamgrid { margin-bottom: 10px; }
.hb-tg-head, .hb-tg-row {
    display: grid; grid-template-columns: 34px 1fr 52px 44px 44px;
    align-items: center; gap: 8px;
}
.hb-tg-head span { font-size: 8.5px; font-weight: 800; letter-spacing: .12em;
    color: var(--text3); text-align: right; padding-bottom: 2px; }
.hb-tg-row { padding: 4px 0; }
.hb-tg-row + .hb-tg-row { border-top: 1px solid var(--line-soft); }
.hb-tname { font-size: 1.45rem; font-weight: 800; letter-spacing: .01em; color: var(--text); line-height: 1.1; white-space: nowrap; overflow: hidden; }
.hb-tname b { font-weight: 800; }
.hb-tfull { font-size: .76rem; font-weight: 600; color: var(--text3); margin-left: 6px; }
.hb-tfull i { font-style: normal; letter-spacing: .08em; font-size: .62rem; color: var(--text3); }
.hb-tg-num { text-align: right; font-size: 14px; font-weight: 800; color: var(--text);
    font-variant-numeric: tabular-nums; }
.hb-tg-num.rec { color: var(--text2); font-weight: 700; font-size: 12.5px; }
.hb-tg-num.good { color: var(--acc); }        /* top-8 unit — where the strength is */
.hb-tg-num.bad { color: var(--neg); }         /* bottom-8 — the soft spot */

/* labeled odds boxes, linescore-style: SPREAD | TOTAL | BOOK | MODEL */
.hb-odds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px; }
.ob { background: var(--panel3); border: 1px solid var(--line); border-radius: 8px;
    padding: 5px 8px 6px; text-align: center; }
.ob em { display: block; font-style: normal; font-size: 8px; font-weight: 800;
    letter-spacing: .12em; color: var(--text3); margin-bottom: 1px; }
.ob b { font-size: 14.5px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ob.model { border-color: var(--acc-line); }
.ob.model em { color: var(--acc); }
.hb-mismatches { display: flex; flex-direction: column; gap: 4px; }
.hb-mm {
    display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px;
    background: linear-gradient(90deg, var(--mm, transparent), transparent 70%);
    border: 1px solid var(--line-soft); border-radius: 7px; padding: 5px 10px;
}
.hb-mm-label { font-size: 9px; font-weight: 800; letter-spacing: .1em; color: var(--text2); min-width: 84px; }
.hb-mm-pair { font-size: 13.5px; font-variant-numeric: tabular-nums; color: var(--text); }
.hb-mm-pair b.strong { color: var(--text); font-weight: 800; }
.hb-mm-pair b.weak { color: var(--neg); font-weight: 800; }
.hb-mm-arrow { color: var(--text3); margin: 0 3px; }
.hb-mm-gap { font-size: 13px; font-weight: 800; color: var(--acc); font-variant-numeric: tabular-nums; }
.hb-even { font-size: 11px; color: var(--text3); font-weight: 600; padding: 3px 2px; }

/* ── matchup dossier ─────────────────────────────────────────────────────── */
.doss-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.doss-title { margin: 0; }
/* BOOK/MODEL twin chips: the research bridge in miniature. The book's number sits
   beside ours at the SAME size — hiding the comparison is the whole sin. */
.bm-chips { display: flex; gap: 6px; }
.bm-chip {
    display: inline-block; background: var(--panel3); border: 1px solid var(--line);
    border-radius: 7px; padding: 3px 10px; font-size: 12.5px; font-weight: 800;
    color: var(--text); font-variant-numeric: tabular-nums;
}
.bm-chip em { font-style: normal; font-size: 9px; font-weight: 800; letter-spacing: 0.1em;
    color: var(--text3); margin-right: 5px; vertical-align: 1px; }
.bm-chip.model { border-color: var(--acc-line); }
.bm-chip.model em { color: var(--acc); }

/* unit-matchup card: off value+rank | label+edge | rank+def value */
.unit-card { padding-top: 10px; }
.unit-head {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    font-size: 11px; font-weight: 800; letter-spacing: 0.06em; color: var(--text);
    padding-bottom: 7px; border-bottom: 1px solid var(--line);
}
.unit-vs { color: var(--text3); font-weight: 700; }
.um-row {
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px;
    padding: 5.5px 0; border-bottom: 1px solid var(--line-soft);
}
.um-row:last-child { border-bottom: none; }
.um-off { text-align: left; }
.um-def { text-align: right; }
.um-off, .um-def { font-size: 13px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.um-mid { text-align: center; display: flex; flex-direction: column; gap: 1px; min-width: 92px; }
.um-label { font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text3); }
/* the mismatch marker: a rank-gap callout, neutral ink (it is context, not a result) */
.edge-tag { font-size: 9px; font-weight: 800; letter-spacing: 0.06em; color: var(--text2); }
.edge-tag.even { color: var(--text3); font-weight: 700; }

.rank-chip {
    display: inline-block; min-width: 26px; text-align: center; padding: 0.06rem 0.3rem;
    border: 1px solid var(--line); border-radius: 5px; font-size: 0.62rem; font-weight: 800;
    color: var(--text2); font-variant-numeric: tabular-nums;
}
.rank-chip.top { color: var(--text); border-color: var(--text3); }   /* top-8 unit: stronger ink */
.rank-chip.bot { color: var(--text3); border-style: dashed; }        /* bottom-8: visibly soft */

/* position-matchup rows: headshot | name+chips | stat+form */
.pm-team { font-family: var(--font); font-weight: 800; font-size: 13px; color: var(--text); margin: 0 0 6px; }
.pm-row {
    display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px;
    padding: 6px 0; border-bottom: 1px solid var(--line-soft);
}
.pm-row:last-child { border-bottom: none; }
.pm-row.big .pm-name { font-size: 13.5px; }
.pm-name { font-size: 12.5px; font-weight: 700; color: var(--text); line-height: 1.35; }
.pm-stat { font-size: 12px; color: var(--text2); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pm-stat strong { color: var(--text); font-size: 13px; }
.headshot { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; background: var(--panel3); border: 1px solid var(--line); }
.headshot.ph { display: inline-block; }

/* form dots: each square = a PAST game vs the player's own average — an outcome,
   so green is allowed here (and only here on this page) */
.dot-strip { display: inline-flex; gap: 2px; vertical-align: middle; }
.dot { width: 6px; height: 9px; border-radius: 1.5px; background: var(--panel3); display: inline-block; }
.dot.on { background: var(--pos); opacity: 0.75; }
.dot-count { font-size: 10px; color: var(--text3); font-weight: 700; }

/* context chip: who this player runs into. tough = warning tint; soft = dashed
   (a fact about the opponent, never a recommendation) */
.chip.ctx { margin-left: 4px; }
.chip.ctx.tough { color: var(--neg); border-color: rgba(255, 91, 98, 0.45); }
.chip.ctx.soft { border-style: dashed; }

/* ── head-to-head comparison (team + player, away | metric | home) ───────── */
.h2h-strip { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; }
.h2h-chip { background: var(--panel2); border: 1px solid var(--line); border-radius: 9px; padding: 7px 12px; font-size: 12px; color: var(--text2); font-variant-numeric: tabular-nums; }
.h2h-chip strong { color: var(--text); font-weight: 800; }

.cmp { margin-top: 6px; }
.cmp-head {
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; gap: 10px;
    padding: 6px 0 8px; border-bottom: 1px solid var(--line);
}
.cmp-head .name { font-weight: 800; font-size: 13.5px; color: var(--text); }
.cmp-head .name.r { text-align: right; }
.cmp-head .slot { font-size: 0.6rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--acc); text-align: center; }
.cmp-row {
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px;
    padding: 5px 0; border-bottom: 1px solid var(--line-soft);
}
.cmp-row .a { text-align: right; }
.cmp-row .h { text-align: left; }
.cmp-row .a, .cmp-row .h { font-size: 13.5px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.cmp-row .lead { color: var(--acc); font-weight: 800; }
.cmp-row .m { text-align: center; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text3); white-space: nowrap; }
.cmp-note { margin-top: 10px; }
.player-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .player-cols { grid-template-columns: 1fr; } }

/* ── buttons / filter pills (week + team selectors) ─────────────────────── */
.window-btn, .filter-btn {
    display: inline-block; font-family: var(--font); font-size: 11.5px; font-weight: 700;
    color: var(--text2); background: var(--panel2); border: 1px solid var(--line);
    border-radius: 7px; padding: 4px 9px; text-decoration: none; cursor: pointer;
    transition: 0.12s;
}
.window-btn:hover, .filter-btn:hover { color: var(--text); }
.window-btn.active, .filter-btn.active { background: var(--acc-dim); color: var(--acc); border-color: var(--acc); }
.filter-row { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.9rem; }
.filter-label { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text3); align-self: center; margin-right: 4px; }

/* ── link-chip grid (team browser) ──────────────────────────────────────── */
.team-link-grid { display: flex; flex-wrap: wrap; gap: 7px; }
a.team-link-chip {
    position: relative; display: block; padding: 6px 1.6rem 6px 11px;
    background: var(--panel2); border: 1px solid var(--line); border-radius: 8px;
    font-family: var(--font); font-size: 12.5px; font-weight: 600; color: var(--text2);
    text-decoration: none; transition: border-color 0.12s, color 0.12s;
}
a.team-link-chip::after {
    content: '→'; position: absolute; right: 0.6rem; top: 50%; transform: translate(-4px, -50%);
    opacity: 0; color: var(--acc); transition: all 0.15s ease;
}
a.team-link-chip:hover { border-color: var(--acc-line); color: var(--text); }
a.team-link-chip:hover::after { opacity: 1; transform: translate(0, -50%); }
a.team-link-chip .sub {
    display: block; font-family: var(--font); font-size: 0.62rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.1em; color: var(--text3); margin-top: 0.15rem;
}

/* ── depth chart: position-slot grid ────────────────────────────────────── */
.depth-unit { margin-top: 14px; }
.depth-unit h3 {
    font-family: var(--font); font-weight: 800; font-size: 14px; color: var(--text);
    margin: 0 0 8px; letter-spacing: 0.01em;
}
.depth-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.depth-slot { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; }
.depth-slot .slot-pos { font-size: 0.6rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--acc); }
.depth-slot .slot-starter { font-size: 13px; font-weight: 700; color: var(--text); margin-top: 3px; }
.depth-slot .slot-backups { font-size: 11.5px; color: var(--text2); margin-top: 2px; line-height: 1.45; }
.depth-slot .slot-backups .rank { color: var(--text3); font-weight: 700; }

/* ── footer ─────────────────────────────────────────────────────────────── */
footer {
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
    width: min(1240px, 100% - 2rem); margin: 0 auto; padding: 0.9rem 0 1.2rem;
    border-top: 1px solid var(--line); color: var(--text3); font-size: 0.75rem;
}
.data-freshness strong { color: var(--acc); font-weight: 700; }

/* ── mobile: tables → stacked label/value cards ─────────────────────────── */
@media (max-width: 640px) {
    table.stack thead { display: none; }
    table.stack tbody tr {
        display: block; border: 1px solid var(--line-soft); border-radius: 11px;
        margin-bottom: 0.6rem; padding: 0.4rem 0.6rem; background: var(--panel2);
    }
    table.stack tbody td {
        display: flex; justify-content: space-between; gap: 1rem;
        border: none; padding: 0.18rem 0; white-space: normal;
    }
    table.stack tbody td::before {
        content: attr(data-label); font-family: var(--font); font-size: 0.62rem; font-weight: 700;
        text-transform: uppercase; letter-spacing: 0.1em; color: var(--text3);
        align-self: center;
    }
}

footer a { color: var(--text2); text-decoration: none; border-bottom: 1px solid var(--line); }
footer a:hover { color: var(--acc); border-bottom-color: var(--acc-line); }
.data-sources { color: var(--text3); }

/* ── field diagrams (ported widget language from the CFB matchup card) ────── */
.fld-two { margin-top: 6px; }
.fld-card { padding-top: 10px; }
.fld-svg { display: block; width: 100%; height: auto; margin-top: 8px; }
.fld-pos { font: 800 9px "Saira", sans-serif; fill: #e8ecf3; letter-spacing: .02em; }
.fld-zone { font: 800 8.5px "Saira", sans-serif; fill: #ffffff; opacity: .32; letter-spacing: .22em; }
.fld-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.fld-legend { display: flex; align-items: center; gap: 9px; margin-top: 10px; }
.fld-leg-label { font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text3); }
.fld-leg-bar { width: 130px; height: 7px; border-radius: 4px;
    background: linear-gradient(90deg, #c04a4a, #2f3644, #2fa866); }
.fld-leg-ends { font-size: 9.5px; font-weight: 600; color: var(--text3); }

/* dossier ranks: same instant good/bad ink as the board tiles */
.rank-chip.top { color: var(--acc); border-color: var(--acc-line); }
.rank-chip.bot { color: var(--neg); border-color: rgba(255, 91, 98, 0.45); border-style: solid; }
