/**
 * NKT Discover More — editorial redesign, v3 "Porcelain & Petrol".
 *
 * Self-contained, namespaced editorial layout: a large Spotlight feature
 * paired with two podcast/content rails, then a hairline "Explore" index +
 * CTAs. All colour runs through the tokens on .nkt-dm; everything is scoped
 * so it can't leak into or inherit from the surrounding GeneratePress markup.
 *
 * v3 replaces the original peach/sand ground (v1) — which read as a beige
 * island between the white page content and the dark footer — with a cool
 * porcelain ground that fades into a pale petrol mist as it approaches the
 * footer. Two-tone label system: petrol for wayfinding labels, coral for
 * interactions. A soft sunlit glow behind the Spotlight plus a faint paper
 * grain keep the ground from reading flat. (v2 tried a dark petrol "dusk" —
 * rejected: the section must stay light.)
 *
 * Type: serif is reserved for the Spotlight headline + card titles; all
 * kickers/labels are letterspaced sans small-caps.
 */

.nkt-dm,
.nkt-dm *,
.nkt-dm *::before,
.nkt-dm *::after { box-sizing: border-box; }

.nkt-dm {
	/* palette */
	--dm-bg:        #F7F7F3;
	--dm-bg-2:      #E9EFEF;
	--dm-surface:   #FFFFFF;
	--dm-ink:       #242C33;
	--dm-muted:     #5F6E76;
	--dm-line:      #DCE2E1;
	--dm-line-soft: #E7ECEA;
	--dm-accent:      #FF6A3C;
	--dm-accent-ink:  #D14914; /* accent as TEXT on the light ground (AA) */
	--dm-accent-fill: #E0521F; /* accent as SURFACE under white text (AA) */
	--dm-accent-dark: #C9481A; /* darker coral for button :hover */
	--dm-counter:     #3E606F; /* petrol — wayfinding labels */
	/* type */
	--dm-serif: "Iowan Old Style", "Charter", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
	--dm-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--dm-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

	position: relative;
	background: linear-gradient(180deg, var(--dm-bg) 0%, var(--dm-bg-2) 100%);
	color: var(--dm-ink);
	font-family: var(--dm-sans);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

/* ── atmosphere: sunlit wash + paper grain ───────────────────
   One large, very soft warm glow behind the Spotlight (left column) so the
   ground feels lit rather than flat; a faint grain wash over the whole
   section gives the porcelain some paper tooth. Both are decorative, sit
   under the content, and swallow no pointer events. */
.nkt-dm::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse 70% 55% at 28% 16%,
		rgba(255, 177, 110, 0.2), transparent 68%);
	pointer-events: none;
}
.nkt-dm::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: var(--dm-grain);
	background-size: 150px;
	mix-blend-mode: soft-light;
	opacity: 0.16;
	pointer-events: none;
}

.nkt-dm a { color: inherit; text-decoration: none; }
/* NB: no blanket `.nkt-dm p { margin: 0 }` reset — its specificity beat the
   kicker/eyebrow margin rules and silently zeroed every header's spacing. */

.nkt-dm__inner {
	position: relative; /* above the ::before glow layer */
	z-index: 1;
	max-width: 1120px;
	margin: 0 auto;
	padding: clamp(40px, 5.5vw, 76px) clamp(16px, 4vw, 40px);
}

/* ── eyebrow ─────────────────────────────────────────────── */
.nkt-dm__eyebrow {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 36px;
	font-size: 12px;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--dm-accent-ink);
}
.nkt-dm__rule {
	flex: 1;
	height: 1px;
	background: linear-gradient(90deg, rgba(224, 82, 31, 0.5), var(--dm-line) 55%, transparent);
}

/* ── main grid ───────────────────────────────────────────── */
.nkt-dm__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
	gap: clamp(28px, 4vw, 56px);
	align-items: start; /* don't stretch the short rail column to the tall spotlight */
}

.nkt-dm__kicker {
	margin: 0 0 18px;
	font-family: var(--dm-sans);
	font-size: 11.5px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--dm-counter);
}
.nkt-dm__kicker--row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 16px;
	padding-bottom: 13px;
	border-bottom: 1px solid var(--dm-line);
}
.nkt-dm__kicker--row a { color: var(--dm-counter); transition: color 0.2s; }
.nkt-dm__kicker--row a:hover { color: var(--dm-accent-ink); }
/* .nkt-dm prefix: outweigh the `.nkt-dm a { color: inherit }` reset (0,1,1),
   which otherwise beats a bare single-class colour and strands these ink. */
.nkt-dm .nkt-dm__all {
	font-family: var(--dm-sans);
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--dm-accent-ink);
	white-space: nowrap;
}

