/* page-loader.html: three bouncing brand-blue dots, centred in the page. They
   stay invisible for the first 350ms, so a load that finishes quickly never
   flashes anything, then fade in. */
.page-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40vh;
  opacity: 0;
  animation: page-loader-in 0.3s ease 0.35s forwards;
}
.page-loader-dots {
  display: flex;
  gap: 8px;
}
.page-loader-dots i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand);
  animation: page-loader-bounce 0.9s ease-in-out infinite;
}
.page-loader-dots i:nth-child(2) {
  animation-delay: 0.15s;
}
.page-loader-dots i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes page-loader-in {
  to {
    opacity: 1;
  }
}
@keyframes page-loader-bounce {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.45;
  }
  40% {
    transform: translateY(-9px);
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .page-loader-dots i {
    animation: none;
    opacity: 0.7;
  }
}
