/* Shared by the prospect, news, and information pages. */
.page-head { margin: var(--s-5) 0 var(--s-4); }
.page-head .lede { max-width: 46rem; }
.tools { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-3); align-items: center; margin: 0 0 var(--s-4); }
.tools input[type="search"], .tools select {
  font: inherit; padding: 9px 12px; min-height: 44px; border: 1px solid var(--chalk); border-radius: var(--r-control); background: var(--card); color: var(--ink);
}
.tools input[type="search"] { flex: 1 1 14rem; }
.count { color: var(--muted); font-size: var(--t-sm); }
.tablewrap { overflow-x: auto; background: var(--card); border: 1px solid var(--chalk); border-radius: var(--r-control); }
.grid { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.grid th, .grid td { padding: 10px 12px; border-bottom: 1px solid var(--chalk); text-align: left; white-space: nowrap; }
.grid thead th { position: sticky; top: 0; background: var(--paper); color: var(--muted); font-weight: 600; z-index: 1; }
.grid thead th button { all: unset; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; justify-content: center; min-height: 32px; min-width: 32px; padding: 0 4px; box-sizing: border-box; }
.grid thead th button:focus-visible { outline: 3px solid var(--forest); outline-offset: 2px; }
.grid tbody tr:hover { background: var(--card); }
.grid .num { text-align: right; font-variant-numeric: tabular-nums; }
.grid .name a { color: var(--ink); font-weight: 600; text-decoration: none; display: inline-block; min-height: 24px; padding-top: 2px; }
.grid .name a:hover { color: var(--forest); text-decoration: underline; }
.grid .dim { color: var(--muted); }
.star { all: unset; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; font-size: 20px; color: var(--muted); }
.star:hover { background: var(--mustard-tint); }
.star.is-on { color: var(--mustard-ink); }
.star:focus-visible { outline: 3px solid var(--forest); outline-offset: 1px; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin: var(--s-4) 0; }
.cards { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); margin: 0; padding: 0; list-style: none; }
.cards > li > a, .tile { display: block; padding: var(--s-4); background: var(--card); border: 1px solid var(--chalk); border-radius: var(--r-control); color: var(--ink); text-decoration: none; height: 100%; }
.cards > li > a:hover { border-color: var(--forest); box-shadow: 0 2px 0 var(--mustard); }
.tile h3, .cards h3 { margin: 0 0 var(--s-1); font-size: var(--t-lg); }
.tile p, .cards p { margin: 0; color: var(--ink-soft); font-size: var(--t-sm); }
.chip { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--chalk); color: var(--ink); }
.chip--mustard { background: var(--mustard); }
.chip--brick { background: var(--brick-tint); color: var(--brick); }
.chip--forest { background: var(--forest-tint); color: var(--forest); }
.prose { max-width: 44rem; }
.prose h2 { margin-top: var(--s-6); }
.prose p, .prose li { line-height: 1.6; }
.empty { color: var(--muted); }
.delta-up { color: var(--forest); font-weight: 600; }
.delta-down { color: var(--brick); font-weight: 600; }
section { margin-bottom: var(--s-6); }
.hero { padding: var(--s-5) 0 var(--s-3); }
.hero .page-title { font-size: clamp(1.8rem, 5vw, 2.6rem); max-width: 22ch; }
.hero__acts { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-4); }
.hero__acts .btn { min-width: 12rem; }
.hero__go { margin-top: var(--s-2) !important; color: var(--forest) !important; font-weight: 600; }
.board { list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--chalk); border-radius: var(--r-control); }
.board__row { display: grid; grid-template-columns: 2.5em 1.2em 1fr auto; align-items: center; gap: var(--s-2); padding: var(--s-2) var(--s-3); border-bottom: 1px solid var(--chalk); cursor: grab; }
.board__row:last-child { border-bottom: 0; }
.board__row.is-dragging { opacity: .5; }
.board__row.is-over { box-shadow: inset 0 3px 0 var(--mustard); }
.board__n { font-weight: 700; color: var(--forest); text-align: right; }
.board__grip { color: var(--muted); }
.board__who { display: grid; min-width: 0; }
.board__who a { font-weight: 600; color: var(--ink); text-decoration: none; min-height: 24px; }
.board__who .dim { font-size: var(--t-sm); color: var(--muted); }
.board__acts { display: flex; gap: 2px; }
.board__empty { padding: var(--s-5); color: var(--muted); }
@media print {
  .bar, .no-print, .site-foot, .board__acts, .board__grip, .skip { display: none !important; }
  .board__row { break-inside: avoid; }
}
.cards .card-title { margin: 0 0 var(--s-1); font-size: var(--t-lg); }
.tools label.count { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; cursor: pointer; }
.tools input[type="checkbox"] { width: 24px; height: 24px; accent-color: var(--forest); }
.board__row { grid-template-columns: 2.5em 1.2em 1fr auto auto; }
.board__lg { display: flex; justify-content: flex-end; }
@media (max-width: 560px) {
  .board__row { grid-template-columns: 2.2em 1fr auto; }
  .board__grip { display: none; }
  .board__lg { grid-column: 2 / -1; justify-content: flex-start; }
}
.player-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-3); }
.player-head .star { width: 44px; height: 44px; font-size: 26px; }
.pt-controls .tools { margin-bottom: var(--s-2); }
.pt-controls select { max-width: 100%; }
.pt-grid .pt-star { width: 40px; padding-left: 6px; padding-right: 0; }
.pt-grid thead .pt-star button { color: var(--mustard-ink); font-size: 16px; }
.pt-grid .name { white-space: nowrap; }
.pt-il { margin-left: 6px; font-size: 10px; }
.pt-check { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; cursor: pointer; }
.pt-check input { width: 24px; height: 24px; accent-color: var(--forest); }
.back-nav { margin: var(--s-3) 0 0; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-2) 0 0; font-weight: 600; color: var(--forest); text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.row-total th, .row-total td { font-weight: 700; background: var(--paper); }
.player-head h3, section h3 { font-size: var(--t-md); margin: var(--s-4) 0 var(--s-2); }
.pt-check input { flex: 0 0 24px; min-width: 24px; }
.roster-picker { font: inherit; min-height: 44px; padding: 6px 10px; border: 1px solid var(--chalk); border-radius: var(--r-control); background: var(--card); max-width: 100%; }

