
	@view-transition {navigation: auto;}

  /* Reserve the scrollbar gutter always, so navigating to a taller page (e.g. the
     Posts feed) doesn't change the viewport width and reflow the fixed header
     mid-transition — a common cause of header "flicker" between pages. Excluded on
     the Missions Display (body.kiosk): it renders no header for the gutter to
     protect, and it's a fixed 100vh stage where a reserved gutter is just a
     permanently visible empty scrollbar. */
  html:not(:has(body.kiosk)) { scrollbar-gutter: stable; }

  .cloak {
    display: none;
  }
  @keyframes fade-in {
    from {
      opacity: 0;
    }
  }

  @keyframes fade-out {
    to {
      opacity: 0;
    }
  }

  @keyframes slide-from-right {
    from {
      transform: translateX(90px);
    }
  }

  @keyframes slide-to-left {
    to {
      transform: translateX(-90px);
    }
  }

  /**
  ::view-transition-old(root) {
    animation: 180ms cubic-bezier(0.4, 0, 1, 1) both fade-out, 200ms
        cubic-bezier(0.4, 0, 0.2, 1) both slide-to-left;
  }
  ::view-transition-new(root) {
    animation: 420ms cubic-bezier(0, 0, 0.2, 1) 90ms both fade-in, 200ms
        cubic-bezier(0.4, 0, 0.2, 1) both slide-from-right;
  }
  **/

  ::view-transition-group(root) {
    animation-duration: 200ms;
  }

  #topNav {
    view-transition-name: topNav;
  }

  #sideNav {
    view-transition-name: sideNav;
  }

  #overlay {
    view-transition-name: overlay;
  }

  /* Persistent chrome is the stable frame — it shouldn't cross-fade. The header is
     semi-transparent + backdrop-blur, so cross-fading two snapshots (whose blur sampled
     different page content) flickers. Hold the header/sidebar steady across the
     navigation; only the root content animates. (#overlay is left to fade for the
     mobile drawer.) */
  ::view-transition-group(topNav),
  ::view-transition-group(sideNav),
  ::view-transition-old(topNav),
  ::view-transition-new(topNav),
  ::view-transition-old(sideNav),
  ::view-transition-new(sideNav) {
    animation: none;
  }

  /* The missionary profile cover/identity bar (#v2cover) is identical across that
     profile's tabs, so pin it like the chrome rather than letting it cross-fade as part
     of root (which flickers the cover image on tab switches). Harmless on pages without
     a #v2cover element. */
  #v2cover {
    view-transition-name: v2cover;
  }
  ::view-transition-group(v2cover),
  ::view-transition-old(v2cover),
  ::view-transition-new(v2cover) {
    animation: none;
  }

  /* Kiosk appearance editor: the left chrome (.k-edit = rail + flyout panel) and the
     floating Globe/Map/Grid switcher (.k-view-switch) are identical across the three view
     editors, which are separate full-page navigations. Pin them so switching the previewed
     view only cross-fades the preview STAGE — the chrome holds rock-steady instead of
     flickering against a near-identical copy of itself. Mirrors the #topNav/#sideNav
     treatment above. Harmless on pages without these elements. */
  .k-edit {
    view-transition-name: kioskEditChrome;
  }
  .k-view-switch {
    view-transition-name: kioskViewSwitch;
  }
  ::view-transition-group(kioskEditChrome),
  ::view-transition-old(kioskEditChrome),
  ::view-transition-new(kioskEditChrome),
  ::view-transition-group(kioskViewSwitch),
  ::view-transition-old(kioskViewSwitch),
  ::view-transition-new(kioskViewSwitch) {
    animation: none;
  }


  /**
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 200ms;
  }
**/

