/* Generated by brand/scripts/build-components.mjs from brand/components/. Do not edit. Load public/tokens/tokens.css first. */

/* Chip: a short tag in a box (a filter, a category, a count). --accent marks the one that is on. */
.nu-chip {
  display: inline-flex;
  box-sizing: border-box;
  min-height: var(--nu-ui-chip, var(--nu-control-chip));
  align-items: center;
  gap: var(--nu-space-6);
  border: var(--nu-border-width) solid var(--nu-color-border);
  border-radius: var(--nu-radius-default);
  padding: 0 var(--nu-ui-chip-pad, var(--nu-space-10));
  background: var(--nu-color-surface);
  font-family: var(--nu-font-family-sans);
  font-size: var(--nu-size-caption);
  font-weight: var(--nu-font-weight-regular);
  white-space: nowrap;
  color: var(--nu-color-ink);
}

.nu-chip--accent {
  border-color: var(--nu-color-accent);
  color: var(--nu-color-accent);
}

button.nu-chip {
  cursor: pointer;
}

button.nu-chip:hover {
  border-color: var(--nu-color-accent);
}

button.nu-chip:focus-visible {
  outline: var(--nu-border-focus) solid var(--nu-color-accent);
  outline-offset: var(--nu-border-focus);
}

.nu-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--nu-space-8);
}

/* The state of a record (nuevauno/nu#315): a square of color, then the state's name in ink. The color is the state, never
   decoration: --success done or fine, --warning waiting or about to expire, --error failed or lost, --info planned or
   informative, --accent in progress or waiting for you. Without a tone, a grey square (a draft, an archived record). */
.nu-chip--state {
  min-height: var(--nu-control-chip-small);
  padding: 0 var(--nu-space-8);
  font-family: var(--nu-font-family-mono);
  transition: border-color var(--nu-motion-quick) var(--nu-motion-ease-out);
}

.nu-chip--state::before {
  width: var(--nu-control-mark);
  height: var(--nu-control-mark);
  flex: none;
  background: var(--nu-color-faint);
  content: "";
  transition: background-color var(--nu-motion-quick) var(--nu-motion-ease-out);
}

.nu-chip--success::before { background: var(--nu-color-success); }
.nu-chip--warning::before { background: var(--nu-color-warning); }
.nu-chip--error::before { background: var(--nu-color-error); }
.nu-chip--info::before { background: var(--nu-color-info); }
.nu-chip--state.nu-chip--accent { color: var(--nu-color-ink); }
.nu-chip--state.nu-chip--accent::before { background: var(--nu-color-accent); }

@media (prefers-reduced-motion: reduce) {
  .nu-chip--state,
  .nu-chip--state::before {
    transition: none;
  }
}
