/* Slide: cmmc — scoped to .ihs-slide--cmmc. px only. */

.ihs-slide--cmmc {
	background: #06122a;
	color: #ffffff;
}

/* Contrast shade over the left of the mesh: above the bg image (z 0), below
   the copy (.ihs-inner, z 2). Tuned so white body text clears WCAG AA
   (4.5:1) against the brightest mesh pixel behind it, while the shield and
   the right side stay as they were. */
.ihs-cmmc__shade {
	position: absolute;
	inset: 0;
	z-index: 1;
	background-image: linear-gradient(90deg, rgba(4, 14, 38, 0.88) 0%, rgba(4, 14, 38, 0.72) 45%, rgba(4, 14, 38, 0.62) 54%, rgba(4, 14, 38, 0) 68%);
	pointer-events: none;
}

.ihs-cmmc__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	align-items: center;
	gap: 40px;
	padding-block: 64px 110px;
}

.ihs-cmmc__text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0;
	min-width: 0;
}

/* Uppercase via CSS so screen readers don't spell out the words. */
h2.ihs-cmmc__title {
	margin: 0;
	padding: 0;
	font-family: "Roboto", "Segoe UI", Arial, sans-serif;
	font-size: clamp(40px, 3.9vw, 50px);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: 0;
	text-align: left;
	text-transform: uppercase;
	color: #ffffff;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

p.ihs-cmmc__body {
	max-width: 700px;
	margin: 26px 0 0;
	font-family: "Roboto", "Segoe UI", Arial, sans-serif;
	font-size: 20px;
	font-weight: 500;
	line-height: 1.5;
	text-align: left;
	color: #ffffff;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

a.ihs-cmmc__btn {
	height: 48px;
	margin-top: 32px;
	padding: 0 20px;
	border-radius: 5px;
	font-size: 20px;
	font-weight: 500;
	background: #eaf3fa;
	color: #0a1a29;
}

a.ihs-cmmc__btn:hover {
	background: #ffffff;
	color: #0a1a29;
}

.ihs-cmmc__media {
	display: flex;
	justify-content: center;
	gap: 0;
	min-width: 0;
}

.ihs-cmmc__float {
	--ihs-float-duration: 6s;
	--ihs-float-distance: -20px;
	--ihs-float-delay: 0s;
	display: block;
	max-width: 100%;
	min-width: 0;
}

img.ihs-cmmc__shield {
	display: block;
	width: auto;
	height: min(440px, calc(var(--ihs-height) * 0.53)); /* follows the slider height */
	max-width: 100%;
	margin: 0;
	object-fit: contain;
}

@media (max-width: 1100px) {
	h2.ihs-cmmc__title {
		font-size: 36px;
	}

	p.ihs-cmmc__body {
		font-size: 18px;
	}

	img.ihs-cmmc__shield {
		height: min(340px, calc(var(--ihs-height) * 0.5));
	}
}

/* Portrait tablet: still two columns (stacked needs ~810px; the slider is
   617–650px here). Natural headline wrap. */
@media (max-width: 900px) {
	br.ihs-cmmc__br {
		display: none;
	}

	h2.ihs-cmmc__title {
		font-size: 32px;
	}

	p.ihs-cmmc__body {
		font-size: 17px;
	}

	img.ihs-cmmc__shield {
		height: min(300px, calc(var(--ihs-height) * 0.45));
	}
}

/* Phones: stacked, text first, into the 617px slider. */
@media (max-width: 767px) {
	/* The copy spans the full width here: shade top-down over the whole text
	   block, fading out before the shield. */
	.ihs-cmmc__shade {
		background-image: linear-gradient(180deg, rgba(4, 14, 38, 0.86) 0%, rgba(4, 14, 38, 0.7) 50%, rgba(4, 14, 38, 0) 68%);
	}

	.ihs-cmmc__inner {
		grid-template-columns: minmax(0, 1fr);
		align-content: center;
		gap: 22px;
		padding-block: 30px 88px;
	}

	h2.ihs-cmmc__title {
		font-size: 26px;
	}

	p.ihs-cmmc__body {
		margin-top: 12px;
		font-size: 16px;
		line-height: 1.45;
	}

	a.ihs-cmmc__btn {
		height: 44px;
		margin-top: 18px;
	}

	img.ihs-cmmc__shield {
		height: 140px;
	}
}
