/**
 * Revita: core/columns helpers.
 *
 * Lyophilization steps (pattern revita/lyophilization-steps: columns "revita-steps",
 * columns "revita-step"): on wide screens a dashed honey line joins the three step
 * badges (112 × 103 px, so their centre is about 51px down). It draws itself from the
 * first step to the last when the steps are revealed, and is simply shown without motion.
 */

@media (min-width: 782px) {
	.wp-block-columns.revita-steps {
		position: relative;
	}

	.wp-block-columns.revita-steps::before {
		content: "";
		position: absolute;
		inset-block-start: 51px;
		inset-inline: calc(100% / 6);
		border-block-start: 2px dashed color-mix(in srgb, var(--wp--preset--color--accent) 75%, transparent);
		pointer-events: none;
	}

	.wp-block-columns.revita-steps > .revita-step {
		position: relative;
		z-index: 1;
	}
}

@media (min-width: 782px) and (prefers-reduced-motion: no-preference) {
	.revita-js body:is(.revita-motion-full, .revita-motion-subtle) .wp-block-columns.revita-steps::before {
		transform: scaleX(0);
		transform-origin: left center;
		transition: transform var(--wp--custom--motion--duration--slower) var(--wp--custom--motion--easing--emphasized) 240ms;
	}

	html[dir="rtl"].revita-js body:is(.revita-motion-full, .revita-motion-subtle) .wp-block-columns.revita-steps::before {
		transform-origin: right center;
	}

	.revita-js body:is(.revita-motion-full, .revita-motion-subtle) .wp-block-columns.revita-steps:has(> .is-revealed)::before {
		transform: scaleX(1);
	}
}
