/* ==========================================================================
   Prime Time: Draft Central (/draft/).
   Page layer on top of assets/prime.css, assets/prime-pages.css (pp-*) and
   assets/team-kits.css. Every class here is dc-*.
   The Year Ten board is one CSS grid: a sticky franchise header row, then one
   row per round with content-visibility so off-screen rounds cost nothing.
   On phones the same rows stack into one column and each pick names its boss.
   ========================================================================== */

/* ---- header: the 1.01 pick ---- */
body.pt .dc-feat { display: block; padding: 14px 14px 20px; border-radius: 16px; }
body.pt .dc-feat .pt-ph-card { margin-bottom: 16px; }
body.pt .dc-feat-t { display: flex; flex-direction: column; gap: 2px; padding: 0 6px; }
body.pt .dc-feat-t a { color: var(--pt-tx); font-weight: 700; display: inline-block; min-height: 44px; padding: 14px 0; margin: -14px 0; }
body.pt .dc-feat-t a:hover { color: var(--pt-ac); }
body.pt .dc-facts { margin-top: 40px; }
body.pt .dc-facts .pp-stat-n { font-size: 34px; }
body.pt .dc-who { display: flex; align-items: center; gap: 12px; margin-top: 12px; min-width: 0; font-family: var(--pt-display); font-stretch: 68%; font-weight: 800; font-size: 34px; text-transform: uppercase; line-height: 1; }
body.pt .dc-who .fbi-team-chip { gap: 12px; }
body.pt .dc-who .fbi-crest { width: 36px; height: 40px; }
body.pt .pp-stat-s a { color: var(--pt-tx); font-weight: 700; }
body.pt .pp-stat-s a:hover { color: var(--pt-ac); }

/* ---- round jump chips ---- */
body.pt .dc-rounds { margin-bottom: 14px; }
body.pt .dc-rl-lab { margin-bottom: 8px; font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--pt-tx3); }
body.pt .dc-rchips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; scrollbar-color: var(--pt-line-2) transparent; }
body.pt .dc-rchip { flex: none; min-width: 48px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; }

/* ---- the board grid ---- */
body.pt .dc-desk { overflow: hidden; }
body.pt .dc-scroll { overflow: auto; max-height: min(84vh, 880px); overscroll-behavior-x: contain; scrollbar-color: var(--pt-line-2) transparent; }
body.pt .dc-scroll:focus-visible { outline-offset: -2px; }
/* Every row carries the same template, so the columns line up without subgrid
   (content-visibility applies containment, which a subgrid cannot live inside). */
