/* Reusable YepX skeleton. Hero uses it; other surfaces may later. */

.yepx-skeleton {
	display: block;
	background: linear-gradient(90deg, #eef1f3 0%, #f7f9fa 46%, #eef1f3 100%);
	background-size: 200% 100%;
	animation: yepx-skel-shimmer 1.2s ease-in-out infinite;
	border-radius: var(--yepx-radius-md, 16px);
	pointer-events: none;
}

.yepx-skeleton[hidden]:not(.yepx-skeleton--media),
.no-js .yepx-skeleton {
	display: none;
	animation: none;
}

.yepx-skeleton--media {
	position: absolute;
	inset: var(--yepx-float-stage-inset, 16%);
	z-index: 3;
	min-height: 240px;
	border-radius: var(--yepx-media-radius, 26px);
}

.yepx-hero-media-stage:not(.is-ready) > .yepx-skeleton--media {
	display: block;
}

.yepx-skeleton--float {
	width: 168px;
	height: 56px;
	border-radius: 16px;
}

.yepx-skeleton--brand-logo {
	position: absolute;
	inset: 12% 8%;
	min-height: 0;
	height: auto;
	border-radius: 8px;
	z-index: 1;
}

.yepx-bc.is-loading:not(.is-ready) .yepx-skeleton--brand-logo,
.yepx-bc:not(.is-ready) .yepx-skeleton--brand-logo {
	display: block;
}

.yepx-bc.is-ready .yepx-skeleton--brand-logo {
	display: none;
	animation: none;
}

.yepx-skeleton--video-card {
	position: absolute;
	inset: 0;
	min-height: 0;
	border-radius: 16px;
	z-index: 1;
}

.yepx-vc.is-ready .yepx-skeleton--video-card,
.no-js .yepx-vc .yepx-skeleton--video-card {
	display: none;
	animation: none;
}

.yepx-hero-media-stage {
	position: relative;
	min-height: 360px;
	overflow-anchor: none;
}

.yepx-hero-media-stage .yepx-hero-photo {
	min-height: 240px;
	aspect-ratio: 1200 / 675;
	background: var(--yepx-bg-soft, #f7f9fa);
}

.yepx-hero-media-stage.is-ready .yepx-skeleton,
.yepx-hero-media-stage.is-ready .yepx-hero-float-skels,
.no-js .yepx-hero-media-stage .yepx-skeleton,
.no-js .yepx-hero-media-stage .yepx-hero-float-skels {
	display: none;
	animation: none;
}

.yepx-hero-float-skels {
	position: absolute;
	inset: 0;
	z-index: 3;
	pointer-events: none;
}

.yepx-hero-float-skels[hidden] {
	display: none;
}

@keyframes yepx-skel-shimmer {
	0% { background-position: 100% 0; }
	100% { background-position: -100% 0; }
}

@media (prefers-reduced-motion: reduce) {
	.yepx-skeleton {
		animation: none;
		background: #eef1f3;
	}
}
