/* Every page: Table's index on the page's ground, on hairlines, with no card: a list of plain facts. Beside its title
   the count says what it holds. Each page is a row: its name, its kind (Tag) and what it is about, in primary ink
   (Table's .is-strong), since a reader scans for a platform's name. The rows stand under the day they were published
   (this month) or their month (before): from 900 px that day stands once in a gutter at the row's start, under a strong
   rule across the index; narrower, as a small label over its rows. The head's finder and its tabs narrow the index;
   until the reader types or asks for all, it leaves out the pages whose covers stand on the stage and holds twenty rows,
   with "Show more" as its last row (03-every.js). */
.cx-every[hidden] { display: none; }
.cx-every { padding-block-end: 0; }   /* the Close brings its own space above: one section's space between them, not two */
.cx-count { margin: 0; }

.cx-index { --cx-gutter: calc(var(--space-9) + var(--space-8)); }
.cx-index tbody tr[hidden] { display: none; }
/* The columns' names stay for a screen reader: a name, a tag and the platforms need none over them */
.cx-index thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cx-index tbody th { font: var(--t-label-l); letter-spacing: var(--t-label-l-tracking); text-wrap: balance; }
.cx-index tbody th a { text-decoration: none; }
.cx-index tbody th a:hover { color: var(--ink-accent); }
.cx-index .cx-kind > .tag { vertical-align: middle; }
/* A day's or a month's head: no row of its own. Its name stands where its first row starts, under the rule that opens
   it; the rule takes that row's hairline's place */
.cx-index .cx-group > th { padding: 0; border: 0; font: var(--t-label); letter-spacing: 0; color: var(--ink-secondary); }
.cx-index .cx-group > th > span { display: block; padding-block: var(--space-5) var(--space-1); border-top: 1px solid var(--border-strong); }
.cx-index tbody tr:is(.cx-group + tr, .cx-first) > * { border-top: 0; }   /* without the script, the row after the head; with it, the first that shows */
/* On a list in another language, the head of the site's English pages after its own: "In English" on a line of its own
   under the day or the month, as the days start again there; each such row also says it beside its name */
.cx-group-en { display: block; }
.cx-index .cx-en { margin-inline-start: var(--space-1); }

.cx-none { margin: 0; padding-block: var(--space-6) var(--space-5); text-wrap: pretty; }
.cx-none-q { color: var(--ink-primary); }
.cx-more { margin: 0; padding-block-start: var(--space-4); border-top: 1px solid var(--border-subtle); }
.cx-more[hidden] { display: none; }

/* A wide index: the day in the gutter, the rows beside it; a German index breaks its titles at their spaces and
   hyphens, never inside a word */
@container table (min-width: 900px) {
  .cx-index .table { width: calc(100% - var(--cx-gutter)); margin-inline-start: var(--cx-gutter); }
  .cx-index tbody tr:not(.cx-group) > :is(th, td) { padding-block: var(--space-4); }
  .cx-index tbody th { width: var(--table-head); }   /* the names' column, which the hidden heads no longer size */
  .cx-index .cx-group > th { height: 0; line-height: 0; }
  /* the name (14/20) on the first line of its first row's name (16/22): a pixel under the row's own space */
  .cx-index .cx-group > th > span { position: absolute; inset-inline: 0; padding-block: calc(var(--space-4) + 1px) 0; pointer-events: none; font: var(--t-label); }
  .cx-index :is(.cx-none, .cx-more) { margin-inline-start: var(--cx-gutter); }
  .cx-index:lang(de) tbody th { hyphens: manual; }
}
.cx-index:lang(de) tbody td { hyphens: manual; }

/* A narrow index (Table's own form: a row's head over its cells): the kind over the name, as on a card, and what the
   page is about on a line of its own, so every row has one shape */
@container table (max-width: 899px) {
  .cx-index tbody tr:not(.cx-group) { padding-block: var(--space-4); }
  .cx-index tbody tr:not(.cx-group) > th { order: 1; margin-bottom: var(--space-1); }
  .cx-index .cx-kind { order: 0; flex: 0 0 100%; margin-bottom: var(--space-2); }
  .cx-index .cx-about { order: 2; flex: 0 0 100%; }
  .cx-index tbody tr.cx-group { padding: 0; border: 0; }
  .cx-index tbody tr.cx-group > th { margin: 0; }
  .cx-index tbody tr:is(.cx-group + tr, .cx-first) { border-top: 0; }
  .cx-index thead th:first-child { width: auto; }
}
