/**
 * ZeltaCode Marquee Rows — front-end styles.
 *
 * The loop is pure CSS. Each row holds N identical copies of the item list
 * inside one track; the track slides left by exactly one copy's width
 * (-100% / N) and then snaps back, which reads as an endless belt.
 */

.zcmq {
	--zcmq-fade: 90px;

	display: flex;
	flex-direction: column;
	width: 100%;
	overflow: hidden;
	background: #000;
}

.zcmq *,
.zcmq *::before,
.zcmq *::after {
	box-sizing: border-box;
}

/* ------------------------------------------------------------------ */
/* Row + track                                                         */
/* ------------------------------------------------------------------ */

.zcmq__row {
	position: relative;
	width: 100%;
	padding: 14px 0;
	overflow: hidden;
	border-top: 0 none #16181d;
}

/* Style, not width, gates the divider — the thickness control writes a width
   unconditionally, so "none" is what actually keeps it hidden. */
.zcmq-divider-yes .zcmq__row + .zcmq__row {
	border-top-style: solid;
}

.zcmq-fade-yes .zcmq__row {
	-webkit-mask-image: linear-gradient(
		90deg,
		transparent 0,
		#000 var(--zcmq-fade),
		#000 calc(100% - var(--zcmq-fade)),
		transparent 100%
	);
	mask-image: linear-gradient(
		90deg,
		transparent 0,
		#000 var(--zcmq-fade),
		#000 calc(100% - var(--zcmq-fade)),
		transparent 100%
	);
}

.zcmq__track {
	display: flex;
	align-items: center;
	width: max-content;
	gap: 26px;
	animation-name: zcmq-scroll;
	animation-duration: 45s;
	animation-timing-function: linear;
	animation-iteration-count: infinite;
	will-change: transform;
}

/* Travelling left to right is the same belt run backwards. */
.zcmq__row--right .zcmq__track {
	animation-direction: reverse;
}

.zcmq-pause-yes .zcmq__row:hover .zcmq__track {
	animation-play-state: paused;
}

.zcmq__group {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	gap: 26px;
}

/**
 * The track's own width is copies × one group, so shifting by 100%/copies
 * lands exactly one group along — seamless at any copy count.
 */
@keyframes zcmq-scroll {
	from {
		transform: translate3d(0, 0, 0);
	}
	to {
		transform: translate3d(var(--zcmq-shift, -50%), 0, 0);
	}
}

/* ------------------------------------------------------------------ */
/* Item                                                                */
/* ------------------------------------------------------------------ */

.zcmq__item {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	gap: 8px;
	border: 0 solid transparent;
	text-decoration: none;
	white-space: nowrap;
}

.zcmq .zcmq__item--link {
	text-decoration: none;
}

.zcmq__item--link:focus-visible {
	outline: 2px solid #5e9eff;
	outline-offset: 3px;
}

.zcmq__label {
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 1.6px;
	color: #fff;
	transition: color 0.25s ease;
}

.zcmq__circle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 19px;
	height: 19px;
	border: 1px solid #2f6b8f;
	border-radius: 50%;
	overflow: hidden;
}

.zcmq__logo {
	display: block;
	width: 62%;
	height: 62%;
	object-fit: contain;
}

/* ------------------------------------------------------------------ */
/* Separator                                                           */
/* ------------------------------------------------------------------ */

.zcmq__sep {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	color: #ff7a45;
	line-height: 1;
}

.zcmq__sep--dot {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background-color: #ff7a45;
}

.zcmq__sep--icon {
	font-size: 5px;
}

.zcmq__sep--icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.zcmq__sep--text {
	font-size: 5px;
	font-weight: 700;
}

/* ------------------------------------------------------------------ */
/* Motion                                                              */
/* ------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
	.zcmq__track {
		animation: none !important;
		transform: none !important;
	}

	.zcmq__label {
		transition: none !important;
	}
}
