/* Shared admin button pulse: fill the button itself, not just an outline.
   One animation for every pulsing admin button (.btn-pulse and, via missing-fields.css,
   buttons flagged with .nws-miss). While pulsing, the trough is always solid black
   (#111) and the peak is bright green with a green glow — even if the button's
   normal fill is red or white. */
.btn.btn-pulse,
.nwsa-page .btn.btn-pulse,
.nwsa-login .btn.btn-pulse,
.show-sheet .admin-only-box .btn.btn-pulse,
#nwsa-fixshow .btn.btn-pulse {
  animation: nws-admin-btn-pulse 1.4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes nws-admin-btn-pulse {
  0%, 100% {
    background-color: #111;
    color: #fff;
    box-shadow: 0 0 0 0 rgba(34, 224, 74, 0);
    filter: none;
  }
  50% {
    /* Peak fill darkened from #16c60c/#22e04a so white text meets WCAG AA (~4.7:1).
       Glow stays the brighter #22e04a so the pulse still reads as vivid green. */
    background-color: #0e8620;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(34, 224, 74, 0.45), 0 0 22px 6px rgba(34, 224, 74, 0.6);
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn.btn-pulse,
  .nwsa-page .btn.btn-pulse,
  .nwsa-login .btn.btn-pulse,
  .show-sheet .admin-only-box .btn.btn-pulse,
  #nwsa-fixshow .btn.btn-pulse {
    animation: none;
    background-color: #0e8620;
    color: #fff;
    box-shadow: 0 0 0 3px rgba(34, 224, 74, 0.4), 0 0 14px 4px rgba(34, 224, 74, 0.55);
  }
}
