/* =============================================================
   The Edict — master stylesheet
   Consolidated from: edict_homepage_full_design.html, articles.html,
   article-single.html, topics.html, podcasts.html, about.html, submit.html
   ============================================================= */

/* ---------- Foundations ---------- */
:root {
	--ink:        #1A1A1A;
	--paper:      #FFFFFF;
	--surround:   #FAF8F3;
	--red:        #8A2A2A;
	--red-dark:   #5A1010;
	--brass:      #B08A5B;
	--soft:       #F4EDE6;
	--navy:       #1F3A5F;
	--line:       #D9D5CE;
	--muted:      #6B6B6B;

	--serif: Georgia, "Tiempos Headline", "Canela", "Times New Roman", serif;
	--sans:  "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

	--shell-max: 1280px;
	--shell-pad: 40px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
	background: var(--surround);
	color: var(--ink);
	font-family: var(--serif);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

/* ---------- Layout shell — equal margins L/R ---------- */
.shell {
	max-width: var(--shell-max);
	margin: 0 auto;
	background: var(--paper);
	min-height: 100vh;
}

/* ---------- Reading-progress bar (single article) ---------- */
.progress-bar {
	position: fixed;
	top: 0;
	left: 0;
	height: 3px;
	width: 0;
	background: var(--red);
	z-index: 60;
	transition: width 0.05s linear;
}

/* =============================================================
   Top Navigation — logo left, menu right
   ============================================================= */
.nav {
	height: 72px;
	padding: 0 var(--shell-pad);
	background: var(--paper);
	border-bottom: 1px solid var(--line);
	display: flex;
	align-items: center;
	justify-content: space-between;
	position: sticky;
	top: 0;
	z-index: 50;
	transition: box-shadow 0.2s ease;
}
.nav.scrolled { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04); }

.brand {
	display: flex;
	flex-direction: column;
	line-height: 1;
}
.brand-name {
	font-family: var(--serif);
	font-weight: 700;
	font-size: 24px;
	color: var(--red);
	letter-spacing: -0.3px;
}
.brand-sub {
	font-family: var(--sans);
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 2px;
	color: var(--muted);
	text-transform: uppercase;
	margin-top: 4px;
}
.nav-right {
	display: flex;
	align-items: center;
	gap: 32px;
}
.nav-link {
	font-family: var(--sans);
	font-size: 14px;
	font-weight: 500;
	color: var(--ink);
	transition: color 0.15s ease;
}
.nav-link:hover, .nav-link.active { color: var(--red); }
.nav-link.active { font-weight: 600; }

/* WordPress-rendered menu items (inherits .nav-link visuals) */
.primary-menu {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 32px;
	margin: 0;
	padding: 0;
}
.primary-menu a {
	font-family: var(--sans);
	font-size: 14px;
	font-weight: 500;
	color: var(--ink);
	transition: color 0.15s ease;
}
.primary-menu a:hover,
.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a,
.primary-menu .current-post-ancestor > a,
.primary-menu .current-menu-ancestor > a { color: var(--red); }
.primary-menu .current-menu-item > a { font-weight: 600; }

.cta {
	font-family: var(--sans);
	font-size: 14px;
	font-weight: 500;
	color: #fff;
	background: var(--red);
	padding: 10px 20px;
	border-radius: 4px;
	border: none;
	cursor: pointer;
	text-decoration: none;
	display: inline-block;
	transition: background 0.15s ease;
}
.cta:hover { background: var(--red-dark); color: #fff; }

.hamburger {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	font-size: 22px;
	color: var(--ink);
	padding: 8px;
}

/* =============================================================
   Section primitives shared across pages
   ============================================================= */
.section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	border-bottom: 2px solid var(--red);
	padding-bottom: 12px;
	margin-bottom: 28px;
}
.section-title {
	font-family: var(--serif);
	font-size: 26px;
	font-weight: 700;
	margin: 0;
	letter-spacing: -0.3px;
	color: var(--ink);
}
.section-link, .section-sub {
	font-family: var(--sans);
	font-size: 13px;
	color: var(--muted);
}
.section-link:hover { color: var(--red); }

/* =============================================================
   Page header (used on Articles, Topics, Podcasts, About, Submit)
   ============================================================= */
.page-header {
	padding: 64px var(--shell-pad) 40px;
	border-bottom: 1px solid var(--line);
	background: var(--paper);
}
.crumbs {
	font-family: var(--sans);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 20px;
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--red); }
.crumbs .sep { margin: 0 8px; color: var(--line); }
.page-title {
	font-family: var(--serif);
	font-size: 56px;
	font-weight: 700;
	line-height: 1.02;
	letter-spacing: -1px;
	color: var(--ink);
	margin-bottom: 16px;
}
.page-deck {
	font-family: var(--serif);
	font-size: 19px;
	font-style: italic;
	color: var(--muted);
	max-width: 680px;
	line-height: 1.5;
}
.page-meta {
	margin-top: 28px;
	display: flex;
	align-items: center;
	gap: 16px;
	font-family: var(--sans);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--muted);
	flex-wrap: wrap;
}
.page-meta .dot { color: var(--brass); }
.page-meta .count { color: var(--ink); }

/* =============================================================
   Hero (homepage featured)
   ============================================================= */
.hero {
	padding: 56px var(--shell-pad);
	border-bottom: 1px solid var(--line);
	background: var(--paper);
}
.hero-grid {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 40px;
	align-items: center;
}
.hero-image {
	aspect-ratio: 4 / 3;
	background: linear-gradient(135deg, #1a1a2a, #4a1010 60%, #2a1010);
	border-radius: 4px;
	background-size: cover;
	background-position: center;
}
.hero-kicker {
	font-family: var(--sans);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 2px;
	color: var(--red);
	text-transform: uppercase;
	margin-bottom: 16px;
}
.hero-title {
	font-family: var(--serif);
	font-size: 40px;
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -0.6px;
	margin: 0 0 16px;
	color: var(--ink);
}
.hero-title a { color: inherit; }
.hero-title a:hover { color: var(--red); }
.hero-deck {
	font-family: var(--serif);
	font-size: 17px;
	font-style: italic;
	line-height: 1.5;
	color: var(--muted);
	margin: 0 0 22px;
}

/* =============================================================
   Byline + pill
   ============================================================= */
.byline {
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: var(--sans);
	font-size: 13px;
	color: var(--muted);
	flex-wrap: wrap;
}
.byline .avatar {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--brass);
	background-size: cover;
	background-position: center;
	flex-shrink: 0;
}
.byline-name { color: var(--ink); font-weight: 600; }
.byline-sep { color: var(--line); }
.pill {
	background: var(--soft);
	color: var(--red);
	padding: 3px 8px;
	border-radius: 3px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
}

/* =============================================================
   Article cards (homepage 3-up & related)
   ============================================================= */
