@layer components {
  /* Tags (design scope §4)

     No colour, and that is the design rather than an omission: the refusal list
     rules out colours-as-taxonomy, and a palette of tinted chips is how a tag
     list quietly becomes a second status field nobody agreed on. The count does
     the work colour would have done badly. */

  .tag-cloud {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space);
  }

  .tag {
    display: inline-flex;
    align-items: baseline;
    gap: var(--space);
    min-height: var(--control-h-sm);
    padding: var(--space) var(--space-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--ink);
    text-decoration: none;
    transition: border-color var(--transition), background var(--transition), var(--responds);
  }

  .tag:hover { border-color: var(--line-strong); background: var(--surface-hover); }

  .tag__name { font-size: var(--text-sm); }

  .tag__count {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--ink-faint);
    font-variant-numeric: tabular-nums;
  }
}
