/*
 * Hero Carousel — shared styles.
 * Swap the --hc-* custom properties to match your brand; everything else
 * (layout, progress-fill animation) will keep working.
 */
.hero-carousel {
	--hc-bg: #000000;
	--hc-fg: #ffffff;
	--hc-muted: rgba(255, 255, 255, 0.6);
	--hc-track: rgba(255, 255, 255, 0.2);
	--hc-accent: #5eead4;

	position: relative;
	background: var(--hc-bg);
	color: var(--hc-fg);
	overflow: hidden;
}

.hero-carousel__slides {
	position: relative;
}

.hero-carousel__slide {
	display: none;
}

.hero-carousel__slide.is-active {
	display: block;
}

/* In the editor, keep every slide visible and stacked so nothing is hidden
   from the person editing it — the show/hide behaviour is front-end only. */
.hero-carousel--editor .hero-carousel__slide {
	display: block !important;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
}
.hero-carousel--editor .hero-carousel__slide:first-child {
	border-top: 0;
}

.hero-carousel__editor-hint {
	margin: 0 0 12px;
	font-size: 12px;
	color: #757575;
}

/* Progress-bar navigation, one segment per slide. */
.hero-carousel__nav {
	display: flex;
	border-top: 1px solid var(--hc-track);
}

.hero-carousel__nav-item {
	flex: 1 1 0;
	min-width: 0;
	padding: 14px 20px 22px;
	background: none;
	border: 0;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.hero-carousel__nav-track {
	position: relative;
	display: block;
	height: 2px;
	margin-bottom: 12px;
	background: var(--hc-track);
	overflow: hidden;
}

.hero-carousel__nav-fill {
	position: absolute;
	inset: 0;
	width: 0;
	background: var(--hc-accent);
}

.hero-carousel__nav-label {
	display: block;
	font-weight: 600;
	font-size: 0.85rem;
	color: var(--hc-muted);
}

.hero-carousel__nav-item.is-active .hero-carousel__nav-label {
	color: var(--hc-fg);
}

.hero-carousel__nav-desc {
	display: -webkit-box;
	margin-top: 4px;
	overflow: hidden;
	font-size: 0.8rem;
	color: var(--hc-muted);
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

@media (max-width: 782px) {
	.hero-carousel__nav {
		flex-wrap: wrap;
	}
	.hero-carousel__nav-item {
		flex: 1 1 50%;
	}
	.hero-carousel__nav-desc {
		display: none;
	}
}
