/* =========================================================
   QUADCAPABLE EDITORIAL HERO SYSTEM
   Media / About evergreen pages
   ========================================================= */

.qc-editorial-hero {
	position: relative;
	min-height: clamp(390px, 38vw, 600px);
	display: flex;
	align-items: center;
	padding-block: clamp(4.75rem, 9vw, 7rem);
	background-color: #101720;
	border-bottom: 1px solid var(--qc-border);
	isolation: isolate;
}

.qc-editorial-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.16)),
		linear-gradient(90deg, rgba(9,14,21,.14), transparent 65%);
	pointer-events: none;
}

.qc-editorial-hero > .container {
	position: relative;
	z-index: 1;
	width: min(1180px, calc(100% - 40px));
	margin-inline: auto;
}

.qc-editorial-hero .narrow {
	width: min(820px, 100%);
	max-width: 820px;
	margin: 0;
}

.qc-editorial-hero h1 {
	max-width: 930px;
	margin-bottom: 18px;
	font-size: clamp(2.8rem, 6vw, 5.35rem);
	text-wrap: balance;
}

.qc-editorial-hero p:last-child {
	max-width: 780px;
	margin-bottom: 0;
	color: #d4d8df;
	font-size: clamp(1.05rem, 1.55vw, 1.3rem);
	line-height: 1.58;
	text-shadow: 0 2px 16px rgba(0,0,0,.4);
}

.qc-editorial-page .qc-editorial-content {
	width: min(1180px, calc(100% - 40px));
	max-width: 1180px;
}

/* The intro copy on these evergreen pages is promoted into the real hero. */
.qc-editorial-page .qc-editorial-content > .qc-framework-placeholder > .qc-framework-section:first-child {
	display: none;
}

/* Media already contains a legacy in-content hero. The theme hero replaces it. */
.qc-media-template .qc-media-page > .qc-media-hero {
	display: none;
}

/* Keep the remaining Media page full-width after removing its internal hero. */
.qc-media-template .qc-media-template-content,
.qc-media-template .qc-media-page {
	margin-top: 0;
}

/* Special pages retain their existing page-specific layouts beneath the hero. */
.cinematic-about > .qc-editorial-hero,
.archive-timeline-page > .qc-editorial-hero {
	margin: 0;
}

@media (max-width: 760px) {
	.qc-editorial-hero {
		min-height: 360px;
		padding-block: 4.25rem;
		background-position-x: center !important;
	}

	.qc-editorial-hero > .container,
	.qc-editorial-page .qc-editorial-content {
		width: min(100% - 28px, 1180px);
	}

	.qc-editorial-hero h1 {
		font-size: clamp(2.45rem, 12vw, 4rem);
	}
}
