/*
Theme Name: MNOT Nerd
Theme URI: https://metnerdsomtafel.nl/
Author: Met Nerds om Tafel
Description: Een eigen, snelle en toegankelijke theme-build voor Met Nerds om Tafel.
Version: 2.0.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: mnot-nerd
*/

:root {
	--teal: #0b6f86;
	--teal-dark: #064759;
	--teal-deep: #043541;
	--red: #e6332a;
	--red-dark: #b82420;
	--ink: #10191d;
	--ink-soft: #243239;
	--paper: #f5f2ea;
	--paper-2: #ebe7dc;
	--white: #fffdf8;
	--muted: #65737a;
	--line: rgba(16, 25, 29, .16);
	--cyan: #7fd8e7;
	--green: #74d99f;
	--mnot-teal: var(--teal);
	--mnot-dark-teal: var(--teal-dark);
	--mnot-light-teal: #dcecf1;
	--mnot-red: var(--red);
	--mnot-orange: var(--red);
	--shadow: 0 18px 50px rgba(7, 29, 35, .14);
	--radius: 6px;
	--shell: min(1180px, calc(100vw - 40px));
	--mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
	--display: "Arial Narrow", "Roboto Condensed", Impact, Haettenschweiler, sans-serif;
	--body: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--body);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--teal-dark); text-underline-offset: .18em; }
a:hover { color: var(--red-dark); }
button, input, select, textarea { font: inherit; }
button, input[type="submit"] { cursor: pointer; }
h1, h2, h3, h4 {
	margin: 0 0 .55em;
	font-family: var(--display);
	font-stretch: condensed;
	font-weight: 900;
	letter-spacing: -.025em;
	line-height: 1.02;
}
h1 { font-size: clamp(2.7rem, 6vw, 5.8rem); }
h2 { font-size: clamp(2.2rem, 4.2vw, 4rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.85rem); }
p { margin: 0 0 1.15em; }
::selection { background: var(--red); color: var(--white); }

.shell { width: var(--shell); margin-inline: auto; }
.narrow-shell { max-width: 1060px; }
.prose-shell { width: min(780px, calc(100vw - 40px)); margin-inline: auto; }
.screen-reader-text,
.skip-link:not(:focus) {
	position: absolute !important;
	width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
	position: fixed; z-index: 10000; top: 12px; left: 12px;
	background: var(--white); color: var(--ink); padding: 10px 16px; font-weight: 800;
}
:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
.eyebrow {
	margin: 0 0 .75rem;
	color: var(--red-dark);
	font-family: var(--mono);
	font-size: .78rem;
	font-weight: 800;
	letter-spacing: .09em;
	text-transform: uppercase;
}
.text-link {
	display: inline-flex; gap: .45rem; align-items: center;
	font-family: var(--mono); font-size: .86rem; font-weight: 800;
	text-decoration: none; text-transform: uppercase; letter-spacing: .035em;
}
.text-link:hover span { transform: translateX(4px); }
.text-link span { transition: transform .18s ease; }

