/* The brand's progress mark: the five-pod row (and the logo's three pods under the roof) with
   the lit pod moving along while something open-ended waits (DNS checks, payments, slow form
   submits). A status pill for something under way instead gets
   one lit pod that glows (views.LivePod). hearth.js adds the row to forms with data-busy and
   keeps every copy in step across htmx swaps. With reduced motion nothing moves. */

.ct-working { display: inline-flex; align-items: center; gap: var(--space-2, 8px); color: var(--ink-muted); font-size: 14px; line-height: 20px; }
.ct-working__pods { display: block; flex: none; height: 12px; width: auto; overflow: visible; }
.ct-working--lg { gap: var(--space-3, 12px); font-size: 15px; }
.ct-working--lg .ct-working__pods { height: 24px; }
.ct-working--block { display: flex; margin-top: var(--space-3, 12px); }

/* Five pods: each is lit for a fifth of the cycle, one after another. */
.ct-working__pod { fill: var(--moss); animation: ct-working-5 1.5s linear infinite; }
.ct-working__pod:nth-child(2) { animation-delay: 300ms; }
.ct-working__pod:nth-child(3) { animation-delay: 600ms; }
.ct-working__pod:nth-child(4) { animation-delay: 900ms; }
.ct-working__pod:nth-child(5) { animation-delay: 1200ms; }
@keyframes ct-working-5 {
  0%, 17% { fill: var(--hearth); }
  27%, 100% { fill: var(--moss); }
}

/* One step under way: a single lit pod that glows (status pills; the deploy page's current
   step pod uses the same glow). */
.ct-livepod rect { fill: var(--hearth); }
.ct-livepod { animation: ct-glow 1.6s ease-in-out infinite; }
@keyframes ct-glow { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* A form whose submit is under way (data-busy): its button stays put but can't be pressed again. */
[aria-disabled="true"].ct-btn { opacity: 0.6; pointer-events: none; flex-shrink: 0; }
[data-busy-note] { min-width: 0; }
@media (max-width: 479px) { form[aria-busy="true"] { flex-wrap: wrap; } }

@media (prefers-reduced-motion: reduce) {
  .ct-working__pod, .ct-livepod { animation: none; }
  .ct-working__pod:nth-child(3) { fill: var(--hearth); }
}