.section {
	padding: 48px var(--shell-pad);
	border-bottom: 1px solid var(--line);
	background: var(--paper);
}
.section.dark {
	background: linear-gradient(135deg, #1A1A1A, #2A1515);
	color: #fff;
}
.section.dark .section-title { color: #fff; }
.section.dark .section-head { border-bottom-color: var(--brass); }
.section.dark .section-link { color: #BBB; }
.section.dark .section-link:hover { color: var(--brass); }

.cards-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.card {
	display: flex;
	flex-direction: column;
	cursor: pointer;
	transition: transform 0.25s ease;
	color: inherit;
}
.card:hover { transform: translateY(-2px); }
.card-image {
	aspect-ratio: 16 / 10;
	background: linear-gradient(135deg, #6b3a3a, #4a4a6b);
	background-size: cover;
	background-position: center;
	border-radius: 4px;
	margin-bottom: 14px;
	position: relative;
	overflow: hidden;
}
.card-image::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.08), transparent 60%);
}
/* Generative gradients used when no featured image is set */
.grad-constitutional { background: linear-gradient(135deg, #6b3a3a, #4a4a6b); }
.grad-corporate      { background: linear-gradient(135deg, #3D4F66, #1F2A36); }
.grad-tax            { background: linear-gradient(135deg, #5a6b3a, #3a5a4a); }
.grad-tech           { background: linear-gradient(135deg, #3a4a6b, #2a2a5a); }
.grad-ibc            { background: linear-gradient(135deg, #5C7048, #2D3826); }
.grad-criminal       { background: linear-gradient(135deg, #4A2828, #1F1010); }
.grad-policy         { background: linear-gradient(135deg, #2a3a55, #1a2535); }
.grad-international  { background: linear-gradient(135deg, #6b3a55, #3a1a3a); }
.grad-environ        { background: linear-gradient(135deg, #3a5a3a, #1a3a1a); }

.card-pill {
	font-family: var(--sans);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--red);
	margin-bottom: 8px;
	display: inline-block;
}
.card-title {
	font-family: var(--serif);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.25;
	margin: 0 0 10px;
	color: var(--ink);
}
.card:hover .card-title { color: var(--red); }
.card-summary {
	font-family: var(--sans);
	font-size: 13px;
	line-height: 1.55;
	color: var(--muted);
	margin: 0 0 14px;
}
.card-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: var(--sans);
	font-size: 12px;
	color: var(--muted);
	margin-top: auto;
	padding-top: 12px;
	border-top: 1px solid var(--line);
}
.card-avatar, .card-meta .avatar {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--brass);
	background-size: cover;
	background-position: center;
	flex-shrink: 0;
}
.card-meta-name { color: var(--ink); font-weight: 600; }
.card-meta-date { color: var(--muted); margin-left: auto; }

/* =============================================================
   Topics tile (homepage 6-up)
   ============================================================= */
.topics-grid-mini {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 12px;
}
.topic-tile {
	border: 1px solid var(--line);
	border-radius: 4px;
	padding: 16px 12px;
	text-align: center;
	transition: border-color 0.15s ease, transform 0.15s ease;
}
.topic-tile:hover {
	border-color: var(--red);
	transform: translateY(-2px);
}
.topic-tile-name {
	font-family: var(--sans);
	font-size: 14px;
	font-weight: 600;
	color: var(--red);
}
.topic-tile-count {
	font-family: var(--sans);
	font-size: 11px;
	color: var(--muted);
	margin-top: 4px;
}

/* =============================================================
   Explained (numbered cards on dark bg)
   ============================================================= */
.explained-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 28px;
}
.explained-item {
	border-left: 2px solid var(--brass);
	padding-left: 16px;
	color: inherit;
}
.explained-num {
	font-family: var(--serif);
	font-size: 36px;
	font-weight: 700;
	color: var(--brass);
	line-height: 1;
	margin-bottom: 12px;
}
.explained-title {
	font-family: var(--serif);
	font-size: 14px;
	color: #fff;
	line-height: 1.35;
	margin-bottom: 12px;
}
.explained-meta {
	font-family: var(--sans);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 1px;
	color: #888;
	text-transform: uppercase;
}

/* =============================================================
   Podcasts mini (homepage 2-up)
   ============================================================= */
.podcast-grid-mini {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}
.podcast-item-mini {
	background: var(--soft);
	border-radius: 4px;
	padding: 18px;
	display: flex;
	align-items: center;
	gap: 16px;
	color: inherit;
	transition: transform 0.15s ease;
}
.podcast-item-mini:hover { transform: translateY(-2px); }
.podcast-play-mini {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--red);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.podcast-play-mini::after {
	content: "";
	display: block;
	width: 0;
	height: 0;
	border-left: 11px solid #fff;
	border-top: 8px solid transparent;
	border-bottom: 8px solid transparent;
	margin-left: 4px;
}
.podcast-ep {
	font-family: var(--sans);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 1px;
	color: var(--muted);
	text-transform: uppercase;
	margin-bottom: 5px;
}
.podcast-title {
	font-family: var(--serif);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	margin: 0 0 5px;
}
.podcast-meta {
	font-family: var(--sans);
	font-size: 12px;
	color: var(--muted);
}

/* =============================================================
   Student Voices band
   ============================================================= */
.voices-band {
	background: var(--paper);
	border-bottom: 1px solid var(--line);
}
.voices-head {
	background: linear-gradient(135deg, var(--red), var(--red-dark));
	padding: 20px var(--shell-pad);
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.voices-head h2 {
	font-family: var(--serif);
	font-size: 24px;
	font-weight: 700;
	color: #fff;
	margin: 0;
}
.voices-head a {
	font-family: var(--sans);
	font-size: 13px;
	color: #fff;
	opacity: 0.85;
}
.voices-head a:hover { opacity: 1; }
.voices-body {
	padding: 32px var(--shell-pad);
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 28px;
}
.voice-item {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	color: inherit;
}
.voice-avatar {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--brass);
	background-size: cover;
	background-position: center;
	flex-shrink: 0;
}
.voice-pill {
	display: inline-block;
	background: var(--soft);
	color: var(--red);
	font-family: var(--sans);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 1px;
	padding: 3px 8px;
	border-radius: 3px;
	text-transform: uppercase;
	margin-bottom: 10px;
}
.voice-title {
	font-family: var(--serif);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 10px;
	color: var(--ink);
}
.voice-meta {
	font-family: var(--sans);
	font-size: 12px;
	color: var(--muted);
}
.voice-meta strong { color: var(--ink); font-weight: 600; }

/* =============================================================
   Articles archive — featured strip + filter bar + grid + pagination
   ============================================================= */
.featured-strip {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 40px;
	align-items: center;
	padding: 56px var(--shell-pad);
	background: var(--paper);
	border-bottom: 1px solid var(--line);
}
.featured-image {
	aspect-ratio: 4 / 3;
	background: linear-gradient(135deg, #1a1a2a, #4a1010 60%, #2a1010);
	background-size: cover;
	background-position: center;
	border-radius: 4px;
}
.kicker {
	font-family: var(--sans);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 2px;
	color: var(--red);
	text-transform: uppercase;
	margin-bottom: 16px;
}
.featured-title {
	font-family: var(--serif);
	font-size: 36px;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.5px;
	color: var(--ink);
	margin: 0 0 16px;
}
.featured-title a:hover { color: var(--red); }
.featured-deck {
	font-family: var(--serif);
	font-size: 17px;
	font-style: italic;
	line-height: 1.5;
	color: var(--muted);
	margin: 0 0 22px;
}

.filter-bar {
	padding: 20px var(--shell-pad);
	border-bottom: 1px solid var(--line);
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 20px;
	background: var(--paper);
	position: sticky;
	top: 72px;
	z-index: 40;
}
.filter-tabs {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}
.filter-tab {
	font-family: var(--sans);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--ink);
	padding: 8px 14px;
	border: 1px solid var(--line);
	border-radius: 4px;
	background: var(--paper);
	cursor: pointer;
	transition: all 0.15s ease;
	white-space: nowrap;
	text-decoration: none;
}
.filter-tab:hover { border-color: var(--red); color: var(--red); }
.filter-tab.active {
	background: var(--red);
	border-color: var(--red);
	color: #fff;
}
.filter-sort { display: flex; align-items: center; gap: 12px; }
.sort-label {
	font-family: var(--sans);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--muted);
}
.sort-select {
	font-family: var(--sans);
	font-size: 13px;
	font-weight: 500;
	color: var(--ink);
	border: 1px solid var(--line);
	background: var(--paper);
	padding: 8px 30px 8px 12px;
	border-radius: 4px;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%236B6B6B' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
	background-repeat: no-repeat;
	background-position: right 10px center;
}

.articles-section {
	padding: 48px var(--shell-pad);
	background: var(--paper);
}
.articles-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 36px 24px;
}

.pagination {
	margin-top: 56px;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}
.pagination .page-numbers {
	font-family: var(--sans);
	font-size: 13px;
	font-weight: 600;
	color: var(--ink);
	padding: 8px 14px;
	border: 1px solid var(--line);
	border-radius: 4px;
	background: var(--paper);
	min-width: 40px;
	text-align: center;
	transition: all 0.15s ease;
	text-decoration: none;
	display: inline-block;
}
.pagination .page-numbers:hover {
	border-color: var(--red);
	color: var(--red);
}
.pagination .page-numbers.current {
	background: var(--red);
	border-color: var(--red);
	color: #fff;
}
.pagination .page-numbers.dots { border: none; background: transparent; }

/* =============================================================
   Single article — 3-column layout (TOC | body | rail)
   ============================================================= */
.article-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 720px minmax(0, 1fr);
	gap: 0;
	padding: 64px var(--shell-pad) 32px;
}
.left-rail, .right-rail { padding-top: 8px; }
.article-main { min-width: 0; }
.left-rail { padding-right: 32px; }
.right-rail { padding-left: 40px; }
.rail-sticky { position: sticky; top: 100px; }

.article-meta-top {
	font-family: var(--sans);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--red);
	margin-bottom: 24px;
}
.article-meta-top .read-time {
	color: var(--muted);
	font-weight: 500;
	margin-left: 12px;
	letter-spacing: 1.5px;
}
.article-title {
	font-family: var(--serif);
	font-size: 48px;
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -0.8px;
	color: var(--ink);
	margin-bottom: 20px;
}
.article-deck {
	font-family: var(--serif);
	font-size: 21px;
	font-style: italic;
	color: var(--muted);
	line-height: 1.5;
	margin-bottom: 36px;
}
.author-block {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 20px 0;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	margin-bottom: 40px;
}
.author-avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--brass);
	background-size: cover;
	background-position: center;
	flex-shrink: 0;
}
.author-info { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.author-name {
	font-family: var(--sans);
	font-size: 15px;
	font-weight: 600;
	color: var(--ink);
}
.author-name a { color: var(--ink); }
.author-name a:hover { color: var(--red); }
.author-school {
	font-family: var(--sans);
	font-size: 13px;
	color: var(--red);
	font-weight: 500;
}
.article-date {
	font-family: var(--sans);
	font-size: 13px;
	color: var(--muted);
}

.article-hero {
	aspect-ratio: 16 / 9;
	border-radius: 2px;
	background: linear-gradient(135deg, #1A1A1A 0%, #3a1818 50%, #5A1010 100%);
	background-size: cover;
	background-position: center;
	margin-bottom: 12px;
	position: relative;
	overflow: hidden;
}
.article-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 75% 20%, rgba(176, 138, 91, 0.18), transparent 50%),
		radial-gradient(circle at 20% 80%, rgba(138, 42, 42, 0.4), transparent 60%);
}
.article-hero-caption {
	font-family: var(--sans);
	font-size: 12px;
	color: var(--muted);
	margin-bottom: 40px;
	font-style: italic;
}

.article-body {
	font-family: var(--serif);
	font-size: 19px;
	line-height: 1.65;
	color: var(--ink);
}
.article-body p { margin-bottom: 1.4em; }
.article-body p:first-of-type::first-letter {
	font-family: var(--serif);
	font-size: 70px;
	float: left;
	line-height: 0.9;
	padding: 6px 10px 0 0;
	color: var(--red);
	font-weight: 700;
}
.article-body h2 {
	font-family: var(--serif);
	font-size: 28px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.3px;
	color: var(--navy);
	margin: 56px 0 20px;
}
.article-body h3 {
	font-family: var(--serif);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--ink);
	margin: 40px 0 16px;
}
.article-body a {
	color: var(--red);
	border-bottom: 1px solid rgba(138, 42, 42, 0.3);
	transition: border-color 0.15s ease;
}
.article-body a:hover { border-bottom-color: var(--red); }
.article-body em { font-style: italic; }
.article-body strong { font-weight: 700; }
.article-body ul, .article-body ol { margin: 0 0 1.4em; padding-left: 28px; }
.article-body li { margin-bottom: 8px; }
.article-body img, .article-body figure { margin: 36px 0; max-width: 100%; }
.article-body figcaption {
	font-family: var(--sans);
	font-size: 13px;
	color: var(--muted);
	margin-top: 10px;
	text-align: center;
}
.article-body code {
	font-family: ui-monospace, SFMono-Regular, monospace;
	background: var(--soft);
	padding: 2px 6px;
	border-radius: 3px;
	font-size: 0.9em;
}
.article-body pre {
	background: var(--ink);
	color: #fff;
	padding: 18px;
	border-radius: 4px;
	overflow-x: auto;
	margin-bottom: 1.4em;
	font-family: ui-monospace, SFMono-Regular, monospace;
	font-size: 14px;
	line-height: 1.5;
}
.article-body pre code { background: transparent; padding: 0; color: inherit; }

.pull-quote, .article-body blockquote {
	font-family: var(--serif);
	font-size: 26px;
	font-weight: 400;
	font-style: italic;
	line-height: 1.4;
	color: var(--ink);
	border-left: 3px solid var(--brass);
	padding: 8px 0 8px 28px;
	margin: 40px 0;
}
.pull-quote cite, .article-body blockquote cite {
	display: block;
	margin-top: 16px;
	font-family: var(--sans);
	font-size: 13px;
	font-style: normal;
	font-weight: 500;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--muted);
}

.footnote-ref {
	font-family: var(--sans);
	font-size: 11px;
	font-weight: 600;
	color: var(--red);
	vertical-align: super;
	margin-left: 2px;
	cursor: pointer;
}
.footnote-ref:hover { color: var(--red-dark); }

.footnotes {
	margin-top: 64px;
	padding-top: 32px;
	border-top: 2px solid var(--brass);
}
.footnotes-title {
	font-family: var(--sans);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 20px;
}
.footnotes ol { list-style: none; counter-reset: fn; padding: 0; }
.footnotes li {
	counter-increment: fn;
	font-family: var(--serif);
	font-size: 15px;
	line-height: 1.6;
	color: var(--muted);
	padding-left: 32px;
	position: relative;
	margin-bottom: 14px;
}
.footnotes li::before {
	content: counter(fn) ".";
	position: absolute;
	left: 0;
	font-family: var(--sans);
	font-weight: 600;
	color: var(--red);
	font-size: 13px;
	top: 4px;
}

/* Right rail cards */
.rail-card {
	border: 1px solid var(--line);
	border-radius: 4px;
	padding: 24px;
	background: var(--paper);
}
.rail-card + .rail-card { margin-top: 24px; }
.rail-label {
	font-family: var(--sans);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--brass);
	margin-bottom: 14px;
}
.rail-author-name {
	font-family: var(--serif);
	font-size: 18px;
	font-weight: 700;
	color: var(--ink);
	margin-bottom: 4px;
}
.rail-author-school {
	font-family: var(--sans);
	font-size: 13px;
	color: var(--red);
	margin-bottom: 14px;
}
.rail-author-bio {
	font-family: var(--sans);
	font-size: 13px;
	color: var(--muted);
	line-height: 1.55;
	margin-bottom: 16px;
}
.rail-link {
	font-family: var(--sans);
	font-size: 13px;
	font-weight: 600;
	color: var(--red);
}
.rail-link:hover { color: var(--red-dark); }
.share-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	list-style: none;
	padding: 0;
	margin: 0;
}
.share-list a {
	font-family: var(--sans);
	font-size: 13px;
	font-weight: 500;
	color: var(--ink);
	padding: 10px 12px;
	border: 1px solid var(--line);
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	transition: all 0.15s ease;
}
.share-list a:hover {
	border-color: var(--red);
	color: var(--red);
}
.share-list a span:last-child {
	font-size: 11px;
	color: var(--muted);
	letter-spacing: 0.5px;
}
.share-list a:hover span:last-child { color: var(--red); }

/* Left rail TOC */
.toc-label {
	font-family: var(--sans);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--brass);
	margin-bottom: 14px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--line);
}
.toc-list {
	list-style: none;
	padding: 0;
	margin: 0;
}
.toc-list li { margin-bottom: 12px; }
.toc-list a {
	font-family: var(--sans);
	font-size: 13px;
	font-weight: 500;
	color: var(--muted);
	line-height: 1.4;
	display: block;
	padding-left: 12px;
	border-left: 2px solid transparent;
	transition: all 0.15s ease;
}
.toc-list a:hover { color: var(--ink); border-left-color: var(--brass); }
.toc-list a.active { color: var(--ink); border-left-color: var(--red); font-weight: 600; }

/* More-in-topic at bottom of single */
.more-section {
	padding: 64px var(--shell-pad);
	border-top: 1px solid var(--line);
	background: var(--surround);
}
.more-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	padding-bottom: 16px;
	border-bottom: 2px solid var(--brass);
	margin-bottom: 40px;
}
.more-title {
	font-family: var(--serif);
	font-size: 26px;
	font-weight: 700;
	letter-spacing: -0.3px;
}
.more-link {
	font-family: var(--sans);
	font-size: 13px;
	font-weight: 500;
	color: var(--muted);
}
.more-link:hover { color: var(--red); }
.more-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
}


/* =============================================================
   Topics page — rich cards
   ============================================================= */
.topics-section {
	padding: 56px var(--shell-pad);
	background: var(--paper);
}
.topics-section .section-head {
	border-bottom: 2px solid var(--red);
	padding-bottom: 14px;
	margin-bottom: 36px;
}
.topics-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.topic-card {
	border: 1px solid var(--line);
	border-radius: 4px;
	padding: 28px 24px 24px;
	background: var(--paper);
	display: flex;
	flex-direction: column;
	transition: all 0.2s ease;
	color: inherit;
	min-height: 240px;
}
.topic-card:hover {
	border-color: var(--red);
	transform: translateY(-3px);
	box-shadow: 0 6px 20px rgba(138, 42, 42, 0.06);
}
.topic-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 14px;
}
.topic-num {
	font-family: var(--serif);
	font-size: 24px;
	font-weight: 700;
	color: var(--brass);
	line-height: 1;
}
.topic-count {
	font-family: var(--sans);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--muted);
}
.topic-name {
	font-family: var(--serif);
	font-size: 22px;
	font-weight: 700;
	color: var(--ink);
	margin: 0 0 12px;
	letter-spacing: -0.2px;
}
.topic-card:hover .topic-name { color: var(--red); }
.topic-desc {
	font-family: var(--sans);
	font-size: 13px;
	line-height: 1.55;
	color: var(--muted);
	margin: 0 0 18px;
	flex: 1;
}
.topic-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 14px;
	border-top: 1px solid var(--line);
	font-family: var(--sans);
	font-size: 12px;
	color: var(--muted);
}
.topic-recent strong { color: var(--ink); font-weight: 600; }
.topic-arrow {
	font-family: var(--sans);
	font-size: 16px;
	color: var(--brass);
	transition: transform 0.15s ease;
}
.topic-card:hover .topic-arrow {
	transform: translateX(3px);
	color: var(--red);
}