/* Header */
.site-header {
	position: sticky; z-index: 1000; top: 0;
	background: rgba(16, 25, 29, .97);
	border-bottom: 1px solid rgba(127, 216, 231, .22);
	box-shadow: 0 8px 26px rgba(0, 0, 0, .14);
	backdrop-filter: blur(12px);
}
.admin-bar .site-header { top: 32px; }
.header-inner { min-height: 88px; display: flex; align-items: center; gap: 34px; }
.brand { flex: 0 0 auto; display: block; text-decoration: none; }
.brand-logo { width: auto; max-width: 295px; max-height: 58px; object-fit: contain; }
.brand-text { color: var(--white); font-family: var(--display); font-size: 1.75rem; font-weight: 900; }
.primary-nav { margin-left: auto; display: flex; align-items: center; gap: 24px; }
.primary-nav .menu { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.primary-nav .menu > li { position: relative; }
.primary-nav .menu > li > a {
	display: block; padding: 13px 11px;
	color: var(--white); font-family: var(--mono); font-size: .78rem; font-weight: 800;
	letter-spacing: .045em; text-decoration: none; text-transform: uppercase;
}
.primary-nav .menu > li > a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current-menu-ancestor > a { color: var(--cyan); }
.primary-nav .menu-item-has-children > a::after { content: " +"; color: var(--red); }
.primary-nav .sub-menu {
	position: absolute; left: 0; top: calc(100% - 2px); min-width: 230px;
	margin: 0; padding: 10px; list-style: none;
	background: var(--ink); border: 1px solid rgba(127, 216, 231, .25); box-shadow: var(--shadow);
	opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .16s ease;
}
.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-nav .sub-menu a { display: block; padding: 8px 10px; color: var(--white); text-decoration: none; font-size: .9rem; }
.primary-nav .sub-menu a:hover { background: var(--teal-deep); color: var(--cyan); }
.nav-listen {
	display: inline-flex; gap: 10px; align-items: center; flex: 0 0 auto;
	padding: 11px 17px; background: var(--red); border: 1px solid var(--red);
	color: var(--white) !important; font-family: var(--mono); font-size: .78rem; font-weight: 900;
	letter-spacing: .04em; text-decoration: none; text-transform: uppercase;
	box-shadow: 5px 5px 0 rgba(127, 216, 231, .18);
}
.nav-listen:hover { background: var(--white); border-color: var(--white); color: var(--ink) !important; }
.nav-toggle { display: none; }

/* Buttons */
.button,
.entry-content .wp-element-button,
.entry-content .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
	min-height: 50px; padding: 12px 20px; border: 0; border-radius: 2px;
	font-family: var(--mono); font-size: .83rem; font-weight: 900;
	letter-spacing: .035em; line-height: 1.2; text-decoration: none; text-transform: uppercase;
	transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.button:hover { transform: translate(-2px, -2px); }
.button-primary { background: var(--red); color: var(--white) !important; box-shadow: 6px 6px 0 var(--teal); }
.button-primary:hover { background: var(--red-dark); box-shadow: 8px 8px 0 var(--teal); }
.button-light { background: var(--white); color: var(--ink) !important; box-shadow: 6px 6px 0 rgba(0, 0, 0, .24); }
.button-slack { background: var(--red); color: var(--white) !important; box-shadow: 6px 6px 0 rgba(0, 0, 0, .24); }
.button-slack:hover { background: var(--red-dark); color: var(--white) !important; box-shadow: 8px 8px 0 rgba(0, 0, 0, .28); }
.slack-mark { width: 22px; height: 22px; flex: 0 0 auto; fill: currentColor; }

/* Homepage hero */
.hero {
	position: relative; overflow: hidden;
	padding: clamp(44px, 7vw, 86px) 0 clamp(58px, 8vw, 104px);
	background: var(--teal-deep); color: var(--white);
}
.hero::before {
	content: ""; position: absolute; inset: 0;
	background: radial-gradient(circle at 80% 15%, rgba(127, 216, 231, .18), transparent 28%), linear-gradient(135deg, transparent 0 62%, rgba(230, 51, 42, .09) 62% 63%, transparent 63%);
}
.hero-grid {
	position: absolute; inset: 0; opacity: .12;
	background-image: linear-gradient(rgba(255,255,255,.28) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.28) 1px, transparent 1px);
	background-size: 34px 34px;
	mask-image: linear-gradient(to bottom, black, transparent 85%);
}
.hero .shell { position: relative; }
.hero-topbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
	margin-bottom: 24px;
}
.hero-kicker {
	display: flex; gap: .8rem; align-items: center; margin-bottom: 24px;
	font-family: var(--mono); font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.hero-topbar .hero-kicker { margin-bottom: 0; }
.hero-kicker span { padding: 5px 9px; background: var(--red); color: var(--white); }
.award-badge {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 9px 13px;
	background: rgba(16, 25, 29, .72);
	border: 1px solid rgba(127, 216, 231, .42);
	box-shadow: 4px 4px 0 rgba(230, 51, 42, .62);
}
.award-badge svg { width: 34px; height: 34px; flex: 0 0 auto; fill: none; stroke: var(--cyan); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.award-badge > span { display: grid; line-height: 1.12; }
.award-badge small, .award-badge em { color: #afc4ca; font-family: var(--mono); font-size: .58rem; font-style: normal; letter-spacing: .055em; text-transform: uppercase; }
.award-badge strong { margin-block: 2px; color: var(--white); font-family: var(--mono); font-size: .76rem; letter-spacing: .035em; text-transform: uppercase; }
.hero-card {
	display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(340px, .88fr);
	align-items: center;
	background: var(--ink); border: 1px solid rgba(127, 216, 231, .35);
	box-shadow: 14px 14px 0 rgba(230, 51, 42, .72), var(--shadow);
}
.hero-media { position: relative; align-self: center; min-height: 0; aspect-ratio: 16 / 9; overflow: hidden; background: #071317; }
.hero-media a, .hero-media img { width: 100%; height: 100%; }
.hero-media img { object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: auto 0 0; height: 35%; background: linear-gradient(transparent, rgba(0,0,0,.5)); pointer-events: none; }
.hero-media-label {
	position: absolute; z-index: 2; left: 18px; bottom: 16px;
	padding: 5px 9px; background: var(--ink); border: 1px solid rgba(127,216,231,.45);
	font-family: var(--mono); font-size: .68rem; letter-spacing: .08em;
}
.hero-copy { align-self: center; padding: clamp(30px, 5vw, 62px); }
.episode-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; color: var(--cyan); font-family: var(--mono); font-size: .78rem; text-transform: uppercase; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 5px rgba(230,51,42,.15); }
.hero h1 { margin-bottom: 22px; font-size: clamp(2.65rem, 5vw, 5.2rem); text-wrap: balance; }
.hero-excerpt { color: #cedadd; font-size: clamp(1rem, 1.5vw, 1.18rem); line-height: 1.58; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 30px; }
.hero .text-link { color: var(--cyan); }

.platform-strip { background: var(--red); color: var(--white); }
.platform-inner { min-height: 72px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.platform-inner > p { margin: 0; font-family: var(--mono); font-size: .77rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.prompt { color: var(--ink); }
.platform-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 24px; }
.platform-links a { display: inline-flex; align-items: center; gap: 8px; color: var(--white); font-family: var(--mono); font-size: .78rem; font-weight: 900; letter-spacing: .035em; text-decoration: none; text-transform: uppercase; }
.platform-links a:hover { color: var(--ink); }
.platform-icon { width: 23px; height: 23px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.platform-icon-fill { fill: currentColor; stroke: none; }

.home-section { padding: clamp(72px, 9vw, 120px) 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 40px; }
.section-heading h2 { margin-bottom: 0; }
.episode-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 24px; }
.episode-card { min-width: 0; background: var(--white); border: 1px solid var(--line); box-shadow: 5px 5px 0 rgba(11,111,134,.13); transition: transform .18s ease, box-shadow .18s ease; }
.episode-card:hover { transform: translateY(-5px); box-shadow: 8px 10px 0 rgba(11,111,134,.2); }
.episode-card-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--teal-deep); }
.episode-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.episode-card:hover .episode-card-media img { transform: scale(1.025); }
.episode-placeholder { display: grid; width: 100%; height: 100%; place-items: center; color: var(--cyan); font-family: var(--mono); font-size: 2rem; }
.play-badge { position: absolute; right: 14px; bottom: 14px; display: grid; width: 42px; height: 42px; place-items: center; padding-left: 2px; background: var(--red); color: var(--white); border-radius: 50%; box-shadow: 0 5px 15px rgba(0,0,0,.25); }
.episode-card-body { padding: 22px 22px 25px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 5px 9px; margin-bottom: 13px; color: var(--muted); font-family: var(--mono); font-size: .7rem; letter-spacing: .02em; text-transform: uppercase; }
.card-meta a { color: var(--teal-dark); text-decoration: none; }
.episode-card h3 { margin-bottom: 13px; font-size: clamp(1.45rem, 2.1vw, 2rem); line-height: 1.08; }
.episode-card h3 a { color: var(--ink); text-decoration: none; }
.episode-card h3 a:hover { color: var(--red-dark); }
.episode-card-body > p:last-child { margin: 0; color: var(--muted); font-size: .93rem; line-height: 1.55; }

.topic-section { padding: clamp(65px, 8vw, 105px) 0; background: var(--paper-2); border-block: 1px solid var(--line); }
.topic-layout { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(50px, 8vw, 120px); align-items: center; }
.topic-layout h2 { font-size: clamp(2.5rem, 4vw, 4.2rem); }
.topic-layout > div:first-child > p:last-child { color: var(--muted); }
.topic-cloud { display: flex; flex-wrap: wrap; gap: 11px; }
.topic-cloud a { display: inline-flex; align-items: baseline; gap: 5px; padding: 10px 14px; background: var(--white); border: 1px solid var(--line); color: var(--ink); font-family: var(--mono); font-size: .82rem; font-weight: 800; text-decoration: none; box-shadow: 3px 3px 0 rgba(11,111,134,.12); }
.topic-cloud a:hover { background: var(--teal-deep); color: var(--white); border-color: var(--teal-deep); transform: translate(-2px,-2px); }
.topic-cloud a span { color: var(--red); }
.topic-cloud sup { color: var(--muted); font-size: .6rem; }
.topic-cloud.compact { margin-top: 18px; }

.community-cta { padding: clamp(65px, 8vw, 105px) 0; }
.community-card {
	display: grid; grid-template-columns: 1.2fr .8fr; gap: 50px; align-items: center;
	padding: clamp(36px, 6vw, 70px); background: var(--teal-dark); color: var(--white);
	box-shadow: 12px 12px 0 var(--red);
}
.community-card .eyebrow { color: var(--cyan); }
.community-card h2 { margin-bottom: 15px; }
.community-card p:last-child { margin-bottom: 0; color: #d6e5e8; }
.community-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.text-link.light { color: var(--white); }

/* Archive and content pages */
.archive-page, .content-page { min-height: 60vh; padding: clamp(64px, 9vw, 110px) 0; }
.page-header { margin-bottom: 46px; }
.page-header h1 { max-width: 900px; font-size: clamp(3.1rem, 7vw, 6.4rem); }
.page-header > p:last-child, .archive-description { max-width: 760px; color: var(--muted); font-size: 1.1rem; }
.archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.navigation.pagination { margin-top: 54px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.nav-links .page-numbers { display: grid; min-width: 42px; min-height: 42px; place-items: center; padding: 7px 12px; background: var(--white); border: 1px solid var(--line); color: var(--ink); font-family: var(--mono); font-size: .78rem; font-weight: 800; text-decoration: none; }
.nav-links .current, .nav-links a:hover { background: var(--teal-deep); color: var(--white); }
.empty-state { padding: 50px; background: var(--white); border: 1px solid var(--line); }

.archive-filters { display: grid; grid-template-columns: minmax(220px, 1fr) 180px auto; gap: 15px; align-items: end; margin: 0 0 18px; padding: 24px; background: var(--ink); color: var(--white); }
.archive-filters label, .guest-search label { display: grid; gap: 6px; font-family: var(--mono); font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
input[type="search"], input[type="text"], input[type="email"], input[type="url"], textarea, select {
	width: 100%; min-height: 50px; padding: 10px 13px; background: var(--white); border: 1px solid #9da7ab; border-radius: 0; color: var(--ink);
}
textarea { min-height: 150px; }
.archive-filters button, .search-form button, .form-submit input {
	min-height: 50px; padding: 10px 20px; background: var(--red); border: 0; color: var(--white); font-family: var(--mono); font-size: .78rem; font-weight: 900; text-transform: uppercase;
}
.clear-filters { align-self: center; color: var(--cyan); font-size: .8rem; }
.result-count { color: var(--muted); font-family: var(--mono); font-size: .76rem; }
.search-form { display: flex; max-width: 680px; gap: 8px; margin-top: 24px; }
.search-form label { flex: 1; }

/* Guest directory */
.guest-search { margin-bottom: 24px; padding: 24px; background: var(--ink); color: var(--white); }
.guest-search input { max-width: 620px; margin-top: 6px; }
.guest-search .result-count { margin: 10px 0 0; color: var(--cyan); }
.letter-nav { position: sticky; z-index: 10; top: 98px; display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 42px; padding: 12px; background: rgba(245,242,234,.96); border-block: 1px solid var(--line); }
.letter-nav a { display: grid; width: 31px; height: 31px; place-items: center; color: var(--ink); font-family: var(--mono); font-size: .74rem; font-weight: 800; text-decoration: none; }
.letter-nav a:hover { background: var(--red); color: var(--white); }
.guest-directory { display: grid; grid-template-columns: repeat(3, 1fr); gap: 42px 30px; }
.guest-group h2 { padding-bottom: 8px; border-bottom: 3px solid var(--red); font-family: var(--mono); font-size: 1.5rem; }
.guest-group ul { margin: 0; padding: 0; list-style: none; }
.guest-group li { border-bottom: 1px solid var(--line); }
.guest-group li a { display: flex; justify-content: space-between; gap: 10px; padding: 11px 0; color: var(--ink); text-decoration: none; }
.guest-group li a:hover { color: var(--red-dark); }
.guest-group small { color: var(--muted); font-family: var(--mono); font-size: .63rem; text-align: right; }

/* Guest profile */
.guest-profile-header { display: grid; grid-template-columns: 230px 1fr; gap: 50px; align-items: center; margin-bottom: 70px; padding-bottom: 55px; border-bottom: 1px solid var(--line); }
.guest-avatar { display: grid; width: 230px; aspect-ratio: 1; place-items: center; overflow: hidden; background: var(--teal-dark); border: 8px solid var(--white); box-shadow: 8px 8px 0 var(--red); color: var(--white); font-family: var(--display); font-size: 4.5rem; font-weight: 900; }
.guest-avatar img { width: 100%; height: 100%; object-fit: cover; }
.guest-profile-header h1 { font-size: clamp(3rem, 7vw, 6.3rem); }
.guest-profession { color: var(--teal-dark); font-family: var(--mono); font-size: .9rem; font-weight: 800; }
.guest-bio { max-width: 700px; font-size: 1.12rem; }
.guest-links { display: flex; flex-wrap: wrap; gap: 8px; }
.guest-links a { padding: 7px 10px; background: var(--white); border: 1px solid var(--line); font-family: var(--mono); font-size: .72rem; font-weight: 800; text-decoration: none; }
.guest-topics { margin-bottom: 70px; }
.guest-topics h2 { font-size: 2rem; }

/* Single */
.single-hero { position: relative; padding: clamp(52px, 7vw, 90px) 0; background: var(--teal-deep); color: var(--white); overflow: hidden; }
.single-hero::after { content: ""; position: absolute; inset: 0; opacity: .1; background-image: linear-gradient(rgba(255,255,255,.3) 1px, transparent 1px), linear-gradient(90deg,rgba(255,255,255,.3) 1px,transparent 1px); background-size: 32px 32px; pointer-events: none; }
.single-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(340px, .9fr) 1.1fr; gap: clamp(35px, 6vw, 80px); align-items: center; }
.single-cover { aspect-ratio: 16/9; overflow: hidden; background: var(--ink); box-shadow: 10px 10px 0 var(--red); }
.single-cover:empty { display: none; }
.single-cover img { width: 100%; height: 100%; object-fit: cover; }
.single-heading h1 { font-size: clamp(2.7rem, 5vw, 5.3rem); text-wrap: balance; }
.single-heading .eyebrow { color: var(--cyan); }
.single-deck { max-width: 660px; color: #cbdadd; font-size: 1.1rem; }
.mnot-episode-topline { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 14px; color: var(--cyan); font-family: var(--mono); font-size: .75rem; font-weight: 800; text-transform: uppercase; }
.single-content-shell { padding-block: clamp(55px, 8vw, 95px); }
.entry-content { font-size: 1.04rem; }
.entry-content > * { max-width: 100%; }
.entry-content h2 { margin-top: 1.45em; font-size: clamp(2rem, 4vw, 3.15rem); }
.entry-content h3 { margin-top: 1.4em; }
.entry-content a { font-weight: 650; }
.entry-content iframe { width: 100%; max-width: 100%; border: 0; }
.entry-content blockquote { margin: 2em 0; padding: 18px 24px; border-left: 5px solid var(--red); background: var(--paper-2); font-size: 1.08rem; }
.entry-content pre { max-width: 100%; overflow: auto; padding: 20px; background: var(--ink); color: var(--cyan); font-family: var(--mono); font-size: .86rem; }
.entry-content code { font-family: var(--mono); }
.entry-content ul, .entry-content ol { padding-left: 1.35em; }
.entry-content li { margin-bottom: .4em; }
.entry-content figure { margin: 2em 0; }
.mnot-section { margin-top: 60px; padding-top: 32px; border-top: 3px solid var(--ink); }
.mnot-section > h2 { font-size: clamp(2rem, 4vw, 3rem); }
.mnot-transcript details { background: var(--white); border: 1px solid var(--line); }
.mnot-transcript summary { padding: 18px 20px; color: var(--teal-dark); font-family: var(--mono); font-size: .82rem; font-weight: 900; cursor: pointer; }
.mnot-transcript-content { max-height: 70vh; overflow: auto; padding: 0 24px 26px; }
.post-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; margin-top: 70px; padding-top: 28px; border-top: 1px solid var(--line); }
.post-navigation > div:last-child { text-align: right; }
.post-navigation a { color: var(--ink); font-family: var(--display); font-size: 1.4rem; font-weight: 900; line-height: 1.1; text-decoration: none; }
.post-navigation span { display: block; margin-bottom: 8px; color: var(--muted); font-family: var(--mono); font-size: .66rem; text-transform: uppercase; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 45px; }
.post-tags a { padding: 6px 9px; background: var(--paper-2); font-family: var(--mono); font-size: .7rem; text-decoration: none; }
.comments-area { font-size: .95rem; }
.comment-list { padding-left: 0; list-style: none; }
.comment-list .children { list-style: none; }
.comment-body { margin-bottom: 18px; padding: 20px; background: var(--white); border: 1px solid var(--line); }

/* MNOT episode module harmonisation */
.mnot-episode-enhancements { margin-block: 45px; }
.mnot-episode-facts { background: var(--ink) !important; color: var(--white); border-radius: 0 !important; }
.mnot-episode-facts h2 { color: var(--cyan) !important; font-family: var(--mono); }
.mnot-episode-facts a { color: var(--white); }
.mnot-topic-list a, .mnot-people-list a { text-decoration-color: var(--red); }
.mnot-episode-chapters { border-radius: 0 !important; }
.mnot-chapter-seek, .mnot-chapters-toggle { background: var(--teal-dark) !important; color: var(--white) !important; border-radius: 0 !important; }
.mnot-related-grid { gap: 20px !important; }
.mnot-related-card { background: var(--white) !important; border: 1px solid var(--line) !important; border-radius: 0 !important; box-shadow: 4px 4px 0 rgba(11,111,134,.14); }

/* Generic pages, tables and footer */
.page-article .page-header { padding-bottom: 25px; border-bottom: 1px solid var(--line); }
.error-page { text-align: center; }
.error-page .prose-shell { max-width: 700px; }
.error-code { margin: 0; color: var(--red); font-family: var(--mono); font-size: clamp(5rem, 18vw, 12rem); font-weight: 900; line-height: .8; }
.error-page .search-form { margin-inline: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px; border: 1px solid var(--line); text-align: left; }
.alignwide { width: min(1040px, calc(100vw - 40px)); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }

.site-footer { padding: 68px 0 26px; background: var(--ink); color: #ced9dc; border-top: 7px solid var(--red); }
.footer-grid { display: grid; grid-template-columns: 1.5fr .75fr .75fr; gap: clamp(35px, 7vw, 100px); }
.footer-brand { max-width: 540px; }
.footer-title { margin-bottom: 12px; color: var(--white); font-family: var(--display); font-size: 2.5rem; font-weight: 900; line-height: 1; text-transform: uppercase; }
.site-footer .eyebrow { color: var(--green); }
.footer-heading { color: var(--cyan); font-family: var(--mono); font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.footer-links a { color: var(--white); text-decoration: none; }
.footer-links a:hover { color: var(--cyan); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 55px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); font-family: var(--mono); font-size: .68rem; text-transform: uppercase; }
.footer-bottom p, .footnote { margin: 0; }
.footer-status-group { display: flex; flex-direction: column; align-items: flex-end; margin-left: auto; text-align: right; }
.footer-status { display: flex; align-items: center; gap: 8px; }
.footer-status span { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(116,217,159,.12); }
.footnote { margin-top: 7px !important; color: #78878c; font-size: .7rem; text-transform: none; }

@media (max-width: 1080px) {
	.header-inner { gap: 20px; }
	.brand-logo { max-width: 245px; }
	.primary-nav { gap: 12px; }
	.primary-nav .menu > li > a { padding-inline: 7px; font-size: .72rem; }
	.hero-card { grid-template-columns: 1fr 1fr; }
	.hero-media { min-height: 0; }
}

@media (max-width: 860px) {
	.admin-bar .site-header { top: 46px; }
	.header-inner { min-height: 76px; }
	.brand-logo { max-width: min(245px, 62vw); max-height: 50px; }
	.nav-toggle {
		display: inline-flex; align-items: center; gap: 9px; margin-left: auto; padding: 9px 12px;
		background: transparent; border: 1px solid rgba(127,216,231,.45); color: var(--white);
		font-family: var(--mono); font-size: .75rem; font-weight: 900; text-transform: uppercase;
	}
	.nav-toggle-icon { display: grid; gap: 4px; }
	.nav-toggle-icon span { display: block; width: 18px; height: 2px; background: var(--red); }
	.primary-nav {
		position: fixed; inset: 76px 0 auto; display: none; max-height: calc(100vh - 76px); overflow: auto;
		margin: 0; padding: 20px; background: var(--ink); border-top: 1px solid rgba(127,216,231,.22);
	}
	.admin-bar .primary-nav { inset-block-start: 122px; }
	.nav-open .primary-nav { display: block; }
	.primary-nav .menu { display: block; }
	.primary-nav .menu > li > a { padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,.1); font-size: .86rem; }
	.primary-nav .sub-menu { position: static; display: block; min-width: 0; padding: 0 0 8px 15px; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
	.primary-nav .sub-menu a { padding: 7px 4px; }
	.nav-listen { margin-top: 16px; }

	.hero-card { grid-template-columns: 1fr; box-shadow: 9px 9px 0 rgba(230,51,42,.72); }
	.hero-media { min-height: 0; aspect-ratio: 16 / 9; }
	.episode-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.topic-layout, .community-card { grid-template-columns: 1fr; }
	.guest-directory { grid-template-columns: repeat(2, 1fr); }
	.single-hero-grid { grid-template-columns: 1fr; }
	.single-cover { max-width: 700px; }
	.footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
}

@media (max-width: 640px) {
	:root { --shell: min(100% - 28px, 1180px); }
	body { font-size: 16px; }
	.hero { padding-top: 34px; }
	.hero-topbar { align-items: stretch; flex-direction: column; }
	.hero-kicker { align-items: flex-start; flex-direction: column; gap: 7px; }
	.award-badge { align-self: flex-start; }
	.hero-copy { padding: 27px 22px 32px; }
	.hero h1 { font-size: clamp(2.45rem, 12vw, 3.8rem); }
	.hero-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
	.button { width: 100%; }
	.platform-inner { align-items: flex-start; flex-direction: column; padding-block: 18px; }
	.platform-links { justify-content: flex-start; }
	.section-heading { align-items: flex-start; flex-direction: column; }
	.episode-grid, .archive-grid { grid-template-columns: 1fr; }
	.topic-layout { gap: 30px; }
	.community-card { width: calc(100% - 28px); gap: 30px; padding: 30px 22px; box-shadow: 7px 7px 0 var(--red); }
	.archive-page, .content-page { padding-block: 55px; }
	.archive-filters { grid-template-columns: 1fr; }
	.clear-filters { justify-self: start; }
	.guest-directory { grid-template-columns: 1fr; }
	.letter-nav { top: 84px; }
	.guest-profile-header { grid-template-columns: 1fr; gap: 32px; margin-bottom: 50px; }
	.guest-avatar { width: min(220px, 72vw); }
	.guest-profile-header h1 { font-size: clamp(3rem, 16vw, 5rem); }
	.single-hero { padding-block: 40px 52px; }
	.single-heading h1 { font-size: clamp(2.45rem, 12vw, 4rem); }
	.post-navigation { grid-template-columns: 1fr; }
	.post-navigation > div:last-child { text-align: left; }
	.search-form { flex-direction: column; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-brand { grid-column: 1 / -1; }
	.footer-bottom { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

@media print {
	.site-header, .site-footer, .platform-strip, .community-cta, .post-navigation { display: none !important; }
	body { background: #fff; color: #000; }
	.single-hero { background: #fff; color: #000; padding: 20px 0; }
}
