/* =========================================================
   QUADCAPABLE EDITORIAL DESIGN PASS
   Media / About evergreen pages — v0.13
   ========================================================= */

.qc-editorial-hero {
	min-height: clamp(430px, 40vw, 620px);
	padding-block: clamp(5.25rem, 10vw, 8rem);
	background-color: #0b1017;
	background-size: cover;
	border-bottom: 1px solid rgba(212,167,60,.28);
}

.qc-editorial-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(circle at 85% 12%, rgba(212,167,60,.12), transparent 25rem),
		linear-gradient(180deg, rgba(3,5,8,.04), rgba(3,5,8,.24));
	pointer-events: none;
}

.qc-editorial-hero::after {
	background:
		linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.22)),
		linear-gradient(90deg, rgba(7,11,17,.30), transparent 72%);
}

.qc-editorial-hero .narrow {
	position: relative;
	padding-left: clamp(18px, 2.3vw, 30px);
	border-left: 3px solid var(--qc-gold, #d4a73c);
}

.qc-editorial-hero .eyebrow {
	margin-bottom: 18px;
	color: #f2c85b;
	text-shadow: 0 2px 14px rgba(0,0,0,.72);
}

.qc-editorial-hero h1 {
	max-width: 880px;
	font-size: clamp(3rem, 6.2vw, 5.55rem);
	letter-spacing: -.048em;
	text-shadow: 0 4px 32px rgba(0,0,0,.65);
}

.qc-editorial-hero p:last-child {
	max-width: 720px;
	color: #eef0f2;
	font-size: clamp(1.08rem, 1.6vw, 1.32rem);
	text-shadow: 0 3px 18px rgba(0,0,0,.75);
}

/* Local Media/About navigation */
.qc-editorial-subnav {
	position: relative;
	z-index: 4;
	border-bottom: 1px solid rgba(255,255,255,.07);
	background: rgba(6,9,13,.96);
	box-shadow: 0 10px 28px rgba(0,0,0,.18);
}

.qc-editorial-subnav__inner {
	width: min(1180px, calc(100% - 40px));
	margin-inline: auto;
	display: flex;
	gap: 8px;
	padding: 14px 0;
	overflow-x: auto;
	scrollbar-width: thin;
}

.qc-editorial-subnav__link {
	flex: 0 0 auto;
	padding: .68rem .9rem;
	border: 1px solid rgba(255,255,255,.08);
	border-radius: 999px;
	color: #cfd3d8;
	font-size: .8rem;
	font-weight: 800;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}

.qc-editorial-subnav__link:hover,
.qc-editorial-subnav__link:focus-visible {
	transform: translateY(-1px);
	border-color: rgba(212,167,60,.55);
	color: #fff;
}

.qc-editorial-subnav__link.is-current {
	border-color: #d4a73c;
	background: linear-gradient(180deg, #e1b84d, #bd8e27);
	color: #080a0d;
}

/* Curated visual mosaic */
.qc-editorial-visuals {
	width: min(1180px, calc(100% - 40px));
	margin: clamp(42px, 6vw, 76px) auto 0;
}

.qc-editorial-visuals__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.55fr) minmax(260px, .75fr);
	grid-template-rows: repeat(2, minmax(160px, 1fr));
	gap: 14px;
	min-height: clamp(390px, 42vw, 590px);
}

.qc-editorial-visuals__item {
	position: relative;
	margin: 0;
	overflow: hidden;
	border: 1px solid rgba(212,167,60,.20);
	border-radius: 20px;
	background: #111820;
	box-shadow: 0 22px 54px rgba(0,0,0,.26);
}

.qc-editorial-visuals__item:first-child {
	grid-row: 1 / 3;
}

.qc-editorial-visuals__item::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 58%, rgba(4,6,9,.22));
	pointer-events: none;
}

.qc-editorial-visuals__item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .35s ease;
}

.qc-editorial-visuals__item:hover img {
	transform: scale(1.025);
}

/* Editorial body system */
.qc-editorial-page:not(.qc-media-template) .qc-editorial-content {
	width: min(1180px, calc(100% - 40px));
	max-width: 1180px;
}

.qc-editorial-page:not(.qc-media-template) .qc-framework-placeholder {
	width: 100%;
	max-width: none;
}

.qc-editorial-page:not(.qc-media-template) .qc-framework-section {
	position: relative;
	padding: clamp(62px, 7vw, 96px) clamp(24px, 4vw, 48px);
	border-top: 1px solid rgba(255,255,255,.055);
}

.qc-editorial-page:not(.qc-media-template) .qc-framework-section:nth-child(odd) {
	background: linear-gradient(145deg, rgba(255,255,255,.018), rgba(212,167,60,.018));
}

.qc-editorial-page:not(.qc-media-template) .qc-framework-container {
	width: min(1040px, 100%);
	max-width: 1040px;
	margin-inline: auto;
}

