/* ---------------------------------------------------------------
   Theme-switch text replay (shared across all pages)

   Mark any element with [data-theme-transition-text] to have it:
   1. hide while a theme view transition runs
      (js/intro-theme-selector.js adds .theme-text-transitioning)
   2. replay its CSS animations once the transition finishes
      (the class is removed, re-attaching any animation)

   During an animated theme switch the root also carries
   .theme-text-replay, letting page styles shorten animation
   delays for the replay (see index.css for an example).
--------------------------------------------------------------- */

:root.theme-text-transitioning [data-theme-transition-text] {
  visibility: hidden;
}

:root.theme-text-transitioning [data-theme-transition-text],
:root.theme-text-transitioning [data-theme-transition-text] * {
  animation: none !important;
}
