/* STAB Countdown Bar - Stab High China '26. Palette and fonts from the SHC26 brand kit. */
.stab-countdown-bar {
	--shc-black: #000000;
	--shc-light-gray: #D8D8D8;
	--shc-dark-gray: #4D4D4D;
	--shc-hot-pink: #F93D96;
	--shc-light-pink: #FF7BAC;
	--shc-font-display: "PP Pangram Sans", Impact, "Arial Narrow", sans-serif;
	--shc-font-body: "Apercu Pro", Apercu, "Noto Sans JP", Arial, sans-serif;

	position: relative;
	z-index: 2;
	width: 100%;
	margin: 0;
	background: var(--shc-black);
	color: var(--shc-light-gray);
	font-family: var(--shc-font-body);
	line-height: 1.2;
	-webkit-font-smoothing: antialiased;
}

.stab-countdown-bar *,
.stab-countdown-bar *::before,
.stab-countdown-bar *::after {
	box-sizing: border-box;
}

.stab-countdown-bar__inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	grid-template-areas: "brand timer actions";
	align-items: center;
	gap: 24px;
	max-width: 1600px;
	margin: 0 auto;
	padding: 18px 48px;
}

/* Brand: logo + date */
.stab-countdown-bar__brand {
	grid-area: brand;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-self: start;
	gap: 10px;
}

.stab-countdown-bar__logo-link {
	display: block;
	line-height: 0;
}

.stab-countdown-bar__logo {
	display: block;
	width: 190px;
	max-width: 100%;
	height: auto;
}

.stab-countdown-bar__date {
	font-size: 15px;
	white-space: nowrap;
}

/* Timer */
.stab-countdown-bar__timer {
	grid-area: timer;
	display: flex;
	align-items: flex-start;
	justify-content: center;
}

.stab-countdown-bar__unit {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 96px;
	gap: 12px;
}

.stab-countdown-bar__value,
.stab-countdown-bar__sep {
	font-family: var(--shc-font-display);
	font-size: 48px;
	font-weight: 800;
	line-height: 1;
	font-variant-numeric: tabular-nums;
	color: var(--shc-light-gray);
}

.stab-countdown-bar__sep {
	padding: 0 18px;
	color: var(--shc-hot-pink);
	transform: translateY(-2px);
}

.stab-countdown-bar__label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.stab-countdown-bar__live {
	grid-area: timer;
	display: none;
	margin: 0;
	font-family: var(--shc-font-display);
	font-size: 48px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	text-align: center;
	color: var(--shc-hot-pink);
}

.stab-countdown-bar.is-live .stab-countdown-bar__timer {
	display: none;
}

.stab-countdown-bar.is-live .stab-countdown-bar__live {
	display: block;
}

/* Actions: CTA button + secondary link */
.stab-countdown-bar__actions {
	grid-area: actions;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-self: end;
	gap: 14px;
}

.stab-countdown-bar a.stab-countdown-bar__cta {
	display: inline-block;
	padding: 13px 28px;
	border: 2px solid var(--shc-light-gray);
	background: transparent;
	color: var(--shc-light-gray);
	font-family: var(--shc-font-display);
	font-size: 16px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.stab-countdown-bar a.stab-countdown-bar__cta:hover {
	border-color: var(--shc-hot-pink);
	background: var(--shc-hot-pink);
	color: var(--shc-black);
}

.stab-countdown-bar a.stab-countdown-bar__link {
	color: var(--shc-light-gray);
	font-size: 15px;
	text-decoration: none;
	white-space: nowrap;
}

.stab-countdown-bar a.stab-countdown-bar__link:hover {
	color: var(--shc-light-pink);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.stab-countdown-bar a:focus-visible {
	outline: 2px solid var(--shc-hot-pink);
	outline-offset: 4px;
}

/* Tablet */
@media (max-width: 1100px) {
	.stab-countdown-bar__inner {
		gap: 16px;
		padding: 14px 24px;
	}

	.stab-countdown-bar__logo {
		width: 150px;
	}

	.stab-countdown-bar__date,
	.stab-countdown-bar a.stab-countdown-bar__link {
		font-size: 13px;
	}

	.stab-countdown-bar__unit {
		min-width: 64px;
		gap: 8px;
	}

	.stab-countdown-bar__value,
	.stab-countdown-bar__sep,
	.stab-countdown-bar__live {
		font-size: 36px;
	}

	.stab-countdown-bar__sep {
		padding: 0 6px;
	}

	.stab-countdown-bar__label {
		font-size: 10px;
		letter-spacing: 0.12em;
	}

	.stab-countdown-bar a.stab-countdown-bar__cta {
		padding: 11px 18px;
		font-size: 14px;
		letter-spacing: 0.12em;
	}
}

/* Mobile: logo + button on top, timer underneath */
@media (max-width: 720px) {
	.stab-countdown-bar__inner {
		grid-template-columns: 1fr auto;
		grid-template-areas:
			"brand actions"
			"timer timer";
		gap: 12px 16px;
		padding: 12px 16px 14px;
	}

	.stab-countdown-bar__logo {
		width: 124px;
	}

	.stab-countdown-bar__date,
	.stab-countdown-bar a.stab-countdown-bar__link {
		display: none;
	}

	.stab-countdown-bar__timer {
		justify-self: stretch;
		justify-content: space-between;
		padding-top: 10px;
		border-top: 1px solid var(--shc-dark-gray);
	}

	.stab-countdown-bar__unit {
		flex: 1 1 0;
		min-width: 0;
		gap: 6px;
	}

	.stab-countdown-bar__value,
	.stab-countdown-bar__sep,
	.stab-countdown-bar__live {
		font-size: 30px;
	}

	.stab-countdown-bar__sep {
		padding: 0;
	}

	.stab-countdown-bar a.stab-countdown-bar__cta {
		padding: 10px 14px;
		font-size: 13px;
		letter-spacing: 0.1em;
	}
}

@media (prefers-reduced-motion: reduce) {
	.stab-countdown-bar a.stab-countdown-bar__cta {
		transition: none;
	}
}
