/* =====================================================================
   Data Sciencing the NWSL — site skin
   ---------------------------------------------------------------------
   Loaded AFTER shared/base.css. Contains ONLY:
     1. the :root design tokens (NWSL black chrome + brand-red accent)
     2. NWSL-specific sections (season progress bar, power rankings,
        team map, league-table decoration)
   Shared components live in base.css — change them there, not here.
/* Board palette — aliases onto /shared/tokens.css, which is the one source of
   truth for colour. Every name here used to be a hand-typed hex, and they had
   drifted a shade per board: five near-blacks for body ink, three hairline
   greys, and a --faint that failed AA on two boards. The names stay (styles.css
   and app.js use them throughout); only the values moved onto tokens.
   --card is deliberately NOT redeclared — the token's white applies.
   --sport-accent is the one genuinely per-board value. */
:root{
  --bg:var(--ground); --ink:var(--ink-black); --mut:var(--body-text); --faint:var(--muted-sage);
  --bgink:var(--ink-black); --bgmut:var(--body-text);
  --accent:var(--ink-deep); --accent2:var(--ink-deep);
  --sport-accent:var(--sport-nwsl);   /* ball-mark accent: season progress bar only */
  --green:var(--pos); --red:var(--neg);   /* --gold and --draw come straight from tokens */
  --line:var(--border-subtle); --line2:var(--track);
}

/* brand-red tint on the "our forecast" row of the best-games plot */
.wprow.ours{background:rgba(142,14,42,.08)}

/* ---- league table: NWSL zone decoration on the shared .lg skeleton ---- */
.lg .chip{display:inline-block;width:11px;height:11px;border-radius:3px;margin-right:9px;vertical-align:-1px}
.lg td.pct.reltxt{color:var(--red)}
.lg .split{color:var(--ink);width:52px}
.lg td.split{font-weight:700}
.lg .spl-a{border-left:1px solid var(--line)}
.lg .spl-b{border-right:1px solid var(--line)}
.lg tr.cl td{background:rgba(28,31,36,.05)}
.lg tr.relzone td{background:rgba(142,42,24,.05)}

/* ---- season progress bar (Table page) ---- */
.seasonbar{margin:2px 0 22px}
.panel .seasonbar{margin:16px 2px 2px;padding-top:15px;border-top:1px solid var(--line2)}
.sphead{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:7px}
.spkick{font-size:9px;font-weight:800;letter-spacing:.4px;text-transform:none;color:var(--faint)}
.spcap{font-size:11.5px;color:var(--mut)}
.spcap b{color:var(--ink);font-weight:800}
.sptrack{position:relative;height:12px;background:rgba(28,31,36,.10);border-radius:6px;overflow:hidden}
.spfill{position:absolute;left:0;top:0;bottom:0;background:var(--sport-accent);border-radius:6px}
.sptick{position:absolute;top:0;bottom:0;width:1px;background:rgba(255,255,255,.5);transform:translateX(-.5px)}
.sptick.lm{width:1.5px;background:rgba(255,255,255,.85);transform:translateX(-.75px)}
.splabels{position:relative;height:13px;margin-top:3px}
.sptlab{position:absolute;top:0;font-size:9px;color:var(--faint);transform:translateX(-50%);white-space:nowrap}
.sptlab.lm{font-weight:700;color:var(--mut)}
.sptlab.lm.l{transform:none}
.sptlab.lm.r{transform:translateX(-100%)}

/* ---- team map: scatter + hovered-team caption ---- */
.tmapwrap{width:100%}
.tmcap{margin-top:6px;text-align:center;font-size:13px;color:var(--mut);min-height:18px}
.tmcap b{color:var(--ink);font-weight:800}

/* ---- power rankings: dumbbell table ---- */
.pwrleg{display:flex;gap:16px;font-size:11.5px;color:var(--mut);font-weight:600}
.pwrkey{display:inline-flex;align-items:center;gap:6px}
.pwrkey i{width:11px;height:11px;border-radius:50%;display:inline-block}
.pwrkey i.dia{border-radius:2px;transform:rotate(45deg);width:9px;height:9px}
.pwr .pwrpos{color:var(--faint);font-weight:700;margin-right:2px}
.pwr .pwrcell{width:22%}
.pwrviz{width:100%;height:26px;display:block}
/* recent-form chips (last 5 W/D/L) */
.pwrform{white-space:nowrap;text-align:right}
th.pwrform{color:var(--faint)}
.formchip{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;margin-left:2px;border-radius:4px;font-size:9.5px;font-weight:800;color:#fff;vertical-align:middle}
.formchip.fW{background:var(--green)}
.formchip.fD{background:#0E8FBC}
.formchip.fL{background:var(--red)}
.pwr tfoot td{border:none;padding-top:2px}

/* last-5 form squares on the on-paper panel: records in the value slots,
   square runs anchored to the center gutter like the bars, reading L->R */
.frun-cell{display:flex;align-items:center}
.frun-cell.l{justify-content:flex-end}
.frun-cell.r{justify-content:flex-start}
.frun{display:inline-flex;gap:4px;vertical-align:middle}
.fsq{width:11px;height:11px;border-radius:3px;display:inline-block}
.fsq.w{background:var(--green)}
.fsq.d{background:var(--draw)}
.fsq.l{background:var(--red)}

