/* Full-screen page loader — brand mark inside a spinning ring.
   Paste-in companion: snippets/spinner.html + js/loader.js */

#spinner {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s ease-out, visibility 0s linear .5s;
}

#spinner.show {
  opacity: 1;
  visibility: visible;
  transition: opacity .5s ease-out, visibility 0s linear 0s;
}

#spinner .spinner-ring {
  width: 6rem;
  height: 6rem;
  border: .25em solid rgba(15, 95, 75, 0.18);
  border-right-color: #0F5F4B;
  border-radius: 50%;
  animation: spinner-rotate .75s linear infinite;
}

/* The mark sits centred on top of the ring, not beside it. */
#spinner .spinner-mark {
  position: absolute;
  width: 70px;
  height: 70px;
}

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

/* Keep the ring readable rather than removing the only progress cue. */
@media (prefers-reduced-motion: reduce) {
  #spinner .spinner-ring { animation-duration: 2.4s; }
}
