/* The Teams section of the person page (TeamsPanelComponent in app/components; docs/data_model/03-party-and-identity.md section 5.1, "As built (CARE A1)"; docs/phase0_core/06-app-layer.md section 7b),
   built from the fact list, the badge, the callout and the empty state, 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 teams as a fact list, each with the source that said so and the day of the extract.

   Linked after the device rules (40-native.css), like 46-sources.css, which is why it is numbered 48 and not among the components' 35 to 39: nothing here needs to come before them, because
   every rule is more specific than the one it adjusts. 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 team name, a long source name or a language 40% longer never
   widens the page (WCAG 1.4.10). The team's name is the one thing a fact says in the text color and at the fact value's weight; the roster row's own day and the badge that says the latest extract
   did not list it are lines of their own beneath it, in the muted small text at normal weight (the fact value is bold, and a day under a name must not say itself as loudly as the name), and a badge's
   tone is a second signal and never the only one. */

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

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

/* A fact that says several things says them on lines of their own, so a column of teams reads down: the name, then what else the source says of the row. */
.teams-name,
.teams-line {
  display: block;
  min-inline-size: 0;
  overflow-wrap: anywhere;
}
.teams-line {
  color: var(--fg2);
  font-size: var(--text-sm);
  font-weight: 400;
}
.teams-panel .pill {
  max-inline-size: 100%;
}
.teams-line + .teams-line {
  margin-block-start: 0.15rem;
}
