/*
 * css/boards.css - the public leaderboards (leaderboards.php) and Hall of Fame (hall-of-fame.php), 2026-10-15.
 * Built on the shared public components in css/landing.css (tokens, bands, tabs, call to action); every rule is scoped
 * under #ld and prefixed pb-. Nothing moves.
 */

/* ---- leaderboards: the tab bar sits on the board card ---- */
/* one column width for the whole page: the hero, the board and the Hall of Fame lists line up */
#ld .pb-page .ld-band-in { max-width: 860px; }
#ld .pb-board { padding: 20px 22px 18px; background: var(--steel); border: 1px solid var(--line); border-radius: 0 0 8px 8px; }
#ld .pb-board-head h2 { font: 600 24px/1.15 var(--head); letter-spacing: 1px; text-transform: uppercase; color: #fff; }
#ld .pb-board-head p { margin-top: 4px; color: var(--muted); font-size: 15px; }
#ld .pb-more { margin-top: 14px; color: var(--muted); font-size: 15px; }

/* display: table undoes css/responsive.css, which turns every table into a scrolling block on phones; long names wrap instead */
#ld .pb-table { display: table; width: 100%; margin-top: 14px; border-collapse: collapse; font-size: 15px; }
#ld .pb-table th { padding: 8px 10px; text-align: left; font: 600 12px var(--head); letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
#ld .pb-table td { padding: 9px 10px; border-bottom: 1px solid var(--steel3); color: var(--text); }
#ld .pb-table tbody tr:last-child td { border-bottom: 0; }
#ld .pb-table tbody tr:nth-child(even) td { background: rgba(255,255,255,.018); }
#ld .pb-table .pb-rank { width: 3.2em; text-align: center; font: 600 16px var(--head); color: var(--dim); }
#ld .pb-table .pb-num { width: 7.5em; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
#ld .pb-table th.pb-num { text-align: right; }
#ld .pb-table .pb-name { overflow-wrap: anywhere; }
#ld .pb-table .pb-name a { color: var(--wire); font-weight: 600; }
#ld .pb-table .pb-name a:hover { text-decoration: underline; }
#ld .pb-table tr.pb-top .pb-rank { color: var(--amber-hi); }
#ld .pb-table tr.pb-top:first-child .pb-rank { font-size: 19px; }

#ld .pb-empty { margin-top: 14px; padding: 14px 16px; border: 1px dashed var(--line); border-radius: 6px; color: var(--muted); font-size: 15px; }

/* ---- Hall of Fame: one line per record, title on the left, name and date on the right ---- */
#ld .pb-fame { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
#ld .pb-fame li {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, auto); grid-template-areas: "title name" "title meta";
  gap: 2px 16px; align-items: center; padding: 12px 16px; background: var(--steel); border: 1px solid var(--line); border-left: 3px solid var(--amber); border-radius: 6px;
}
#ld .ld-band-alt .pb-fame li { background: var(--ink); }
#ld .pb-fame-title { grid-area: title; font: 600 16px/1.25 var(--head); letter-spacing: .6px; text-transform: uppercase; color: #fff; }
#ld .pb-fame-name { grid-area: name; justify-self: end; text-align: right; overflow-wrap: anywhere; }
#ld .pb-fame-name a { color: var(--wire); font-weight: 600; }
#ld .pb-fame-name a:hover { text-decoration: underline; }
#ld .pb-fame-name b { color: var(--text); }
#ld .pb-fame-meta { grid-area: meta; justify-self: end; color: var(--dim); font-size: 13px; }
#ld .pb-fame-meta:empty { display: none; }
#ld .pb-withheld { color: var(--muted); font-style: italic; }
#ld .pb-fame li.pb-open { border-left-color: var(--line); }
#ld .pb-fame li.pb-open .pb-fame-title { color: var(--muted); }

@media (max-width: 640px) {
  #ld .pb-board { padding: 14px 12px 12px; }
  #ld .pb-board-head h2 { font-size: 21px; }
  #ld .pb-table { font-size: 14px; }
  #ld .pb-table th, #ld .pb-table td { padding: 8px 6px; }
  #ld .pb-table .pb-rank { width: 2.4em; }
  #ld .pb-table .pb-num { width: auto; }
  #ld .pb-fame li { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "name" "meta"; padding: 11px 13px; }
  #ld .pb-fame-name, #ld .pb-fame-meta { justify-self: start; text-align: left; }
}
