/* Page cross-fade (design pack part 12, brand.toml [ui] view_transitions, default off). CSS only, no script.
   A same-origin navigation fades the old page into the new one in 180 ms. The header (public) and the sidebar (admin)
   carry their own transition name, so they stand still while the page under them changes. A browser without
   cross-document view transitions navigates as before; so does a reader who asked for reduced motion, because the
   opt-in sits inside the no-preference query. Independent of [motion] enabled. Docs: docs/ui-switches.md. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }

  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 180ms;
    animation-timing-function: var(--m-out, cubic-bezier(.23, 1, .32, 1));
  }
  .nav { view-transition-name: site-header; }
  .sidebar { view-transition-name: site-nav; }
}
