/* Category-filter chip strip. Used above the quests index and the
   activity log. Each chip is an anchor that re-issues the current
   request with ?category_id=<id> (or "none", or blank for "all").
   The active chip fills with the category's --pad color; idle chips
   show a thin outline in the same color. */

.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1rem;
}

.category-filter__chip {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--pad, var(--color-border));
  border-radius: 999px;
  background: transparent;
  color: var(--pad, var(--color-muted-fg));
  font-size: 0.8125rem;
  line-height: 1.2;
  text-decoration: none;
  border-bottom-width: 1px;
  transition: background 120ms ease, color 120ms ease;
}

.category-filter__chip:hover {
  background: color-mix(in srgb, var(--pad, var(--color-primary)) 10%, transparent);
  border-bottom-color: var(--pad, var(--color-border));
}

.category-filter__chip.is-active {
  background: var(--pad, var(--color-primary));
  color: #fff;
  border-color: var(--pad, var(--color-primary));
}