/* Spotlight (used on Topics page + About) */
.spot-wrap {
	padding: 32px var(--shell-pad) 64px;
	background: var(--paper);
}
.spotlight {
	background: linear-gradient(135deg, #1A1A1A, #2A1515);
	color: #fff;
	padding: 48px 40px;
	border-radius: 4px;
	position: relative;
	overflow: hidden;
}
.spotlight::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 3px;
	background: var(--brass);
}
.spotlight-label, .spot-label {
	font-family: var(--sans);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--brass);
	margin-bottom: 14px;
	display: block;
}
.spotlight-title, .spot-title {
	font-family: var(--serif);
	font-size: 32px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.4px;
	margin-bottom: 14px;
	max-width: 700px;
	color: #fff;
}
.spotlight-text, .spot-text {
	font-family: var(--serif);
	font-size: 17px;
	font-style: italic;
	color: #BBB;
	line-height: 1.55;
	margin-bottom: 24px;
	max-width: 640px;
}
.spotlight-link, .spot-link {
	font-family: var(--sans);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--brass);
	border-bottom: 1px solid var(--brass);
	padding-bottom: 2px;
	display: inline-block;
}
.spotlight-link:hover, .spot-link:hover { color: #fff; border-bottom-color: #fff; }

/* =============================================================
   Podcasts page — listen-on, featured, episode list, subscribe
   ============================================================= */
.listen-on {
	margin-top: 32px;
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}
.listen-label {
	font-family: var(--sans);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--muted);
}
.listen-btn {
	font-family: var(--sans);
	font-size: 13px;
	font-weight: 500;
	color: var(--ink);
	padding: 8px 16px;
	border: 1px solid var(--line);
	border-radius: 4px;
	background: var(--paper);
	cursor: pointer;
	text-decoration: none;
	transition: all 0.15s ease;
}
.listen-btn:hover {
	border-color: var(--red);
	color: var(--red);
}

