* { box-sizing: border-box; }
body { margin: 0; }
header, main, footer { margin: 0 auto; }
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s4);
}
.brand, header nav a { display: inline-block; min-height: 44px; line-height: 44px; }
main, footer { overflow-wrap: anywhere; }

.field textarea { text-align: start; }
.field textarea, .field-error { font-variant-numeric: tabular-nums; }
.field-error code { text-align: start; }
#status { font-variant-numeric: tabular-nums; }
.example h2 { margin-top: 0; }
.example figure pre { white-space: pre-wrap; }
.example figure pre code { font-size: inherit; }

.matrix .matrix-row {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: 1 / -1;
  min-width: 0;
}
.matrix .cell, .table-wrap { min-width: 0; }
.matrix .figure small { display: block; }
.table-wrap { max-width: 100%; }
#output .tag { white-space: normal; }
#output thead th .mode { margin-top: var(--s1); }
.ad-slot { height: 250px; }

@media (max-width: 46rem) {
  .actions button.secondary, .actions button.quiet {
    flex: 1 1 0;
    min-width: 0;
    padding-inline: var(--s2);
  }
  .tool #output thead th { white-space: normal; }
  .tool #output tbody th { min-width: 9rem; }
}
