/* Marketing pages — new design-language reskin (design skill v2).
   Extends the client-approved /resources look to the rest of the public marketing site:
   Research, Network, Landscape Assessment, Publications & Insights, and Connect. Visual guide:
   the same category-page pattern as data/index.html + data/toolkits.html + data/trainings.html
   (drift-gradient hero, one calm neutral surface, elevated cards, reveal-on-scroll +
   scroll-progress bar).

   PAGE-SCOPED: shared rules are nested under .tc-page--mkv2 (added to each page wrapper), so
   nothing here touches /resources, the resources sub-pages, or any non-marketing page. Per-page
   hero hue + accent come from the existing .tc-page--<slug> classes. No markup/content changes —
   this only reskins the existing tc-mk-* structure. Depends on: tc-marketing.

   NOTE: /resources + its four sub-pages keep their own approved files (resources.css,
   resources-sub.css). This file mirrors that design language for the remaining pages; the two
   could later be consolidated into one system once the unified look is re-approved. */

/* Drift animation shared by every hero (mirrors the mockups' @keyframes drift). */
@keyframes tc-mkv2-drift { 0% { background-position: 0% 40%; } 50% { background-position: 100% 60%; } 100% { background-position: 0% 40%; } }

/* Per-page hero gradient (--tc-cg) + accent (--tc-accent). Each nav section gets its own hue.
   Accents clear 4.5:1 on the light surface; hero gradients keep white large-title text legible. */