.featured-episode {
	margin: 56px var(--shell-pad);
	display: grid;
	grid-template-columns: 360px 1fr;
	gap: 40px;
	padding: 32px;
	background: linear-gradient(135deg, var(--soft) 0%, #fff 100%);
	border-radius: 4px;
	align-items: center;
}
.featured-art {
	aspect-ratio: 1 / 1;
	background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	overflow: hidden;
}
.featured-art::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 30% 30%, rgba(176, 138, 91, 0.25), transparent 60%);
}
.featured-art-content { text-align: center; position: relative; z-index: 1; }
.featured-art-mark {
	font-family: var(--serif);
	font-size: 38px;
	font-weight: 700;
	color: #fff;
	letter-spacing: -0.5px;
	margin-bottom: 6px;
}
.featured-art-sub {
	font-family: var(--sans);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--brass);
}
.featured-info { padding-right: 16px; }
.featured-ep-title {
	font-family: var(--serif);
	font-size: 32px;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.4px;
	color: var(--ink);
	margin: 0 0 16px;
}
.featured-ep-deck {
	font-family: var(--serif);
	font-size: 17px;
	font-style: italic;
	color: var(--muted);
	line-height: 1.55;
	margin: 0 0 20px;
}
.featured-ep-meta {
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: var(--sans);
	font-size: 13px;
	color: var(--muted);
	margin-bottom: 28px;
	flex-wrap: wrap;
}
.featured-ep-meta strong { color: var(--ink); font-weight: 600; }
.featured-ep-meta .sep { color: var(--line); }

