/**
 * PublishDesk breaking-news banner. Scoped under .pdc-bbanner so it can't leak
 * into the host theme. High-contrast breaking red (#D43A33) with a pulsing LIVE
 * indicator, fixed placement, and a mobile-responsive layout.
 */

.pdc-bbanner {
	position: fixed;
	left: 0;
	right: 0;
	z-index: 99999;
	background: #d43a33;
	color: #fff;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 15px;
	line-height: 1.3;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
	-webkit-font-smoothing: antialiased;
}

.pdc-bb-pos-top,
.pdc-bb-pos-below-header { top: 0; }
.pdc-bb-pos-below-header { top: var(--pdc-bb-offset, 0); }
.pdc-bb-pos-bottom { bottom: 0; }

.pdc-bb-inner {
	display: flex;
	align-items: center;
	gap: 10px;
	max-width: 1200px;
	margin: 0 auto;
	padding: 10px 14px;
}

.pdc-bb-dot {
	flex: 0 0 auto;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
	animation: pdc-bb-pulse 1.6s infinite;
}

@keyframes pdc-bb-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
	70%  { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
	100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

@media (prefers-reduced-motion: reduce) {
	.pdc-bb-dot { animation: none; }
}

.pdc-bb-label {
	flex: 0 0 auto;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	font-size: 12px;
}

.pdc-bb-headline {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: #fff;
	font-weight: 600;
	text-decoration: none;
}
.pdc-bb-headline:hover { text-decoration: underline; }

.pdc-bb-updated {
	flex: 0 0 auto;
	font-size: 12px;
	opacity: 0.85;
}

.pdc-bb-follow {
	flex: 0 0 auto;
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	padding: 4px 10px;
	border: 1px solid rgba(255, 255, 255, 0.6);
	border-radius: 999px;
	font-size: 13px;
	white-space: nowrap;
}
.pdc-bb-follow:hover { background: rgba(255, 255, 255, 0.15); }

.pdc-bb-dismiss {
	flex: 0 0 auto;
	background: transparent;
	border: 0;
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	padding: 0 4px;
	opacity: 0.8;
}
.pdc-bb-dismiss:hover { opacity: 1; }

/* Ticker (optional CNN-style crawl). */
.pdc-bb-ticker {
	overflow: hidden;
	border-top: 1px solid rgba(255, 255, 255, 0.25);
	background: rgba(0, 0, 0, 0.12);
	white-space: nowrap;
}
.pdc-bb-ticker-track {
	display: inline-block;
	padding: 6px 0;
	font-size: 13px;
	will-change: transform;
	animation: pdc-bb-crawl 40s linear infinite;
}
.pdc-bb-ticker-item { padding: 0 8px; }
.pdc-bb-ticker-sep { opacity: 0.6; }

@keyframes pdc-bb-crawl {
	0%   { transform: translateX(100%); }
	100% { transform: translateX(-100%); }
}
@media (prefers-reduced-motion: reduce) {
	.pdc-bb-ticker-track { animation: none; white-space: normal; }
}

@media (max-width: 600px) {
	.pdc-bb-inner { gap: 8px; padding: 8px 12px; font-size: 14px; flex-wrap: wrap; }
	.pdc-bb-headline { flex-basis: 100%; order: 3; white-space: normal; }
	.pdc-bb-updated { font-size: 11px; }
}
