/* Preserve the terminal's character columns. Use the line height as the vertical unit. */
.overview main { padding-block-start: 1lh; }
.overview .running-head { display: flow-root; }
.manual-identity {
  float: inline-start;
  display: flex;
  align-items: baseline;
  gap: 2ch;
  margin-inline-end: 1ch;
}
.manual-identity a { color: var(--dim); }
.manual-identity a:hover { color: var(--screen); }

.overview main > section > * { margin-block: 0; }
.overview main > section > :not(h2) + * { margin-block-start: 1lh; }
.overview main > section > p + pre {
  margin-block-start: 0;
  margin-inline-start: calc(var(--indent) + 3ch);
}
.overview pre {
  max-width: 100%;
  overflow-x: auto;
  white-space: pre;
  tab-size: 4;
}

.contents > summary { margin-inline-start: auto; list-style-position: inside; }
.overview .contents nav {
  clear: both;
  margin: 1lh 0 0;
  padding-block: .5lh;
  border-block: 1px solid #555;
}
.contents ol { margin-block: 0; padding-inline-start: 4ch; }
.contents li { break-inside: avoid; }

.reference-table { width: 100%; }
.reference-table :is(th, td) { padding: 0 0 0 2ch; vertical-align: top; }
.reference-table :is(th, td):first-child { padding-inline-start: 0; }
.reference-table thead th {
  padding-block-end: .5lh;
  box-shadow: inset 0 -1px #666;
}
.reference-table tbody tr:first-child > * { padding-block-start: .5lh; }
.operations-table :is(th, td), .error-table :is(th, td) { text-align: left; }
.operations-table th[scope="row"] { white-space: nowrap; }
.operations-table tbody tr + tr > * { padding-block-start: 1lh; }
.operations-table var, #architecture var, #requirements var { text-decoration: none; }
.latency-table tbody :is(th, td) { font-variant-numeric: tabular-nums; }
.latency-table :is(th, td):last-child { text-align: left; }

.overview #see-also nav, .overview .help-sheet nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(24ch, 100%), 1fr));
  gap: 0 2ch;
}
.overview #see-also a, .overview .help-sheet nav a { justify-self: start; }

@media screen and (min-width: 601px) {
  .overview { line-height: 1.1; }
}
@media (min-width: 48em) {
  .contents ol { columns: 2; column-gap: 4ch; }
  .error-table td { width: 37%; }
  .error-table tbody tr + tr > * { padding-block-start: 1lh; }
}
@media (max-width: 47.999em) {
  .error-table, .error-table tbody, .error-table tr, .error-table :is(th, td) { display: block; }
  .error-table thead {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%);
  }
  .error-table tbody tr + tr { margin-block-start: 1lh; }
  .error-table tbody tr > *, .error-table tbody tr:first-child > * { padding: 0; }
  .error-table tbody th { font-weight: 700; }
  .error-table tbody td + td { margin-block-start: .5lh; }
}
@media (max-width: 600px) {
  .overview main > section > p + pre {
    margin-block-start: .5lh;
    margin-inline-start: var(--indent);
    border-inline-start: 1px solid #555;
    padding-inline-start: 1ch;
  }
  .overview .colophon { grid-template-columns: 1fr auto; }
  .overview .colophon > :nth-child(2) { grid-column: 1; grid-row: 2; }
  .overview .colophon > :last-child { grid-column: 2; grid-row: 1; }
  .reference-table :is(th, td) { padding-inline-start: 1ch; }
  .latency-table tbody tr + tr > * { padding-block-start: .5lh; }
}
@media print {
  .overview .contents { display: none; }
}
@media (max-width: 24em) {
  .manual-identity .index-prefix { display: none; }
  .manual-identity a { text-transform: capitalize; }
}
