/* Anahata v2 — chip. Figma: Button "All" variants + recent-search pills. */

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--a-space-2);
  white-space: nowrap;
  font-family: var(--a-font-body);
  text-decoration: none;
  cursor: pointer;
}

/* filter chip: tan outline by default, tan fill when selected (Figma 2026-09-10) */
.chip--filter {
  padding: 8px 16px;
  border: 1px solid var(--a-tan);
  border-radius: var(--a-radius); /* 10px — Figma 1438:3214 */
  background: transparent;
  color: var(--a-ink);
  font-size: 18px;
  font-weight: 500;
}

.chip--filter.is-selected {
  background: var(--a-tan);
  border-color: var(--a-tan);
  color: var(--a-on-dark);
  font-weight: 400;
}

/* tag chip: soft filled pill, optionally dismissible */
.chip--tag {
  padding: 5px 10px;
  border-radius: var(--a-radius-pill);
  background: var(--a-bg-subtle);
  color: var(--a-ink);
  font-size: var(--a-fs-label);
  font-weight: 500;
}

.chip__x {
  display: inline-flex;
}

/* unavailable facet (0 results) — inert, still readable */
.chip.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* Button mode only needs the UA appearance neutralised: author styles already
   beat UA styles for border, font, background and padding, so .chip--filter
   keeps its tan outline and 18px/500 type on its own.
   Declared on .chip (not `button.chip`) on purpose — an element+class selector
   would outrank .chip--filter and silently flatten those. */
.chip {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
}
