/* Live Updates — Retalabs dark+gold theme */
.lu-wrap {
	--lu-radius: 14px;
	--lu-bg: #1a1a1a;            /* card background */
	--lu-bg-alt: #222;
	--lu-fg: #f5f5f5;            /* body text on dark */
	--lu-muted: #9ca3af;
	--lu-line: rgba(255,255,255,0.08);
	--lu-gold: #F5B91C;          /* brand gold */
	--lu-gold-dim: rgba(245,185,28,0.15);
	--lu-live: #ef4444;
	--lu-coming: var(--lu-gold);
	--lu-expired: #6b7280;

	font-family: inherit;
	color: var(--lu-fg);
	max-width: 1200px;
	margin: 28px auto;
	padding: 0 16px;
	box-sizing: border-box;
}
.lu-wrap *, .lu-wrap *::before, .lu-wrap *::after { box-sizing: border-box; }

.lu-head { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
.lu-title { margin: 0; font-size: 1.25rem; font-weight: 800; letter-spacing: 0.01em; color: #fff; }

.lu-live-indicator {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 4px 10px;
	background: rgba(239,68,68,0.15);
	color: #fca5a5;
	border-radius: 999px;
	font-size: 0.72rem; font-weight: 800;
	letter-spacing: 0.12em; text-transform: uppercase;
}
.lu-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lu-live); box-shadow: 0 0 0 0 rgba(239,68,68,0.6); animation: lu-pulse 1.4s infinite; }
@keyframes lu-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(239,68,68,0.7); }
	70%  { box-shadow: 0 0 0 10px rgba(239,68,68,0); }
	100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
}

/* Isolated horizontal scroller so the page itself never jiggles sideways */
.lu-scroller {
	position: relative;
	overflow-x: auto;
	overflow-y: hidden;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding-bottom: 4px;
}
.lu-scroller::-webkit-scrollbar { display: none; }

.lu-track { display: flex; gap: 14px; margin: 0; padding: 2px; list-style: none; }