/* ---------- the player Spotlight ---------- */
.spot { margin: var(--s-3) 0 var(--s-4); --rail: var(--pos-u); }
.spot .hero-live__media .face { --face: 132px; box-shadow: 0 0 0 3px var(--rail), 0 0 44px color-mix(in srgb, var(--rail) 40%, transparent); }
.spot__row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.spot__name { margin: 0; font: 600 clamp(28px, 5vw, 40px)/1.05 var(--serif); letter-spacing: -.01em; }
.spot__facts { margin: 0; color: var(--ink-soft); }
.spot__nums { display: grid; grid-auto-flow: column; gap: var(--s-4); justify-content: start; align-items: start; }
.spot__nums .big-num { font-size: clamp(28px, 4.6vw, 44px); }
.spot__nums .big-num small { max-width: 11rem; }
.spot__side { display: grid; gap: var(--s-2); justify-items: end; align-self: start; }
@media (max-width: 719px) { .spot__nums { grid-auto-flow: row; gap: var(--s-2); } .spot__side { justify-items: center; } .spot .hero-live__media .face { --face: 112px; } }
.spot .big-num.is-up { color: var(--live); } .spot .big-num.is-down { color: var(--danger); }

/* last-15 bars under the hero: one bar per game, the kit's rail color */
.spot-bars { display: flex; gap: 3px; align-items: flex-end; height: 40px; margin: 0; padding: 0; list-style: none; }
.spot-bars li { flex: 1; min-width: 6px; background: var(--rail); border-radius: 3px 3px 0 0; opacity: .85; height: calc(var(--v, 0) * 100%); min-height: 2px; }
.spot-bars li.is-zero { background: var(--line); }
.spot-bars__cap { font-size: var(--t-xs); color: var(--muted); margin: 4px 0 0; }

/* ---------- the live home ---------- */
.home-now { display: grid; gap: var(--s-3); margin: 0 0 var(--s-5); }
.home-now__grid { display: grid; grid-template-columns: 1fr; gap: var(--s-3); }
@media (min-width: 900px) { .home-now__grid { grid-template-columns: 1.3fr 1fr; } }
.home-now .hero-live { padding: var(--s-4); }
.home-now .hero-live .big-num { font-size: clamp(24px, 3.6vw, 36px); }
.home-now .ring-clock { --ring: 88px; }
.home-top { display: grid; gap: 2px; }
.home-top__row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.home-top .rail { text-decoration: none; color: inherit; margin: 0; }
.home-top .rail:hover { background: color-mix(in srgb, var(--rail) 14%, transparent); }
.league-rails { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.league-rails .rail { --rail-cols: auto 1fr auto; text-decoration: none; color: inherit; }
.league-rails .rail:hover { background: color-mix(in srgb, var(--rail) 14%, transparent); }

/* Paper: section titles carry the forest underline; stars and faces get color (Fix 40) */
:root:not([data-theme="night"]) .section-title { position: relative; padding-bottom: 6px; }
:root:not([data-theme="night"]) .section-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--forest), var(--mustard)); }
:root:not([data-theme="night"]) .home-top .rail__n { color: var(--forest); }
:root:not([data-theme="night"]) body { background: radial-gradient(900px 400px at 50% -200px, #e3eee6 0%, var(--paper) 60%) fixed, var(--paper); }
:root:not([data-theme="night"]) .star[aria-pressed="true"] { color: var(--mustard-strong); }
/* the quiet-market card (Fix 41) */
.quiet__row { display: grid; gap: 4px; }
.quiet__h { font-size: var(--t-xs); color: var(--muted); font-weight: 600; }
.quiet__faces { display: flex; gap: 10px; flex-wrap: wrap; }
.quiet__face { display: grid; justify-items: center; gap: 2px; text-decoration: none; color: inherit; font-size: var(--t-xs); }

/* Fix 131: on phones the whole hero is one centered column: pills, name, meta, the numbers, the tracker */
@media (max-width: 719px) {
  .spot .hero-live__main, .spot .spot__side { text-align: center; align-items: center; justify-items: center; display: grid; }
  .spot .spot__row { justify-content: center; }
  .spot .spot__facts { justify-content: center; text-align: center; }
  .spot__nums { justify-content: center; justify-items: center; text-align: center; }
  .spot__nums .big-num small { max-width: none; }
  .spot-track { width: 100%; }
  .spot-bars { width: 100%; }
  .spot-bars__cap { text-align: center; }
}
.spot-track__spans { display: flex; gap: 6px; justify-content: center; margin-top: 6px; }
.spot-bars__cap .is-up { color: var(--live); } .spot-bars__cap .is-down { color: var(--danger); }
