/* ==========================================================================
   Prime Time: shared layer for the history pages (Record Book, Draft Central,
   Rivalries, Hall of Shame, League Story, seasons 2017–2025). Builds on
   assets/prime.css; every class here is pp-* so nothing collides with the
   homepage, Wire, Year Ten, or bosses layers. Page-only tweaks stay in the
   page's own <style> block.
   ========================================================================== */

/* ---------- page header ---------- */
body.pt .pp-head { padding: 64px 0 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 40px; align-items: end; }
body.pt .pp-head-solo { grid-template-columns: minmax(0, 1fr); }
body.pt .pp-title { font-size: clamp(96px, 11vw, 160px); margin-top: 14px; overflow-wrap: anywhere; }
body.pt .pp-dek { font-size: 20px; line-height: 1.5; color: var(--pt-tx2); max-width: 54ch; margin-top: 24px; }
body.pt .pp-facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 22px; color: var(--pt-tx2); font-size: 16px; }
body.pt .pp-facts b { color: var(--pt-tx); font-weight: 700; font-variant-numeric: tabular-nums; }
body.pt .pp-aside { min-width: 0; }

/* header aside: one featured fact with a portrait */
body.pt .pp-feature { display: flex; align-items: center; gap: 18px; padding: 18px 20px; border-radius: 16px; min-width: 0; }
body.pt a.pp-feature:hover { color: inherit; }
body.pt .pp-feature-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
body.pt .pp-feature-k { font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--pt-ac); }
body.pt .pp-feature-n { font-size: 44px; margin-top: 2px; overflow-wrap: anywhere; }
body.pt .pp-feature-s { font-size: 14px; color: var(--pt-tx3); line-height: 1.4; overflow-wrap: anywhere; }

/* photographs (league stills, season portraits) */
body.pt .pp-photo { margin: 0; border-radius: var(--pt-radius); overflow: hidden; background: var(--pt-s2); border: 1px solid var(--pt-line); }
body.pt .pp-photo img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
body.pt .pp-photo figcaption { padding: 12px 18px; font-size: 14px; color: var(--pt-tx3); border-top: 1px solid var(--pt-line); }

/* in-page jump links */
body.pt .pp-jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
body.pt .pp-jump a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--pt-line); color: var(--pt-tx2); font-size: 15px; font-weight: 700; }
body.pt .pp-jump a:hover { color: var(--pt-tx); border-color: var(--pt-line-2); }
body.pt .pp-jump .pt-n { color: var(--pt-tx3); font-size: 14px; }

/* ---------- sections ---------- */
body.pt .pp-sec { scroll-margin-top: 24px; }
body.pt .pp-sec-note { font-size: 16px; line-height: 1.5; color: var(--pt-tx2); max-width: 46ch; text-wrap: pretty; }
body.pt .pp-sub { font-size: 36px; margin: 48px 0 18px; }
body.pt .pp-note { margin-top: 18px; font-size: 15px; line-height: 1.55; color: var(--pt-tx3); max-width: 72ch; }
body.pt .pp-note b { color: var(--pt-tx2); }
body.pt .pp-empty { padding: 28px; color: var(--pt-tx2); }
@media (min-width: 900px) {
  body.pt .pp-sec-note { text-align: right; }
}

/* ---------- stat tiles ---------- */
body.pt .pp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 0; }
body.pt .pp-stat { padding: 20px 22px; margin: 0; min-width: 0; }
body.pt .pp-stat-k { display: block; font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--pt-tx3); }
body.pt .pp-stat-n { display: block; font-size: 38px; line-height: 1; margin-top: 12px; color: var(--pt-tx); overflow-wrap: anywhere; }
body.pt .pp-stat-n.is-ac { color: var(--pt-ac); }
body.pt .pp-stat-s { display: block; font-size: 15px; line-height: 1.45; color: var(--pt-tx2); margin-top: 10px; }

