/* Freshness bead component. Colors are the reserved --live/--caution/--stale
   tokens; these three tokens are never used outside beads. Tokens only. */

.bead-slot {
  display: inline-flex;
  align-items: center;
  min-height: 1em;
}

.bead {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: default;
}

.bead-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  flex: none;
  background: var(--faint);
}

.bead[data-state="live"] .bead-dot {
  background: var(--live);
}
.bead[data-state="caution"] .bead-dot {
  background: var(--caution);
}
.bead[data-state="stale"] .bead-dot {
  background: var(--stale);
}
.bead[data-state="pending"] .bead-dot {
  background: transparent;
  border: 1px solid var(--faint);
  width: calc(0.55rem - 2px);
  height: calc(0.55rem - 2px);
}

.bead-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.bead[data-state="live"] .bead-label {
  color: var(--live);
}
.bead[data-state="caution"] .bead-label {
  color: var(--caution);
}
.bead[data-state="stale"] .bead-label,
.bead[data-state="pending"] .bead-label {
  color: var(--faint);
}