.tc-page--research  { --tc-cg: linear-gradient(120deg, #0f3b52 0%, #1587B3 52%, #1B2D5B 130%); --tc-accent: #1587B3; }
.tc-page--network   { --tc-cg: linear-gradient(120deg, #5e3416 0%, #9c5222 50%, #1B2D5B 130%); --tc-accent: #C2611F; }
.tc-page--landscape { --tc-cg: linear-gradient(120deg, #132145 0%, #1B2D5B 50%, #3a3f6b 130%); --tc-accent: #1587B3; }
.tc-page--reports   { --tc-cg: linear-gradient(120deg, #10314f 0%, #1B2D5B 46%, #2a5f7a 130%); --tc-accent: #1587B3; }
.tc-page--reading   { --tc-cg: linear-gradient(120deg, #0f3b52 0%, #1587B3 52%, #1B2D5B 130%); --tc-accent: #1587B3; }
.tc-page--connect   { --tc-cg: linear-gradient(120deg, #132145 0%, #1B2D5B 55%, #3a3f6b 130%); --tc-accent: #33C6F5; }

/* ---------- Scroll progress bar (JS-injected, page-scoped) ---------- */
.tc-mkv2-progress {
	position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 80;
	background: linear-gradient(90deg, var(--cerulean, #33C6F5), var(--pumpkin, #F28030));
	transition: width 0.08s linear; pointer-events: none;
}

/* ---------- Hero: drift-gradient band, white title + intro, slider spotlight ---------- */
.tc-page--mkv2 .tc-mk-hero {
	position: relative; overflow: hidden; color: #fff;
	padding: clamp(52px, 7vw, 80px) 24px clamp(56px, 7vw, 84px);
	background: var(--tc-cg, linear-gradient(120deg, #132145, #1B2D5B 50%, #3a3f6b 130%));
	background-size: 220% 220%;
	animation: tc-mkv2-drift 22s ease-in-out infinite;
}
.tc-page--mkv2 .tc-mk-hero::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background:
		radial-gradient(60% 85% at 84% 8%, rgba(255,255,255,0.20), transparent 60%),
		radial-gradient(50% 60% at 8% 100%, rgba(255,255,255,0.10), transparent 60%);
}
.tc-page--mkv2 .tc-mk-hero__inner { position: relative; z-index: 2; }
.tc-page--mkv2 .tc-mk-hero__title {
	color: #fff; font-size: clamp(40px, 8vw, 84px); line-height: 0.96; letter-spacing: -0.01em;
	margin: 0; text-shadow: 0 2px 20px rgba(11,17,33,0.25);
}
/* Hero intro (Connect) sits on the gradient. */
.tc-page--mkv2 .tc-mk-hero__inner .tc-mk-section__intro {
	color: rgba(255,255,255,0.92); font-size: 1.125rem; max-width: 62ch; margin: 18px 0 0;
}
/* The hero slider (Research / Network) reads as a spotlight card lifted off the gradient. */
.tc-page--mkv2 .tc-hero-slider {
	position: relative; z-index: 2; margin-top: clamp(28px, 4vw, 44px); border-radius: 22px;
	box-shadow: 0 30px 60px -28px rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.16);
}

/* ---------- Sections: one calm neutral surface + accent-bar flourish ---------- */
.tc-page--mkv2 .tc-mk-section { padding: clamp(56px, 7vw, 88px) 24px; }
/* Flatten the yellow/white alternation to one neutral (cards/panels provide the contrast). */
.tc-page--mkv2 .tc-mk-section--yellow,
.tc-page--mkv2 .tc-mk-section--white { background: var(--offwhite, #F7F6F2); }

/* Section head (eyebrow + title) is the shared base treatment now — see marketing.css. */
.tc-page--mkv2 .tc-mk-section__title { font-size: clamp(28px, 4vw, 46px); }
.tc-page--mkv2 .tc-mk-section__title a:hover { color: var(--tc-accent, var(--pumpkin, #F28030)); }
.tc-page--mkv2 .tc-mk-section__intro { font-size: 1.125rem; margin-top: 16px; max-width: 72ch; }
.tc-page--mkv2 .tc-mk-section__richtext { margin-top: 16px; }

/* CTA pill — accent fill, lifts to cream/navy on hover (mockup .btn). */
.tc-page--mkv2 .tc-mk-cta {
	padding: 15px 34px; font-size: 0.95rem; border-radius: 44px;
	box-shadow: 0 14px 30px -14px rgba(242,128,48,0.6);
}
.tc-page--mkv2 .tc-mk-cta:hover {
	background: var(--cream, #F0E0B0); color: var(--navy, #1B2D5B); transform: translateY(-2px);
}
/* Text sections (Network) left-align the CTA under the copy. */
.tc-page--mkv2 .tc-mk-section__cta-wrap { text-align: left; margin-top: 30px; }

/* ---------- Cards: elevated, rounded, bigger lift ---------- */
.tc-page--mkv2 .tc-mk-cards { gap: 26px; margin-top: 34px; }
.tc-page--mkv2 .tc-mk-card {
	border-radius: 18px; border-color: var(--sand, #E8E6DF);
	box-shadow: 0 18px 40px -30px rgba(27,45,91,0.5);
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.tc-page--mkv2 .tc-mk-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 26px 44px -24px rgba(27,45,91,0.45);
}
.tc-page--mkv2 .tc-mk-card:hover .tc-mk-card__media img { transform: scale(1.05); }
.tc-page--mkv2 .tc-mk-card__media img { transition: transform 0.5s ease; }

/* Book-cover cards (What We're Reading): lift the cover on hover. */
.tc-page--mkv2 .tc-mk-book__cover { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.tc-page--mkv2 .tc-mk-book:hover .tc-mk-book__cover {
	transform: translateY(-6px); box-shadow: 0 26px 40px -18px rgba(11, 17, 33, 0.5);
}
.tc-page--mkv2 .tc-mk-book__title { transition: color 0.2s ease; }
.tc-page--mkv2 .tc-mk-book:hover .tc-mk-book__title { color: var(--tc-accent, var(--pumpkin, #F28030)); }

/* Report banner (Publications & Insights): keep the cream identity, add elevation + rounding. */
.tc-page--mkv2 .tc-mk-cards--report { gap: 22px; }
.tc-page--mkv2 .tc-mk-card--report:hover { border-color: transparent; }

/* Landscape hero cards (Research / Landscape Assessment): keep the navy identity, add lift. */
.tc-page--mkv2 .tc-mk-card--landscape:hover,
.tc-page--mkv2 .tc-mk-card--landscape-text:hover { border-color: transparent; }

/* Split section (Research): elevate the feature card + tidy the link list. */
.tc-page--mkv2 .tc-mk-linklist { margin-top: 4px; }
.tc-page--mkv2 .tc-mk-linklist__item + .tc-mk-linklist__item { margin-top: 4px; }
.tc-page--mkv2 .tc-mk-linklist__link:hover .tc-mk-linklist__title { color: var(--tc-accent, var(--pumpkin, #F28030)); }
.tc-page--mkv2 .tc-mk-split__cta { margin-top: 20px; }
.tc-page--mkv2 .tc-mk-split__cta { text-align: left; }

/* ---------- Reliable-Sources-style tables / lists, if a marketing page uses them ---------- */
.tc-page--mkv2 .tc-mk-list { gap: 14px; margin-top: 30px; }
.tc-page--mkv2 .tc-mk-list__item {
	border-radius: 14px; padding: 20px 24px; border-left: 4px solid var(--tc-accent, var(--pumpkin, #F28030));
	box-shadow: 0 14px 34px -30px rgba(27,45,91,0.5);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tc-page--mkv2 .tc-mk-list__item:hover {
	transform: translateY(-3px); box-shadow: 0 22px 40px -26px rgba(27,45,91,0.4);
}
.tc-page--mkv2 .tc-mk-list__source { color: var(--tc-accent, var(--pumpkin, #F28030)); }
.tc-page--mkv2 .tc-mk-list__title a:hover { color: var(--tc-accent, var(--pumpkin, #F28030)); }

/* ---------- Card category filter (Publications & Insights): pill, accent focus ---------- */
.tc-page--mkv2 .tc-mk-cardfilter { margin-top: 34px; }
.tc-page--mkv2 .tc-mk-cardfilter__select:focus-visible {
	border-color: var(--tc-accent, var(--pumpkin, #F28030));
	box-shadow: 0 0 0 3px rgba(51,198,245,0.35);
}

/* ---------- Reveal-on-scroll ---------- */
/* Only arm the hidden state once JS confirms it's ready + motion is allowed, so a non-JS or
   reduced-motion visitor always sees fully-rendered content. */
.tc-reveal-ready .tc-page--mkv2 .tc-mk-section,
.tc-reveal-ready .tc-page--mkv2 .tc-hero-slider {
	opacity: 0; transform: translateY(30px);
	transition: opacity 0.8s cubic-bezier(.2,.7,.2,1), transform 0.8s cubic-bezier(.2,.7,.2,1);
}
.tc-reveal-ready .tc-page--mkv2 .tc-mk-section.is-inview,
.tc-reveal-ready .tc-page--mkv2 .tc-hero-slider.is-inview { opacity: 1; transform: none; }
/* Stagger the cards / rows / list items / books within a revealed section. */
.tc-reveal-ready .tc-page--mkv2 .tc-mk-card,
.tc-reveal-ready .tc-page--mkv2 .tc-mk-list__item,
.tc-reveal-ready .tc-page--mkv2 .tc-mk-linklist__item,
.tc-reveal-ready .tc-page--mkv2 .tc-mk-book {
	opacity: 0; transform: translateY(22px);
	transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1);
}
.tc-reveal-ready .tc-page--mkv2 .tc-mk-section.is-inview .tc-mk-card,
.tc-reveal-ready .tc-page--mkv2 .tc-mk-section.is-inview .tc-mk-list__item,
.tc-reveal-ready .tc-page--mkv2 .tc-mk-section.is-inview .tc-mk-linklist__item,
.tc-reveal-ready .tc-page--mkv2 .tc-mk-section.is-inview .tc-mk-book { opacity: 1; transform: none; }
.tc-reveal-ready .tc-page--mkv2 .tc-mk-section.is-inview :is(.tc-mk-card, .tc-mk-list__item, .tc-mk-linklist__item, .tc-mk-book):nth-child(2) { transition-delay: 0.07s; }
.tc-reveal-ready .tc-page--mkv2 .tc-mk-section.is-inview :is(.tc-mk-card, .tc-mk-list__item, .tc-mk-linklist__item, .tc-mk-book):nth-child(3) { transition-delay: 0.14s; }
.tc-reveal-ready .tc-page--mkv2 .tc-mk-section.is-inview :is(.tc-mk-card, .tc-mk-list__item, .tc-mk-linklist__item, .tc-mk-book):nth-child(4) { transition-delay: 0.21s; }
.tc-reveal-ready .tc-page--mkv2 .tc-mk-section.is-inview :is(.tc-mk-card, .tc-mk-list__item, .tc-mk-linklist__item, .tc-mk-book):nth-child(5) { transition-delay: 0.28s; }

@media (prefers-reduced-motion: reduce) {
	.tc-page--mkv2 .tc-mk-hero { animation: none; }
	.tc-mkv2-progress { display: none; }
	.tc-reveal-ready .tc-page--mkv2 .tc-mk-section,
	.tc-reveal-ready .tc-page--mkv2 .tc-hero-slider,
	.tc-reveal-ready .tc-page--mkv2 .tc-mk-card,
	.tc-reveal-ready .tc-page--mkv2 .tc-mk-list__item,
	.tc-reveal-ready .tc-page--mkv2 .tc-mk-linklist__item,
	.tc-reveal-ready .tc-page--mkv2 .tc-mk-book {
		opacity: 1; transform: none; transition: none;
	}
}
