/* /gazette-text-motion.css */
@media (prefers-reduced-motion: no-preference) {
  .gazette-text-motion:not(.night-copy > *) {
    translate: var(--gazette-text-x, 0px) 0;
  }

  /* These chapters already use translate for vertical motion. */
  .night-feature .night-copy > .gazette-text-motion {
    transform: translateX(var(--gazette-text-x, 0px));
  }

  main a.gazette-button-motion[href]:any-link {
    /* A horizontal repaint keeps the note below clear and avoids ghost edges
       around rounded buttons during touch scrolling. */
    position: relative;
    left: var(--gazette-button-x, 0px);
    translate: none;
    scale: none;
    transform: none;
    transition: background-color .25s ease !important;
  }

  main a.gazette-button-motion[href]:any-link:active {
    filter: brightness(.88);
  }
}

