/* The Programs section of the person page (ProgramsPanelComponent in app/components; docs/phase0_core/03-new-specs.md, "Specification (the Programs panel)"), built from the panel, the badge, the
   callout, the empty state and the person page's own rows and fold (54-person-page.css), so what is here is only how they sit together: a heading, how old the data is, a warning when it is older
   than it should be, and the programs and the terms away as rows, the current ones and then the earlier ones in a fold.

   Linked after the person page's rules (54-person-page.css), which it adds to. Tokens only and logical properties only, both enforced (test/styles/tokens_test.rb, test/styles/components_test.rb),
   so all of it reads on the light shell and on the console, in light and in dark, and mirrors in a right-to-left language. It decides no mode and no surface. Nothing is pinned to an edge and
   nothing sets a height in vh.

   Everything that holds words may shrink (`min-inline-size: 0`) and breaks a word that has no room (`overflow-wrap`), so a long program, a long track or a language 40% longer never widens the
   page (WCAG 1.4.10). A status is its words, in a badge whose tone is a second signal and never the only one.

   The GPA and standing section (StandingPanelComponent; D-179) is the same arrangement of the same parts and is styled here with it, by the same rules (`.standing-panel`, `.standing-freshness`,
   `.standing-stale`), so no stylesheet of its own is taken: only the figure and the code are set apart (`.standing-value`), in the figures of a column so a column of them lines up. */

.programs-panel,
.standing-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--density-gap);
  max-inline-size: 64rem;
  min-inline-size: 0;
}

.programs-subheading {
  margin: 0;
  overflow-wrap: anywhere;
}

/* A group that follows another (the terms away after the programs) has room above its label. */
.programs-panel .person-rows + .programs-subheading {
  margin-block-start: var(--density-gap);
}

/* How old it is: a line of the muted small text the facts' provenance is in. */
.programs-freshness,
.standing-freshness {
  min-inline-size: 0;
  margin: 0;
  color: var(--fg2);
  font-size: var(--text-sm);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.programs-stale,
.standing-stale {
  min-inline-size: 0;
  overflow-wrap: anywhere;
}

.programs-panel .pill,
.standing-panel .pill {
  max-inline-size: 100%;
}

/* The figure or the code itself, the first thing the row says after its name. */
.standing-panel .standing-value {
  color: var(--fg1);
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  overflow-wrap: anywhere;
}
