/* Table — full-width data table, per the Figma comps: bold left-aligned
   headers, a navy rule under the header row, pale-blue hairline separators
   between rows, and highlighted row-header cells (<th scope="row">) in the
   first column. Numeric columns opt into right-alignment with tabular figures
   so digits line up. */

/* Wide tables scroll inside this wrapper instead of forcing the page
   sideways on narrow viewports:
   <div class="govbb-table-container" tabindex="0" role="region"
        aria-label="…"> — focusable so keyboard users can scroll it. */
.govbb-table-container {
  width: 100%;
  overflow-x: auto;
  contain: inline-size; /* a scroll region's width must not come from its table */
}

.govbb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--govbb-font-size-body);
  line-height: var(--govbb-line-height-base);
}

.govbb-table__caption {
  margin-bottom: var(--govbb-space-s);
  font-weight: 700;
  text-align: left;
}

.govbb-table__header,
.govbb-table__cell {
  padding: var(--govbb-space-s);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--govbb-color-highlight);
}

.govbb-table__header {
  font-weight: 700;
}

/* Navy rule closing off the header row. Keys off the semantic <thead> the
   markup already has, so a correct table gets it without an extra class. */
.govbb-table thead .govbb-table__header {
  border-bottom-color: var(--govbb-blue-80);
}

/* Row headers (<th scope="row">) — a highlighted first column, with the
   surface colour as the separator so the cells read as distinct blocks. */
.govbb-table tbody .govbb-table__header {
  background: var(--govbb-color-highlight);
  border-bottom-color: var(--govbb-color-surface);
}

.govbb-table__header--numeric,
.govbb-table__cell--numeric {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
