/* Page-to-page motion (drill-down slide, chosen 2026-11-16). Every page opts in to the browser's cross-document view
   transitions; assets/nav.js works out whether the visitor went deeper (Home → Campgrounds → Park → Quest map) or back
   and marks <html data-nav="deeper|back|same"> for the moment of the change. Deeper: the new page slides in from the
   right while the old one eases back and dims. Back: the old page slides out to the right. Same level: a crossfade.
   The header has its own name, so it stays put while the page beneath it moves. Browsers without this (Firefox for
   now) simply load the page as before. Loaded on every page, before the theme stylesheet. */
@view-transition{navigation:auto}
html:not([data-vt="theme"]) .top{view-transition-name:top}
::view-transition-group(top),::view-transition-old(top),::view-transition-new(top){animation-duration:0s}
::view-transition-old(root),::view-transition-new(root){mix-blend-mode:normal;animation-duration:.4s;animation-timing-function:cubic-bezier(.4,0,.2,1);animation-fill-mode:both}
html[data-nav="deeper"]::view-transition-old(root){animation-name:rq-page-recede}
html[data-nav="deeper"]::view-transition-new(root){animation-name:rq-page-enter;z-index:1}
html[data-nav="back"]::view-transition-old(root){animation-name:rq-page-leave;z-index:1}
html[data-nav="back"]::view-transition-new(root){animation-name:rq-page-return}
@keyframes rq-page-enter{from{transform:translateX(100%)}}
@keyframes rq-page-recede{to{transform:translateX(-30%);filter:brightness(.6)}}
@keyframes rq-page-leave{to{transform:translateX(100%)}}
@keyframes rq-page-return{from{transform:translateX(-30%);filter:brightness(.6)}}
@media (prefers-reduced-motion:reduce){::view-transition-old(root),::view-transition-new(root){animation:none}}
