/**
 * FBC View Transitions
 * Native cross-document View Transitions API ? animated cross-fade on navigation
 * instead of an instant page swap. Zero JS. Progressive enhancement:
 * supporting browsers (Chrome/Edge 126+, Safari 18.2+) animate; others no-op cleanly.
 *
 * Accessibility: opt-in is gated behind prefers-reduced-motion: no-preference,
 * with a hard override that kills all VT animation when reduced motion is requested.
 */

/* Opt in only for users who have not requested reduced motion. */
@media (prefers-reduced-motion: no-preference) {
	@view-transition {
		navigation: auto;
	}
}

/* Hard override: kill all VT animation if reduced motion is on. */
@media (prefers-reduced-motion: reduce) {
	::view-transition-group(*),
	::view-transition-old(*),
	::view-transition-new(*) {
		animation: none !important;
	}
}

/* Prevent the WP admin bar from animating/flickering on logged-in views. */
#wpadminbar {
	view-transition-name: wp-admin-bar;
}

::view-transition-group(wp-admin-bar) {
	animation: none;
}