.player {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px 20px;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 4px;
}
.play-btn {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--red);
	border: none;
	cursor: pointer;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease;
}
.play-btn:hover { background: var(--red-dark); }
.play-btn::after {
	content: "";
	display: block;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 7px 0 7px 11px;
	border-color: transparent transparent transparent #fff;
	margin-left: 3px;
}
.player-info { flex: 1; }
.player-progress {
	height: 4px;
	background: var(--line);
	border-radius: 2px;
	margin-bottom: 8px;
	position: relative;
	overflow: hidden;
}
.player-progress::after {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 28%;
	background: var(--red);
	border-radius: 2px;
}
.player-times {
	display: flex;
	justify-content: space-between;
	font-family: var(--sans);
	font-size: 11px;
	font-weight: 500;
	color: var(--muted);
	letter-spacing: 0.5px;
}

.episodes-section {
	padding: 32px var(--shell-pad) 64px;
	background: var(--paper);
}
.episode-list {
	display: flex;
	flex-direction: column;
	gap: 0;
}
.episode {
	display: grid;
	grid-template-columns: 80px 1fr 200px;
	gap: 28px;
	padding: 28px 0;
	border-bottom: 1px solid var(--line);
	color: inherit;
	transition: all 0.15s ease;
}
.episode:hover { background: var(--surround); padding-left: 16px; padding-right: 16px; }
.ep-num-label {
	font-family: var(--sans);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 4px;
}
.ep-num {
	font-family: var(--serif);
	font-size: 36px;
	font-weight: 700;
	color: var(--brass);
	line-height: 1;
}
.ep-title {
	font-family: var(--serif);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--ink);
	margin: 0 0 8px;
	letter-spacing: -0.2px;
}
.episode:hover .ep-title { color: var(--red); }
.ep-guest {
	font-family: var(--sans);
	font-size: 13px;
	color: var(--muted);
	margin-bottom: 10px;
}
.ep-guest strong { color: var(--ink); font-weight: 600; }
.ep-summary {
	font-family: var(--serif);
	font-size: 15px;
	font-style: italic;
	color: var(--muted);
	line-height: 1.55;
	margin: 0 0 12px;
}
.ep-tags {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}
.ep-tag {
	font-family: var(--sans);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.5px;
	color: var(--muted);
	padding: 3px 10px;
	border: 1px solid var(--line);
	border-radius: 3px;
}
.ep-right {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
}
.ep-meta {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 4px;
	font-family: var(--sans);
	font-size: 12px;
	color: var(--muted);
}
.ep-date { color: var(--ink); font-weight: 600; }
.ep-play {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--paper);
	border: 1.5px solid var(--red);
	cursor: pointer;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.15s ease;
}
.ep-play:hover { background: var(--red); }
.ep-play::before {
	content: "";
	display: block;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 6px 0 6px 10px;
	border-color: transparent transparent transparent var(--red);
	margin-left: 3px;
	transition: border-color 0.15s ease;
}
.ep-play:hover::before {
	border-color: transparent transparent transparent #fff;
}

.subscribe {
	margin: 64px var(--shell-pad);
	background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
	color: #fff;
	padding: 56px 48px;
	border-radius: 4px;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 32px;
	align-items: center;
}
.subscribe-label {
	font-family: var(--sans);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--brass);
	margin-bottom: 12px;
}
.subscribe-title {
	font-family: var(--serif);
	font-size: 30px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.4px;
	margin-bottom: 10px;
}
.subscribe-text {
	font-family: var(--serif);
	font-size: 16px;
	font-style: italic;
	color: rgba(255, 255, 255, 0.85);
	line-height: 1.55;
	max-width: 540px;
	margin: 0;
}
.subscribe-btn {
	font-family: var(--sans);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--red);
	background: #fff;
	padding: 14px 28px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.15s ease;
	white-space: nowrap;
	text-decoration: none;
}
.subscribe-btn:hover {
	background: var(--brass);
	color: #fff;
}


/* =============================================================
   About page — sections
   ============================================================= */
.about-hero {
	padding: 64px var(--shell-pad) 48px;
	border-bottom: 1px solid var(--line);
	background: var(--paper);
}
.about-hero .hero-kicker {
	display: inline-block;
	border-bottom: 2px solid var(--red);
	padding-bottom: 4px;
	color: var(--red);
	margin-bottom: 24px;
}
.about-hero .hero-title {
	font-size: 52px;
	margin: 0 0 24px;
	max-width: 920px;
	letter-spacing: -1px;
}
.about-hero .hero-deck {
	font-size: 19px;
	font-style: italic;
	color: var(--muted);
	max-width: 760px;
	line-height: 1.5;
	margin: 0;
}

/* What we publish */
.what-publish {
	padding: 56px var(--shell-pad);
	background: var(--paper);
	border-bottom: 1px solid var(--line);
}
.pub-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.pub-card {
	border: 1px solid var(--line);
	border-radius: 4px;
	padding: 32px 28px;
	background: var(--paper);
	transition: all 0.2s ease;
}
.pub-card:hover {
	border-color: var(--red);
	transform: translateY(-3px);
	box-shadow: 0 6px 20px rgba(138, 42, 42, 0.06);
}
.pub-num {
	font-family: var(--serif);
	font-size: 32px;
	font-weight: 700;
	color: var(--brass);
	margin-bottom: 16px;
	line-height: 1;
}
.pub-name {
	font-family: var(--serif);
	font-size: 22px;
	font-weight: 700;
	color: var(--ink);
	margin: 0 0 6px;
	letter-spacing: -0.2px;
}
.pub-len {
	font-family: var(--sans);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--red);
	margin-bottom: 14px;
}
.pub-text {
	font-family: var(--sans);
	font-size: 14px;
	color: var(--muted);
	line-height: 1.6;
	margin: 0;
}

/* EBC Group story */
.group-story {
	padding: 64px var(--shell-pad);
	background: var(--surround);
	border-bottom: 1px solid var(--line);
}
.story-wrap {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 56px;
	max-width: 1100px;
}
.story-side {
	border-right: 1px solid var(--line);
	padding-right: 32px;
}
.story-kicker {
	font-family: var(--sans);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--brass);
	border-bottom: 2px solid var(--brass);
	padding-bottom: 4px;
	display: inline-block;
	margin-bottom: 18px;
}
.story-since {
	font-family: var(--serif);
	color: var(--muted);
	font-style: italic;
	font-size: 14px;
	line-height: 1.55;
}
.story-since strong {
	display: block;
	font-style: normal;
	color: var(--ink);
	font-size: 28px;
	font-weight: 700;
	margin-bottom: 4px;
}
.story-h2 {
	font-family: var(--serif);
	font-size: 32px;
	font-weight: 700;
	color: var(--ink);
	letter-spacing: -0.4px;
	line-height: 1.2;
	margin: 0 0 18px;
}
.story-prose {
	font-family: var(--serif);
	font-size: 17px;
	line-height: 1.65;
	color: var(--ink);
}
.story-prose p { margin-bottom: 16px; }
.story-prose p:last-child { margin-bottom: 0; }

/* EBC Learning courses */
.learning {
	padding: 64px var(--shell-pad);
	background: var(--paper);
	border-bottom: 1px solid var(--line);
}
.learning-head { max-width: 760px; margin-bottom: 36px; }
.learning-h2 {
	font-family: var(--serif);
	font-size: 32px;
	font-weight: 700;
	color: var(--ink);
	letter-spacing: -0.4px;
	line-height: 1.2;
	margin: 12px 0 14px;
}
.learning-deck {
	font-family: var(--serif);
	font-size: 17px;
	line-height: 1.55;
	color: var(--muted);
	margin: 0;
}
.learning-deck a { color: var(--red); border-bottom: 1px solid currentColor; }

