@layer theme.components {
  .classic-page__content {
    max-inline-size: var(--width-text);
    color: var(--color-text-muted);
  }

  .classic-page__content :is(h2, h3, h4) {
    color: var(--color-text);
  }

  /* A long document is read by its headings: a chapter stands apart from the text above it. */
  .classic-page__content :is(h3, h4):not(:first-child) {
    margin-block-start: 12px;
  }

  .classic-page__content h2:not(:first-child) {
    margin-block-start: 28px;
  }

  .classic-page__content :is(ul, ol) {
    padding-inline-start: 1.5em;
  }

  .classic-page__content :is(table, pre) {
    display: block;
    max-inline-size: 100%;
    overflow-x: auto;
  }

  /* Document tables (a policy's appendix, a contract's terms): ruled cells, the column and
     group headings on the table-head tone, every cell read from its top. */
  .classic-page__content table {
    border-collapse: collapse;
    font-size: var(--font-size-small);
    line-height: 1.5;
  }

  .classic-page__content caption {
    padding-block-end: 10px;
    color: var(--color-text);
    font-weight: 600;
    text-align: start;
  }

  .classic-page__content :is(th, td) {
    padding: 10px 12px;
    border: 1px solid var(--color-border-divider);
    text-align: start;
    vertical-align: top;
  }

  .classic-page__content th {
    background: var(--color-bg-table-head);
    color: var(--color-text);
    font-weight: 600;
  }
}
