/* Scoreboard — the new-look sheet (previewed 2026-10-25 as
 * css/scoreboard-preview.css, approved by Johnny the same night —
 * "Yes this is better" — and promoted to the real Scoreboard in
 * the rollout).
 *
 * Johnny's verdict on the sports pages: "jumbled together, not
 * attractive... nothing like ESPN or Barstool." This sheet is the
 * answer, on the Scoreboard first: ESPN scoreboard discipline
 * (one slim league bar, games as flat rows, scores the largest
 * type on the row, whitespace doing the grouping) in the
 * clubhouse colors. No bordered game cards, no standing chip
 * wall, no hero block — the first screen is games.
 *
 * Every class is sbp- prefixed and every color runs through the
 * member-theme variables (--amber, --panel, --line, --ink,
 * --header-bg, --accent-rgb…), so a Top Shelf member's theme
 * repaints this page exactly like the rest of the house. The
 * status colors (live red, delayed amber, awaiting tan) are
 * semantic and stay literal, as they do house-wide. */

/* ---------- slim page head: one line, title + toggle ---------- */
.sbp{padding:14px 0 34px}
.sbp-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.sbp-title{font-family:var(--font-display);font-weight:600;
  font-size:1.4rem;letter-spacing:.05em;color:var(--ink);margin:0}
.sbp-tag{font-size:.66rem;font-weight:700;letter-spacing:.13em;
  text-transform:uppercase;color:var(--amber);
  border:1px solid var(--line);border-radius:999px;padding:3px 9px}
/* On the real Scoreboard the head's pill slot carries the Game
   Day link that used to sit in the old live section head
   ("Just your teams — the Game Day screen →"), so the path
   survives the slim head in the same visual weight. */
a.sbp-tag{text-decoration:none}
a.sbp-tag:hover{border-color:var(--amber);color:var(--amber-hi)}
.sbp-toggle{margin-left:auto;display:flex;gap:2px;
  background:var(--panel);border:1px solid var(--line);
  border-radius:999px;padding:3px}
.sbp-tog{appearance:none;border:0;background:transparent;
  color:var(--ink-dim);font:inherit;font-weight:700;font-size:.85rem;
  letter-spacing:.02em;padding:6px 14px;border-radius:999px;cursor:pointer}
.sbp-tog.is-on{background:var(--amber);color:var(--on-accent)}
.sbp-tog:focus-visible{outline:2px solid var(--amber-hi);outline-offset:2px}

/* ---------- finals date stepper (finals mode only) ---------- */
.sbp-stepper{display:flex;align-items:center;gap:16px;margin-top:12px}
.sbp-stepper[hidden]{display:none}
.sbp-step{appearance:none;border:1px solid var(--line);
  background:var(--panel);color:var(--ink);border-radius:999px;
  width:34px;height:34px;font-size:1.1rem;line-height:1;cursor:pointer}
.sbp-step:disabled{opacity:.35;cursor:default}
.sbp-date{font-family:var(--font-display);font-weight:600;
  font-size:1.12rem;letter-spacing:.03em;color:var(--ink)}

/* ---------- the one slim sticky league bar ---------- */
.sbp-barwrap{position:sticky;top:var(--sbp-bar-top,110px);z-index:40;
  margin-top:12px;background:var(--header-bg);
  backdrop-filter:blur(8px);border-bottom:1px solid var(--line)}
.sbp-barflex{display:flex;align-items:stretch;gap:8px}
.sbp-bar{display:flex;flex:1 1 auto;gap:2px;overflow-x:auto;
  scrollbar-width:none;-webkit-overflow-scrolling:touch}
.sbp-bar::-webkit-scrollbar{display:none}
.sbp-lbtn{appearance:none;background:none;border:0;
  border-bottom:2px solid transparent;color:var(--ink-dim);
  font:inherit;font-weight:700;font-size:.84rem;letter-spacing:.06em;
  text-transform:uppercase;padding:11px 10px 9px;
  white-space:nowrap;cursor:pointer}
.sbp-lbtn:hover{color:var(--ink)}
.sbp-lbtn.is-on{color:var(--amber-hi);border-bottom-color:var(--amber)}
.sbp-lbtn:focus-visible{outline:2px solid var(--amber-hi);outline-offset:-2px}

/* ---------- college hoops gender switch (inside the section) --- */
.sbp-gswitch{display:inline-flex;gap:0;margin:2px 0 8px;
  border:1px solid var(--line);border-radius:999px;overflow:hidden}
.sbp-gswitch button{appearance:none;background:none;border:0;
  color:var(--ink-dim);font:inherit;font-weight:700;font-size:.8rem;
  letter-spacing:.04em;padding:6px 16px;cursor:pointer}