.lu-card {
	flex: 0 0 calc((100% - 14px) / 2);
	scroll-snap-align: start;
	background: linear-gradient(180deg, #1f1f1f 0%, #161616 100%);
	border: 1px solid var(--lu-line);
	border-radius: var(--lu-radius);
	padding: 18px 20px;
	display: flex; flex-direction: column; gap: 10px;
	box-shadow: 0 2px 12px rgba(0,0,0,0.35);
	min-height: 150px;
	color: var(--lu-fg);
}
.lu-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lu-subject {
	font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em;
	color: var(--lu-gold); font-weight: 800;
}
.lu-heading { margin: 0; font-size: 1.05rem; font-weight: 700; color: #fff; }
.lu-body { margin: 0; font-size: 0.92rem; color: #cbd5e1; line-height: 1.5; }
.lu-meta { margin: auto 0 0; font-size: 0.78rem; color: var(--lu-muted); display: flex; gap: 8px; }

.lu-chip {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 4px 10px; border-radius: 999px;
	font-size: 0.68rem; font-weight: 800;
	text-transform: uppercase; letter-spacing: 0.08em;
}
.lu-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.lu-chip-active  { background: rgba(239,68,68,0.18);  color: #fca5a5; }
.lu-chip-coming  { background: var(--lu-gold-dim);    color: var(--lu-gold); }
.lu-chip-expired { background: rgba(107,114,128,0.2); color: #cbd5e1; }

.lu-card-active  { border-color: rgba(239,68,68,0.35); }
.lu-card-coming  { border-color: rgba(245,185,28,0.4); }
.lu-card-expired { opacity: 0.55; }

.lu-nav { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }
.lu-nav-btn {
	width: 38px; height: 38px; border-radius: 999px;
	border: 0;
	background: var(--lu-gold); color: #111;
	cursor: pointer; font-size: 1.1rem; font-weight: 800; line-height: 1;
	display: inline-flex; align-items: center; justify-content: center;
	transition: transform .1s ease, background .15s ease, opacity .2s ease;
	box-shadow: 0 2px 8px rgba(245,185,28,0.3);
}
.lu-nav-btn:hover { background: #ffcd3d; transform: translateY(-1px); }
.lu-nav-btn:active { transform: translateY(0); }
.lu-nav-btn[disabled] { opacity: 0.3; cursor: default; transform: none; box-shadow: none; }

/* Mobile: 1 card per view */
@media (max-width: 640px) {
	.lu-card { flex-basis: 88%; }
	.lu-title { font-size: 1.05rem; }
	.lu-nav { display: none; }
}

/* ─────────────────────────────────────────────────────────────────
   Ticker style — thin full-width scrolling strip
   ───────────────────────────────────────────────────────────────── */
/* Wrapper used when injected via wp_body_open (above the header) — clean, full-width, no overflow */
.lu-above-header {
	width: 100%;
	background: linear-gradient(180deg, #111 0%, #0a0a0a 100%);
}
.lu-above-header .lu-ticker {
	width: 100%;
	margin: 0;
	left: auto; right: auto;
	max-width: 100%;
}

.lu-ticker {
	--lu-gold: #F5B91C;
	--lu-live: #ef4444;
	--lu-bg: #0f0f0f;
	--lu-bg-edge: #1a1a1a;
	--lu-fg: #f5f5f5;
	--lu-muted: #9ca3af;

	/* Break out of any parent column/container when used inline inside content. */
	position: relative;
	width: 100vw;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	max-width: 100vw;

	/* Prevent flex/grid parents from stretching the ticker */
	flex: 0 0 auto;
	align-self: flex-start;
	height: auto;
	min-height: 0;

	background: linear-gradient(180deg, #111 0%, #0a0a0a 100%);
	border-top: 1px solid rgba(245,185,28,0.15);
	border-bottom: 1px solid rgba(245,185,28,0.15);
	color: var(--lu-fg);
	overflow: hidden;
	box-sizing: border-box;
	font-family: inherit;
}

.lu-ticker *,
.lu-ticker *::before,
.lu-ticker *::after { box-sizing: border-box; }

.lu-ticker-inner {
	display: flex;
	align-items: stretch;
	min-height: 44px;
	width: 100%;
}

/* Gold "LIVE" badge on the left */
.lu-ticker-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0 16px;
	background: var(--lu-gold);
	color: #111;
	font-size: 0.72rem;
	font-weight: 900;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	flex: 0 0 auto;
	position: relative;
	z-index: 2;
}
.lu-ticker-badge::after {
	/* Slanted edge giving a "ribbon" feel */
	content: "";
	position: absolute;
	right: -10px; top: 0; bottom: 0;
	width: 20px;
	background: var(--lu-gold);
	transform: skewX(-14deg);
	transform-origin: top right;
}
.lu-ticker-badge .lu-dot {
	width: 7px; height: 7px; border-radius: 50%;
	background: var(--lu-live);
	box-shadow: 0 0 0 0 rgba(239,68,68,0.7);
	animation: lu-pulse 1.4s infinite;
}

/* Scrolling track */
.lu-ticker-scroll {
	flex: 1 1 auto;
	overflow: hidden;
	padding-left: 16px;
	padding-right: 16px;
	mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
}

.lu-ticker-track {
	display: inline-flex;
	align-items: center;
	gap: 0;
	list-style: none;
	margin: 0;
	padding: 0;
	white-space: nowrap;
	will-change: transform;
	animation: lu-ticker-scroll var(--lu-ticker-speed, 40s) linear infinite;
}
.lu-ticker:hover .lu-ticker-track,
.lu-ticker:focus-within .lu-ticker-track { animation-play-state: paused; }

@keyframes lu-ticker-scroll {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); } /* we render the list twice; -50% = one full loop */
}

.lu-ticker-item { display: inline-flex; align-items: center; }

.lu-ticker-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: transparent;
	border: 0;
	color: inherit;
	font: inherit;
	font-size: 0.88rem;
	font-weight: 500;
	padding: 0 6px;
	cursor: pointer;
	line-height: 1.4;
	white-space: nowrap;
}
.lu-ticker-btn:hover { color: var(--lu-gold); }

.lu-ticker-tag {
	display: inline-block;
	font-size: 0.66rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	padding: 2px 7px;
	border-radius: 4px;
	background: rgba(245,185,28,0.15);
	color: var(--lu-gold);
}

.lu-ticker-coming  .lu-ticker-tag { background: rgba(245,185,28,0.18); color: var(--lu-gold); }
.lu-ticker-expired { opacity: 0.45; }

.lu-ticker-sep {
	color: var(--lu-muted);
	padding: 0 18px;
	opacity: 0.5;
}

/* Click-to-expand detail panel */
.lu-ticker-detail {
	max-width: 1200px;
	margin: 0 auto;
	padding: 14px 20px 16px;
	border-top: 1px solid rgba(255,255,255,0.06);
	background: rgba(255,255,255,0.02);
}
.lu-ticker-detail .lu-detail-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 6px; }
.lu-ticker-detail h3 { margin: 0; font-size: 1rem; color: #fff; font-weight: 700; }
.lu-ticker-detail p  { margin: 0; color: #d1d5db; line-height: 1.5; font-size: 0.95rem; }
.lu-ticker-detail .lu-close {
	background: transparent; border: 0; color: var(--lu-muted); cursor: pointer; font-size: 1.3rem; line-height: 1; padding: 0 4px;
}
.lu-ticker-detail .lu-close:hover { color: var(--lu-gold); }
.lu-ticker-detail .lu-detail-chip {
	display: inline-block; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
	padding: 3px 9px; border-radius: 4px; background: rgba(245,185,28,0.15); color: var(--lu-gold);
	margin-right: 8px;
}

@media (max-width: 640px) {
	.lu-ticker-badge { padding: 0 12px; font-size: 0.68rem; letter-spacing: 0.1em; }
	.lu-ticker-btn { font-size: 0.82rem; }
	.lu-ticker-sep { padding: 0 12px; }
}

/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
	.lu-ticker-track { animation-duration: 120s; }
}
