/* Cross-document transitions preserve the current page while the next loads. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: ruah-page-out 180ms ease-out both; }
::view-transition-new(root) { animation: ruah-page-in 260ms cubic-bezier(.22,1,.36,1) both; }
@keyframes ruah-page-out { to { opacity: 0; } }
@keyframes ruah-page-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
html.ruah-arriving #app { animation: ruah-page-in 240ms cubic-bezier(.22,1,.36,1) both; }
html.ruah-navigating::after { content: ''; position: fixed; z-index: 100000; top: 0; left: 0; width: 100%; height: 3px; pointer-events: none; background: linear-gradient(90deg,#c89565,#fff2df,#c89565); transform-origin: left; animation: ruah-nav-progress 1.8s ease-out both; }
html.ruah-online-navigation.ruah-navigating::after { background: linear-gradient(90deg,#6400bc,#d6ff28,#ff3c97); }
@keyframes ruah-nav-progress { from { transform: scaleX(.08); } to { transform: scaleX(.9); } }
@media (prefers-reduced-motion: reduce) {
 @view-transition { navigation: none; }
 ::view-transition-old(root), ::view-transition-new(root), html.ruah-arriving #app { animation: none; }
 html.ruah-navigating::after { animation: none; transform: scaleX(1); }
}