.sbp-gswitch button.is-on{background:var(--amber);color:#14100a}
.sbp-gswitch button:focus-visible{outline:2px solid var(--amber-hi);
  outline-offset:-2px}
.sbp-filterbtn{appearance:none;align-self:center;flex:none;
  border:1px solid var(--line);background:var(--panel);color:var(--ink);
  border-radius:999px;padding:6px 13px;font:inherit;font-weight:700;
  font-size:.82rem;cursor:pointer;white-space:nowrap}
.sbp-filterbtn[hidden]{display:none}
.sbp-filterbtn span{color:var(--amber);margin-left:6px}
.sbp-filterbtn:focus-visible{outline:2px solid var(--amber-hi);outline-offset:2px}

/* ---------- college filter sheet (behind the Filter tap) ------- */
.sbp-sheet{padding:6px 0 10px;border-top:1px solid var(--line-soft)}
.sbp-sheet[hidden]{display:none}
.sbp-opt{display:flex;align-items:baseline;justify-content:space-between;
  gap:14px;width:100%;appearance:none;background:none;border:0;
  border-bottom:1px solid var(--line-soft);color:var(--ink);
  font:inherit;font-size:.96rem;padding:10px 2px;cursor:pointer;
  text-align:left}
.sbp-opt:last-child{border-bottom:0}
.sbp-opt.is-on{color:var(--amber-hi);font-weight:700}
.sbp-opt-n{color:var(--ink-faint);font-size:.8rem;white-space:nowrap}
.sbp-opt:focus-visible{outline:2px solid var(--amber-hi);outline-offset:-2px}

/* ---------- as-of line: one quiet line, never prose ------------ */
.sbp-meta{font-size:.78rem;color:var(--ink-faint);margin:12px 0 0}
.sbp-meta:empty{margin:0}

/* ---------- sections: name + source line, nothing else --------- */
.sbp-sec{margin-top:6px}
.sbp-sechead{display:flex;align-items:baseline;justify-content:space-between;
  gap:12px;padding:18px 0 2px}
.sbp-secname{font-family:var(--font-display);font-weight:600;
  font-size:1.04rem;letter-spacing:.15em;text-transform:uppercase;
  color:var(--ink);margin:0}
.sbp-secsrc{font-size:.72rem;color:var(--ink-faint);text-align:right}
.sbp-evline{font-size:.88rem;color:var(--ink-dim);margin:2px 0 0}
.sbp-countline{font-size:.8rem;color:var(--ink-faint);margin:2px 0 0}

/* ---------- game rows: flat, hairline-divided ------------------ */
.sbp-row{display:grid;grid-template-columns:80px 1fr;gap:3px 12px;
  align-items:center;width:100%;appearance:none;background:none;
  border:0;border-bottom:1px solid var(--line-soft);
  padding:11px 2px;font:inherit;color:var(--ink);
  text-align:left;cursor:pointer}
.sbp-row:hover{background:rgba(var(--accent-rgb),.045)}
.sbp-row:focus-visible{outline:2px solid var(--amber-hi);outline-offset:-2px}
.sbp-status{font-size:.68rem;font-weight:700;letter-spacing:.09em;
  text-transform:uppercase;color:var(--ink-faint);line-height:1.5}
.sbp-st2{display:block;font-size:.66rem;font-weight:600;
  letter-spacing:.02em;text-transform:none;color:var(--ink-faint)}
.sbp-status .sbp-live{color:#ff6b6b}
.sbp-dot{display:inline-block;width:7px;height:7px;border-radius:50%;
  background:#e5484d;margin-right:5px;vertical-align:1px;
  animation:sbp-pulse 1.6s ease-in-out infinite}
@keyframes sbp-pulse{0%,100%{opacity:1}50%{opacity:.25}}
.sbp-status .sbp-delayed{color:#e8b34b}
.sbp-status .sbp-await{color:#b8a888}
.sbp-tlines{display:flex;flex-direction:column;gap:4px;min-width:0}
.sbp-tline{display:flex;align-items:baseline;justify-content:space-between;
  gap:14px;min-width:0}
.sbp-tname{font-size:1rem;color:var(--ink);white-space:nowrap;
  overflow:hidden;text-overflow:ellipsis}
.sbp-rank{font-family:var(--font-display);font-weight:600;
  font-size:.82rem;color:var(--amber);margin-right:6px;letter-spacing:.03em}
.sbp-rec{color:var(--ink-faint);font-size:.8rem;margin-left:7px}
.sbp-score{font-family:var(--font-display);font-weight:600;
  font-size:1.5rem;line-height:1;color:var(--ink);
  min-width:30px;text-align:right}
.sbp-tline.is-win .sbp-tname{font-weight:700}
.sbp-tline.is-lose .sbp-tname,
.sbp-tline.is-lose .sbp-score{color:var(--ink-faint)}
.sbp-tline.is-lose .sbp-rank{color:var(--ink-faint)}
.sbp-subline{grid-column:2;font-size:.8rem;color:var(--ink-faint);
  line-height:1.45}
.sbp-subline b{color:var(--ink-dim);font-weight:700}

/* ---------- quiet single-line states --------------------------- */
.sbp-empty{font-size:.93rem;color:var(--ink-dim);margin:0;padding:10px 2px}
.sbp-load{font-size:.93rem;color:var(--ink-faint);margin:0;padding:14px 2px}

/* ---------- desktop: same system, more air --------------------- */
@media(min-width:760px){
  .sbp-title{font-size:1.55rem}
  .sbp-row{grid-template-columns:100px 1fr;padding:13px 6px}
  .sbp-score{font-size:1.65rem}
  .sbp-tname{font-size:1.04rem}
}
