/* Countdown banner for live course pages. Uses the Lluvia Mystic tokens when present. */
.lcs-countdown {
	display: grid;
	justify-items: center;
	gap: 0.6rem;
	max-width: var(--lm-container, 1240px);
	margin: 1.25rem auto 2rem;
	padding: 1.1rem 1.5rem 1.2rem;
	border: 1px solid var(--lm-gold-soft, rgba(197, 164, 109, 0.35));
	border-radius: 4px;
	background: linear-gradient(100deg, rgba(40, 20, 47, 0.92), rgba(16, 12, 20, 0.95));
	color: var(--lm-ivory, #f3ebdd);
	text-align: center;
}

.lcs-countdown__timer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.5rem 1.4rem;
}

.lcs-countdown__word,
.lcs-countdown__state {
	color: var(--lm-gold, #c5a46d);
	font-family: var(--lm-font-ceremonial, Georgia, serif);
	font-size: 0.875rem;
	letter-spacing: 0.24em;
	text-transform: uppercase;
}

.lcs-countdown__units {
	display: flex;
	gap: 0.4rem;
}

.lcs-countdown__unit {
	display: grid;
	justify-items: center;
	min-width: 3.4rem;
	padding: 0.35rem 0.4rem 0.4rem;
	border: 1px solid var(--lm-gold-hair, rgba(197, 164, 109, 0.18));
	border-radius: 3px;
	background: rgba(16, 12, 20, 0.55);
}

.lcs-countdown__unit b {
	color: var(--lm-ivory, #f3ebdd);
	font-family: var(--lm-font-display, Georgia, serif);
	font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem);
	font-weight: 500;
	font-variant-numeric: tabular-nums;
	line-height: 1;
}

.lcs-countdown__unit small {
	margin-top: 0.2rem;
	color: var(--lm-ivory-muted, rgba(243, 235, 221, 0.72));
	font-family: var(--lm-font-body, Arial, sans-serif);
	font-size: 0.625rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

/* Content styles of the theme/page builders add paragraph spacing; the banner owns its gaps. */
.lcs-countdown > * {
	margin: 0 !important;
}

.lcs-countdown__dates {
	color: var(--lm-ivory-muted, rgba(243, 235, 221, 0.72));
	font-family: var(--lm-font-body, Arial, sans-serif);
	font-size: 0.8125rem;
	letter-spacing: 0.02em;
}

.lcs-countdown__state {
	display: none;
	font-size: 1rem;
}

.lcs-countdown--running .lcs-countdown__timer {
	display: none;
}

.lcs-countdown--running .lcs-countdown__state,
.lcs-countdown--finished .lcs-countdown__state {
	display: block;
}

.lcs-countdown--running .lcs-countdown__state::before {
	content: "";
	display: inline-block;
	width: 0.5em;
	height: 0.5em;
	margin-right: 0.6em;
	border-radius: 50%;
	background: currentColor;
	box-shadow: 0 0 0 0.25em rgba(197, 164, 109, 0.22);
	vertical-align: 0.1em;
}

@media (max-width: 600px) {
	.lcs-countdown {
		padding: 1rem 0.75rem;
	}

	.lcs-countdown__timer {
		gap: 0.5rem 0.75rem;
	}

	.lcs-countdown__unit {
		min-width: 3rem;
	}

	.lcs-countdown__word {
		font-size: 0.75rem;
	}
}
