/* 2026-11-26: scoped homepage, official boards and recent-tip fixes. */
/* Match header and row grid geometry, removing the transparent row border and vertical gaps. */
.ref-leaders.sample-bars.is-full { gap:0; padding:0; }
.ref-leaders > .ref-colhead,
.ref-leaders.sample-bars > .sample-bar.leader-select {
  box-sizing:border-box; width:100%; margin:0; padding:0 12px;
  border:0; border-radius:0; align-items:stretch; gap:8px;
  grid-template-columns:22px 28px minmax(0,1fr) 58px 58px 64px;
}
.ref-leaders > .ref-colhead { border-bottom:1px solid var(--line); }
.ref-leaders.foul-leaders > .ref-colhead,
.ref-leaders.foul-leaders.sample-bars > .sample-bar.leader-select {
  grid-template-columns:22px 28px minmax(0,1fr) 58px 58px;
}
.ref-leaders > .ref-colhead .ref-sort,
.ref-leaders > .sample-bar .ref-count,
.ref-leaders > .sample-bar .ref-games {
  justify-self:stretch; align-self:stretch; min-width:0; min-height:100%; margin:0;
  padding:0 5px; box-sizing:border-box;
}
.ref-leaders > .ref-colhead .ref-sort.is-sorted { position:relative; }
.ref-leaders > .ref-colhead .ref-sort.is-sorted::after { margin-left:2px; flex-shrink:0; }
.ref-leaders > .sample-bar.leader-select:focus-visible { outline-offset:-3px; }
/* Pair names remain separately linked; keep bold weights and contain long names. */
.whistle-log .whistle-who.is-pair { align-items:flex-start; gap:4px; min-width:0; }
.whistle-log .whistle-who.is-pair .whistle-who-link {
  flex:0 1 auto; min-width:0; max-width:100%; white-space:normal;
  overflow-wrap:anywhere; font-size:14px; font-weight:850; letter-spacing:-.02em;
}
.whistle-log .whistle-who.is-pair .whistle-who-sep {
  flex:none; color:var(--muted); font-size:12px; line-height:1.4;
}
.whistle-log .whistle-player,.whistle-log .whistle-copy { min-width:0; }
/* The winner pill, not the row, communicates the outcome. Disable sticky touch hover. */
.jb-log .jb-log-table tbody tr:hover td { background:var(--paper); }
.jb-log .jb-log-table tbody tr:nth-child(even):hover td { background:color-mix(in srgb,var(--soft) 42%,var(--paper)); }
.jb-log .jb-log-table tbody tr:hover .jb-log-p.is-win,
.jb-log .jb-log-table .jb-log-p.is-win:hover { background:color-mix(in srgb,var(--brand) 38%,var(--paper)); }
.jb-log .jb-log-table td.jb-log-tip-cell { display:table-cell; }
.jb-log .jb-log-table th:nth-child(2),.jb-log .jb-log-table td:nth-child(2) { position:static; z-index:auto; }
.jb-log .jb-log-tip { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:center; }
.jb-log .jb-log-p { width:100%; }
.jb-log .jb-log-p:focus-visible { outline-offset:-2px; }
@media(max-width:800px) {
  .home-season-leaders .leaders-head > .leaders-title {
    position:absolute; width:1px; height:1px; padding:0; margin:-1px;
    overflow:hidden; clip-path:inset(50%); white-space:nowrap;
  }
  .home-season-leaders .leaders-head { gap:0; }
  .home-season-leaders .leaders-head-tools { width:100%; min-width:0; flex:1 1 auto; gap:6px; }
  .home-season-leaders .leaders-head-tools .metric-seg { flex:1 1 auto; min-width:0; display:grid; grid-template-columns:1fr 1fr; }
  .home-top-split .home-season-leaders .metric-seg button { min-width:0; padding:0 5px; font-size:12px; white-space:nowrap; }
  .home-top-split .home-season-leaders .metric-seg .tab-full { display:inline; }
  .home-top-split .home-season-leaders .metric-seg .tab-short { display:none; }
  .home-top-split .home-season-leaders .suspects-season select {
    width:7.2rem; min-width:0; max-width:7.2rem; min-height:44px; font-size:12px; field-sizing:fixed;
  }
  /* Stack paired names in the player column rather than competing for the official's space. */
  .whistle-log .whistle-who.is-pair { display:block; }
  .whistle-log .whistle-who.is-pair .whistle-who-link { display:block; line-height:1.25; }
  .whistle-log .whistle-who.is-pair .whistle-who-sep { display:none; }
}
@media(max-width:600px) {
  .ref-leaders > .ref-colhead,
  .ref-leaders.sample-bars > .sample-bar.leader-select {
    grid-template-columns:18px 24px minmax(0,1fr) 48px 48px 54px; gap:6px;
  }
  .ref-leaders.foul-leaders > .ref-colhead,
  .ref-leaders.foul-leaders.sample-bars > .sample-bar.leader-select {
    grid-template-columns:18px 24px minmax(0,1fr) 48px 48px; gap:6px;
  }
}
@media(max-width:700px) {
  .jb-log .jb-log-table { table-layout:fixed; width:100%; min-width:0; }
  .jb-log .jb-log-table th:first-child,.jb-log .jb-log-when { width:5.7rem; }
  .jb-log .jb-log-table th:nth-child(3),.jb-log .jb-log-kind { display:none; }
  .jb-log .jb-log-tip { gap:3px; }
  .jb-log .jb-log-p { gap:3px; padding:4px 3px; border-radius:8px; }
  .jb-log .jb-log-p .leader-face,.jb-log .jb-log-p .leader-face img,.jb-log .jb-log-p .leader-face-fallback { width:20px; height:20px; }
  .jb-log .jb-log-nm { white-space:normal; overflow-wrap:anywhere; overflow:visible; text-overflow:clip; font-size:11px; line-height:1.2; }
}
@media(max-width:370px) {
  .home-top-split .home-season-leaders .suspects-season select { width:6rem; max-width:6rem; }
  .home-top-split .home-season-leaders .metric-seg button { font-size:11px; padding:0 3px; }
  .jb-log .jb-log-table th:first-child,.jb-log .jb-log-when { width:5.2rem; }
  .jb-log .jb-log-p .leader-face,.jb-log .jb-log-p .leader-face img,.jb-log .jb-log-p .leader-face-fallback { width:16px; height:16px; }
}
