/* Chips */

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 6px; margin: 0 -16px; padding-inline: 16px; scroll-snap-type: x proximity; }
.chips.scroll::-webkit-scrollbar { display: none; }

/* a chip is a toggle button: aria-pressed="true" means selected */
.chip {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; min-height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--chip); color: var(--text); font-size: .88rem; font-weight: 550;
  transition: background-color .15s, color .15s, transform .1s;
}
.chip:active { transform: scale(.96); }
.chip[aria-pressed="true"] { background: var(--chip-on); color: var(--chip-on-text); border-color: color-mix(in srgb, var(--chip-on-text) 35%, transparent); }

/* small colour dot drawn from the --sw custom property */
.chip.sw::before { content: ""; width: 13px; height: 13px; border-radius: 50%; background: var(--sw); border: 1px solid rgba(0, 0, 0, .25); }
