/* Clone glue on top of the self-hosted theme CSS (assets/rg/).
   Visual styling comes from the theme files; this file only adds what the
   static clone needs: gate/site switching, curtain measuring, phone fallback. */

#gate[hidden], #site[hidden], #alert-box[hidden], [hidden] { display: none !important; }
html.has-curtains { scroll-behavior: auto !important; }

/* Gate alert fades like the RG flash */
#alert-box { transition: opacity .4s ease-in; }
#alert-box.fading { opacity: 0; }

/* Curtain measuring pass (curtains.js) */
#site-body .curtains.is-measuring > section {
  position: relative !important;
  display: block !important;
  transform: none !important;
  min-height: 0 !important;
  height: auto !important;
  overflow: visible !important;
}


/* RSVP closed note shown when Submit is pressed */
#site-body #rsvp #rsvp-closed-note { display: block; padding: 0 0 16px; text-align: center; }

/* Accommodations: placeholder cards stay invisible but keep their space (as live) */

@media (prefers-reduced-motion: reduce) {
  #site-body .curtains > section { transition: none !important; }
}

/* ===== Phone / reduced-motion: no fixed curtains; sticky stack so the next
   panel still slides over the previous one ===== */
html.no-curtains #site-body .curtains > section {
  position: sticky;
  top: 0;
  min-height: 100vh;
  overflow: visible;
}
html.no-curtains #site-body .curtains > section:nth-child(1) { z-index: 1; }
html.no-curtains #site-body .curtains > section:nth-child(2) { z-index: 2; }
html.no-curtains #site-body .curtains > section:nth-child(3) { z-index: 3; }
html.no-curtains #site-body .curtains > section:nth-child(4) { z-index: 4; }
html.no-curtains #site-body .curtains > section:nth-child(5) { z-index: 5; }
html.no-curtains #site-body .curtains > section:nth-child(6) { z-index: 6; }
html.no-curtains #site-body .curtains > section:nth-child(7) { z-index: 7; }
html.no-curtains #site-body .curtains > section:nth-child(8) { z-index: 8; }
html.no-curtains #site-body .curtains > section:nth-child(9) { z-index: 9; }
