/* ============================================================================
   base.css — the shared shell every page loads (2026-10-29)
   ----------------------------------------------------------------------------
   Linked from the FD:HEAD block that tools/apply_shell.py writes, so it loads
   BEFORE each page's own <style>: a page can still override anything here, and
   tokens a page redeclares win. What lives here is what used to be copy-pasted
   into 34 <style> blocks and had started to drift (three pages drew a
   different dropdown, Depth Charts a 60px-wider page): the font, the colour
   and layout tokens, the nav, the page container and the footer.

   The rule for adding to it: if a second page needs the same rule verbatim, it
   goes here, not into another copy.

   Layout scale (UI/UX review, ops/audit/ui-ux-review-2026-10-28.md):
     container  --w-page 1180px  (.wrap; every page)
     prose      --w-prose 720px  (long-form text)
     breakpoints 560 / 820 / 1080 — phone / tablet / small laptop. CSS custom
     properties can't be used inside @media, so pages write the numbers; the
     shell gate keeps them to these three.
   ========================================================================== */

/* Inter, self-hosted (SIL OFL 1.1, fonts/Inter-OFL.txt). One variable file per
   script covers every weight the site uses. The CSP's default-src 'self' rules
   out a font CDN, which is why the site silently fell back to each OS's own
   UI font until now. */
@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:100 900;
  src:url(../fonts/inter-latin-wght-normal.woff2) format('woff2-variations'),url(../fonts/inter-latin-wght-normal.woff2) format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:100 900;
  src:url(../fonts/inter-latin-ext-wght-normal.woff2) format('woff2-variations'),url(../fonts/inter-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}

:root{
  --bg:#0a1114; --bg2:#0c161a; --panel:#0e1c21; --panel2:#122229;
  --line:#1c333a; --line2:#254149;
  --text:#dfe9ea; --muted:#7a9096; --faint:#778c92;
  --teal:#86c8cb; --teal2:#3fa39b; --teal3:#0f6e63;
  --crim:#bf1b53; --crim2:#8f1f44;
  --amber:#e49645;
  --good:#2ec4a6; --bad:#e2517e;
  --radius:10px;
  --w-page:1180px; --w-prose:720px;
  font-size:15px;
}
*{margin:0;padding:0;box-sizing:border-box}
html{scrollbar-gutter:stable}
body{background:var(--bg);color:var(--text);font-family:'Inter','Segoe UI',-apple-system,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;min-height:100vh}
a{color:inherit;text-decoration:none}
.wrap{max-width:var(--w-page);margin:0 auto;padding:0 28px}
/* The footer starts below the fold. Most pages render their tables from a
   script after first paint; with a short <main> the footer sat on screen and
   every late row shoved it down, which was most of the desktop layout shift. */
main{min-height:calc(100vh - 61px)}