.courses-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	margin-bottom: 36px;
}
.course-card {
	background: var(--surround);
	border-radius: 4px;
	padding: 32px;
	border: 1px solid var(--line);
}
.course-card.red {
	background: linear-gradient(135deg, var(--red), var(--red-dark));
	color: #fff;
	border: none;
}
.course-tag {
	font-family: var(--sans);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--brass);
	margin-bottom: 14px;
}
.course-card.red .course-tag { color: rgba(255, 255, 255, 0.7); }
.course-name {
	font-family: var(--serif);
	font-size: 24px;
	font-weight: 700;
	color: var(--ink);
	margin: 0 0 14px;
	letter-spacing: -0.2px;
}
.course-card.red .course-name { color: #fff; }
.course-text {
	font-family: var(--sans);
	font-size: 14px;
	color: var(--muted);
	line-height: 1.6;
	margin-bottom: 18px;
}
.course-card.red .course-text { color: rgba(255, 255, 255, 0.85); }
.course-features {
	list-style: none;
	padding: 0;
	margin: 0;
}
.course-features li {
	font-family: var(--sans);
	font-size: 13px;
	color: var(--ink);
	padding: 8px 0;
	border-bottom: 1px solid var(--line);
	position: relative;
	padding-left: 22px;
}
.course-card.red .course-features li {
	color: rgba(255, 255, 255, 0.95);
	border-bottom-color: rgba(255, 255, 255, 0.18);
}
.course-features li:last-child { border-bottom: none; }
.course-features li::before {
	content: "→";
	position: absolute;
	left: 0;
	color: var(--brass);
	font-weight: 600;
}

/* Users strip */
.users-strip {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 28px 32px;
	background: var(--soft);
	border-radius: 4px;
	gap: 28px;
	flex-wrap: wrap;
}
.users-label {
	font-family: var(--sans);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--red);
	margin-bottom: 6px;
}
.users-title {
	font-family: var(--serif);
	font-size: 18px;
	font-weight: 700;
	color: var(--ink);
	letter-spacing: -0.2px;
}
.users-list {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}
.user-pill {
	font-family: var(--sans);
	font-size: 13px;
	font-weight: 600;
	color: var(--ink);
	padding: 10px 18px;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 30px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
}
.user-pill-sub {
	font-size: 10px;
	font-weight: 500;
	color: var(--muted);
	letter-spacing: 1px;
	text-transform: uppercase;
}

/* Products list */
.products {
	padding: 64px var(--shell-pad);
	background: var(--surround);
	border-bottom: 1px solid var(--line);
}
.products-deck {
	font-family: var(--serif);
	font-size: 17px;
	font-style: italic;
	color: var(--muted);
	margin: -8px 0 36px;
	max-width: 760px;
	line-height: 1.55;
}
.product-list {
	display: flex;
	flex-direction: column;
	gap: 32px;
}
.product {
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 4px;
	padding: 32px;
	display: grid;
	grid-template-columns: 240px 1fr 200px;
	gap: 36px;
	align-items: start;
}
.product-mark {
	border-right: 1px solid var(--line);
	padding-right: 28px;
}
.product-num {
	font-family: var(--sans);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--brass);
	margin-bottom: 12px;
	display: block;
}
.product-name {
	font-family: var(--serif);
	font-size: 22px;
	font-weight: 700;
	color: var(--ink);
	margin: 0 0 8px;
	letter-spacing: -0.2px;
	line-height: 1.2;
}
.product-name em { font-style: italic; }
.product-tagline {
	font-family: var(--sans);
	font-size: 11px;
	font-weight: 500;
	color: var(--muted);
	letter-spacing: 1px;
	text-transform: uppercase;
	display: block;
}
.product-text {
	font-family: var(--sans);
	font-size: 13px;
	line-height: 1.65;
	color: var(--ink);
	margin: 0;
}
.product-stats {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.product-stat-num {
	font-family: var(--serif);
	font-size: 28px;
	font-weight: 700;
	color: var(--red);
	line-height: 1;
	margin-bottom: 4px;
}
.product-stat-label {
	font-family: var(--sans);
	font-size: 11px;
	font-weight: 500;
	color: var(--muted);
	letter-spacing: 0.5px;
}

/* Stats strip used on About + Submit */
.stats-strip {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	margin: 24px 0 0;
}
.stat {
	text-align: left;
}
.stat-num {
	font-family: var(--serif);
	font-size: 36px;
	font-weight: 700;
	color: var(--red);
	line-height: 1;
	margin-bottom: 8px;
	letter-spacing: -0.5px;
}
.stat-label {
	font-family: var(--sans);
	font-size: 12px;
	font-weight: 500;
	color: var(--muted);
	letter-spacing: 0.5px;
	line-height: 1.4;
}

/* Board of Editors */
.board {
	padding: 64px var(--shell-pad);
	background: var(--paper);
	border-bottom: 1px solid var(--line);
}
.board-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}
.editor-card {
	text-align: center;
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: 4px;
	transition: all 0.2s ease;
}
.editor-card:hover {
	border-color: var(--red);
	transform: translateY(-2px);
}
.editor-avatar {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--brass) 0%, var(--red) 100%);
	margin: 0 auto 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-family: var(--serif);
	font-size: 28px;
	font-weight: 700;
	background-size: cover;
	background-position: center;
}
.editor-role {
	font-family: var(--sans);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--red);
	margin-bottom: 8px;
}
.editor-name {
	font-family: var(--serif);
	font-size: 17px;
	font-weight: 700;
	color: var(--ink);
	margin-bottom: 4px;
	letter-spacing: -0.2px;
}
.editor-school {
	font-family: var(--sans);
	font-size: 12px;
	color: var(--muted);
	line-height: 1.5;
}

/* Final CTA */
.final-cta {
	padding: 64px var(--shell-pad);
	background: linear-gradient(135deg, var(--ink), #2a1515);
	color: #fff;
	text-align: center;
}
.final-cta .cta-label {
	font-family: var(--sans);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--brass);
	margin-bottom: 14px;
}
.final-cta .cta-title {
	font-family: var(--serif);
	font-size: 36px;
	font-weight: 700;
	color: #fff;
	margin: 0 0 18px;
	letter-spacing: -0.5px;
}
.final-cta .cta-deck {
	font-family: var(--serif);
	font-size: 17px;
	font-style: italic;
	color: rgba(255, 255, 255, 0.8);
	max-width: 580px;
	margin: 0 auto 28px;
	line-height: 1.5;
}
.final-cta .cta-button {
	font-family: var(--sans);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #fff;
	background: var(--red);
	padding: 14px 32px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.15s ease;
	display: inline-block;
	text-decoration: none;
}
.final-cta .cta-button:hover {
	background: var(--brass);
}

/* =============================================================
   Submit page — eyebrow header, stats, form
   ============================================================= */
.submit-eyebrow {
	font-family: var(--sans);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--red);
	border-bottom: 2px solid var(--red);
	padding-bottom: 4px;
	display: inline-block;
	margin-bottom: 24px;
}

/* Form container */
.form-section {
	padding: 56px var(--shell-pad);
	background: var(--paper);
	border-bottom: 1px solid var(--line);
}
.form-wrap {
	max-width: 760px;
	margin: 0 auto;
}
.form-eyebrow {
	font-family: var(--sans);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--red);
	margin-bottom: 14px;
}
.form-title {
	font-family: var(--serif);
	font-size: 32px;
	font-weight: 700;
	color: var(--ink);
	margin: 0 0 14px;
	letter-spacing: -0.4px;
}
.form-intro {
	font-family: var(--serif);
	font-size: 16px;
	font-style: italic;
	color: var(--muted);
	line-height: 1.55;
	margin: 0 0 36px;
}

