/**
 * Divi does not honor prefers-reduced-motion for entrance or scroll effects.
 * !important is required here only: it has to beat Divi's inline animation,
 * opacity, transform, and blur (filter) styles. It is not used for color,
 * background, or border. :where() keeps the selector at zero specificity.
 */

@media (prefers-reduced-motion: reduce) {
	:where(.et_animated, .et_pb_motion_effect, .et_pb_scroll_effect, [data-motion-effect], .et-pb-before-scroll-animation) {
		animation: none !important;
		opacity: 1 !important;
		transform: none !important;
		filter: none !important;
	}
}

/* Divi 5.16 scroll effects: motion-effects script sets body[data-scroll-step] and injects
   body[data-scroll-step="N"] .et_pb_*_N { transform; filter } rules (no inline style, no marker class). */
@media (prefers-reduced-motion: reduce) {
	:where(body[data-scroll-step]) :where(.et_pb_section, .et_pb_row, .et_pb_column, .et_pb_module) {
		transform: none !important;
		filter: none !important;
	}
}
