/* Announcement Marquee Bar */
.announcement-bar {
	overflow: hidden;
	width: 100%;
}

.announcement-track {
	display: flex;
	width: max-content;
	animation: announcement-scroll var(--scroll-speed, 40s) linear infinite;
}

.announcement-track:hover {
	animation-play-state: paused;
}

.announcement-group {
	display: flex;
	align-items: center;
	flex: 1 1 auto;
	flex-shrink: 0;
}

.announcement-item {
	font-family: 'DM Sans', sans-serif;
	white-space: nowrap;
	padding: 0 35px;
	flex: 1 1 auto;
	text-align: center;
}

@keyframes announcement-scroll {
	0% { transform: translateX(0); }
	100% { transform: translateX(-50%); }
}

/* Mobile (<767px): faster 28s loop + tighter item padding, matching the
   reference scrolling_text breakpoint (min-width:767px = desktop). */
@media (max-width: 766px) {
	.announcement-track {
		animation-duration: 28s;
	}
	.announcement-item {
		padding: 0 20px;
	}
}

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

/* P2.5 fidelity: light strip — bg #f5f5f5, text #444, slim ~40px height.
   The block's inline attrs (bg / text color / vertical padding, saved
   per-instance in post_content — currently #111111 / #eeeeee / 20px) sit on
   the elements as style="" and win over any normal cascade, so the strip skin
   is pinned here with !important. Scroll speed and the per-item typography
   (12px / 500 / ls .26px) keep coming from the attrs untouched. */
.announcement-bar {
	background: #f5f5f5 !important;
	padding: 10px 0 !important;
}

.announcement-item {
	color: #444 !important;
}
