/* styles/sections/record-anatomy.css
 * What a record holds, as a definition list (scripts/lib/pages/decision-history.js, the anatomy in renderMiddle): a label
 * over ruled rows, serif title beside its description from D, stacked on M. The first rule is ink,
 * the rest line-2, each drawn inside its row as Pencil draws strokes.
 * Geometry is the Decision History frames (CdjRs 1440, L0jgO 390, ouoGw 1920). */
@layer sections {
  .record-anatomy__label {
    margin: 0;
    padding-bottom: var(--space-16);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    line-height: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--ink-muted);
  }

  .record-anatomy__list { margin: 0; }

  .record-anatomy__row {
    display: flex;
    flex-direction: column;
    gap: var(--space-40);
    padding-block: 21px 22px;
    border-top: 1px solid var(--line-2);
  }

  .record-anatomy__row:first-child { border-top-color: var(--ink); }

  /* h5 role (20, 24, 28), lines on whole pixels (24 x 1.05 is 25) */
  .record-anatomy__title {
    font-family: var(--font-display);
    font-size: var(--t-h5-size);
    font-weight: 600;
    line-height: round(nearest, 1.05em, 1px);
    letter-spacing: var(--t-h5-ls);
    color: var(--ink);
  }

  .record-anatomy__body {
    margin: 0;
    font-size: 17px;
    line-height: round(nearest, 1.5em, 1px);
    color: var(--ink-2);
    text-wrap: wrap;
  }

  @media (min-width: 900px) {
    .record-anatomy__row {
      flex-direction: row;
      align-items: center;
      gap: var(--space-64);
    }

    .record-anatomy__title { flex: 0 0 336px; }

    .record-anatomy__body {
      flex: 1 1 0;
      min-width: 0;
    }
  }
}