.qc-editorial-page:not(.qc-media-template) .qc-framework-container > h2 {
	max-width: 880px;
	font-size: clamp(2.15rem, 4vw, 3.65rem);
	line-height: 1.04;
	letter-spacing: -.04em;
	margin-bottom: 24px;
}

.qc-editorial-page:not(.qc-media-template) .qc-framework-container > p:not(.qc-framework-eyebrow) {
	max-width: 820px;
	font-size: 1.06rem;
	line-height: 1.72;
}

.qc-editorial-page:not(.qc-media-template) .qc-framework-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 18px;
	margin-top: 30px;
}

.qc-editorial-page:not(.qc-media-template) .qc-framework-card {
	position: relative;
	overflow: hidden;
	border: 1px solid rgba(212,167,60,.22);
	border-radius: 18px;
	background:
		linear-gradient(155deg, rgba(212,167,60,.045), transparent 45%),
		#141a21;
	box-shadow: 0 16px 42px rgba(0,0,0,.18);
	transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.qc-editorial-page:not(.qc-media-template) .qc-framework-card:hover {
	transform: translateY(-2px);
	border-color: rgba(212,167,60,.46);
	box-shadow: 0 22px 48px rgba(0,0,0,.24);
}

.qc-editorial-page:not(.qc-media-template) .qc-framework-card h3 {
	font-size: clamp(1.18rem, 2vw, 1.48rem);
	line-height: 1.12;
}

.qc-editorial-page:not(.qc-media-template) .qc-framework-card a,
.qc-editorial-page:not(.qc-media-template) .qc-framework-container > p a {
	color: #efc65c;
	font-weight: 800;
	text-underline-offset: .18em;
}

/* Restore visual hierarchy in media cards whose inline display values were sanitized. */
.qc-editorial-page--media-kit .qc-framework-card img {
	display: block;
	max-width: 100%;
}

.qc-editorial-page--media-kit .qc-framework-card > div:has(> img) {
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Video/audio embeds restored by the theme. */
.qc-editorial-embed {
	position: relative;
	width: 100%;
	padding-top: 56.25%;
	overflow: hidden;
	border: 1px solid rgba(212,167,60,.24);
	border-radius: 16px;
	background: #000;
	box-shadow: 0 14px 40px rgba(0,0,0,.28);
}

.qc-editorial-embed iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.qc-editorial-audio {
	margin: 22px 0;
	overflow: hidden;
	border-radius: 14px;
}

.qc-editorial-audio iframe {
	display: block;
	width: 100%;
	height: 152px;
	border: 0;
}

/* My Story gets a subtle chapter treatment. */
.qc-editorial-page--my-story .qc-framework-placeholder {
	counter-reset: qc-story-chapter;
}

.qc-editorial-page--my-story .qc-framework-section:not(:first-child) {
	counter-increment: qc-story-chapter;
}

.qc-editorial-page--my-story .qc-framework-section:not(:first-child) .qc-framework-container::before {
	content: "0" counter(qc-story-chapter);
	display: block;
	margin-bottom: 16px;
	color: rgba(239,198,92,.62);
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 900;
	line-height: 1;
	letter-spacing: -.05em;
}

/* Living Resume reads more like a collection. */
.qc-editorial-page--living-resume .qc-framework-grid .qc-framework-card {
	min-height: 220px;
}

.qc-editorial-page--living-resume .qc-framework-grid .qc-framework-card::before {
	content: "COLLECTION";
	display: block;
	margin-bottom: 18px;
	color: #d4a73c;
	font-size: .68rem;
	font-weight: 900;
	letter-spacing: .14em;
}

/* Organizations & Work gets slightly more formal cards. */
.qc-editorial-page--organizations-work .qc-framework-card {
	border-left: 3px solid rgba(212,167,60,.72);
}

/* Special templates */
.qc-media-template > .qc-editorial-visuals {
	margin-bottom: clamp(36px, 5vw, 60px);
}

.cinematic-about .qc-editorial-visuals,
.archive-timeline-page .qc-editorial-visuals,
.qc-speaking-template .qc-editorial-visuals {
	margin-bottom: clamp(30px, 5vw, 58px);
}

@media (max-width: 760px) {
	.qc-editorial-hero {
		min-height: 390px;
		padding-block: 4.75rem;
	}

	.qc-editorial-hero .narrow {
		padding-left: 16px;
	}

	.qc-editorial-subnav__inner,
	.qc-editorial-visuals,
	.qc-editorial-page:not(.qc-media-template) .qc-editorial-content {
		width: min(100% - 28px, 1180px);
	}

	.qc-editorial-visuals__grid {
		grid-template-columns: 1fr 1fr;
		grid-template-rows: minmax(250px, 52vw) minmax(145px, 32vw);
		min-height: 0;
	}

	.qc-editorial-visuals__item:first-child {
		grid-column: 1 / 3;
		grid-row: auto;
	}

	.qc-editorial-page:not(.qc-media-template) .qc-framework-section {
		padding: 52px 20px;
	}
}

@media (max-width: 520px) {
	.qc-editorial-visuals__grid {
		display: block;
	}

	.qc-editorial-visuals__item {
		min-height: 220px;
		margin-bottom: 12px;
	}
}


/* =========================================================
   EDITORIAL LANDING ROUTES
   Match the four-card pillar rhythm used by Travel, Technology,
   Health & Living, and Advocacy.
   ========================================================= */
.qc-editorial-routes {
	padding-top: clamp(46px, 5.5vw, 78px);
	padding-bottom: clamp(58px, 7vw, 92px);
	background: #080c11;
	border-bottom: 1px solid rgba(255,255,255,.055);
}

.qc-editorial-route-grid {
	align-items: stretch;
}

.qc-editorial-route-card {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	min-width: 0;
	min-height: 320px;
	display: grid;
	grid-template-rows: auto auto 1fr auto;
	align-content: stretch;
	background-size: cover;
	background-repeat: no-repeat;
	border-color: rgba(211,169,77,.30);
}

.qc-editorial-route-card::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg,rgba(8,12,18,.16) 0%,rgba(8,12,18,.68) 46%,rgba(8,12,18,.97) 100%);
}

