/**
 * Block: Page header (also used by the sector archive template).
 *
 * Navy band, shorter than the home hero. A photo can sit behind the text with a
 * navy fade, or fill the right half on desktop.
 */

.ci-pagehead {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	background-color: var(--wp--preset--color--navy);
}

.ci-pagehead__inner {
	display: grid;
	gap: 2.5rem;
	padding-block: clamp(3rem, 6vw, 5rem);
}

.ci-pagehead__title {
	max-width: 18ch;
	margin: 0;
	font-size: clamp(2.375rem, 5vw, 3.75rem);
	line-height: 1.05;
}

.ci-pagehead__title em {
	display: block;
	color: var(--wp--preset--color--sky);
	font-style: normal;
}

.ci-pagehead__lead {
	max-width: 38rem;
	margin: 1.5rem 0 0;
	color: rgb(255 255 255 / .85);
	font-size: var(--wp--preset--font-size--lead);
	line-height: 1.55;
}

.ci-pagehead .ci-btn-row {
	margin-top: 2rem;
}

.ci-pagehead__media {
	position: absolute;
	inset: 0;
	z-index: -1;
}

.ci-pagehead__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ci-pagehead__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, var(--wp--preset--color--navy) 0%, rgb(1 18 34 / .9) 40%, rgb(1 18 34 / .45) 100%);
}

.ci-pagehead__aside {
	align-self: center;
}

.ci-pagehead__map {
	max-width: 28rem;
	margin-inline-start: auto;
}

.ci-pagehead__map .ci-map {
	display: block;
	width: 100%;
	height: auto;
}

@media (max-width: 959px) {
	.ci-pagehead__aside .ci-mosaic {
		display: none;
	}

	.ci-pagehead__map {
		max-width: 20rem;
		margin-inline: 0;
	}
}

@media (min-width: 960px) {
	.ci-pagehead__inner {
		min-height: 22rem;
		align-content: center;
	}

	.ci-pagehead--has-aside .ci-pagehead__inner {
		grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
		align-items: center;
	}

	.ci-pagehead--split .ci-pagehead__media {
		inset: 0 0 0 auto;
		width: 48%;
	}

	.ci-pagehead--split .ci-pagehead__media::after {
		background: linear-gradient(90deg, var(--wp--preset--color--navy) 0%, rgb(1 18 34 / 0) 45%);
	}

	.ci-pagehead--split .ci-pagehead__text {
		max-width: 48%;
	}
}
