/* The marquee (AIEO_Marquee: aieo/marquee, aieo/category-chips `variant: marquee`; the multi-look demo's Jackson and
 * Raw, 21 Nov 2026). One line in the heading face, 900, capitals; the band's ground, colour, size and rules are the
 * page's (the block's supports, or the look's sheet). The track holds two equal halves and moves by one without end,
 * at --aieo-marquee-chars x 0.65 s a round (about 60 px a second at a 4xl size), at every width without reduced
 * motion; the wrapper adds the scroll's share (--aieo-marquee-share px for every px scrolled) on the band's view
 * timeline, only under the theme's behaviour gate (from 1,024 px, without reduced motion, with scroll-driven
 * animations). Under reduced motion the line stands still at its start; off screen it waits (aieo-marquee.js marks the
 * band `is-away`). Paused under the pointer and while a link in it has the
 * focus; stopped at its start where the visitor paused the page's motion (the theme's «Pause motion», WCAG 2.2.2:
 * :root[data-rooster-motion="paused"], set before the first paint).
 * The band clips at its sides only (rooster-theme-bb's footer pass, rooster-admin-d1, 22 Nov 2026): a focused link's
 * ring is taller than the line (75 px in a 64 px line at the band's size), and `overflow: hidden` cut it top and bottom.
 * `overflow-x: clip` leaves the block axis visible and makes no scroll container (a link reached by Tab no longer scrolls
 * the band). No overflow-clip-margin: Chrome honours it only where both axes clip, and there it adds the margin to the
 * page's width (a full-bleed band scrolled sideways at 390 px). */
.aieo-marquee {
	overflow-x: clip;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 900;
	line-height: 1.15;
	text-transform: uppercase;
	white-space: nowrap;
}
.aieo-marquee__scroll,
.aieo-marquee__track,
.aieo-marquee__half {
	display: flex;
	width: max-content;
}
.aieo-marquee__copy {
	display: flex;
	align-items: baseline;
	gap: 0.6em;
	margin: 0 0.6em 0 0;
	padding: 0;
	list-style: none;
}
.aieo-marquee__copy > li {
	margin: 0;
}
.aieo-marquee a {
	color: inherit;
	text-decoration: none;
}
.aieo-marquee a:hover,
.aieo-marquee a:focus-visible {
	text-decoration: underline;
}
/* The line's own movement at every width (rooster-admin-d1, 22 Nov 2026: «the prototype's band moves at 390… only
   reduced motion and Pause motion stop it»); the scroll's share keeps the theme's behaviour gate. */
@media (prefers-reduced-motion: no-preference) {
	.aieo-marquee__track {
		animation: aieo-marquee-loop calc(var(--aieo-marquee-chars, 40) * 0.65s) linear infinite;
	}
}
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
	@supports (animation-timeline: view()) {
		@container style(--wp--custom--track--scroll: 1) {
			.aieo-marquee__scroll {
				animation: aieo-marquee-scroll linear both;
				animation-timeline: view(block 0px);
				animation-range: cover 0% cover 100%;
			}
		}
	}
}
.aieo-marquee:is(:hover, :focus-within, .is-away) .aieo-marquee__track {
	animation-play-state: paused;
}
:root[data-rooster-motion="paused"] :is(.aieo-marquee__track, .aieo-marquee__scroll) {
	animation: none;
}
@keyframes aieo-marquee-loop {
	to {
		transform: translateX(-50%);
	}
}
@keyframes aieo-marquee-scroll {
	to {
		transform: translateX(calc(-1 * var(--aieo-marquee-share, 0.8) * (100vh + 6rem)));
	}
}
