/* Prevent Alpine flash */
[x-cloak]{ display:none !important; }

.cosmic-overlay{ z-index: var(--z-modal-overlay, 9997); }
.cosmic-popup{   z-index: var(--z-modal, 9999); }

/* Close button */
.cosmic-popup .close{
  position:absolute;
  top:.4rem;
  right:.6rem;
  font-size:1.5rem;
  line-height:1;
  background:transparent;
  border:0;
  cursor:pointer;
}

/* Type polish */
.cosmic-popup h3{ font-size:1.1rem; margin:.25rem 0 .35rem; }
.cosmic-popup .section-label{ font-size:.8rem; opacity:.75; margin-top:.35rem; }
.cosmic-popup .meta{ font-size:.95rem; line-height:1.35; }

/* Keep other elements from outranking the popup */
.gcp-wrap,.gcp-iframe,.paper_box,.paper_box *{ z-index:auto !important; }

/* Optional safety: avoid stacking-context culprits */
.cosmic-strip,.cosmic-col,.cosmic-row{
  transform:none !important;
  will-change:auto !important;
  contain:none !important;
}
