/* css/sections/36-glossary.css · terms in native <details> (base .term recipe), two grid columns from 64em. G7. Tokens only.
 * Closed by term, so the list scans as names first. Closed definitions are hidden only by the browser's own <details> rule
 * (::details-content), never by display: none or opacity, so find-in-page reaches them and opens the term. */
@layer sections {
  .s-glossary { background: var(--color-paper-2); padding-block-end: var(--gap-a); }   /* band 34–36 ends here */
  .s-glossary .gloss__list { min-width: 0; border-bottom: var(--rule-hair) solid var(--color-rule); }
  .s-glossary .gloss__term { border-top: var(--rule-hair) solid var(--color-rule); border-bottom: 0; }
  .s-glossary .gloss__name { min-block-size: calc(var(--space-2xl) - var(--space-sm)); touch-action: manipulation; }
  .s-glossary .gloss__def p { max-width: 52ch; }

  /* the one wide plate of the reference band: heading above (not in the margin), the list across the full grid in two columns */
  @media (min-width: 64em) {
    .s-glossary .topic__inner > .gloss__title { grid-column: 1 / -1; grid-row: 1; position: static; margin: 0 0 var(--space-2xl); padding: 0;
                                                font-size: var(--text-section); max-width: 20ch; }
    .s-glossary .gloss__list { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
                               column-gap: var(--gap-columns); align-items: start; border-bottom: 0; }
    .s-glossary .gloss__term:nth-last-child(-n + 2) { border-bottom: var(--rule-hair) solid var(--color-rule); }
  }
}
