/*
 * The content pages’ own pieces: the link columns of the indicator index and
 * the summary archive, and the indicator glossary.
 */
@layer pages {
  .link-columns {
    columns: 1;
    column-gap: var(--space-xl);
    font-size: var(--text-ui);

    & > :is(a, li, span) {
      display: block;
      padding-block: var(--space-3xs);
      break-inside: avoid;
    }

    @media (width >= 768px) {
      columns: 3;
    }
  }

  /* The glossary (M09-D8, pages/indicators/glossary): Core as a list of
     terms — the name, what it means, how it is worked out in the data face —
     and every other indicator in a table per group. */
  .glossary__intro {
    margin-block-end: var(--space-lg);
    color: var(--color-ink-soft);
    font-family: var(--font-prose);
    font-size: var(--text-lead);
    line-height: var(--leading-lead);
  }

  .glossary__terms {
    display: grid;
    gap: var(--space-md);
    margin: 0;

    @media (width >= 1024px) {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: var(--space-md) var(--space-xl);
    }
  }

  .glossary__term {
    display: grid;
    gap: var(--space-3xs);
    align-content: start;

    & dt {
      font-weight: var(--weight-semibold);
    }

    & dd {
      margin: 0;
      color: var(--color-ink-soft);
      font-size: var(--text-ui-sm);
    }
  }

  .glossary__formula {
    font-family: var(--font-data);
    color: var(--color-ink-muted);
  }

  /* Meanings are sentences: the table lets them wrap. */
  .glossary__table td:last-child {
    min-inline-size: 18rem;
    white-space: normal;
  }
}
