/*
 * Shared numeric count geometry for tabs and navigation labels.
 * Context styles own color; this utility owns sizing and centering.
 */
.tab-count {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  box-sizing: border-box;
  min-inline-size: 1.375rem;
  block-size: 1.375rem;
  padding-inline: 0.375rem;
  border-radius: 999px;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: inherit;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  vertical-align: middle;
}

.tab-count:empty {
  display: none;
}

/* A failed totals read: the last-good figure (if any) and an alert glyph. */
.tab-count--error {
  grid-auto-flow: column;
  gap: 0.25rem;
}

.tab-count__alert {
  inline-size: 0.75rem;
  block-size: 0.75rem;
  stroke: currentColor;
  fill: none;
}
