/* ============================================================
   46-status-pulse.css — pulsing dot on the status banner

   The status banner at the top of every page (`<div class="banner">`)
   already has a `<span class="dot">` element. This module wires
   a soft two-ring pulse that radiates outward in gold every 2.5
   seconds. Reads as "live system" — the page feels active.

   Plus a subtle text-shift animation on the status TEXT itself
   (1px scale every 2.5s in sync with the pulse) so the whole
   strip reads as alive.
   ============================================================ */

.banner .dot {
  position: relative;
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-yellow);
  box-shadow: 0 0 8px color-mix(in srgb, var(--c-yellow) 55%, transparent);
  vertical-align: middle;
  margin-right: 8px;
  flex-shrink: 0;
}

/* Outward pulse — two rings, staggered by half the duration so
   one is always emerging while the other fades. Looks like radar. */
.banner .dot::before,
.banner .dot::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid var(--c-yellow);
  pointer-events: none;
  animation: btb-status-pulse 2.5s cubic-bezier(0, 0, 0.2, 1) infinite;
  opacity: 0;
}
.banner .dot::after {
  animation-delay: 1.25s;
}

@keyframes btb-status-pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  100% {
    transform: scale(3.2);
    opacity: 0;
  }
}

/* Reduce-motion: drop the rings, keep the static yellow dot */
@media (prefers-reduced-motion: reduce) {
  .banner .dot::before,
  .banner .dot::after {
    animation: none;
    opacity: 0;
  }
}
