/* ==========================================================================
   Prime Time — shared design layer for the redesigned pages
   (homepage, League Wire, Year Ten, bosses). Approved by Eli 2026-10-15 from
   the design canvas "Fantasy Bosses Inc — Site Redesign".

   Fonts: self-hosted Latin subsets, declared in assets/fonts.css (Archivo
   wdth 68-100% / wght 400-800, Instrument Sans wght 400-700, no italics). The
   post-stage font hook puts two preloads and that stylesheet on every staged
   page; stay inside those axes here.

   Page-specific layout lives in assets/prime-<page>.css. Keep this file to
   tokens, chrome, and components shared by two or more pages.
   ========================================================================== */

:root {
  --pt-ac: #D4FF3F;           /* volt accent: wins, live, odds fills */
  --pt-bg: #0C0D10;
  --pt-s1: #14161B;           /* card */
  --pt-s2: #1C1F26;           /* inset, tracks, avatars */
  --pt-line: #272B33;
  --pt-line-2: #3A3F49;
  --pt-tx: #F3F1EC;
  --pt-tx2: #B4B9C3;          /* 9.6:1 on bg */
  --pt-tx3: #8B919D;          /* 6.1:1 on bg, 5.4:1 on s1 */
  --pt-ink: #0C0D10;          /* text on volt */
  --pt-loss: #4A505B;
  --pt-radius: 18px;
  --pt-wrap: 1280px;
  --pt-edge: 40px;
  --pt-display: 'Archivo', 'Arial Narrow', sans-serif;
  --pt-body: 'Instrument Sans', system-ui, sans-serif;
  --pt-ease: cubic-bezier(.2, .8, .2, 1);
}

html.pt-html { background: var(--pt-bg); scroll-behavior: smooth; color-scheme: dark; }
[hidden] { display: none !important; }
body.pt {
  margin: 0;
  background: var(--pt-bg);
  color: var(--pt-tx);
  font-family: var(--pt-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.pt *, body.pt *::before, body.pt *::after { box-sizing: border-box; }
body.pt :where(h1, h2, h3, h4, p, figure, ol, ul, dl, dd, blockquote) { margin: 0; }
body.pt :where(ol, ul) { padding: 0; list-style: none; }
body.pt img { max-width: 100%; display: block; }
body.pt a { color: inherit; text-decoration: none; }
body.pt a:hover { color: var(--pt-ac); }
body.pt :focus-visible { outline: 2px solid var(--pt-ac); outline-offset: 3px; }
body.pt ::selection { background: var(--pt-ac); color: var(--pt-ink); }
.pt-skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--pt-ac); color: var(--pt-ink); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.pt-skip:focus { left: 16px; }
body.pt a.pt-skip, body.pt a.pt-skip:hover, body.pt a.pt-skip:focus { color: var(--pt-ink); }
.pt-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
.pt-wrap { max-width: var(--pt-wrap); margin: 0 auto; padding: 0 var(--pt-edge); }
.pt-d { font-family: var(--pt-display); font-stretch: 68%; font-weight: 800; text-transform: uppercase; line-height: .9; letter-spacing: -.005em; }
.pt-n { font-family: var(--pt-display); font-stretch: 84%; font-weight: 700; font-variant-numeric: tabular-nums; }
.pt-eb { font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--pt-tx3); }
.pt-eb-ac { color: var(--pt-ac); }
.pt-tx2 { color: var(--pt-tx2); }
.pt-tx3 { color: var(--pt-tx3); }
.pt-win { color: var(--pt-ac); }
.pt-lose { color: var(--pt-tx3); }
.pt-up { color: var(--pt-ac); font-weight: 700; }
.pt-down { color: var(--pt-tx3); font-weight: 700; }

/* ---------- chrome: nav ---------- */
.pt-nav { display: flex; align-items: center; gap: 32px; min-height: 80px; border-bottom: 1px solid var(--pt-line); position: relative; }
.pt-brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: 17px; min-height: 44px; color: var(--pt-tx); white-space: nowrap; }
.pt-brand:hover { color: var(--pt-tx); }
.pt-mark { width: 40px; height: 40px; border-radius: 50%; flex: none; display: block; }
.pt-links { display: flex; gap: 28px; margin-left: auto; font-size: 15px; font-weight: 600; color: var(--pt-tx2); }
.pt-links a { min-height: 44px; display: inline-flex; align-items: center; }
.pt-links a[aria-current="page"] { color: var(--pt-tx); box-shadow: inset 0 -2px 0 var(--pt-ac); }
.pt-menu-btn { display: none; margin-left: auto; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--pt-line); background: transparent; color: var(--pt-tx); font: inherit; font-weight: 700; cursor: pointer; }
.pt-menu-btn:hover { border-color: var(--pt-line-2); }

