@layer components {
  /* How many, after the words it counts: a number in a pill, and what it counts said to a screen reader. */
  .count {
    background-color: var(--count-color, var(--color-link));
    border-radius: 99rem;
    color: var(--color-ink-inverted);
    font-size: var(--text-x-small);
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    line-height: 1;
    min-inline-size: 1.7em;
    padding: 0.35em 0.5em;
    text-align: center;
  }

  /* Hidden as .for-screen-reader hides, under a name of its own: a button holding that class is drawn as an icon alone. */
  .count__label {
    block-size: 1px;
    clip-path: inset(50%);
    inline-size: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
  }
}
