/* Shared by Astro and standalone pages with their own stylesheets. */
body.has-site-starfield { isolation: isolate; }

.site-starfield {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.site-starfield::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 200%;
  background-image: url('/assets/images/site-stars-desktop.png');
  background-size: 100% 50%;
  background-repeat: repeat-y;
  animation: starfield-drift 105s linear infinite;
}

.site-starfield[data-light]::before { filter: brightness(0.24); }
.site-starfield[data-paused]::before { animation-play-state: paused; }

@media (max-width: 639px) {
  .site-starfield::before { background-image: url('/assets/images/site-stars-mobile.png'); }
}

@keyframes starfield-drift {
  to { transform: translateY(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .site-starfield::before { animation: none; }
}

@media print {
  .site-starfield { display: none; }
}

/* Attribution is rendered beside each protected form before Google loads. */
.has-recaptcha-disclosure .grecaptcha-badge { visibility: hidden; }

.recaptcha-disclosure {
  margin-top: var(--space-sm, 0.75rem);
  color: inherit;
  font-size: var(--text-sm, 0.875rem);
  line-height: 1.5;
}

.recaptcha-disclosure a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
