/**
 * Stravum Popup — smooth open/close transition.
 *
 * The overlay stays in the DOM at all times (never display:none, which can't
 * be transitioned); popup.js toggles a single .is-open class and CSS handles
 * the fade + panel scale-in/out. visibility is delayed on the way OUT (so the
 * overlay stops intercepting clicks only after it's fully invisible) and
 * instant on the way IN.
 */
.stravum-popup {
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}
.stravum-popup.is-open {
	opacity: 1;
	visibility: visible;
	transition: opacity 0.3s ease, visibility 0s linear 0s;
}

.stravum-popup-panel {
	transform: scale(0.94) translateY(12px);
	transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.stravum-popup.is-open .stravum-popup-panel {
	transform: scale(1) translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	.stravum-popup,
	.stravum-popup-panel {
		transition: none;
	}
}