.field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-bottom: 24px;
}
.field { margin-bottom: 24px; }
.field-row .field { margin-bottom: 0; }

.label {
	font-family: var(--sans);
	font-size: 13px;
	font-weight: 600;
	color: var(--ink);
	margin-bottom: 8px;
	display: flex;
	align-items: center;
	gap: 8px;
}
.label .req { color: var(--red); font-weight: 700; }
.label .hint {
	font-weight: 400;
	font-size: 11px;
	color: var(--muted);
	letter-spacing: 0.5px;
	margin-left: auto;
}
.input, .select, .textarea {
	font-family: var(--sans);
	font-size: 14px;
	color: var(--ink);
	width: 100%;
	padding: 12px 14px;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 4px;
	transition: all 0.15s ease;
}
.input:focus, .select:focus, .textarea:focus {
	outline: none;
	border-color: var(--red);
	box-shadow: 0 0 0 3px rgba(138, 42, 42, 0.08);
}
.textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.select {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 36px;
	cursor: pointer;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%236B6B6B' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
	background-repeat: no-repeat;
	background-position: right 14px center;
}
.help {
	font-family: var(--sans);
	font-size: 12px;
	color: var(--muted);
	margin-top: 6px;
	font-style: italic;
}
.char-count {
	font-family: var(--sans);
	font-size: 11px;
	color: var(--muted);
	text-align: right;
	margin-top: 6px;
	letter-spacing: 0.3px;
}

/* Format radio cards */
.format-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}
.format-card {
	padding: 18px 16px;
	border: 1px solid var(--line);
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.15s ease;
	background: var(--paper);
	position: relative;
}
.format-card:hover { border-color: var(--red); }
.format-card input[type="radio"] {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}
.format-card:has(input:checked) {
	border-color: var(--red);
	background: var(--soft);
}
.format-card.is-active {
	border-color: var(--red);
	background: var(--soft);
}
.format-card-name {
	font-family: var(--serif);
	font-size: 17px;
	font-weight: 700;
	color: var(--ink);
	margin-bottom: 4px;
}
.format-card-len {
	font-family: var(--sans);
	font-size: 11px;
	font-weight: 500;
	color: var(--muted);
	letter-spacing: 0.5px;
}

/* File drop */
.file-drop {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 32px 24px;
	border: 2px dashed var(--line);
	border-radius: 4px;
	background: var(--surround);
	cursor: pointer;
	transition: all 0.15s ease;
	text-align: center;
}
.file-drop:hover, .file-drop.is-drag-over {
	border-color: var(--red);
	background: var(--soft);
}
.file-prompt {
	font-family: var(--sans);
	font-size: 14px;
	font-weight: 600;
	color: var(--ink);
}
.file-prompt span {
	color: var(--red);
	text-decoration: underline;
}
.file-meta {
	font-family: var(--sans);
	font-size: 12px;
	color: var(--muted);
	margin-top: 6px;
	letter-spacing: 0.3px;
}
.file-input {
	position: absolute;
	width: 0;
	height: 0;
	opacity: 0;
}
.file-icon {
	width: 44px;
	height: 44px;
	background: var(--red);
	color: #fff;
	border-radius: 4px;
	font-family: var(--sans);
	font-size: 11px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	letter-spacing: 1px;
	flex-shrink: 0;
}
.file-name {
	font-family: var(--sans);
	font-size: 14px;
	font-weight: 600;
	color: var(--ink);
}
.file-remove {
	margin-left: auto;
	background: none;
	border: 1px solid var(--line);
	border-radius: 4px;
	padding: 6px 12px;
	font-family: var(--sans);
	font-size: 12px;
	font-weight: 500;
	color: var(--muted);
	cursor: pointer;
	transition: all 0.15s ease;
}
.file-remove:hover {
	border-color: var(--red);
	color: var(--red);
}

.checkbox {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	cursor: pointer;
	padding: 14px;
	background: var(--surround);
	border-radius: 4px;
	border: 1px solid var(--line);
}
.checkbox input[type="checkbox"] {
	margin-top: 2px;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	accent-color: var(--red);
}
.checkbox-label {
	font-family: var(--sans);
	font-size: 13px;
	color: var(--ink);
	line-height: 1.55;
}
.checkbox-label a {
	color: var(--red);
	border-bottom: 1px solid currentColor;
}

.submit-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-top: 32px;
	padding-top: 28px;
	border-top: 1px solid var(--line);
	flex-wrap: wrap;
}
.submit-note {
	font-family: var(--serif);
	font-size: 14px;
	font-style: italic;
	color: var(--muted);
	line-height: 1.5;
	max-width: 380px;
	margin: 0;
}
.submit-btn {
	font-family: var(--sans);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.5px;
	color: #fff;
	background: var(--red);
	padding: 14px 28px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.15s ease;
	white-space: nowrap;
	text-decoration: none;
	display: inline-block;
}
.submit-btn:hover { background: var(--red-dark); }

/* Submission success/notice */
.notice {
	padding: 16px 20px;
	border-radius: 4px;
	margin-bottom: 24px;
	font-family: var(--sans);
	font-size: 14px;
	line-height: 1.5;
}
.notice-success {
	background: #e9f5ec;
	color: #1f5b30;
	border: 1px solid #b9d8c2;
}
.notice-error {
	background: #fdeceb;
	color: #6f1d1d;
	border: 1px solid #ecbcbc;
}

/* Guidelines strip / process */
.guidelines-strip {
	padding: 56px var(--shell-pad);
	background: var(--surround);
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}
.guidelines-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 28px;
	max-width: 1100px;
}
.guideline {
	border-top: 2px solid var(--brass);
	padding-top: 18px;
}
.guideline-num {
	font-family: var(--serif);
	font-size: 22px;
	font-weight: 700;
	color: var(--brass);
	margin-bottom: 8px;
	line-height: 1;
}
.guideline-title {
	font-family: var(--serif);
	font-size: 17px;
	font-weight: 700;
	color: var(--ink);
	margin: 0 0 8px;
	letter-spacing: -0.2px;
}
.guideline-text {
	font-family: var(--sans);
	font-size: 13px;
	color: var(--muted);
	line-height: 1.55;
	margin: 0;
}


/* =============================================================
   Footer
   ============================================================= */
