/* The Clubs section of the person page (ClubsPanelComponent in app/components; docs/data_model/03-party-and-identity.md section 5.1, "As built (E1b and E1c)"), built from the
   table, 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 memberships as a table, the current ones and then the earlier ones.

   Linked after the device rules (40-native.css), like 46-sources.css and 47-housing-panel.css, which is why it is numbered 49 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 club, a long title 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 tables scroll inside their own named regions, which are focusable,
   and are the one place on the page that may be wider than a phone. */

.clubs-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--density-gap);
  max-inline-size: 64rem;
  min-inline-size: 0;
}
.clubs-part {
  display: grid;
  gap: var(--density-gap);
  min-inline-size: 0;
}
.clubs-subheading {
  margin: 0;
  overflow-wrap: anywhere;
}

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

/* A cell that says two things says them on two lines, so a column of clubs and a column of days read down. The second line is the quieter one. */
.clubs-line {
  display: block;
  min-inline-size: 0;
  overflow-wrap: anywhere;
}
.clubs-line-quiet {
  color: var(--fg2);
  font-size: var(--text-sm);
}
.clubs-panel .pill {
  max-inline-size: 100%;
}
.clubs-panel .pill + .clubs-line,
.clubs-panel .clubs-line + .pill {
  margin-block-start: 0.15rem;
}
