/* SSA design tokens — the shared colour + type contract for every SSA surface.
   Canonical source: jdw-claude-config/workspace/docs/DESIGN_SYSTEM.md §1.
   Values are WCAG-AA verified; copy this block verbatim, never retune it here.
   Green and red are DATA semantics only — blue and purple carry all chrome. */
:root {
  /* ── Surfaces ────────────────────────────────────────────────────────── */
  --bg:            #0b0f16;  /* page background                            */
  --bg-elev:       #161b22;  /* cards, nav bar, table headers              */
  --bg-row:        #1d2129;  /* table rows, inset panels                   */
  --border:        #2a2f3a;
  --border-subtle: #22262f;

  /* ── Text ────────────────────────────────────────────────────────────── */
  --text:          #e8eaef;  /* headings + body                            */
  --text-dim:      #9aa0aa;  /* secondary                                  */
  --text-muted:    #8b929d;  /* captions, timestamps, footnotes            */

  /* ── Brand / chrome ──────────────────────────────────────────────────── */
  --accent:        #58a6ff;  /* THE brand accent. All chrome.              */
  --accent-dim:    #2f6fd6;  /* hover + pressed FILLS ONLY — never text    */
  --accent-2:      #a78bfa;  /* secondary highlight (All-Access, badges)   */
  --accent-wash:   rgba(88, 166, 255, 0.14);  /* translucent accent fills  */
  --text-disabled: #6b727d;  /* recessive but legible — NOT --text-muted   */

  /* ── Data semantics — NEVER used for chrome ──────────────────────────── */
  --good:          #3fb950;  /* win, cover, +EV, positive delta            */
  --bad:           #f85149;  /* loss, no-cover, -EV, negative delta        */
  --warn:          #e6c26b;  /* push, stale data, caution                  */

  /* ── Type ────────────────────────────────────────────────────────────── */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
                 Roboto, sans-serif;
}

/* ── Site nav — the standard SSA header (DESIGN_SYSTEM.md §3) ─────────────
   ONE copy for every apex page, replacing five inline .top-bar variants.
   Values are the league-canonical block (cfl-elo-dashboard/static/css/
   style.css → "Site nav (standardized across SSA portfolio)"); copy
   verbatim, never retune here. */
.site-nav {
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
  padding: 8px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.site-nav-brand {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.3px;
}
.site-nav-divider {
  width: 1px;
  height: 18px;
  background: var(--border);
}
.site-nav-link {
  text-decoration: none;
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 500;
}
.site-nav-link:hover { color: var(--text); }
.site-nav-link.active {
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
}
.nav-right { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.nav-right-link { color: var(--text-dim); text-decoration: none; font-size: 13px; font-weight: 500; }
.nav-right-link:hover { color: var(--text); }
.nav-right-link.active {
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
}
@media (max-width: 600px) {
  .site-nav { gap: 14px; padding: 8px 14px; }
}

/* ── Account stub — the header's Account control, hydrated by
   static/js/account.js. Same values previously inlined per page. ───────── */
.account-stub { position: relative; }
/* Signed out, account.js replaces the button with a bare <a>. League pages
   style it via their global `a { color: var(--text) }`; the apex has no such
   rule, so pin the link to the nav-link spec here or it renders UA-blue. */
.account-stub > a { color: var(--text-dim); text-decoration: none; font-size: 13px; font-weight: 500; }
.account-stub > a:hover { color: var(--text); }
.account-stub button {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font: inherit;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
.account-stub button:hover { border-color: var(--accent); }
.account-stub-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 8px;
  min-width: 240px;
  padding: 8px 0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  z-index: 100;
}
.account-stub-menu.open { display: block; }
.account-stub-menu .item {
  padding: 8px 16px;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.account-stub-menu .item.header {
  color: var(--text-dim);
  font-weight: 600;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
  margin-bottom: 4px;
}
.account-stub-menu .item .badge {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--border-subtle);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 500;
}

/* ── Site footer — the legal footer block (DESIGN_SYSTEM.md §3, 2026-08-13).
   Two compact disclaimer lines, the Terms · Privacy · Help links, and the
   copyright. ONE copy for every apex page; league surfaces adopt it with the
   disclaimer rollout. Chrome tokens only — no data colours here. */
.site-footer {
  text-align: center;
  padding: 40px 20px 28px;
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
}
.site-footer p { margin: 0 auto 8px; max-width: 760px; }
.site-footer-legal {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.6;
}
.site-footer-links {
  color: var(--text-muted);
  font-size: 12.5px;
  padding-top: 4px;
}
.site-footer a { color: var(--accent); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.site-footer-copy { color: var(--text-muted); font-size: 12px; padding-top: 2px; }
