/* Small amount of plain CSS that utilities don't cover. Loaded in both CDN and compiled modes. */

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

section[id], [data-anchor] { scroll-margin-top: 5rem; }

/* Multi-step form: only the active step is shown once JS is running. */
.js [data-step]:not(.is-active) { display: none; }
.no-js [data-js-only] { display: none !important; }

/* Gallery + viewing dialogs */
dialog::backdrop { background: rgb(17 17 15 / 0.55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
dialog.lightbox::backdrop { background: rgb(12 12 10 / 0.94); }
dialog[open] { animation: dialog-in 0.18s ease-out; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
dialog.lightbox[open] { animation: fade-in 0.18s ease-out; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
[data-lb-img] { transition: opacity 0.2s ease; }
[data-lb-img].is-loading { opacity: 0; }

/* Hide scrollbars on horizontal tab strips while keeping them scrollable. */
.no-scrollbar { scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

/* Soft placeholder for photos that haven't been uploaded yet. */
.photo-placeholder {
  background:
    radial-gradient(120% 90% at 0% 0%, #ffffff 0%, transparent 55%),
    linear-gradient(135deg, #ebe9e1 0%, #dfe6e0 100%);
}

/* Spinner for buttons */
.spinner { width: 1.1em; height: 1.1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 9999px; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
