/* Full-screen centered loading overlay.
   Shown on submit of any <form data-loading="overlay"> (search boxes) so the
   user gets immediate feedback and — because the overlay covers the screen at
   a high z-index — can't click the search button again while it loads. */
.app-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(5, 28, 44, 0.55);          /* house navy scrim */
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.app-loading-overlay.is-active { display: flex; }

.app-loading-box { display: flex; flex-direction: column; align-items: center; }

.app-loading-spinner {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 5px solid rgba(255, 255, 255, 0.25);
  border-top-color: var(--nx-gold, #c2a25a);  /* brass accent */
  animation: app-spin 0.8s linear infinite;
}

.app-loading-text {
  margin-top: 16px;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
}

@keyframes app-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .app-loading-spinner { animation-duration: 1.8s; }
}