/* ---------- chrome: footer ---------- */
.pt-foot { margin-top: 120px; border-top: 1px solid var(--pt-line); padding: 48px 0 64px; display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.pt-foot-meta { color: var(--pt-tx3); font-size: 15px; margin-top: 12px; }
.pt-foot-nav { display: flex; flex-direction: column; gap: 4px; }
.pt-foot-links { display: flex; gap: 0 28px; flex-wrap: wrap; font-weight: 600; color: var(--pt-tx2); }
.pt-foot-more { font-weight: 500; color: var(--pt-tx3); font-size: 15px; }
.pt-foot-links a { min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- components ---------- */
.pt-card { background: var(--pt-s1); border: 1px solid var(--pt-line); border-radius: var(--pt-radius); }
a.pt-card { display: block; transition: border-color .15s var(--pt-ease); }
body.pt a.pt-card:hover { border-color: var(--pt-line-2); color: inherit; }
.pt-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.pt-pill-ac { background: var(--pt-ac); color: var(--pt-ink); }
.pt-pill-line { border: 1px solid var(--pt-line); color: var(--pt-tx2); }
.pt-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.pt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 700; font-size: 16px; border: 1px solid transparent; background: transparent; color: var(--pt-tx); font-family: inherit; cursor: pointer; text-decoration: none; }
.pt-btn-ac { background: var(--pt-ac); color: var(--pt-ink); }
body.pt a.pt-btn-ac, body.pt a.pt-btn-ac:hover, body.pt button.pt-btn-ac { color: var(--pt-ink); }
body.pt .pt-btn-ac:hover { filter: brightness(1.06); }
.pt-btn-ghost { border-color: var(--pt-line); color: var(--pt-tx); }
body.pt a.pt-btn-ghost:hover { border-color: var(--pt-line-2); color: var(--pt-tx); }
.pt-av { border-radius: 50%; object-fit: cover; object-position: center 20%; background: var(--pt-s2); flex: none; display: block; box-shadow: 0 0 0 1px var(--pt-line-2); }
.pt-av-initial { display: grid; place-items: center; font-family: var(--pt-display); font-stretch: 68%; font-weight: 800; color: var(--pt-tx2); }
/* real NFL headshots: transparent cutouts on the inset tone */
.pt-ph { position: relative; display: block; flex: none; overflow: hidden; border-radius: 50%; background: var(--pt-s2); box-shadow: 0 0 0 1px var(--pt-line-2); }
.pt-ph img { position: absolute; left: 50%; top: 3%; width: 225%; max-width: none; height: auto; transform: translateX(-50%); }
.pt-ph-card { width: 100%; aspect-ratio: 350 / 254; border-radius: 12px; background: linear-gradient(180deg, var(--pt-s2), var(--pt-s1)); box-shadow: none; }
.pt-ph-card img { top: auto; bottom: 0; width: 100%; }
.pt-ph-none { display: grid; place-items: center; font-family: var(--pt-display); font-stretch: 68%; font-weight: 800; color: var(--pt-tx3); }
.pt-ph-none[data-i]::after { content: attr(data-i); }
.pt-ph-card.pt-ph-none { font-size: 56px; }
.pt-sec { padding-top: 112px; }
.pt-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.pt-sec-title { font-size: 60px; margin-top: 10px; }
body.pt .pt-sec-title { margin-top: 10px; } /* beats the element reset */
.pt-more { font-weight: 700; font-size: 15px; color: var(--pt-tx2); min-height: 44px; display: inline-flex; align-items: center; gap: 8px; }

/* odds / progress bars */
.pt-track { position: relative; height: 8px; border-radius: 4px; background: var(--pt-s2); overflow: hidden; flex: 1; }
.pt-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--pt-ac); }
.pt-fill-loss { background: var(--pt-loss); }
.pt-odds { display: flex; align-items: center; gap: 12px; }
.pt-odds-n { width: 46px; text-align: right; font-size: 18px; }

