/* BWB Live Ticker — neutral colors on purpose (no party red/blue). Adjust the variables to restyle. */
.bwb-ticker {
	--bwb-bg: #1c1c1e;
	--bwb-text: #f5f2ea;
	--bwb-muted: #b9b3a6;
	--bwb-accent: #e0a526;
	--bwb-label-bg: rgba(245, 242, 234, 0.12);
	--bwb-height: 40px;

	position: relative;
	z-index: 9999;
	width: 100%;
	background: var(--bwb-bg);
	color: var(--bwb-text);
	font: 500 14px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	box-sizing: border-box;
}
.bwb-ticker[hidden],
.bwb-ticker.is-empty { display: none !important; }
.bwb-ticker *,
.bwb-ticker *::before,
.bwb-ticker *::after { box-sizing: border-box; }

.bwb-ticker__inner {
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: 1200px;
	min-height: var(--bwb-height);
	margin: 0 auto;
	padding: 0 16px;
}

.bwb-ticker__live {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex: none;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--bwb-accent);
}
.bwb-ticker__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--bwb-accent);
	animation: bwb-pulse 1.8s ease-in-out infinite;
}
@keyframes bwb-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.35; }
}

.bwb-ticker__stage {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
}
.bwb-ticker__item {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin: 0;
	padding: 8px 0;
	white-space: nowrap;
	transition: opacity 0.35s ease;
}
.bwb-ticker__item.is-fading { opacity: 0; }

.bwb-ticker__label {
	flex: none;
	padding: 2px 7px;
	border-radius: 3px;
	background: var(--bwb-label-bg);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.02em;
}
.bwb-ticker__text {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	color: var(--bwb-text);
}
a.bwb-ticker__text {
	text-decoration: underline;
	text-decoration-color: rgba(245, 242, 234, 0.4);
	text-underline-offset: 3px;
}
a.bwb-ticker__text:hover,
a.bwb-ticker__text:focus { color: #fff; text-decoration-color: currentColor; }
.bwb-ticker__meta {
	flex: none;
	font-size: 12px;
	color: var(--bwb-muted);
}

.bwb-ticker__note {
	flex: none;
	font-size: 11px;
	color: var(--bwb-muted);
}

.bwb-ticker__pause {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	margin: 0;
	padding: 0;
	border: 1px solid rgba(245, 242, 234, 0.25);
	border-radius: 50%;
	background: transparent;
	color: var(--bwb-text);
	cursor: pointer;
}
.bwb-ticker__pause:hover,
.bwb-ticker__pause:focus-visible { border-color: var(--bwb-text); }
.bwb-ticker__pause-icon {
	width: 8px;
	height: 10px;
	border-left: 3px solid currentColor;
	border-right: 3px solid currentColor;
}
.bwb-ticker__pause[aria-pressed="true"] .bwb-ticker__pause-icon {
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 5px 0 5px 9px;
	border-color: transparent transparent transparent currentColor;
	margin-left: 2px;
}
.bwb-ticker.has-one .bwb-ticker__pause { display: none; }

/* Phones: drop the extras so the headline gets the room. */
@media (max-width: 640px) {
	.bwb-ticker { font-size: 13px; }
	.bwb-ticker__inner { gap: 8px; }
	.bwb-ticker__note,
	.bwb-ticker__meta,
	.bwb-ticker__label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.bwb-ticker__dot { animation: none; }
	.bwb-ticker__item { transition: none; }
}
