/* /nhl/tools: the NHL matchup machine (site/js/pages/tools.js, NHL section). Builds on the shared matchup-machine
   styles in games.css (.mm-*, .nb-*, .tt-*). */

/* regulation win / overtime / regulation loss */
.nh-split { display: flex; gap: 4px; margin: -6px 0 6px; font-size: 12px; color: var(--text-2); }
.nh-split span { display: block; min-width: 0; padding: 7px 8px 6px; border-radius: var(--radius-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-top: 3px solid; background: var(--surface-2); }
.nh-split b { font: 750 14px/1 var(--font-display); color: var(--text); font-variant-numeric: tabular-nums; margin-right: 3px; }
.nh-split .a { border-color: var(--series-1); }
.nh-split .o { border-color: var(--border-strong); text-align: center; }
.nh-split .b { border-color: var(--series-2); text-align: right; }
.nh-otnote { margin: 4px 0 14px; }

/* who's in net */
.nh-gl { display: grid; gap: 2px; margin: 4px 0 10px; }
.nh-g { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 10px; border-radius: var(--radius-sm); cursor: pointer; border: 1px solid transparent; }
.nh-g:hover { background: var(--surface-2); }
.nh-g.on { background: var(--accent-soft); border-color: color-mix(in oklab, var(--accent) 35%, var(--border)); }
.nh-g input { margin: 0; accent-color: var(--accent); }
.nh-gn { display: grid; min-width: 0; font-weight: 600; font-size: 14px; }
.nh-gn small { font-weight: 450; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nh-rest { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--text-2); padding: 6px 10px 0; border-top: 1px solid var(--grid); }
.nh-rest input { margin: 0; accent-color: var(--accent); }
.nh-rest small { color: var(--muted); }

/* final-score grid */
.nh-cards { margin-top: 16px; }
.nh-top { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.nh-top b { color: var(--text); font-variant-numeric: tabular-nums; }
.nh-gridt { border-collapse: separate; border-spacing: 2px; width: 100%; font-variant-numeric: tabular-nums; font-size: 12px; }
.nh-gridt th { font-weight: 650; color: var(--muted); padding: 3px 4px; text-align: center; }
.nh-gridt .nh-corner { font-weight: 500; font-size: 11px; white-space: nowrap; text-align: left; }
.nh-gridt td { height: 30px; min-width: 30px; text-align: center; border-radius: 4px; color: var(--text); background: color-mix(in oklab, var(--border-strong) calc(var(--h, 0) * 70%), transparent); }
.nh-gridt td.a { background: color-mix(in oklab, var(--series-1) calc(var(--h, 0) * 80%), var(--surface-2)); }
.nh-gridt td.b { background: color-mix(in oklab, var(--series-2) calc(var(--h, 0) * 80%), var(--surface-2)); }

@media (max-width: 760px) {
  .nh-split { font-size: 11px; }
  .nh-split span { padding: 6px 5px 5px; }
  .nh-gridt { font-size: 10.5px; border-spacing: 1px; }
  .nh-gridt td { height: 26px; min-width: 24px; }
}
#nh-lines .data td .hint { white-space: nowrap; }
@media (max-width: 760px) { #nh-lines .data td .hint { display: block; white-space: normal; font-size: 11.5px; } }