/* chips + tabs */
.pt-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.pt-chip { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--pt-line); background: transparent; color: var(--pt-tx2); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.pt-chip:hover { color: var(--pt-tx); border-color: var(--pt-line-2); }
.pt-chip[aria-pressed="true"] { background: var(--pt-ac); border-color: var(--pt-ac); color: var(--pt-ink); }
.pt-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--pt-line); flex-wrap: wrap; }
.pt-tab { min-height: 52px; padding: 0 20px; background: transparent; border: 0; border-bottom: 3px solid transparent; color: var(--pt-tx2); font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; margin-bottom: -1px; }
.pt-tab:hover { color: var(--pt-tx); }
.pt-tab[aria-selected="true"] { color: var(--pt-tx); border-bottom-color: var(--pt-ac); }

/* standings-style rows (grid, not <table>, so they reflow on phones) */
.pt-rows { overflow: hidden; }
.pt-row-head { min-height: 52px; border-bottom: 1px solid var(--pt-line); font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pt-tx3); }
.pt-row { min-height: 76px; border-bottom: 1px solid var(--pt-line); }
.pt-row:last-child { border-bottom: 0; }
.pt-boss { display: flex; align-items: center; gap: 14px; min-width: 0; }
.pt-boss-n { display: block; font-weight: 700; font-size: 17px; line-height: 1.2; }
.pt-boss-t { display: block; font-size: 14px; color: var(--pt-tx3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-cut { display: flex; align-items: center; gap: 14px; padding: 12px 24px; font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--pt-ac); border-bottom: 1px solid var(--pt-line); }
.pt-cut::after { content: ""; flex: 1; border-top: 1px dashed currentColor; opacity: .5; order: 1; }
.pt-cut span:last-child { order: 2; }

/* status / empty / error */
.pt-status { padding: 28px; color: var(--pt-tx2); }
.pt-skeleton { background: linear-gradient(90deg, var(--pt-s1), var(--pt-s2), var(--pt-s1)); background-size: 200% 100%; animation: pt-shimmer 1.4s linear infinite; border-radius: var(--pt-radius); min-height: 120px; }
@keyframes pt-shimmer { to { background-position: -200% 0; } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .pt-links { display: none; }
  .pt-menu-btn { display: inline-flex; align-items: center; }
  .pt-nav.is-open .pt-links {
    display: flex; flex-direction: column; gap: 0; position: absolute; top: 100%; left: 0; right: 0; z-index: 30;
    background: var(--pt-s1); border: 1px solid var(--pt-line); border-radius: 0 0 var(--pt-radius) var(--pt-radius); padding: 8px 20px 16px;
  }
  .pt-nav.is-open .pt-links a { min-height: 52px; border-bottom: 1px solid var(--pt-line); }
  .pt-nav.is-open .pt-links a:last-child { border-bottom: 0; }
  .pt-nav.is-open .pt-links a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--pt-ac); padding-left: 14px; color: var(--pt-ac); }
}
@media (max-width: 640px) {
  :root { --pt-edge: 18px; }
  body.pt { font-size: 16px; }
  .pt-nav { gap: 12px; min-height: 68px; }
  .pt-sec { padding-top: 72px; }
  .pt-sec-title { font-size: 42px; }
  .pt-cut { padding: 10px 16px; }
  .pt-foot { margin-top: 88px; }
}
@media (max-width: 360px) {
  .pt-brand { font-size: 15px; gap: 8px; }
  .pt-mark { width: 32px; height: 32px; }
  .pt-menu-btn { padding: 0 14px; }
}
/* Windows High Contrast: selected states otherwise rely on fills the mode removes. */
@media (forced-colors: active) {
  .pt-chip[aria-pressed="true"], .pt-tab[aria-selected="true"], .pt-links a[aria-current="page"],
  body.pt [aria-pressed="true"], body.pt [aria-selected="true"] { outline: 3px solid Highlight; outline-offset: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  html.pt-html { scroll-behavior: auto; }
  .pt-skeleton { animation: none; }
}
/* Client-rendered mounts (the 2017-2025 season chapters, the Hall of Shame) sit between a
   pre-rendered nav and footer. Until the renderer fills the mount, hold a screen of space so the
   footer is not painted near the top and then pushed down (verify, 2026-10-24: CLS 0.2-0.5 on
   /seasons/2019/). With JavaScript off the noscript note shows and no space is held. */
@media (scripting: enabled) {
  body.pt main > #app:not(:has(> :not(noscript))),
  body.pt main > #sh:not(:has(> :not(noscript))) { min-height: 100vh; }
}
