/* Urgent alert bar: shown above the header on every public page. */
.alert-bar {
  --alert-bg: #b3261e;
  --alert-bg-2: #d0352b;
  --alert-ink: #ffffff;
  --alert-badge-bg: #ffffff;
  --alert-badge-ink: #b3261e;
  position: relative;
  z-index: 45;
  background: var(--alert-bg);
  color: var(--alert-ink);
  font-family: "Public Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Gentle pulse rather than a hard flash (safe for people sensitive to flashing). */
  animation: alert-pulse 2.4s ease-in-out infinite;
}
.alert-bar.alert-important {
  --alert-bg: #ffbf3a;
  --alert-bg-2: #f7cb5d;
  --alert-ink: #1a1300;
  --alert-badge-bg: #1a1300;
  --alert-badge-ink: #f7cb5d;
}
.alert-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}
@media (max-width: 640px) {
  .alert-inner { padding: 10px 16px; gap: 10px; align-items: flex-start; }
}
.alert-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--alert-badge-bg);
  color: var(--alert-badge-ink);
  padding: 5px 10px;
  border-radius: 999px;
}
.alert-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  animation: alert-blink 1.2s ease-in-out infinite;
}
.alert-text {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.alert-link {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
  margin-left: 6px;
}
.alert-link:hover { text-decoration-thickness: 2px; }
.alert-link:focus-visible { outline: 2px solid var(--alert-ink); outline-offset: 2px; }

@keyframes alert-pulse {
  0%, 100% { background: var(--alert-bg); }
  50% { background: var(--alert-bg-2); }
}
@keyframes alert-blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.25; transform: scale(0.75); }
}
/* Visitors who ask their device for less motion get a steady bar. */
@media (prefers-reduced-motion: reduce) {
  .alert-bar, .alert-dot { animation: none; }
}
