/* ============================================================
   COMPONENT: NEWS TICKER
   Figma: 140:1333

   Framework structure:
   section > .container > .row > .col-xs-12
============================================================ */

.vw-news-ticker {
	--vw-news-ticker-background: var(--vw-colour-cream, #f4f1e8);
	--vw-news-ticker-colour: var(--vw-colour-olive, #8f945e);
	--vw-news-ticker-height: 60px;
	--vw-news-ticker-duration: 54s;
	position: relative;
	width: 100%;
	color: var(--vw-news-ticker-colour);
}

/*
 * The visual ticker is contained by the site's framework grid rather than
 * being applied to the full-width section.
 */
.vw-news-ticker__viewport {
	width: 100%;
	height: var(--vw-news-ticker-height);
	background-color: var(--vw-news-ticker-background);
	overflow: hidden;
}

.vw-news-ticker__track {
	display: flex;
	width: max-content;
	min-width: 100%;
	height: 100%;
	will-change: transform;
	animation: vw-news-ticker-scroll var(--vw-news-ticker-duration) linear infinite;
}

.vw-news-ticker__group {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	height: 100%;
}

.vw-news-ticker__item {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	white-space: nowrap;
	font-family: inherit;
	font-size: 14px;
	line-height: 1;
	letter-spacing: 0;
	text-transform: uppercase;
}

.vw-news-ticker__label {
	font-weight: 700;
}

.vw-news-ticker__copy,
.vw-news-ticker__link {
	margin-left: 8px;
	font-weight: 500;
}

.vw-news-ticker__link {
	color: inherit;
	text-decoration: underline;
	text-decoration-thickness: 0.5px;
	text-underline-offset: 2px;
}

.vw-news-ticker__link:hover,
.vw-news-ticker__link:focus-visible {
	color: var(--color-muted);

}


.vw-news-ticker__separator {
	width: 50px;
	height: 1px;
	margin: 0 23px;
	background-color: currentColor;
	opacity: 0.55;
}

.vw-news-ticker:hover .vw-news-ticker__track,
.vw-news-ticker:focus-within .vw-news-ticker__track {
	animation-play-state: paused;
}

@keyframes vw-news-ticker-scroll {
	from {
		transform: translate3d(0, 0, 0);
	}

	to {
		transform: translate3d(-50%, 0, 0);
	}
}

@media (max-width: 61.999em) {
	.vw-news-ticker__item {
		font-size: 12px;
	}

	.vw-news-ticker__separator {
		width: 36px;
		margin-right: 18px;
		margin-left: 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.vw-news-ticker__viewport {
		height: auto;
		min-height: var(--vw-news-ticker-height);
		overflow-x: auto;
	}

	.vw-news-ticker__track {
		width: max-content;
		min-width: 100%;
		animation: none;
		transform: none;
	}

	.vw-news-ticker__group--clone,
	.vw-news-ticker__item--duplicate {
		display: none;
	}
}
