/* =====================================================================
   PAGE CHANGE ANIMATION + LOADING CURSOR  (templates/website/base.html, URL every public page)
   Crossfade between pages (view transitions), the phone tab bar colour
   transition, and the progress cursor while page_router.js loads a page.
   Moved out of the <style> in the <head> of that template, same spot.
   ===================================================================== */

    @view-transition { navigation: auto; }
    ::view-transition-old(root),
    ::view-transition-new(root) { animation-duration: .35s; animation-timing-function: ease; }
    @media (prefers-reduced-motion: reduce) {
      @view-transition { navigation: none; }
    }
    /* No white spinner screen when arriving via an in-site link */
    html.vt-nav .preload { display: none !important; }
    /* Header and mobile tab bar switch instantly (no stretch/crossfade blur); only the page content fades */
    #header { view-transition-name: site-header; }
    .m-tabbar { view-transition-name: site-tabbar; }
    ::view-transition-group(site-header),
    ::view-transition-group(site-tabbar),
    ::view-transition-new(site-header),
    ::view-transition-new(site-tabbar) { animation: none; }
    ::view-transition-old(site-header),
    ::view-transition-old(site-tabbar) { display: none; }
    /* keep them above the fading page, otherwise the fade washes the header out */
    ::view-transition-group(site-header),
    ::view-transition-group(site-tabbar) { z-index: 10; }
    /* While the page changes, the frosted-glass header is made solid so its
       snapshot is crisp (backdrop blur can't render inside a transition) */
    html.vt-run #header.header-single-line::after {
      -webkit-backdrop-filter: none !important;
      backdrop-filter: none !important;
      background: #fff !important;
    }
    html.vt-run #header.header-single-line,
    html.vt-run #header.header-single-line::after,
    html.vt-run #header.header-single-line .header-single-row { transition: none !important; }
    @media (min-width: 1200px) {
      html.vt-run #header.header-single-line::after { background: #f7fafd !important; }
    }
    /* Active menu pill slides over to the clicked item */
    #header .box-nav-ul .item-link,
    .m-tabbar a { transition: color .25s ease, background-color .25s ease, box-shadow .25s ease; }
    /* page_router.js is fetching the next page */
    html.atf-loading, html.atf-loading a { cursor: progress; }
  
