/* Results page. Uses the shared palette, typography, and dark theme. */
.results-page {
  padding-bottom: clamp(44px, 6vw, 80px);
}

.results-overview {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px 48px;
  padding: clamp(20px, 3vw, 36px);
  border: 1px solid var(--rule-2);
  border-top: 4px solid var(--mark);
  background: var(--card);
}

.results-overview h2,
.results-counts dt,
.results-table thead th {
  font-family: var(--label);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.results-score {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.15;
}

.results-note {
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 0.95rem;
}

.results-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 20px clamp(24px, 4vw, 56px);
  margin: 0;
}

.results-counts dt {
  color: var(--ink-3);
}

.results-counts dd {
  margin: 8px 0 0;
  font-family: var(--mono);
  font-size: 1.75rem;
  line-height: 1.2;
}

.results-ledger {
  margin-top: clamp(32px, 5vw, 56px);
}

.results-scroll-hint {
  margin-top: 12px;
  color: var(--ink-3);
  font-size: 0.85rem;
}

/* The table's name. It stands outside the scrolling wrapper, so it stays in
   place when the table is scrolled sideways. */
.results-caption {
  margin-top: 18px;
  color: var(--ink-3);
  font-size: 0.85rem;
}

.results-table-wrap {
  margin-top: 8px;
  overflow-x: auto;
  border-block: 1px solid var(--rule-2);
  scrollbar-color: var(--ink-3) var(--paper-2);
}

.results-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.98rem;
}

.results-table th,
.results-table td {
  padding: 16px 14px;
  border-top: 1px solid var(--rule);
  vertical-align: top;
}

.results-table thead {
  background: var(--paper-2);
}

.results-table thead th {
  white-space: nowrap;
}

.results-table tbody th {
  min-width: 12rem;
  font-weight: 600;
}

.results-table td:first-child,
.results-table td:nth-child(4) {
  font-family: var(--mono);
  font-size: 0.9rem;
  white-space: nowrap;
}

.results-table td:nth-child(3) {
  min-width: 11rem;
}

.results-empty {
  padding: clamp(24px, 4vw, 40px) 0;
  border-bottom: 1px solid var(--rule-2);
}

.results-empty h3 {
  font-size: 1.4rem;
}

.results-empty p {
  max-width: 42rem;
  margin-top: 12px;
  color: var(--ink-2);
}

.results-explainer {
  max-width: 54rem;
  margin-top: 22px;
  color: var(--ink-2);
  font-size: 0.95rem;
}

/* The table fits without a scrolling hint from this viewport width. */
@media (min-width: 780px) {
  .results-scroll-hint {
    display: none;
  }
}
