/* Database section */
.hof-ballot-stepper { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.hof-ballot-label { font-family: var(--fb); font-size: 12px; font-weight: 600; color: var(--sub); }
.hof-ballot-reset { background: none; border: none; color: var(--orange); font-size: 12px; font-weight: 700; cursor: pointer; padding: 0; }
.hof-select:disabled, .hof-checkbox-wrap.is-disabled { opacity: 0.4; pointer-events: none; }

.hof-toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
  /* Real content (methodology framing, tier legend, filters) stays -- only the
     vertical rhythm between blocks tightens, so a phone reaches the actual
     table sooner without anything being shortened or hidden. */
  @media (max-width: 480px) {
    .hof-section-sub { margin: var(--s-2) 0 var(--s-3); font-size: 13px; line-height: 1.5; }
    .hof-toolbar { margin-bottom: var(--s-3); }
    .hof-more-filters { margin-bottom: var(--s-3); }
    .hof-more-filters summary { margin-bottom: var(--s-3); }
    .hof-table th { padding: 8px 10px; }
    .hof-group-row th { padding-top: 3px; }
  }
.hof-search-wrap { flex: 1; min-width: 200px; }
.hof-search, .hof-select {
  width: 100%; min-height: 44px; padding: 10px 12px; font-size: 14px; font-family: var(--fb);
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md); color: var(--text);
}
.hof-select { width: auto; min-width: 130px; }
/* 16px on touch devices — anything smaller triggers iOS Safari's auto-zoom-on-focus */
@media (max-width: 700px) { .hof-search, .hof-select { font-size: 16px; } }
.hof-search:focus, .hof-select:focus { border-color: var(--orange); }

.hof-more-filters { margin-bottom: 18px; }
.hof-more-filters summary {
  cursor: pointer; list-style: none; font-family: var(--fb); font-size: 12px; font-weight: 600;
  color: var(--orange); margin-bottom: 14px;
}
.hof-more-filters summary::-webkit-details-marker { display: none; }
.hof-more-filters summary::after { content: " ▾"; }
.hof-more-filters[open] summary::after { content: " ▴"; }

/* The legend is drawn by script (hof-shared.js loads at the foot of the page), so the first paint can come
   before it. Hold its box open: its own height plus the 14px margin, which no longer collapses out of a
   box with a min-height. The legend wraps as the page narrows, hence the steps. */
#hof-legend { min-height: 117px; }
@media (max-width: 760px) { #hof-legend { min-height: 125px; } }
@media (max-width: 520px) { #hof-legend { min-height: 145px; } }
@media (max-width: 420px) { #hof-legend { min-height: 192px; } }

.hof-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-md); }
/* The placeholder row holds the table's space until the rows render (50 rows is thousands of px), so the
   footnote and the record band below it start off-screen instead of being pushed down when the data lands. */
.hof-skel-row { height: 640px; }
/* The header row is built by script with the rows (89px, the same at every width); a blank one of that height
   stands in so the body does not slide down when the data lands. */
.hof-table .hof-skel-head th { height: 88px; padding: 0; }
/* The position-colour legend (a one-line list plus its 12px margin) is filled by position-groups.js. */
[data-pos-legend] { min-height: 30px; }
.hof-table { width: 100%; border-collapse: collapse; font-size: 13px; white-space: nowrap; }
.hof-table th {
  font-family: var(--fb); font-weight: 600; font-size: 11px; color: var(--muted); text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--border);
  background: var(--surface); position: sticky; top: 0;
  white-space: nowrap;
}
.hof-table th.hof-sortable { cursor: pointer; user-select: none; }
.hof-table th.hof-sortable:hover { color: var(--text); }
.hof-table td { padding: 10px; border-bottom: 1px solid var(--border); font-family: var(--fm); vertical-align: middle; }
.hof-table td.hof-name-cell { font-family: var(--fb); font-weight: 600; white-space: normal; }
.hof-table th.hof-col-right, .hof-table td.hof-col-right { text-align: right; }
.hof-table tbody tr { cursor: pointer; }
.hof-table tbody tr:hover { background: var(--surface); }
.hof-table tbody tr.hof-row-this-class { background: rgba(255,119,4,0.10); }
.hof-table tbody tr.hof-row-this-class:hover { background: rgba(255,119,4,0.16); }
.hof-table th.hof-col-ours, .hof-table td.hof-col-ours { background: rgba(255,119,4,0.035); }
.hof-table th.hof-col-ours { color: var(--sub); }
.hof-table th.hof-col-center, .hof-table td.hof-col-center { text-align: center; }
.hof-table th.hof-col-ours-first, .hof-table td.hof-col-ours-first { border-left: 2px solid rgba(255,119,4,0.25); }
.hof-table th.hof-col-pred-first, .hof-table td.hof-col-pred-first { border-left: 2px solid rgba(255,119,4,0.25); }
.hof-group-row th { position: static; padding: 4px 14px 0; border-bottom: none; }
.hof-group-empty { background: var(--surface); }
.hof-table th.hof-group-label { background: rgba(255,119,4,0.035); color: var(--orange); text-align: center; }
.hof-table th.hof-group-section { text-align: center; padding-bottom: 6px; }
.hof-group-section-sub { font-family: var(--fb); font-size: 11px; font-weight: 400; font-style: italic; text-transform: none; letter-spacing: 0; color: var(--muted); margin-top: 2px; }

