/* =========================================================
   THE ROUND ROBIN — Hall of Fame shared components
   Loaded by /pro-football-hof/players/ and /classes/ via the
   layout's `extra_css` front-matter hook.

   These lived twice, once per page, and had drifted apart in ways that
   were invisible until the two copies were put side by side:

     .hof-page          one copy had picked up width:100% / min-width:0 /
                        box-sizing, an overflow fix the other never got.
                        The fixed version wins here, for both pages.
     .hof-stepper-arrow 32px on one page, 36px on the other, same control.
                        Unified at 36px -- the larger target, and neither
                        was near the 44px minimum anyway.
     .hof-stepper-current  110px/7px/16px/--r-xl/13px vs
                        160px/9px/18px/--r-pill/14px.

   The stepper "current" chip is genuinely two different controls sharing
   one name: a static label on /players/, an interactive dropdown trigger
   on /classes/. The shape is unified here; min-width and cursor stay as
   per-page overrides, because those follow content and affordance.

   Requires assets/css/tokens.css (loaded ahead of this by the layout).
   ========================================================= */

.hof-page {
  width: 100%; max-width: var(--max); min-width: 0;
  margin: 0 auto; padding: 0 var(--pad) 64px; box-sizing: border-box;
}
@media (max-width: 760px) { .hof-page { padding: 0 16px 48px; } }

.hof-section-head { font-family: var(--fb); font-weight: 600; font-size: 20px; margin: 0 0 6px; }
/* Heading + its "Updated Sep 21" stamp (TRRDataStatus.stampHtml) on one baseline. */
.hof-section-head-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 6px; }
.hof-section-head-row .hof-section-head { margin: 0; }
.hof-section-sub {
  font-size: 13px; color: var(--sub); line-height: 1.65; margin: 0 0 20px;
  padding-left: 14px; border-left: 2px solid rgba(255,119,4,0.35);
}
.hof-section-sub strong { color: var(--text); }
.hof-section-sub a { color: var(--orange); text-decoration: none; font-weight: 700; }

.hof-stepper-arrow {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: var(--r-circle);
  border: 1px solid var(--border); background: var(--card); color: var(--sub);
  font-size: 18px; line-height: 1; cursor: pointer;
}
.hof-stepper-arrow:hover { border-color: var(--orange); color: var(--text); }
.hof-stepper-arrow:disabled { opacity: 0.35; cursor: default; }
.hof-stepper-arrow:disabled:hover { border-color: var(--border); color: var(--sub); }

.hof-stepper-current {
  padding: var(--s-2) var(--s-4); border-radius: var(--r-pill);
  border: 1px solid var(--border); background: var(--card); color: var(--text);
  font-family: var(--fd); font-weight: 700; font-size: var(--t-ui); text-align: center;
}

.hof-loading { text-align: center; color: var(--muted); font-family: var(--fb); padding: 32px !important; }

/* Team-colour initials badge sitting inline with the player name in the
   HoFW table's Player column. Geometry only -- hof-shared.js's
   hofTeamBadgeHtml() applies each franchise's colours inline. */
.hof-name-with-badge { display: inline-flex; align-items: center; gap: var(--s-2); }

/* Source credit under the players table. Not decoration: Sports Reference's
   reuse terms are conditional on explicit attribution, so this line is a
   condition being met, not styling. See scripts/HOF_DATA_SOURCING_REVIEW.md. */
.hof-source-note { font-size: var(--t-meta); line-height: 1.6; color: var(--muted); margin: 14px 0 0; }
.hof-source-note a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.hof-source-note a:hover { color: var(--orange); }

/* HoFW score chip + tier chips -- the table's status badges. Had no CSS at all
   until 2026-09-19 (players/'s only consumer): the chips and the legend below
   rendered as unstyled inline text in production. Colors are a merit ramp,
   not the uncertainty vocabulary in CHART_STYLE.md -- this is a categorical
   status badge, not a chart. */
.hof-chip {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 30px; padding: 3px 9px; border-radius: var(--r-lg);
  font-family: var(--fd); font-weight: 700; font-size: 13px;
}
.hof-chip-lg { min-width: 40px; padding: 5px 12px; font-size: 16px; }
.hof-chip-nodata { background: rgba(124,153,183,0.14); color: var(--muted); padding: 4px 6px; }
.hof-tier-lock { background: rgba(74,222,128,0.14); color: var(--ok); }
.hof-tier-strong { background: rgba(232,135,43,0.16); color: var(--amber); }
.hof-tier-borderline { background: rgba(124,153,183,0.16); color: var(--sub); }
.hof-tier-longshot { background: rgba(248,113,113,0.14); color: var(--danger); }
.hof-status-enshrined { background: rgba(255,119,4,0.14); color: var(--orange); }
.hof-chip-partial-marker { margin-left: 2px; color: var(--muted); font-weight: 700; cursor: help; }

.hof-legend {
  display: flex; flex-direction: column; gap: 8px; margin: 0 0 16px;
  padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r-md);
  background: var(--card);
}
.hof-legend-tiers { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.hof-legend-item {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--fb); font-size: 12px; color: var(--sub); white-space: nowrap;
}
.hof-legend-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.hof-legend-dot.hof-tier-lock { background: var(--ok); }
.hof-legend-dot.hof-tier-strong { background: var(--amber); }
.hof-legend-dot.hof-tier-borderline { background: var(--sub); }
.hof-legend-dot.hof-tier-longshot { background: var(--danger); }
.hof-legend-dot.hof-status-enshrined { background: var(--orange); }
.hof-legend-note { font-size: 11px; line-height: 1.5; color: var(--muted); border-top: 1px solid var(--border); padding-top: 8px; }
.hof-legend-note strong { color: var(--sub); }

/* This Class vs. Eventually -- the merged forecast cell in players/'s table.
   Two independently sortable labels packed into one <th> -- see hofSubsortSpan
   in players/index.html -- since the merged cell's single sortKey silently
   dropped the ability to sort by induction odds (caught 2026-09-19). */
.hof-subsort { cursor: pointer; user-select: none; }
.hof-subsort:hover { color: var(--text); }
.hof-subsort-sep { color: var(--border); }
.hof-forecast-cell { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.hof-this-class-badge {
  display: inline-block; margin-left: 6px; padding: 2px 7px; border-radius: var(--r-lg);
  background: rgba(255,119,4,0.18); color: var(--orange); font-family: var(--fd);
  font-weight: 700; font-size: 9px; letter-spacing: 0.05em; text-transform: uppercase; vertical-align: middle;
}
