/* Hero pick/ban statistics tables.
 *
 * Dense numeric tables, so the work here is information design rather than
 * decoration: tabular figures so columns line up, a muted side-split column so
 * the primary W/L reads first, and every colour through the semantic tokens so
 * both themes hold.
 * NOTE: editing this file requires bumping CACHE_NAME in static/sw.js. */

.hs-provenance {
  color: var(--text-muted);
  font-size: .82rem;
  margin: 0 0 1rem;
  line-height: 1.5;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
}
.hs-provenance strong { color: var(--text-secondary); font-variant-numeric: tabular-nums; }

.hs-status-pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .25rem .65rem;
  border-radius: 9999px;
  font-size: .78rem;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
  vertical-align: middle;
}
.hs-status-pill strong {
  color: #6ee7b7;
}

.hs-pulse-dot {
  position: relative;
  display: inline-flex;
  width: 8px;
  height: 8px;
  flex-shrink: 0;
}
.hs-pulse-dot::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  border-radius: 50%;
  background-color: #34d399;
  animation: hs-ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
  opacity: 0.75;
}
.hs-pulse-dot::after {
  content: '';
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
}

@keyframes hs-ping {
  75%, 100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.hs-card { padding: 1rem; margin-bottom: 1.25rem; }
.hs-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 .8rem;
  display: flex;
  align-items: center;
  gap: .45rem;
}

/* Wide tables scroll inside their own container — the page body never does. */
.hs-scroll { overflow-x: auto; }

.hs-table { font-size: .84rem; }
.hs-table th {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}
.hs-table td { vertical-align: middle; }
.hs-num {
  text-align: center;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--text-secondary);
}
/* The side split is context, not the headline number — one step back. */
.hs-side { color: var(--text-muted); font-size: .78rem; }

.hs-hero {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--text-primary);
  text-decoration: none;
  white-space: nowrap;
}
.hs-hero img {
  width: 26px;
  height: 26px;
  border-radius: 5px;
  object-fit: cover;
  flex: none;
}
a.hs-hero:hover { color: var(--brand-primary-light); }

.hs-hero-cell { min-width: 11rem; }
.hs-manual-flag { color: var(--text-muted); font-size: .72rem; }

.hs-link { color: var(--brand-primary-light); text-decoration: none; }
.hs-link:hover { text-decoration: underline; }

.hs-row.is-open { background: rgba(127, 127, 127, .08); }
.hs-detail-row > td {
  background: rgba(127, 127, 127, .06);
  padding: .8rem 1rem;
}

.hs-detail-title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 .7rem;
}
.hs-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
}
.hs-detail-sub {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 .4rem;
}
.hs-detail-col { min-width: 0; overflow-x: auto; }
.hs-detail-col .hs-table { font-size: .8rem; }

.hs-empty { color: var(--text-muted); font-size: .82rem; margin: 0; }
.hs-note { color: var(--text-muted); font-size: .72rem; margin: .4rem 0 0; }

@media (max-width: 640px) {
  .hs-card { padding: .75rem; }
  .hs-table { font-size: .8rem; }
}
