/* PREV / NEXT FADE, SITEWIDE (Kate Shawver, ClickUp 869ext9h9, 2026-10-10: "a nice fade in fade out
 * that feels smooth and quick ... same for all prev/next sitewide"). Driven by
 * assets/js/prevnext-fade-cae.js (out) and the inline head flag in inc/cae-prevnext-fade.php (in).
 * Only the page content fades: header and footer template parts stay put, so the chrome never
 * blinks. 150 ms each way. The in-fade is a CSS animation, so it completes with no script. */
html.cae-pn-out .wp-site-blocks > :not(.wp-block-template-part) {
  opacity: 0;
  transition: opacity 150ms ease-in;
}

html.cae-pn-in .wp-site-blocks > :not(.wp-block-template-part) {
  animation: cae-pn-fade-in 150ms ease-out backwards;
}

@keyframes cae-pn-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html.cae-pn-out .wp-site-blocks > :not(.wp-block-template-part) { opacity: 1; transition: none; }
  html.cae-pn-in .wp-site-blocks > :not(.wp-block-template-part) { animation: none; }
}