/* ---------- record ledger: label / big figure / detail ---------- */
body.pt .pp-ledger { overflow: hidden; }
body.pt .pp-ledger-row { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 250px) minmax(0, 1fr); gap: 8px 28px; align-items: center; padding: 22px 28px; border-bottom: 1px solid var(--pt-line); }
body.pt .pp-ledger-row:last-child { border-bottom: 0; }
body.pt .pp-ledger-k { font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--pt-tx3); }
body.pt .pp-ledger-n { font-size: 48px; line-height: .95; color: var(--pt-ac); white-space: nowrap; }
body.pt .pp-ledger-d { font-size: 16px; line-height: 1.5; color: var(--pt-tx2); min-width: 0; }
body.pt .pp-ledger-d b { color: var(--pt-tx); font-weight: 700; }
body.pt .pp-ledger-row.is-low .pp-ledger-n { color: var(--pt-tx3); }
body.pt .pp-ledger-row.is-low .pp-ledger-k { color: var(--pt-tx2); }

/* ---------- tables (real <table>s that scroll inside their card) ---------- */
body.pt .pp-scroll { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scrollbar-color: var(--pt-line-2) transparent; }
body.pt .pp-scroll:focus-visible { outline-offset: -2px; }
body.pt .pp-table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.4; }
body.pt .pp-table caption { caption-side: top; text-align: left; padding: 18px 22px 4px; font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--pt-tx3); }
body.pt .pp-table th { height: 52px; padding: 0 14px; text-align: left; vertical-align: middle; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pt-tx3); border-bottom: 1px solid var(--pt-line); white-space: nowrap; }
body.pt .pp-table td { padding: 14px; vertical-align: middle; color: var(--pt-tx2); border-bottom: 1px solid var(--pt-line); }
body.pt .pp-table :is(th, td):first-child { padding-left: 22px; }
body.pt .pp-table :is(th, td):last-child { padding-right: 22px; }
body.pt .pp-table tbody tr:last-child td { border-bottom: 0; }
body.pt .pp-table tbody tr:hover td { background: rgba(255, 255, 255, .025); }
body.pt .pp-table .pp-r { text-align: right; }
body.pt .pp-table .pp-num { font-family: var(--pt-display); font-stretch: 84%; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--pt-tx); white-space: nowrap; }
body.pt .pp-table .pp-dim { color: var(--pt-tx3); }
body.pt .pp-table .pp-strong { color: var(--pt-tx); font-weight: 700; }
body.pt .pp-table .pp-ac { color: var(--pt-ac); }
body.pt .pp-table .pp-wrap { white-space: normal; min-width: 180px; }
body.pt .pp-table tr.is-hl td { background: rgba(212, 255, 63, .055); }
body.pt .pp-table tr.is-hl .pp-strong { color: var(--pt-ac); }
body.pt .pp-table tr.pp-sep td { padding-top: 12px; padding-bottom: 12px; background: var(--pt-s2); font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--pt-ac); }
body.pt .pp-boss-cell { display: flex; align-items: center; gap: 12px; min-width: 0; }
body.pt .pp-boss-cell a { color: var(--pt-tx); font-weight: 700; }
body.pt .pp-boss-cell a:hover { color: var(--pt-ac); }
body.pt .pp-tag { display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; border: 1px solid var(--pt-line-2); border-radius: 999px; font-size: 14px; font-weight: 700; line-height: 1; color: var(--pt-tx3); white-space: nowrap; }
body.pt .pp-tag-ac { border-color: var(--pt-ac); color: var(--pt-ac); }

/* ---------- key/value facts ---------- */
body.pt .pp-kv { display: grid; margin: 0; }
body.pt .pp-kv > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--pt-line); }
body.pt .pp-kv > div:last-child { border-bottom: 0; }
body.pt .pp-kv dt { font-size: 15px; color: var(--pt-tx3); }
body.pt .pp-kv dd { margin: 0; font-weight: 700; color: var(--pt-tx); text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- pull quote ---------- */
body.pt .pp-quote { margin: 0; padding-left: 22px; border-left: 3px solid var(--pt-ac); font-size: 22px; line-height: 1.5; color: var(--pt-tx); max-width: 60ch; text-wrap: pretty; }
body.pt .pp-quote-cite { margin-top: 12px; padding-left: 25px; font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--pt-tx3); }