/* ── spotlight ───────────────────────────────────────────── */
.nkt-dm__spot-media {
	display: block;
	position: relative;
	aspect-ratio: 16 / 10;
	max-height: 420px; /* cap so the image can't grow unbounded on wide screens */
	border-radius: 16px;
	overflow: hidden;
	margin-bottom: 24px;
	background: var(--dm-surface);
	border: 1px solid rgba(36, 44, 51, 0.07);
	box-shadow: 0 20px 40px -24px rgba(35, 68, 84, 0.4);
}
.nkt-dm__spot-media img {
	width: 100%; height: 100%;
	object-fit: cover; display: block;
	transition: transform 0.6s ease;
}
.nkt-dm__spot-media:hover img { transform: scale(1.03); }

.nkt-dm__spot-title {
	font-family: var(--dm-serif);
	font-weight: 600;
	font-size: clamp(25px, 3vw, 36px);
	line-height: 1.08;
	letter-spacing: -0.015em;
	margin: 0 0 15px;
	text-wrap: balance;
	color: var(--dm-ink);
}
.nkt-dm__spot-title a { transition: color 0.2s; }
.nkt-dm__spot-title a:hover { color: var(--dm-accent-ink); }

.nkt-dm__spot-ex {
	margin: 0 0 22px !important;
	color: var(--dm-muted);
	font-size: 15.5px;
	line-height: 1.66;
	max-width: 48ch;
}

.nkt-dm .nkt-dm__more {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
	font-size: 12.5px;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--dm-accent-ink);
}
.nkt-dm__more svg { width: 20px; height: 12px; flex: none; transition: transform 0.25s ease; }
.nkt-dm__more:hover svg { transform: translateX(6px); }

/* ── rails ───────────────────────────────────────────────── */
.nkt-dm__rails { display: flex; flex-direction: column; gap: 36px; }

.nkt-dm__tiles {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}
.nkt-dm__tile {
	position: relative;
	display: block;
	border-radius: 12px;
	overflow: hidden;
	background: var(--dm-surface);
	border: 1px solid rgba(36, 44, 51, 0.06);
	box-shadow: 0 1px 3px rgba(35, 68, 84, 0.12);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.nkt-dm__tile:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 28px -12px rgba(255, 106, 60, 0.3), 0 12px 24px -14px rgba(35, 68, 84, 0.4);
}
.nkt-dm__tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nkt-dm__tiles--sq .nkt-dm__tile { aspect-ratio: 1; }
.nkt-dm__tiles--vid .nkt-dm__tile { aspect-ratio: 16 / 9; border-radius: 10px; }

/* play glyph on video tiles */
.nkt-dm__tiles--vid .nkt-dm__tile::after {
	content: "";
	position: absolute; top: 50%; left: 50%;
	transform: translate(-50%, -50%);
	width: 0; height: 0;
	border-style: solid;
	border-width: 7px 0 7px 12px;
	border-color: transparent transparent transparent rgba(255, 255, 255, 0.94);
	filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5));
	pointer-events: none;
}

