/* History table: every repo-scope evaluation, newest first, or the finding
   counts per axis. Scrolls inline on narrow screens instead of overflowing
   the page. */

/* position: relative keeps the visually hidden caption inside the scroller. */
.history-table {
  position: relative;
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  background-color: var(--bg-surface);
}

.history-table table {
  inline-size: 100%;
}

.history-table th,
.history-table td {
  padding: var(--space-xs) var(--space-s);
  text-align: start;
  white-space: nowrap;
}

.history-table th {
  color: var(--text-muted);
  font-size: var(--step--1);
  font-weight: 600;
}

.history-table tbody tr {
  border-block-start: 1px solid var(--border-subtle);
}

/* Row headers name an axis: body text, not a column label. */
.history-table tbody th {
  color: var(--text-primary);
  font-size: var(--step-0);
  font-weight: 400;
  text-transform: capitalize;
}

/* Text cells (the home comparison) wrap instead of scrolling; the row headers
   keep their single line. */
.history-table--text td {
  white-space: normal;
  vertical-align: top;
}

.history-table--text tbody th {
  vertical-align: top;
}
