/* css/sections/34-specifications.css · the datasheet: label and value cells, one still hairline per row (no drawing: a datasheet reads calm and exact). G7. Tokens only. */
@layer sections {
  .s-specifications { background: var(--color-paper-2); }               /* band 34–36: the reference */
  .s-specifications .spec__head { min-width: 0; }
  .s-specifications .spec__title { margin-bottom: var(--space-lg); }
  .s-specifications .spec__note { color: var(--color-ink-2); }

  .s-specifications .spec__table { inline-size: 100%; margin-top: var(--space-2xl); border-collapse: collapse; border-spacing: 0;
                                   font-variant-numeric: tabular-nums lining-nums; }
  .s-specifications .spec__table :is(th, td) { padding-block: var(--space-md); vertical-align: baseline; text-align: start;
                                               border-top: var(--rule-hair) solid var(--color-rule); }
  .s-specifications .spec__table tr:last-child > :is(th, td) { border-bottom: var(--rule-hair) solid var(--color-rule); }
  .s-specifications .spec__label { inline-size: 42%; padding-inline-end: var(--space-lg);
                                   font: 500 var(--text-sm)/1.45 var(--font-body); color: var(--color-muted); }
  .s-specifications .spec__value { font: 400 var(--text-body)/1.5 var(--font-body); color: var(--color-ink); }

  @media (min-width: 40em) {
    .s-specifications .spec__label { inline-size: 36%; }
    .s-specifications .spec__value { font-size: var(--text-lead); line-height: var(--leading-lead); }
  }
  /* from 64em the datasheet follows the topic frame: heading and note held in the margin, the table beside them */
  @media (min-width: 64em) {
    .s-specifications .spec__head { grid-column: 1 / span 4; grid-row: 1 / span 2; align-self: start; position: sticky;
                                    top: calc(var(--header-h) + var(--toc-bar-h) + var(--space-lg)); padding-inline-end: var(--space-lg); }
    .s-specifications .spec__title { margin: 0 0 var(--space-lg); font-size: var(--text-title-how); max-width: 14ch; }
    .s-specifications .spec__note { font-size: var(--text-sm); line-height: 1.5; color: var(--color-muted); max-width: 32ch; }
    .s-specifications .spec__table { grid-column: 5 / span 8; grid-row: 1 / span 2; margin-top: 0; }
  }
  @media (min-width: 75em) {
    .s-specifications .spec__head { grid-column: 1 / span 3; top: calc(var(--header-h) + var(--space-xl)); }
    .s-specifications .spec__table { grid-column: 4 / span 5; }
  }
}