/* placeholder for a post/podcast with no featured image */
.nkt-dm__ph {
	position: absolute; inset: 0;
	background: linear-gradient(150deg,
		color-mix(in srgb, var(--dm-accent) 80%, #000 4%),
		color-mix(in srgb, var(--dm-counter) 78%, #000 8%));
}
.nkt-dm__ph::after {
	content: "";
	position: absolute; inset: 0;
	background-image: var(--dm-grain);
	background-size: 150px;
	mix-blend-mode: soft-light;
	opacity: 0.5;
}

/* ── card-shape rail (blog / text-forward content) ───────── */
.nkt-dm__cards { display: flex; flex-direction: column; }
.nkt-dm__card {
	display: flex;
	gap: 15px;
	align-items: center;
	padding: 15px 0;
	border-bottom: 1px solid var(--dm-line-soft);
	transition: transform 0.2s ease;
}
.nkt-dm__card:hover { transform: translateX(3px); }
.nkt-dm__card-media {
	flex: 0 0 auto;
	width: 68px; height: 68px;
	border-radius: 10px;
	overflow: hidden;
	position: relative;
	background: var(--dm-surface);
	border: 1px solid rgba(36, 44, 51, 0.06);
}
.nkt-dm__card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nkt-dm__card-text { display: flex; flex-direction: column; min-width: 0; }
.nkt-dm__card-title {
	font-family: var(--dm-serif);
	font-size: 16px;
	line-height: 1.25;
	font-weight: 600;
	margin: 0 0 4px;
	color: var(--dm-ink);
	transition: color 0.2s;
}
.nkt-dm__card:hover .nkt-dm__card-title { color: var(--dm-accent-ink); }
.nkt-dm__card-meta { font-size: 12px; color: var(--dm-muted); letter-spacing: 0.02em; }

/* ── learn block (sits under the rails, filling the right column) ─ */
.nkt-dm__learn {
	margin-top: 8px;
	padding-top: 30px;
	border-top: 1px solid var(--dm-line);
}

/* ── connect index — full-width band below the grid ──────── */
.nkt-dm__connect {
	margin-top: clamp(40px, 4.5vw, 60px);
	padding-top: 34px;
	border-top: 1px solid var(--dm-line);
}
.nkt-dm__idx {
	list-style: none;
	margin: 0; padding: 0;
	display: flex; flex-wrap: wrap;
}
.nkt-dm__idx li { flex: 0 0 25%; }
.nkt-dm__idx a {
	display: flex; align-items: baseline; gap: 10px;
	padding: 11px 24px 11px 0;
	border-bottom: 1px solid var(--dm-line-soft);
	font-size: 15px;
	color: var(--dm-ink);
	transition: color 0.2s;
}
.nkt-dm__ar {
	margin-left: auto; color: var(--dm-accent-ink);
	opacity: 0; transform: translateX(-4px);
	transition: opacity 0.2s, transform 0.2s;
}
.nkt-dm__idx a:hover { color: var(--dm-accent-ink); }
.nkt-dm__idx a:hover .nkt-dm__ar { opacity: 1; transform: none; }

.nkt-dm__cta { display: flex; flex-direction: column; gap: 12px; max-width: 440px; }
.nkt-dm__btn {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 14px 22px;
	border-radius: 12px;
	font-weight: 700; font-size: 13px; letter-spacing: 0.03em;
	line-height: 1.2;
	transition: transform 0.2s, background-color 0.2s, border-color 0.2s, color 0.2s;
}
.nkt-dm__btn-icon { width: 17px; height: 17px; flex: none; fill: currentColor; }
/* Deeper coral fill (#E0521F) so white text clears AA contrast — plain
   #FF6A3C with white fails (2.6:1). The extra .nkt-dm prefix + span selector
   beats GeneratePress's own link colour, which was forcing the label dark. */
.nkt-dm__btn--fill { background: var(--dm-accent-fill); box-shadow: 0 10px 22px -12px rgba(224, 82, 31, 0.55); }
.nkt-dm .nkt-dm__btn--fill,
.nkt-dm .nkt-dm__btn--fill span { color: #fff; }
.nkt-dm__btn--fill:hover { background: var(--dm-accent-dark); transform: translateY(-1px); }
.nkt-dm__btn--ghost { border: 1.5px solid var(--dm-line); color: var(--dm-ink); background: var(--dm-surface); }
.nkt-dm .nkt-dm__btn--ghost,
.nkt-dm .nkt-dm__btn--ghost span { color: var(--dm-ink); }
.nkt-dm .nkt-dm__btn--ghost:hover,
.nkt-dm .nkt-dm__btn--ghost:hover span { color: var(--dm-accent-ink); }
.nkt-dm__btn--ghost:hover { border-color: var(--dm-accent); }

/* ── responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
	.nkt-dm__grid { grid-template-columns: 1fr; gap: 40px; }
	.nkt-dm__idx li { flex: 0 0 50%; }
}
@media (max-width: 640px) {
	/* Three tiles across a phone are unreadable — turn each rail into a
	   swipeable, snap-aligned carousel. Tiles sit at 66% so ~a third of the
	   next one peeks at the edge, signalling there's more to scroll. */
	.nkt-dm__tiles {
		display: flex;
		gap: 12px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;         /* Firefox */
		padding-bottom: 6px;           /* room for the tile's resting shadow */
		/* Soft-fade the right edge so the peeking tile dissolves into the
		   section rather than ending on a hard vertical cut. */
		-webkit-mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent);
		        mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent);
	}
	.nkt-dm__tiles::-webkit-scrollbar { display: none; } /* WebKit */
	.nkt-dm__tile {
		flex: 0 0 66%;
		scroll-snap-align: start;
	}
	.nkt-dm__tile:hover { transform: none; } /* no hover-lift clip inside the scroller */
}
@media (max-width: 560px) {
	.nkt-dm__idx li { flex: 0 0 100%; }
}

/* ── a11y ────────────────────────────────────────────────── */
.nkt-dm a:focus-visible,
.nkt-dm button:focus-visible {
	outline: 2px solid var(--dm-accent-ink);
	outline-offset: 3px;
	border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
	.nkt-dm *, .nkt-dm *::before, .nkt-dm *::after { transition: none !important; }
}
