/* chips.css — filter/category chips (12 §5). Chips that change the URL are real links. */

.chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: var(--control-h-sm);
  padding: 0 var(--sp-4);
  border: var(--border-w) solid var(--border);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--text);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.chip:hover { border-color: var(--primary); color: var(--text-strong); text-decoration: none; }

.chip--active, .chip[aria-pressed="true"], .chip[aria-current="page"] {
  background: var(--primary-tint);
  border-color: var(--primary);
  color: var(--text-strong);
}

.chip__count { color: var(--text-muted); font-variant-numeric: tabular-nums; }

/* Horizontal scroll on small screens instead of wrapping many rows. */
.chips--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: var(--sp-1); }
.chips--scroll::-webkit-scrollbar { display: none; }