/* ── Nav (markup: tools/apply_shell.py nav_html) ─────────────────────────── */
nav{position:sticky;top:0;z-index:50;background:rgba(10,17,20,.88);backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}
.nav-in{display:flex;align-items:center;gap:26px;height:60px}
.logo{display:flex;align-items:center;gap:10px;font-weight:700;letter-spacing:.06em;font-size:.92rem}
.logo .mark{width:30px;height:30px;border-radius:7px;background:linear-gradient(135deg,var(--teal3),var(--crim2));display:grid;place-items:center;font-size:.8rem;font-weight:800;color:#eafffb;letter-spacing:0}
.nav-links{display:flex;gap:20px;font-size:.84rem;color:var(--muted);flex:1;align-items:center}
.nav-links a:hover{color:var(--text)}
.nav-links a.on{color:var(--teal)}
.pro-btn{background:linear-gradient(135deg,var(--crim),#e0356f);color:#fff;font-size:.78rem;font-weight:700;letter-spacing:.1em;padding:8px 16px;border-radius:6px;text-transform:uppercase}
.pro-btn:hover{filter:brightness(1.1)}
.dd{position:relative}
.dd-menu{position:absolute;top:100%;left:-10px;padding-top:10px;display:none;min-width:200px;z-index:60}
.dd:hover .dd-menu,.dd:focus-within .dd-menu{display:block}
.dd-in{display:block;background:#0e1c21;border:1px solid var(--line2);border-radius:10px;overflow:hidden;box-shadow:0 12px 30px rgba(0,0,0,.5)}
.dd-in a{display:block;padding:10px 16px;font-size:.84rem;color:var(--muted);border-bottom:1px solid rgba(28,51,58,.5)}
.dd-in a:last-child{border-bottom:none}
.dd-in a:hover,.dd-in a:focus-visible{background:rgba(63,163,155,.08);color:var(--teal)}

/* ── Keyboard ────────────────────────────────────────────────────────────── */
.fd-skip{position:absolute;left:12px;top:-60px;z-index:200;padding:10px 16px;border-radius:8px;background:var(--teal3);color:#fff;font-weight:700}
.fd-skip:focus{top:12px}
:focus-visible{outline:2px solid var(--teal2);outline-offset:2px}
/* Text for screen readers only (e.g. a name for an icon-only column header). */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* ── Footer (shared links: apply_shell.py FOOT block) ────────────────────── */
footer{border-top:1px solid var(--line);padding:26px 0 40px;color:var(--faint);font-size:.8rem;line-height:1.6}
footer .wrap{display:flex;justify-content:space-between;gap:30px;flex-wrap:wrap}
.fd-foot{margin-top:22px;padding-top:18px;border-top:1px solid rgba(28,51,58,.6)}
.fd-foot .wrap{gap:10px 22px;justify-content:flex-start;align-items:center}
.fd-foot a{color:var(--muted)}
.fd-foot a:hover{color:var(--teal)}
.fd-foot .fd-copy{margin-left:auto;color:var(--faint)}

/* Wide tables scroll sideways inside their own box rather than off the page
   (Team Compare, Player Compare). */
.cmpt-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}

/* ── Long-form pages: About, Privacy, Terms ──────────────────────────────── */
.doc{max-width:var(--w-prose);padding:48px 0 72px}
.doc .kicker{font-size:.74rem;letter-spacing:.22em;text-transform:uppercase;color:var(--teal);font-weight:600}
.doc h1{font-size:2.2rem;font-weight:800;letter-spacing:-.01em;line-height:1.15;margin:10px 0 14px}
.doc .lede{color:var(--muted);font-size:1.02rem;line-height:1.65;margin-bottom:8px}
.doc .stamp{color:var(--faint);font-size:.8rem;margin-bottom:30px}
.doc h2{font-size:1.15rem;font-weight:700;margin:34px 0 10px;scroll-margin-top:80px}
.doc p,.doc li{color:#c3d2d4;font-size:.93rem;line-height:1.7}
.doc p+p{margin-top:12px}
.doc ul{margin:10px 0 0 20px;display:grid;gap:6px}
.doc a{color:var(--teal);text-decoration:underline;text-underline-offset:2px}
.doc b{color:var(--text)}
.doc .card{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:18px 20px;margin-top:14px}

/* ── Phones and tablets: comfortable tap targets (44px, Apple HIG / Material) */
@media(max-width:820px){
  .pro-btn{min-height:44px;display:inline-flex;align-items:center}
  /* Controls in table cells keep their row height; everything else a thumb hits is 44px. */
  main button:not(td button):not(th button),select,input:not([type=checkbox]):not([type=radio]),.btn,.pill{min-height:44px}
  .fdm-burger{width:44px!important;height:44px!important}
  .fd-foot a{display:inline-flex;align-items:center;min-height:44px}
  .fd-foot .fd-copy{margin-left:0;width:100%}
  /* Long breadcrumb kickers ("TEAMS · TEAM HUB · 2026 SEASON · THROUGH WEEK 7")
     wrapped to three lines at the desktop letter-spacing. */
  .kicker{letter-spacing:.12em!important;line-height:1.5}
}
