/**
 * Header announcement marquee — seamless infinite scroll.
 * Matches production: measure segment → N copies → translate by 1 segment width.
 */

.dkh-announce {
	--dkh-announce-bg: #1a1a1a;
	--dkh-announce-fg: #ffffff;
	--dkh-announce-segment-width: 0px;
	--dkh-announce-duration: 20s;
	background: var(--dkh-announce-bg);
	color: var(--dkh-announce-fg);
	width: 100%;
	height: 2rem;
	overflow: hidden;
	line-height: 1;
	display: flex;
	align-items: center;
	position: relative;
	z-index: 50;
}

.dkh-announce__viewport {
	position: relative;
	width: 100%;
	overflow: hidden;
}

/* Hidden measure copy (same as production opacity-0 absolute). */
.dkh-announce__measure {
	position: absolute;
	left: 0;
	top: 0;
	display: flex;
	flex-shrink: 0;
	opacity: 0;
	pointer-events: none;
	visibility: hidden;
}

.dkh-announce__track {
	display: flex;
	width: max-content;
	will-change: transform;
	animation: dkh-announce-scroll var(--dkh-announce-duration) linear infinite;
}

.dkh-announce__copy {
	display: flex;
	flex-shrink: 0;
	align-items: center;
}

.dkh-announce__segment {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	column-gap: 0.75rem;
	padding-inline-end: 0.75rem;
}

.dkh-announce__item {
	display: inline-flex;
	align-items: center;
	column-gap: 0.75rem;
	white-space: nowrap;
}

.dkh-announce__text {
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	line-height: 1;
	color: inherit;
}

.dkh-announce__dot {
	font-size: 0.6875rem;
	line-height: 1;
	letter-spacing: 0;
	color: inherit;
}

@keyframes dkh-announce-scroll {
	to {
		transform: translate3d(calc(-1 * var(--dkh-announce-segment-width, 0px)), 0, 0);
	}
}

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