/* Sila — Plans (Figma 231:91)
   Directly below the inclusions section; pt 117, pb 154. */

.sila-plans {
	background-color: var(--sila-navy);
	color: var(--sila-cream);
}

.sila-plans__inner {
	padding-top: max(64px, calc(117 * var(--u)));
	padding-bottom: var(--sila-section-pad);
}

.sila-plans__header {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 32px;
	max-width: 803px;
	margin-inline: auto;
	text-align: center;
}

.sila-plans__subtitle {
	letter-spacing: 0.4px;
}

/* 199px below the header top in Figma → 77px below the subtitle */
.sila-plans__highlight {
	max-width: 621px;
	margin-top: calc(max(24px, calc(77 * var(--u))) - 32px);
	line-height: 34px;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.sila-plans__media {
	aspect-ratio: 1612 / 667;
	margin-top: max(40px, calc(63 * var(--u)));
	overflow: hidden;
	border-radius: var(--sila-radius) 0 var(--sila-radius) 0;
	background-color: var(--sila-ink);
}

/* Livya floor selector: the nested Livya Plans element (plugin wrapper
   .livya-bricks-module > .livya-module-container-plans), into which embed.js
   injects an iframe that fills the frame. Taller than the Figma image frame so
   the selector + unit list stay usable. embed.css gives the container its own
   height, 16:9 ratio, border and radius; the frame owns those here. */
.sila-plans__media--livya {
	aspect-ratio: auto;
	height: min(80dvh, 740px);
	min-height: 520px;
	background-color: var(--sila-cream);
}

.sila-plans__media--livya > .livya-bricks-module,
.sila-plans__media--livya [class*="livya-module-container-"] {
	width: 100%;
	height: 100%;
	max-height: none;
	aspect-ratio: auto;
	border: 0;
	border-radius: 0;
}

.sila-plans__media--livya iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.sila-plans__img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

@media (max-width: 767px) {
	.sila-plans__highlight {
		line-height: 1.1;
	}

	.sila-plans__media {
		aspect-ratio: 4 / 3;
	}

	.sila-plans__media--livya {
		aspect-ratio: auto;
		height: min(78dvh, 540px);
		min-height: 0;
	}

	/* Full render height is visible here: crop its dark bottom band. */
	.sila-plans__img {
		height: 104.5%;
		object-position: 50% 0;
	}
}
