/* ============================================================
   chip.css — filter chip (browse screen).
   Multi-select toggle. Active state fills ocean with white check.
   Category color-coded via --chip-accent (inactive dot color).
   ============================================================ */

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 9px 16px 9px 12px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition:
    background 180ms cubic-bezier(0.22, 1, 0.36, 1),
    color 180ms,
    border-color 180ms,
    box-shadow 180ms,
    transform 180ms;
}
.chip:hover {
  background: var(--surface-2);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

/* Inactive dot */
.chip__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--chip-accent, var(--muted));
  flex: 0 0 auto;
}

/* Active-state check icon (replaces the dot when selected) */
.chip__check {
  width: 14px; height: 14px;
  flex: 0 0 auto;
  color: #fff;
  display: none;
}

/* --- Active state --- */
.chip[aria-pressed="true"] {
  background: var(--ocean);
  border-color: var(--ocean);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--ocean) 40%, transparent);
  transform: translateY(-1px);
}
.chip[aria-pressed="true"] .chip__dot   { display: none; }
.chip[aria-pressed="true"] .chip__check { display: block; }

