/* Native cross-document View Transitions for full-page navigations. The opt-in
   must be on BOTH the outgoing and incoming document, so this file is linked on
   every page. Unsupported browsers ignore these rules. */

/* Opt-in disabled: Safari paints not-yet-rendered regions of the incoming page
   solid black during the cross-fade (a black flash after login). Re-enable only
   with a Safari-safe workaround.
@view-transition {
  navigation: auto;
}
*/

/* Shorter root cross-fade than the 250ms default. */
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 200ms;
  animation-timing-function: ease;
}

/* No animation for users who request reduced motion. */
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}
