/* Geoffrey News Ticker */
.gnt {
	--gnt-bg: #667857;
	--gnt-fg: #ffffff;
	--gnt-label: #ffffff;
	--gnt-size: 1.125rem;
	--gnt-duration: 40s;
	display: flex;
	align-items: stretch;
	width: 100%;
	max-width: 100%;
	overflow: hidden;
	background: var(--gnt-bg);
	color: var(--gnt-fg);
	font-size: var(--gnt-size);
	line-height: 1.4;
	box-sizing: border-box;
}
.gnt *,
.gnt *::before,
.gnt *::after { box-sizing: border-box; }

.gnt__label {
	flex: none;
	display: flex;
	align-items: center;
	padding: 0.85em 0.6em 0.85em 1.2em;
	color: var(--gnt-label);
	background: var(--gnt-bg);
	white-space: nowrap;
	position: relative;
	z-index: 1;
}

.gnt__viewport {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	align-items: center;
	overflow: hidden;
	/* Titles fade in from the right and out under the label. */
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 1.25em, #000 calc(100% - 2em), transparent 100%);
	        mask-image: linear-gradient(90deg, transparent 0, #000 1.25em, #000 calc(100% - 2em), transparent 100%);
}

.gnt__track {
	display: flex;
	width: max-content;
}

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

.gnt__item {
	display: flex;
	align-items: center;
	flex: none;
	margin: 0;
	padding: 0;
	white-space: nowrap;
}
.gnt__item::marker { content: none; }

.gnt__link,
.gnt__link:visited {
	color: var(--gnt-fg);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}
.gnt__link:hover { text-decoration-thickness: 2px; }
.gnt__link:focus-visible {
	outline: 2px solid var(--gnt-fg);
	outline-offset: 2px;
	border-radius: 2px;
}

.gnt__sep {
	padding: 0 0.6em;
	opacity: 0.85;
}

/* Running state, set by ticker.js once it has measured the titles. */
.gnt.is-running .gnt__track {
	animation: gnt-scroll var(--gnt-duration) linear infinite;
}
.gnt.is-running:hover .gnt__track,
.gnt.is-running:focus-within .gnt__track,
.gnt.is-paused .gnt__track {
	animation-play-state: paused;
}

@keyframes gnt-scroll {
	from { transform: translate3d(0, 0, 0); }
	to   { transform: translate3d(-50%, 0, 0); }
}

/* Without JavaScript, or with reduced motion: a still row you can swipe. */
.gnt:not(.is-running) .gnt__viewport {
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-mask-image: none;
	        mask-image: none;
}
.gnt:not(.is-running) .gnt__viewport::-webkit-scrollbar { display: none; }

.gnt__toggle {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.6em;
	margin: 0;
	padding: 0;
	border: 0;
	background: var(--gnt-bg);
	color: var(--gnt-fg);
	cursor: pointer;
	opacity: 0.8;
}
.gnt__toggle[hidden] { display: none; }
.gnt__toggle:hover,
.gnt__toggle:focus-visible { opacity: 1; }
.gnt__toggle:focus-visible {
	outline: 2px solid var(--gnt-fg);
	outline-offset: -4px;
}
.gnt__icon {
	width: 0.8em;
	height: 0.8em;
	fill: currentColor;
}
.gnt__icon--play,
.gnt.is-paused .gnt__icon--pause { display: none; }
.gnt.is-paused .gnt__icon--play { display: block; }

.gnt__sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 575.98px) {
	.gnt__label { padding-left: 0.9em; }
}

@media (prefers-reduced-motion: reduce) {
	.gnt.is-running .gnt__track { animation: none; }
}