/* ---------- card grids ---------- */
body.pt .pp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
body.pt .pp-grid-wide { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
body.pt .pp-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
/* grid children never widen the page: wide tables scroll inside them */
body.pt :is(.pp-split, .pp-grid, .pp-stats) > * { min-width: 0; }
body.pt .pp-tile { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px; min-width: 0; }
body.pt .pp-tile.is-ac { border-color: var(--pt-ac); }
body.pt .pp-tile-k { font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--pt-tx3); }
body.pt .pp-tile-t { font-size: 34px; margin-top: 8px; overflow-wrap: anywhere; }
body.pt .pp-tile-m { font-size: 15px; color: var(--pt-tx3); }
body.pt .pp-tile-d { font-size: 16px; line-height: 1.5; color: var(--pt-tx2); margin-top: 6px; }
body.pt .pp-tile-d b { color: var(--pt-tx); }
body.pt .pp-tile-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--pt-line); font-size: 15px; color: var(--pt-tx2); }
body.pt .pp-tile .pp-tag { position: absolute; top: 18px; right: 18px; }

/* ---------- disclosure (full boards, consolation brackets) ---------- */
body.pt .pp-more { margin-top: 24px; }
body.pt .pp-more > summary { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--pt-line); color: var(--pt-tx); font-weight: 700; font-size: 15px; cursor: pointer; list-style: none; }
body.pt .pp-more > summary::-webkit-details-marker { display: none; }
body.pt .pp-more > summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s var(--pt-ease); }
body.pt .pp-more[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
body.pt .pp-more > summary:hover { border-color: var(--pt-line-2); color: var(--pt-ac); }
body.pt .pp-more[open] > summary { margin-bottom: 20px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  body.pt .pp-head { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-top: 48px; }
  body.pt .pp-title { font-size: clamp(88px, 13vw, 128px); }
  body.pt .pp-aside { max-width: 560px; }
  body.pt .pp-ledger-row { grid-template-columns: minmax(0, 1fr) auto; }
  body.pt .pp-ledger-k { grid-column: 1 / -1; }
  body.pt .pp-ledger-n { grid-row: 2; grid-column: 1; }
  body.pt .pp-ledger-d { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  body.pt .pp-split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  body.pt .pp-head { padding-top: 36px; gap: 28px; }
  body.pt .pp-title { font-size: clamp(52px, calc((100vw - 36px) / 4.6), 84px); }
  body.pt .pp-dek { font-size: 18px; margin-top: 18px; }
  body.pt .pp-facts { gap: 6px 20px; }
  body.pt .pp-feature-n { font-size: 36px; }
  body.pt .pp-jump { margin-top: 28px; gap: 8px; }
  body.pt .pp-jump a { padding: 0 14px; font-size: 14px; }
  body.pt .pp-sub { font-size: 30px; margin-top: 40px; }
  body.pt .pp-ledger-row { padding: 18px; gap: 6px 16px; }
  body.pt .pp-ledger-n { font-size: 38px; white-space: normal; }
  body.pt .pp-stat-n { font-size: 32px; }
  body.pt .pp-table { font-size: 15px; }
  body.pt .pp-table th { padding: 0 10px; }
  body.pt .pp-table td { padding: 12px 10px; }
  body.pt .pp-table :is(th, td):first-child { padding-left: 16px; }
  body.pt .pp-table :is(th, td):last-child { padding-right: 16px; }
  body.pt .pp-table caption { padding: 16px 16px 4px; }
  body.pt .pp-quote { font-size: 19px; padding-left: 18px; }
  body.pt .pp-quote-cite { padding-left: 21px; }
  body.pt .pp-tile { padding: 18px; }
  body.pt .pp-tile-t { font-size: 30px; }
  body.pt .pp-grid, body.pt .pp-grid-wide { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  body.pt .pp-more > summary::after { transition: none; }
}