body.pt .dc-grid { --dc-cols: 10; min-width: calc(72px + 164px * var(--dc-cols)); }
body.pt .dc-head, body.pt .dc-round { display: grid; grid-template-columns: 72px repeat(var(--dc-cols), minmax(164px, 1fr)); }
body.pt .dc-head { position: sticky; top: 0; z-index: 3; background: var(--pt-s1); border-bottom: 1px solid var(--pt-line-2); }
body.pt .dc-corner { position: sticky; left: 0; z-index: 4; display: grid; place-items: center; background: var(--pt-s1); font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pt-tx3); border-right: 1px solid var(--pt-line); }
body.pt .dc-mh { display: grid; gap: 2px; align-content: center; min-height: 72px; padding: 10px 14px; color: var(--pt-tx); border-right: 1px solid var(--pt-line); min-width: 0; }
body.pt .dc-mh:last-child { border-right: 0; }
body.pt .dc-mh:hover { color: var(--pt-ac); }
body.pt .dc-mh strong { font-size: 17px; font-weight: 700; line-height: 1.2; }
body.pt .dc-mh small { font-size: 14px; color: var(--pt-tx3); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.pt .dc-round { content-visibility: auto; contain-intrinsic-size: auto 112px; border-bottom: 1px solid var(--pt-line); }
body.pt .dc-round.is-first { contain-intrinsic-size: auto 300px; }
body.pt .dc-round:last-child { border-bottom: 0; }
body.pt .dc-round:nth-child(even) .dc-c { background: rgba(255, 255, 255, .018); }
body.pt .dc-r { position: sticky; left: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 10px 4px; background: var(--pt-s1); border-right: 1px solid var(--pt-line); text-align: center; }
body.pt .dc-r strong { font-family: var(--pt-display); font-stretch: 84%; font-weight: 700; font-size: 22px; font-variant-numeric: tabular-nums; color: var(--pt-tx); }
body.pt .dc-r span { font-size: 14px; color: var(--pt-tx3); }
body.pt .dc-c { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 10px 12px 14px; border-right: 1px solid var(--pt-line); }
body.pt .dc-c:last-child { border-right: 0; }
body.pt .dc-c-top { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; font-variant-numeric: tabular-nums; color: var(--pt-tx3); }
body.pt .dc-c-pk { font-size: 16px; color: var(--pt-tx2); }
body.pt .dc-c-t { display: grid; gap: 2px; min-width: 0; }
body.pt .dc-c-t strong { font-size: 16px; font-weight: 700; line-height: 1.25; color: var(--pt-tx); overflow-wrap: anywhere; }
body.pt .dc-c-t span { font-size: 14px; color: var(--pt-tx2); }
body.pt .dc-c-by { display: none; }
body.pt .dc-c-hero .dc-c-t strong { font-size: 17px; }
body.pt .dc-c.is-top { background: rgba(212, 255, 63, .07); box-shadow: inset 0 0 0 2px var(--pt-ac); }
body.pt .dc-c.is-top .dc-c-pk, body.pt .dc-c.is-top .dc-c-t strong { color: var(--pt-ac); }
body.pt .dc-c.is-empty { color: var(--pt-tx3); font-size: 14px; }
body.pt .dc-def { text-transform: uppercase; }
body.pt .dc-err { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
body.pt .dc-err p { color: var(--pt-tx2); }

/* ---- 1.01 lineage ---- */
body.pt .dc-lin-card .pt-ph-card { margin-bottom: 14px; }
body.pt .dc-lin-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; min-height: 24px; }
body.pt .dc-lin .pp-tile .pp-tag { position: static; flex: none; }
body.pt .dc-lin .pp-tile-t { margin-top: 4px; }
body.pt .dc-lin .pp-tile-t a { color: var(--pt-tx); display: inline-block; max-width: 100%; min-height: 44px; padding: 8px 0; margin: -8px 0; }
body.pt .dc-lin .pp-tile-t a:hover { color: var(--pt-ac); }
body.pt .dc-lin-card.is-now { border-color: var(--pt-line-2); }
body.pt .dc-lin-card.pp-tile.is-ac { border-color: var(--pt-line); }
body.pt .dc-by { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--pt-tx2); }
body.pt .dc-by .fbi-team-chip { color: var(--pt-tx); font-weight: 700; }
body.pt .dc-lin-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* ---- year cards ---- */
body.pt .dc-years { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
body.pt .dc-yr { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 22px; min-width: 0; transition: border-color .15s var(--pt-ease); }
body.pt .dc-yr:hover { border-color: var(--pt-line-2); }
body.pt .dc-yr-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
body.pt .dc-yr-n { font-size: 40px; line-height: 1; color: var(--pt-tx); }
body.pt .dc-yr-k { font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--pt-tx3); }
body.pt .dc-yr-facts { display: grid; gap: 0; margin: 0; }
body.pt .dc-yr-facts > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); /* 96: "Champion" clears its crest (verify) */ gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--pt-line); }
body.pt .dc-yr-facts dt { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pt-tx3); }
body.pt .dc-yr-facts dd { margin: 0; display: flex; align-items: center; gap: 10px; min-width: 0; flex-wrap: wrap; }
body.pt .dc-yr-facts dd .pt-ph { flex: none; }
body.pt .dc-yr-p { display: grid; gap: 1px; min-width: 0; flex: 1; }
body.pt .dc-yr-p b { font-size: 16px; color: var(--pt-tx); line-height: 1.3; }
body.pt .dc-yr-p b a { color: var(--pt-tx); display: inline-block; max-width: 100%; min-height: 44px; padding: 12px 0; margin: -12px 0; }
body.pt .dc-yr-p b a:hover, body.pt .dc-yr-p span a:hover { color: var(--pt-ac); }
body.pt .dc-yr-p span { font-size: 14px; color: var(--pt-tx3); }
body.pt .dc-yr-p span a { color: var(--pt-tx2); font-weight: 700; display: inline-block; min-height: 44px; padding: 14px 0; margin: -14px 0; }
body.pt .dc-yr-facts .fbi-team-chip { font-weight: 700; color: var(--pt-tx); }
body.pt .dc-yr-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: auto; font-size: 15px; font-weight: 700; color: var(--pt-tx2); }
body.pt .dc-yr-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--pt-radius); }
body.pt .dc-yr:hover .dc-yr-link { color: var(--pt-ac); }
body.pt .dc-yr a:not(.dc-yr-link) { position: relative; z-index: 1; }
body.pt .pp-sec-note a { color: var(--pt-tx); font-weight: 700; display: inline-block; min-height: 44px; padding: 12px 0; margin: -12px 0; }
body.pt .pp-sec-note a:hover { color: var(--pt-ac); }

