/**
 * Wehome Chip — components.md §8
 * Filter / choice. Not a solid primary CTA.
 */
.wh-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: var(--wh-touch-min, 44px);
  padding: 8px 14px;
  box-sizing: border-box;
  border: 1px solid var(--wh-bd, rgba(0, 0, 0, 0.06));
  border-radius: var(--wh-radius-sm, 16px);
  background: var(--wh-card, #fff);
  color: var(--wh-tx, #191f28);
  font-family: var(--wh-ff, Pretendard, -apple-system, sans-serif);
  font-size: var(--wh-text-sm, 0.875rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: var(--wh-tracking-body, -0.02em);
  cursor: pointer;
  appearance: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color var(--wh-motion-hover, 120ms) var(--wh-ease-out-smooth, cubic-bezier(0.16, 1, 0.3, 1)),
    border-color var(--wh-motion-hover, 120ms) var(--wh-ease-out-smooth, cubic-bezier(0.16, 1, 0.3, 1)),
    color var(--wh-motion-hover, 120ms) var(--wh-ease-out-smooth, cubic-bezier(0.16, 1, 0.3, 1)),
    opacity var(--wh-motion-state, 180ms) var(--wh-ease-out-smooth, cubic-bezier(0.16, 1, 0.3, 1));
}

html.wh-surface-stay .wh-chip {
  border-radius: var(--wh-radius-sharp, 10px);
}

.wh-chip--selected,
.wh-chip[aria-pressed="true"],
.wh-chip[aria-selected="true"] {
  background: var(--wh-brand-tint, #f3eefa);
  border-color: var(--wh-info-bd, #d9ccf0);
  color: var(--wh-brand, #681dc7);
}

@media (hover: hover) and (pointer: fine) {
  .wh-chip:hover {
    background: var(--wh-bg, #f2f4f6);
  }
  .wh-chip--selected:hover,
  .wh-chip[aria-pressed="true"]:hover,
  .wh-chip[aria-selected="true"]:hover {
    background: var(--wh-brand-tint, #f3eefa);
  }
}

.wh-chip:focus-visible {
  outline: 2px solid var(--wh-focus-ring, #681dc7);
  outline-offset: 2px;
}

.wh-chip:disabled,
.wh-chip.is-disabled,
.wh-chip[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.wh-chip .material-symbols-outlined {
  font-size: var(--wh-icon-sm, 20px);
  line-height: 1;
}

.wh-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wh-inline-xs, 8px);
  align-items: center;
}

/* ── Legacy theme chip bridge (home/search .r26-chip) ──
   Do NOT unset padding/radius — that wiped page .r26-chip layout and left
   only .wh-chip grey border (app screenshots 2026-08-01).
   Selected/active tones only; layout from page .r26-chip or .wh-chip cascade. */
.r26-chips-wrap.wh-chip-row {
  flex-wrap: nowrap;
}

.r26-chip.wh-chip.active,
.r26-chip.wh-chip.wh-chip--selected,
.r26-chip.wh-chip[aria-pressed="true"] {
  background: var(--wh-brand-tint, #f3eefa);
  border-color: var(--wh-brand, #681dc7);
  color: var(--wh-brand, #681dc7);
  font-weight: 600;
}

@media (hover: hover) and (pointer: fine) {
  .r26-chip.wh-chip:hover {
    background: var(--wh-bg, #f2f4f6);
  }
  .r26-chip.wh-chip.active:hover,
  .r26-chip.wh-chip.wh-chip--selected:hover,
  .r26-chip.wh-chip[aria-pressed="true"]:hover {
    background: var(--wh-brand-tint, #f3eefa);
  }
}