.footer {
	background: #0A0A0A;
	color: #BBB;
	padding: 56px var(--shell-pad) 32px;
}
.footer-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: 48px;
	padding-bottom: 32px;
}
.footer-brand-name {
	font-family: var(--serif);
	font-size: 26px;
	font-weight: 700;
	color: #fff;
	margin-bottom: 14px;
}
.footer-tagline {
	font-family: var(--sans);
	font-size: 13px;
	color: #888;
	line-height: 1.6;
	max-width: 320px;
	margin: 0;
}
.footer-col-head {
	font-family: var(--sans);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--brass);
	margin-bottom: 18px;
}
.footer-col ul {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 0;
	margin: 0;
}
.footer-col a {
	font-family: var(--sans);
	font-size: 14px;
	color: #BBB;
	transition: color 0.15s ease;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
	padding-top: 24px;
	border-top: 1px solid #222;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-family: var(--sans);
	font-size: 12px;
	color: #888;
	flex-wrap: wrap;
	gap: 16px;
}
.footer-socials { display: flex; gap: 18px; }
.footer-socials a, .footer-socials li { color: #888; }
.footer-socials a:hover { color: #fff; }
.footer-socials ul {
	list-style: none;
	display: flex;
	gap: 18px;
	padding: 0;
	margin: 0;
}

/* =============================================================
   Comments
   ============================================================= */
.comments-area {
	max-width: 720px;
	margin: 0 auto;
	padding: 48px var(--shell-pad);
}
.comments-title {
	font-family: var(--serif);
	font-size: 26px;
	font-weight: 700;
	margin-bottom: 24px;
	letter-spacing: -0.3px;
}
.comment-list { list-style: none; margin: 0 0 36px; padding: 0; }
.comment-list li { padding: 20px 0; border-top: 1px solid var(--line); }
.comment-list .children { list-style: none; padding-left: 28px; margin-top: 16px; }
.comment-author { font-family: var(--sans); font-size: 14px; font-weight: 600; }
.comment-meta { font-family: var(--sans); font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.comment-content { font-family: var(--serif); font-size: 16px; line-height: 1.6; }
.comment-respond { margin-top: 32px; }
.comment-form label {
	display: block;
	font-family: var(--sans);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 6px;
}
.comment-form input[type=text],
.comment-form input[type=email],
.comment-form input[type=url],
.comment-form textarea {
	width: 100%;
	font-family: var(--sans);
	font-size: 14px;
	padding: 10px 12px;
	border: 1px solid var(--line);
	border-radius: 4px;
	background: var(--paper);
	margin-bottom: 16px;
}
.comment-form textarea { min-height: 140px; resize: vertical; }
.comment-form .submit, .form-submit input[type="submit"] {
	font-family: var(--sans);
	font-size: 14px;
	font-weight: 500;
	color: #fff;
	background: var(--red);
	padding: 10px 22px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
}
.comment-form .submit:hover { background: var(--red-dark); }

/* Search form */
.search-form {
	display: flex;
	gap: 8px;
	max-width: 560px;
}
.search-form input[type=search] {
	flex: 1;
	font-family: var(--sans);
	font-size: 14px;
	padding: 10px 14px;
	border: 1px solid var(--line);
	border-radius: 4px;
}
.search-form button {
	font-family: var(--sans);
	font-size: 14px;
	font-weight: 500;
	color: #fff;
	background: var(--red);
	border: none;
	padding: 10px 20px;
	border-radius: 4px;
	cursor: pointer;
}

/* 404 */
.error-404 {
	padding: 96px var(--shell-pad);
	text-align: center;
	background: var(--paper);
}
.error-404 .big {
	font-family: var(--serif);
	font-size: 96px;
	font-weight: 700;
	color: var(--red);
	line-height: 1;
	margin-bottom: 16px;
	letter-spacing: -2px;
}
.error-404 h1 {
	font-family: var(--serif);
	font-size: 32px;
	margin: 0 0 14px;
}
.error-404 p {
	font-family: var(--serif);
	font-style: italic;
	color: var(--muted);
	max-width: 560px;
	margin: 0 auto 28px;
}

/* =============================================================
   Responsive — match design breakpoints (1100, 900, 600)
   ============================================================= */
@media (max-width: 1100px) {
	:root { --shell-pad: 32px; }
	.article-layout {
		grid-template-columns: minmax(0, 720px);
		justify-content: center;
		padding: 48px var(--shell-pad) 32px;
	}
	.left-rail, .right-rail { display: none; }
	.featured-strip, .hero-grid { grid-template-columns: 1fr; gap: 28px; }
	.featured-image, .hero-image { aspect-ratio: 16/10; }
	.featured-title { font-size: 30px; }
}

@media (max-width: 900px) {
	:root { --shell-pad: 24px; }

	.nav { padding: 0 var(--shell-pad); }
	.nav-right, .primary-menu, .nav-cta-wrap { display: none; }
	.hamburger { display: block; }

	.brand-name { font-size: 22px; }
	.brand-sub { display: none; }

	.nav-right.is-open {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 14px;
		position: absolute;
		top: 72px;
		left: 0;
		right: 0;
		background: var(--paper);
		padding: 20px var(--shell-pad);
		border-bottom: 1px solid var(--line);
	}
	.nav-right.is-open .primary-menu {
		flex-direction: column;
		align-items: flex-start;
		gap: 14px;
		display: flex;
	}
	.nav-right.is-open .nav-cta-wrap { display: block; }

	.page-header { padding: 40px var(--shell-pad) 28px; }
	.page-title { font-size: 36px; letter-spacing: -0.5px; }
	.page-deck { font-size: 16px; }

	.hero { padding: 36px var(--shell-pad); }
	.hero-title { font-size: 28px; }
	.hero-deck { font-size: 16px; }

	.section, .topics-section, .episodes-section, .what-publish, .group-story, .learning, .products, .board { padding: 36px var(--shell-pad); }
	.section-title { font-size: 22px; }

	.cards-grid, .articles-grid, .more-grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.topics-grid-mini { grid-template-columns: repeat(3, 1fr); }
	.topics-grid { grid-template-columns: 1fr; gap: 16px; }
	.explained-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
	.podcast-grid-mini { grid-template-columns: 1fr; }
	.voices-body { grid-template-columns: 1fr; gap: 24px; }

	.about-hero .hero-title { font-size: 36px; }
	.pub-grid { grid-template-columns: 1fr; }
	.story-wrap { grid-template-columns: 1fr; gap: 28px; }
	.story-side { border-right: none; border-bottom: 1px solid var(--line); padding-right: 0; padding-bottom: 28px; }
	.courses-grid { grid-template-columns: 1fr; }
	.users-strip { flex-direction: column; align-items: flex-start; }
	.product { grid-template-columns: 1fr; gap: 20px; }
	.product-mark { border-right: none; border-bottom: 1px solid var(--line); padding-right: 0; padding-bottom: 20px; }
	.stats-strip { grid-template-columns: 1fr 1fr; }
	.board-grid { grid-template-columns: 1fr 1fr; gap: 16px; }

	.featured-episode { grid-template-columns: 1fr; padding: 24px; gap: 28px; margin: 32px var(--shell-pad); }
	.featured-art { max-width: 280px; margin: 0 auto; }
	.featured-ep-title { font-size: 26px; }
	.episode { grid-template-columns: 60px 1fr; gap: 20px; }
	.ep-right { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
	.ep-num { font-size: 28px; }
	.ep-title { font-size: 18px; }
	.subscribe { grid-template-columns: 1fr; padding: 36px 28px; margin: 36px var(--shell-pad); }

	.field-row { grid-template-columns: 1fr; gap: 0; }
	.field-row .field { margin-bottom: 24px; }
	.format-grid { grid-template-columns: 1fr; }
	.submit-row { flex-direction: column; align-items: stretch; }
	.guidelines-grid { grid-template-columns: 1fr 1fr; gap: 20px; }

	.article-title { font-size: 32px; letter-spacing: -0.4px; }
	.article-deck { font-size: 17px; }
	.article-body { font-size: 17px; }
	.article-body p:first-of-type::first-letter { font-size: 56px; }
	.article-body h2 { font-size: 24px; }
	.more-section { padding: 40px var(--shell-pad); }

	.filter-bar { padding: 16px var(--shell-pad); position: static; }

	.footer { padding: 40px var(--shell-pad) 24px; }
	.footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
	.footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
}

@media (max-width: 600px) {
	.topics-grid-mini { grid-template-columns: repeat(2, 1fr); }
	.explained-grid { grid-template-columns: 1fr; }
	.stats-strip { grid-template-columns: 1fr; }
	.board-grid { grid-template-columns: 1fr; }
	.guidelines-grid { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; }
	.about-hero .hero-title { font-size: 28px; }
	.story-h2, .learning-h2 { font-size: 24px; }
}
