/* ==========================================================================
   hi-edge-teams.css: every club on NHL Edge with the league's ranks
   (hi-edge-teams.js, on /standings/).
   --------------------------------------------------------------------------
   A rank grid (32 clubs by nine axes, scrolls inside its own frame on a
   phone), then one club: its sentence, its shots on EDGE's area shapes
   (hi-edge-areas.css), zone time by strength, and per-game figures. Mint
   marks the league's top five on an axis and coral its bottom five:
   direction only. NO ITALICS, NO GOLD, no count-up.
   ========================================================================== */
.hi-et{
  --et-ink:    var(--ink,      var(--hi-ink, #0d1f3c));
  --et-muted:  var(--hi-muted, #556a80);
  --et-hair:   var(--hairline, var(--hi-hair, #e4dac7));
  --et-line:   var(--border,   var(--hi-line, #d7cbb7));
  --et-card:   var(--card,     var(--hi-card, #fffaf1));
  --et-card-2: var(--card2,    var(--hi-card-2, #f7f1e2));
  --et-blue:   var(--hi-blue, #1f5fbf);
  --et-mint:   var(--hi-mint, #23705a);
  --et-mint-soft: var(--hi-mint-soft, #e0f0ea);
  --et-coral:  var(--hi-coral, #b34e3e);
  --et-coral-soft: var(--hi-coral-soft, #f7e3de);
  --et-serif:  var(--hi-serif, 'Newsreader', Georgia, serif);
  --et-sans:   var(--hi-sans, 'Source Sans 3', system-ui, sans-serif);
  --et-mono:   var(--hi-mono, 'JetBrains Mono', ui-monospace, monospace);
  display:block;color:var(--et-ink)
}
.hi-et i,.hi-et em{font-style:normal}
.hi-et-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 14px;margin:0 0 8px}
.hi-et-k{margin:0;font:700 .6rem/1.3 var(--et-mono);letter-spacing:.14em;text-transform:uppercase;color:var(--et-muted)}
.hi-et-note{margin:0 0 8px;font:500 .82rem/1.4 var(--et-sans);color:var(--et-muted)}
.hi-et-take{margin:0 0 12px;font:600 1.02rem/1.4 var(--et-serif)}
.hi-et-seasons,.hi-et-views{display:flex;flex-wrap:wrap;gap:6px}
.hi-et-views{margin:0 0 10px}
.hi-et button{appearance:none;cursor:pointer;font:inherit;color:inherit}
.hi-et-seasons button,.hi-et-views button{border:1px solid var(--et-line);background:var(--et-card);border-radius:999px;padding:6px 12px;font:600 .78rem/1.2 var(--et-sans);min-height:32px}
.hi-et-seasons button[aria-pressed="true"],.hi-et-views button[aria-pressed="true"]{background:var(--et-blue);border-color:var(--et-blue);color:#fff}
.hi-et button:focus-visible{outline:2px solid var(--et-blue);outline-offset:2px}

.hi-et-wrap{overflow-x:auto;border:1px solid var(--et-line);border-radius:14px;background:var(--et-card);max-height:620px;overflow-y:auto}
.hi-et-grid{border-collapse:separate;border-spacing:0;width:100%;min-width:860px;font:500 .8rem/1.2 var(--et-sans)}
.hi-et-grid th,.hi-et-grid td{padding:6px 8px;border-bottom:1px solid var(--et-hair);text-align:center;white-space:nowrap}
.hi-et-grid thead th{position:sticky;top:0;z-index:2;background:var(--et-card-2)}
.hi-et-grid thead button{border:0;background:none;padding:4px 2px;font:700 .6rem/1.25 var(--et-mono);letter-spacing:.06em;text-transform:uppercase;color:var(--et-muted);white-space:normal;max-width:96px}
.hi-et-grid thead button[aria-pressed="true"]{color:var(--et-blue);text-decoration:underline;text-underline-offset:3px}
.hi-et-grid .hi-et-l{position:sticky;left:0;z-index:1;background:var(--et-card);text-align:left}
.hi-et-grid thead .hi-et-l{z-index:3;background:var(--et-card-2)}
.hi-et-grid tbody th button{display:flex;align-items:center;gap:8px;border:0;background:none;padding:2px 0;font:700 .78rem/1 var(--et-mono)}
.hi-et-grid tbody tr.is-on th,.hi-et-grid tbody tr.is-on td{background:var(--hi-blue-soft, #e5edfb)}
.hi-et-cell b{display:block;font:700 .82rem/1.1 var(--et-mono)}
.hi-et-cell small{display:block;font:500 .66rem/1.2 var(--et-sans);color:var(--et-muted)}
.hi-et-cell.is-top b{color:var(--et-mint)}
.hi-et-cell.is-low b{color:var(--et-coral)}
.hi-et-cell.is-top{box-shadow:inset 3px 0 0 var(--et-mint)}
.hi-et-cell.is-pg b{color:var(--et-ink)}
.hi-et-cell.is-low{box-shadow:inset 3px 0 0 var(--et-coral)}

.hi-et-crest{width:var(--s,22px);height:var(--s,22px);position:relative;display:inline-grid;place-items:center;flex:none}
.hi-et-crest b{font:700 .5rem/1 var(--et-mono);color:var(--et-muted)}
.hi-et-crest img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;display:none}
.hi-et-crest.has-light img.is-light{display:block}
.hi-et-crest.has-light b{visibility:hidden}
:root[data-theme="dark"] .hi-et-crest.has-dark img.is-light{display:none}
:root[data-theme="dark"] .hi-et-crest.has-dark img.is-dark{display:block}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]) .hi-et-crest.has-dark img.is-light{display:none}
  :root:not([data-theme="light"]) .hi-et-crest.has-dark img.is-dark{display:block}
}

.hi-et-legend{margin:8px 0 18px;font:500 .78rem/1.4 var(--et-sans);color:var(--et-muted)}
.hi-et-legend span{display:inline-block;margin-right:12px;padding-left:8px;font-weight:700}
.hi-et-legend .is-top{box-shadow:inset 3px 0 0 var(--et-mint);color:var(--et-mint)}
.hi-et-legend .is-low{box-shadow:inset 3px 0 0 var(--et-coral);color:var(--et-coral)}

.hi-et-club{border:1px solid var(--et-line);border-radius:14px;background:var(--et-card);padding:16px}
.hi-et-club-head{display:flex;align-items:center;gap:12px;margin:0 0 8px}
.hi-et-club-head h3{margin:0;font:700 1.2rem/1.2 var(--et-serif)}
.hi-et-club-head p{margin:2px 0 0;font:700 .6rem/1.3 var(--et-mono);letter-spacing:.1em;text-transform:uppercase;color:var(--et-muted)}
.hi-et-club-grid{display:grid;grid-template-columns:minmax(0,300px) minmax(0,1fr);gap:20px;align-items:start}
.hi-et-map{margin:0}
.hi-et-map figcaption{margin:6px 0 0;font:500 .74rem/1.4 var(--et-sans);color:var(--et-muted);text-align:center}
.hi-et-zones{display:grid;gap:10px}
.hi-et-bar{display:flex;height:12px;border-radius:6px;overflow:hidden;background:var(--et-card-2);border:1px solid var(--et-hair)}
.hi-et-bar .oz{background:var(--et-blue)}
.hi-et-bar .nz{background:var(--et-card-2)}
.hi-et-bar .dz{background:color-mix(in srgb, var(--et-ink) 35%, var(--et-card))}
.hi-et-zl{display:flex;justify-content:space-between;gap:8px;margin:4px 0 0;font:500 .74rem/1.3 var(--et-sans);color:var(--et-muted)}
.hi-et-zl b{font:700 .7rem/1 var(--et-mono);color:var(--et-ink)}
.hi-et-list{list-style:none;margin:14px 0 0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 16px}
.hi-et-list li{display:grid;gap:1px;padding-top:8px;border-top:1px solid var(--et-hair)}
.hi-et-list span{font:700 .58rem/1.3 var(--et-mono);letter-spacing:.08em;text-transform:uppercase;color:var(--et-muted)}
.hi-et-list b{font:700 1rem/1.1 var(--et-mono)}
.hi-et-list small{font:500 .72rem/1.3 var(--et-sans);color:var(--et-muted)}
.hi-et-foot{margin:10px 0 0}

@media (max-width:760px){
  .hi-et-club-grid{grid-template-columns:minmax(0,1fr)}
  .hi-et-list{grid-template-columns:minmax(0,1fr)}
  .hi-et-wrap{max-height:520px}
}
@media (prefers-reduced-motion:reduce){
  .hi-et *{transition:none !important;animation:none !important}
}
