/* Badge - outlined status chip, a service label at 11px uppercase 600
   (docs/design-system.md, Type). The status color is the border and the text,
   never the background; the AD badge is the success tone. */

.badge {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  padding: 3px 6px;
  font-family: var(--font-sans);
  font-size: var(--text-label);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  line-height: 1;
  white-space: nowrap;
  color: var(--color-text);
  background: var(--color-bg-surface);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-small);
  box-sizing: border-box;
}

button.badge {
  cursor: pointer;
}

.badge--success {
  color: var(--color-success);
  border-color: var(--color-success);
}

.badge--warning {
  color: var(--color-warning);
  border-color: var(--color-warning);
}

.badge--error {
  color: var(--color-error);
  border-color: var(--color-error);
}

.badge--hidden {
  visibility: hidden;
}