.hof-year-tag {
  display: inline-block; padding: 3px 9px; border-radius: var(--r-lg); font-weight: 600; font-size: 12px;
  font-family: var(--fb);
}
.hof-cell-muted { color: var(--muted); }
.hof-cell-sub { color: var(--muted); font-size: 11px; }
.hof-enshrined-badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--hof-enshrined) 10%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hof-enshrined) 30%, transparent);
  color: var(--hof-enshrined); font-weight: 600; font-size: 12px;
  font-family: var(--fb); white-space: nowrap;
}
.hof-signature-context { font-style: italic; font-size: 11px; color: var(--muted); font-family: var(--fb); font-weight: 400; white-space: nowrap; margin-top: 1px; }

.hof-checkbox-wrap {
  display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--sub); font-family: var(--fb);
  white-space: nowrap; padding: 0 4px;
}
.hof-elig-dropdown { position: relative; }
.hof-elig-toggle {
  min-height: 44px; padding: 10px 14px; font-size: 14px; font-family: var(--fb); white-space: nowrap;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md); color: var(--text); cursor: pointer;
}
.hof-elig-toggle:hover { border-color: var(--orange); }
.hof-elig-dropdown.is-open .hof-elig-toggle { border-color: var(--orange); }
.hof-elig-panel{
  display: none; position: absolute; top: calc(100% + 6px); left: 0; z-index: 20; min-width: 200px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--s-3) var(--s-4);
  flex-direction: column; gap: 8px; box-shadow: var(--shadow-2);
}
.hof-elig-dropdown.is-open .hof-elig-panel { display: flex; }
.hof-elig-dropdown.is-disabled .hof-elig-toggle { opacity: 0.4; pointer-events: none; }

.hof-footnote { font-size: 12px; color: var(--muted); margin-top: 10px; }
.hof-footnote a { color: var(--orange); font-weight: 700; text-decoration: none; }
.hof-db-section { margin-bottom: 36px; }

.hof-show-all-btn {
  background: none; border: 1px solid var(--border); color: var(--orange); font-family: var(--fb);
  font-size: 12px; font-weight: 600; padding: 8px 16px; border-radius: var(--r-md);
  cursor: pointer;
}
.hof-show-all-btn:hover { border-color: var(--orange); background: rgba(255,119,4,0.06); }
.trr-gate-loading { font-size: 13px; color: var(--muted); margin: 0; }

#hof-record-wrap { margin-top: 34px; border-top: 1px solid var(--border); }

.hof-meth-link { margin-top: 28px; }
.hof-meth-link a { font-size: 13px; color: var(--orange); text-decoration: none; font-family: var(--fb); font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.hof-meth-link a:hover { text-decoration: underline; }
.hof-meth-jump { display: inline-flex; align-items: center; gap: 4px; }

  /* Static year label -- the shared chip shape is in assets/css/hof.css. */
  .hof-stepper-current { min-width: 110px; cursor: default; }
  .hof-stepper-current.is-active { color: var(--orange); border-color: var(--orange); }