/* ---- superlatives ---- */
body.pt .dc-sup .pp-tile-t { margin-top: 4px; }
body.pt .dc-sup .pp-tile-foot { font-size: 14px; color: var(--pt-tx3); }
body.pt .dc-sup .pp-tile-d a { color: var(--pt-tx); font-weight: 700; }
body.pt .dc-sup .pp-tile-d a:hover { color: var(--pt-ac); }

@supports selector(:has(*)) {
  body.pt .dc-yr a:focus-visible { outline: none; }
  body.pt .dc-yr:has(.dc-yr-link:focus-visible) { outline: 2px solid var(--pt-ac); outline-offset: 3px; }
  body.pt .dc-yr a:not(.dc-yr-link):focus-visible { outline: 2px solid var(--pt-ac); }
}

/* ---- responsive ---- */
@media (max-width: 1239px) {
  body.pt .dc-lin-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  body.pt .dc-lin-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.pt .dc-years { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  /* the board becomes one column: each round is a list, each pick names its boss */
  body.pt .dc-scroll { max-height: none; overflow: visible; }
  body.pt .dc-grid { display: block; min-width: 0; }
  body.pt .dc-head { display: none; }
  body.pt .dc-round { display: block; contain-intrinsic-size: auto 1200px; }
  body.pt .dc-round.is-first { contain-intrinsic-size: auto 2600px; }
  body.pt .dc-round:not(.is-first):not(:target) { display: none; }
  body.pt .dc-grid:has(.dc-round:target) .dc-round.is-first:not(:target) { display: none; }
  body.pt .dc-rchip[aria-current="true"] { background: var(--pt-ac); border-color: var(--pt-ac); color: var(--pt-ink); }
  body.pt .dc-round { scroll-margin-top: 16px; }
  body.pt .dc-r { position: static; flex-direction: row; justify-content: flex-start; gap: 12px; padding: 14px 18px 8px; border-right: 0; text-align: left; }
  body.pt .dc-c { display: grid; grid-template-columns: 56px minmax(0, 1fr); grid-template-areas: "top top" "face text"; gap: 6px 14px; padding: 12px 18px; border-right: 0; border-top: 1px solid var(--pt-line); }
  body.pt .dc-c .dc-c-top { grid-area: top; justify-content: flex-start; gap: 12px; }
  body.pt .dc-c .pt-ph-card { grid-area: face; width: 56px; aspect-ratio: 1; border-radius: 50%; }
  body.pt .dc-c .pt-ph-card img { width: 225%; left: 50%; top: 3%; bottom: auto; }
  body.pt .dc-c:not(.dc-c-hero) { grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "text"; }
  body.pt .dc-c-t { grid-area: text; }
  body.pt .dc-c-by { display: inline-flex; align-items: center; min-height: 44px; margin: -6px 0; font-size: 15px; font-weight: 700; color: var(--pt-tx2); }
  body.pt .dc-c-by:hover { color: var(--pt-ac); }
  body.pt .dc-c.is-top { box-shadow: inset 3px 0 0 var(--pt-ac); }
  body.pt .dc-lin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body.pt .dc-facts .pp-stat-n, body.pt .dc-who { font-size: 30px; }
  body.pt .dc-feat .pp-feature-n { font-size: 38px; }
  body.pt .dc-years { grid-template-columns: minmax(0, 1fr); }
  body.pt .dc-yr { padding: 18px; }
  body.pt .dc-yr-facts > div { grid-template-columns: 96px minmax(0, 1fr); }
}
@media (max-width: 480px) {
  body.pt .dc-lin-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  body.pt .dc-yr { transition: none; }
}
