/* Belfast 89FM — news ticker widget. */

/* The strip holds identical copies of the message set laid end-to-end;
   shifting by exactly one set-width (--b89-loop, set by JS) lands on an
   identical frame, so the loop never shows a gap. The -100% fallback keeps
   the ticker moving before JS has measured. */
@keyframes b89-ticker {
	to { transform: translateX(var(--b89-loop, -100%)); }
}

.b89-ticker {
	height: 52px;
	background: var(--b89-ink);
	border-top: 3px solid var(--b89-red);
	display: flex;
	align-items: center;
	overflow: hidden;
	width: 100%;
}

.b89-ticker--sticky {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 60;
}

.b89-ticker .b89-t-tag {
	flex-shrink: 0;
	height: 100%;
	display: flex;
	align-items: center;
	background: var(--b89-red);
	color: #fff;
	padding: 0 18px;
	font-family: var(--b89-font-display);
	font-weight: 600;
	font-size: .8rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	z-index: 2;
	box-shadow: 6px 0 12px rgba(0, 0, 0, .4);
	white-space: nowrap;
}

.b89-ticker .b89-t-track {
	flex: 1;
	overflow: hidden;
	white-space: nowrap;
}

.b89-ticker .b89-t-move {
	display: inline-flex;
	width: max-content;
	white-space: nowrap;
	animation: b89-ticker 38s linear infinite;
	color: var(--b89-yellow);
	font-family: var(--b89-font-body);
	font-weight: 700;
	font-size: .95rem;
}

.b89-ticker .b89-t-set {
	display: inline-flex;
	white-space: nowrap;
	flex-shrink: 0;
}

.b89-ticker--pause-hover .b89-t-move:hover { animation-play-state: paused; }

.b89-ticker .b89-t-move span { margin-right: 64px; }

.b89-ticker .b89-t-move .b89-sep { color: var(--b89-red); margin-right: 64px; }

.b89-ticker .b89-t-move a {
	color: inherit;
	text-decoration: none;
}

.b89-ticker .b89-t-move a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
	.b89-ticker .b89-t-move { animation-duration: 90s; }
}
