/* Fixed layout distributes the full table width equally among its data columns.
   Domain and model-family headings keep their semantic column spans. */
.tablewrap > table {
  width: 100%;
  min-width: 38rem;
  table-layout: fixed;
}

.tablewrap > table :is(th, td),
.tablewrap > table thead button {
  white-space: normal;
  overflow-wrap: anywhere;
}

.tablewrap > table thead button {
  width: 100%;
}

#results th[scope="row"] {
  white-space: normal;
}

/* One model name and twenty apparatuses. Keep individual columns readable
   and let the existing keyboard-accessible wrapper handle horizontal scroll. */
.task-matrix > #results {
  min-width: calc(21 * 7.5rem);
}

.task-matrix > #results thead th,
.task-matrix > #results th[scope="row"] {
  min-width: 0;
  max-width: none;
}
