/* ==========================================================================
   Marquee — Global component
   Infinite horizontally-scrolling list of items (CSS-only loop).
   ========================================================================== */

.marquee {
	width: 100%;
	overflow: hidden;
	display: flex;
	height: 6vh;
	background-color: var(--color-yellow);
	color: var(--color-text);
	align-items: center;
}

.marquee__track {
	display: flex;
	flex-shrink: 0;
	width: max-content;
	animation-name: marquee-scroll;
	animation-duration: 20s;
	animation-timing-function: linear;
	animation-iteration-count: infinite;
	will-change: transform;
}

.marquee__list {
	display: flex;
	flex-shrink: 0;
	list-style: none;
	margin: 0;
	padding: 0;
}

.marquee__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 0.5px 28px;
	flex: 0 0 auto;
	white-space: nowrap;
	position: relative;
}

.marquee__item::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	height: 100%;
	width: 1px;
	background-image: repeating-linear-gradient(
		to bottom,
		var(--color-black) 0,
		var(--color-black) 3px,
		transparent 3px,
		transparent 6px
	);
}

.marquee__text {
	color: inherit;
	text-transform: uppercase;
	font-size: 2vh;
}

.marquee__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-primary);
	line-height: 1;
	letter-spacing: var(--ls-body-5);
	text-transform: uppercase;
	text-decoration: none;
	color: var(--color-text);
	transition: opacity 0.15s ease;
	border-radius: 0;
	padding: 4px 6px 6px;
	border: 1px solid var(--color-black);
	background-color: transparent;
	font-size: 1.1vh;
	height: 2.2vh;
}

.marquee__cta:hover {
	opacity: 0.85;
}

.marquee:hover .marquee__track {
	animation-play-state: paused;
}

@keyframes marquee-scroll {
	from { transform: translateX(0); }
	to   { transform: translateX(-12.5%); }
}

@media (prefers-reduced-motion: reduce) {
	.marquee__track {
		animation: none;
	}
}

/* Styles integrated globally to the component */