.qc-editorial-route-card .feature-number {
	align-self: start;
}

.qc-editorial-route-card h2 {
	margin-top: 0;
	font-size: clamp(1.75rem,2.15vw,2.3rem);
	line-height: 1.02;
	letter-spacing: -.035em;
	text-wrap: balance;
	text-shadow: 0 2px 10px rgba(0,0,0,.62);
}

.qc-editorial-route-card p {
	align-self: start;
	color: #d7dbe0;
	text-shadow: 0 2px 10px rgba(0,0,0,.68);
}

.qc-editorial-route-card > a {
	align-self: end;
	color: #f0c85e;
	font-weight: 850;
	text-decoration: underline;
	text-underline-offset: .18em;
	text-shadow: 0 2px 8px rgba(0,0,0,.72);
}

.qc-editorial-route-card:hover,
.qc-editorial-route-card:focus-within {
	border-color: rgba(211,169,77,.62);
	transform: translateY(-2px);
}

/* The Media landing page now uses route cards instead of the photo mosaic. */
.qc-editorial-page--media > .qc-editorial-routes {
	margin-top: 0;
}

/* About keeps its visual mosaic later in the story; the routes are the first
   content block after the hero/local navigation, matching the other pillars. */
.cinematic-about > .qc-editorial-routes + .cinematic-about-sequence {
	border-top: 1px solid rgba(255,255,255,.055);
}

@media (max-width: 760px) {
	.qc-editorial-route-card {
		min-height: 280px;
	}
}


/* =========================================================
   DOCUMENTARIES — long-form content replaces the old
   three-image top mosaic.
   ========================================================= */
.qc-documentaries-intro {
	padding-top: clamp(56px, 7vw, 88px);
	padding-bottom: clamp(36px, 5vw, 60px);
}

.qc-documentaries-intro h2 {
	max-width: 850px;
	font-size: clamp(2.1rem, 4vw, 3.7rem);
	line-height: 1.04;
	letter-spacing: -.04em;
}

.qc-documentaries-intro p:last-child {
	max-width: 820px;
	font-size: 1.06rem;
	line-height: 1.72;
	color: #cfd4d9;
}

.qc-documentaries-features {
	padding-top: 16px;
	padding-bottom: clamp(64px, 8vw, 104px);
}

.qc-documentaries-grid {
	display: grid;
	gap: clamp(26px, 4vw, 44px);
	width: min(1080px, 100%);
	margin-inline: auto;
}

.qc-documentary-feature {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
	gap: clamp(24px, 4vw, 44px);
	align-items: center;
	padding: clamp(22px, 3vw, 34px);
	border: 1px solid rgba(212,167,60,.20);
	border-radius: 22px;
	background: linear-gradient(145deg, rgba(212,167,60,.035), rgba(255,255,255,.012)), #0f151c;
	box-shadow: 0 22px 54px rgba(0,0,0,.24);
}

.qc-documentary-feature:nth-child(even) .qc-editorial-embed {
	order: 2;
}

.qc-documentary-copy h2 {
	margin: 8px 0 14px;
	font-size: clamp(1.8rem, 3vw, 2.8rem);
	line-height: 1.05;
	letter-spacing: -.035em;
}

.qc-documentary-copy p:last-child {
	color: #cbd1d6;
	line-height: 1.7;
}

.qc-documentaries-cta {
	padding-top: 0;
	padding-bottom: clamp(72px, 9vw, 112px);
}

.qc-documentaries-cta .qc-framework-card {
	padding: clamp(26px, 4vw, 42px);
}

@media (max-width: 820px) {
	.qc-documentary-feature {
		grid-template-columns: 1fr;
	}

	.qc-documentary-feature:nth-child(even) .qc-editorial-embed {
		order: initial;
	}
}
