/* NBA Dashboard — games ribbon, then a bento: top projected (wide) + injury
   wire, then value / minutes boosts / leverage. */

/* ── Games ribbon ─────────────────────────────────────── */
.hd-games { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.hd-game {
  background: var(--bg-card); border: 1px solid var(--border-card); border-radius: 10px;
  padding: 12px 14px; box-shadow: var(--ih-shadow);
  transition: transform var(--ih-fast) var(--ih-ease), border-color var(--ih-fast);
}
.hd-game:hover { transform: translateY(-2px); border-color: var(--ice-line); }
.hd-game-top { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-2); margin-bottom: 10px; }
.hd-ou { color: var(--ice); font-weight: 700; }
.hd-game-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 6px; }
.hd-side {
  display: grid; grid-template-columns: auto 1fr auto; column-gap: 8px; row-gap: 2px; align-items: center;
  padding-left: 8px; border-left: 3px solid var(--tc, var(--border));
}
.hd-side b { font-size: 17px; font-weight: 800; letter-spacing: .02em; }
.hd-logo { width: 28px; height: 28px; object-fit: contain; grid-row: span 2; }
.hd-tt { font-size: 15px; font-weight: 700; color: var(--text-1); }
.hd-sub { grid-column: 2 / -1; font-size: 11px; color: var(--text-3); }
.hd-sub i { font-style: normal; color: var(--hw-out); font-weight: 700; }
.hd-at { font-family: var(--ih-mono); color: var(--text-3); font-size: 12px; padding-top: 7px; }
.hd-game-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 11.5px; }
.hd-link { font-weight: 700; letter-spacing: .04em; color: var(--ice); text-decoration: none; }
.hd-link:hover { text-decoration: underline; }
.hd-link:focus-visible, .hd-more:focus-visible { outline: 2px solid var(--ice); outline-offset: 2px; }

/* ── Bento ────────────────────────────────────────────── */
.hd-bento { display: grid; gap: 14px; margin-top: 22px; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.hd-top   { grid-column: span 8; }
.hd-wire  { grid-column: span 4; }
.hd-value, .hd-boost, .hd-lev { grid-column: span 4; }
.hd-card-head {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px 10px;
  border-bottom: 1px solid var(--ih-rule); flex-wrap: wrap;
}
.hd-card-head h2 { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin: 0; }
.hd-head-note { margin-left: auto; font-size: 10.5px; }
.hd-more { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--ice); text-decoration: none; }
.hd-more:hover { text-decoration: underline; }

/* The anchor card gets the hardwood wash. */
.hd-top { background: linear-gradient(180deg, var(--ice-dim), transparent 120px), var(--bg-card); border-color: var(--ice-line); }

/* ── Tables ───────────────────────────────────────────── */
.hd-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.hd-table th {
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3);
  text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--ih-rule);
}
.hd-table td { padding: 7px 10px; border-bottom: 1px solid var(--ih-rule); vertical-align: middle; }
.hd-table tr:last-child td { border-bottom: 0; }
.hd-table tbody tr { transition: background var(--ih-fast); }
.hd-table tbody tr:hover { background: var(--ih-cell); }
.hd-table .r { text-align: right; }
.hd-table th:first-child, .hd-table td:first-child { padding-left: 16px; }
.hd-table th:last-child, .hd-table td:last-child { padding-right: 16px; }
.hd-hl { color: var(--ice); font-weight: 700; }
.hd-pl { display: flex; align-items: center; gap: 9px; min-width: 0; }
.hd-pl > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hd-pl b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hd-pl .ih-dim { font-size: 10.5px; white-space: nowrap; }

.hd-tabs { margin-left: auto; display: flex; gap: 2px; background: var(--ih-cell); border-radius: 7px; padding: 2px; }
.hd-tabs button {
  border: 0; background: transparent; color: var(--text-2); cursor: pointer;
  font-family: var(--ih-mono); font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 5px;
  transition: background var(--ih-fast), color var(--ih-fast);
}
.hd-tabs button:hover { color: var(--text-1); }
.hd-tabs button.active { background: var(--bg-card); color: var(--ice); box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.hd-tabs button:focus-visible { outline: 2px solid var(--ice); outline-offset: 1px; }

/* ── Injury wire ──────────────────────────────────────── */
.hd-wire-list { list-style: none; margin: 0; padding: 4px 0; }
.hd-wire-list li {
  display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center;
  padding: 8px 16px; border-bottom: 1px solid var(--ih-rule); font-size: 12.5px;
}
.hd-wire-list li:last-child { border-bottom: 0; }
.hd-wire-list li > div { display: flex; flex-direction: column; min-width: 0; }
.hd-wire-list b { font-weight: 600; }
.hd-wire-list .ih-dim { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hd-wire-more { padding: 0 16px 12px; }
.hd-wire-more a { color: var(--ice); }

@media (max-width: 1180px) {
  .hd-top, .hd-wire { grid-column: span 12; }
  .hd-value, .hd-boost { grid-column: span 6; }
  .hd-lev { grid-column: span 12; }
}
@media (max-width: 720px) {
  .hd-value, .hd-boost, .hd-lev { grid-column: span 12; }
  .hd-games { grid-template-columns: 1fr; }
  .hd-table { font-size: 12px; }
  .hd-table th:nth-child(2), .hd-table td:nth-child(2) { display: none; }
  .hd-tabs { margin-left: 0; width: 100%; justify-content: space-between; }
}
