/* ============================================================
   TOPTUT BROADSHEET — COMPONENTS
   Cards · Article rows · Prose · Callouts · Code · Sidebar
   ============================================================ */

/* ------------------------------------------------------------
   HERO (front page)
   ------------------------------------------------------------ */
.splash {
	max-width: var(--shell);
	margin: 0 auto;
	padding: 52px var(--gutter) 56px;
	display: grid;
	grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr);
	gap: 72px;
	align-items: start;
}
.splash-badge {
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--accent);
	margin-bottom: 26px;
}
.splash h1 {
	font-size: clamp(34px, 4.1vw, 58px);
	line-height: 1.04;
	letter-spacing: -0.038em;
	font-weight: 800;
}
.splash h1 em { font-style: normal; color: var(--accent); }
.splash-sub {
	font-family: var(--font-prose);
	font-size: 19px;
	line-height: 1.62;
	color: var(--ink-2);
	max-width: 60ch;
	margin-top: 30px;
}
.splash-buttons { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.splash-meta {
	display: flex;
	gap: 22px;
	flex-wrap: wrap;
	margin-top: 40px;
	padding-top: 22px;
	border-top: 1px solid var(--rule);
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--muted);
}
.splash-meta strong { color: var(--ink); font-weight: 700; }
.dot-sep { display: none; }

/* "In this issue" index — replaces the old flow diagram */
.issue-index { border-left: 1px solid var(--rule); padding-left: 34px; }
.issue-label {
	font-family: var(--font-mono);
	font-size: 10.5px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 18px;
}
.issue-item {
	display: grid;
	grid-template-columns: 26px 1fr;
	gap: 14px;
	padding: 14px 0;
	border-top: 1px solid var(--rule);
	color: var(--ink);
	transition: color 0.2s var(--ease);
}
.issue-item:last-child { border-bottom: 1px solid var(--rule); }
.issue-item:hover { color: var(--accent); }
.issue-n { font-family: var(--font-mono); font-size: 11px; color: var(--accent); padding-top: 2px; }
.issue-cat {
	display: block;
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 5px;
}
.issue-title {
	display: block;
	font-size: 15.5px;
	font-weight: 600;
	line-height: 1.32;
	letter-spacing: -0.015em;
}

/* ------------------------------------------------------------
   IMAGE PLATES + GENERATED THUMBNAILS
   ------------------------------------------------------------ */
.card-img-wrap {
	position: relative;
	overflow: hidden;
	background: var(--plate);
	aspect-ratio: 16 / 10;
}
.card-img-wrap img,
.card-img-wrap .gen-thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: filter 0.4s var(--ease);
}
a:hover > .card-img-wrap img,
a:hover > .card-img-wrap .gen-thumb { filter: brightness(0.96); }
.card-read-pill { display: none; }

/* Generated fallback: an ink plate with the title set in it. */
.gen-thumb {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 20px;
	background: oklch(24% 0.06 285);
	color: oklch(97% 0.01 285);
}
.gen-thumb-mark {
	display: flex;
	align-items: center;
	gap: 7px;
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: oklch(80% 0.05 285);
}
.gen-thumb-mark .dot { width: 7px; height: 7px; background: var(--accent-up); flex: none; }
.gen-thumb-cat {
	font-family: var(--font-mono);
	font-size: 9.5px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: oklch(78% 0.04 285);
	margin-top: auto;
	margin-bottom: 8px;
}
.gen-thumb-title {
	font-family: var(--font-display);
	font-size: 19px;
	font-weight: 700;
	line-height: 1.16;
	letter-spacing: -0.028em;
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ------------------------------------------------------------
   LEAD CARD (big) — image left, headline right
   ------------------------------------------------------------ */
.featured-grid { display: block; }

.post-card-big {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: 36px;
	color: inherit;
	padding-bottom: 44px;
	border-bottom: 1px solid var(--rule);
	margin-bottom: 44px;
}
.post-card-big:hover { color: inherit; }
.post-card-big .card-img-wrap { aspect-ratio: 4 / 3; }
.post-card-big .card-body { padding-top: 4px; }
.post-card-big .card-title {
	font-size: 34px;
	line-height: 1.08;
	letter-spacing: -0.032em;
	font-weight: 800;
}
.post-card-big .card-excerpt {
	font-family: var(--font-prose);
	font-size: 16.5px;
	line-height: 1.65;
	color: oklch(38% 0.012 60);
	margin-top: 18px;
	max-width: 46ch;
}

/* Pair of standard cards under the lead */
.card-pair {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 40px;
	padding-bottom: 52px;
}

.post-card { display: block; color: inherit; }
.post-card:hover { color: inherit; }
.post-card .card-body { padding-top: 18px; }
.post-card .card-title {
	font-size: 21px;
	line-height: 1.22;
	letter-spacing: -0.026em;
	font-weight: 700;
}

.card-cat {
	display: flex;
	align-items: center;
	gap: 9px;
	font-family: var(--font-mono);
	font-size: 10.5px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ink);
	margin-bottom: 14px;
}
.card-cat::before {
	content: "";
	width: 9px;
	height: 9px;
	background: var(--accent);
	flex: none;
}
.card-read-time { color: var(--muted); letter-spacing: 0.1em; }
.card-read-time::before { content: "· "; }

.card-title { font-family: var(--font-display); text-wrap: pretty; }
.post-card:hover .card-title,
.post-card-big:hover .card-title,
.article-item:hover .article-title { color: var(--ink); }

.card-meta {
	display: flex;
	align-items: center;
	gap: 7px;
	font-family: var(--font-mono);
	font-size: 10.5px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--muted);
	margin-top: 16px;
}
.card-sep { width: 3px; height: 3px; background: var(--muted); flex: none; }

/* Archive grid uses the standard card in 2 columns */
.archive-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 44px 40px;
}

/* ------------------------------------------------------------
   ARTICLE ROWS (compact list)
   ------------------------------------------------------------ */
.article-list { border-top: 1px solid transparent; }
.article-item {
	display: grid;
	grid-template-columns: 104px minmax(0, 1fr) auto;
	gap: 22px;
	align-items: center;
	padding: 20px 0 20px 14px;
	border-bottom: 1px solid var(--rule);
	border-left: 2px solid transparent;
	color: inherit;
	counter-increment: feedrow;
	transition: background 0.22s var(--ease), border-left-color 0.22s var(--ease);
}
.article-item:hover {
	background: oklch(96% 0.008 85);
	border-left-color: var(--accent);
	color: inherit;
}
.article-item::before {
	content: counter(feedrow, decimal-leading-zero);
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--muted);
	grid-column: 1;
	justify-self: start;
	align-self: center;
}
.article-item { grid-template-columns: 30px 104px minmax(0, 1fr) auto; }
.article-img-wrap {
	aspect-ratio: 4 / 3;
	background: var(--plate);
	overflow: hidden;
}
.article-img-wrap img,
.article-img-wrap .gen-thumb { width: 100%; height: 100%; object-fit: cover; }
.article-img-wrap .gen-thumb { padding: 8px; }
.article-img-wrap .gen-thumb-mark,
.article-img-wrap .gen-thumb-cat { display: none; }
.article-img-wrap .gen-thumb-title { font-size: 11px; -webkit-line-clamp: 3; }
.article-cat {
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 7px;
}
.article-title {
	font-family: var(--font-display);
	font-size: 19px;
	font-weight: 600;
	line-height: 1.26;
	letter-spacing: -0.022em;
	text-wrap: pretty;
}
.article-meta {
	font-family: var(--font-mono);
	font-size: 10.5px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
	white-space: nowrap;
	margin-top: 0;
}
.article-item > .article-body { min-width: 0; }
.article-item > .article-meta-col { justify-self: end; }

/* Feed list counter root */
.article-list { counter-reset: feedrow var(--row-offset, 0); }

/* ------------------------------------------------------------
   PAGINATION
   ------------------------------------------------------------ */
.pagination {
	display: flex;
	gap: 8px;
	align-items: center;
	flex-wrap: wrap;
	margin-top: 40px;
}
.pagination .page-btn,
.pagination .page-numbers {
	min-width: 38px;
	height: 38px;
	padding: 0 12px;
	display: grid;
	place-items: center;
	border: 1px solid var(--rule);
	color: var(--ink);
	font-family: var(--font-mono);
	font-size: 12px;
	transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}
.pagination a.page-numbers:hover,
.pagination a.page-btn:hover { border-color: var(--accent); color: var(--accent); }
.pagination .current,
.pagination .page-numbers.current {
	background: var(--ink);
	border-color: var(--ink);
	color: var(--paper);
}
.pagination .dots { border-color: transparent; }

/* ------------------------------------------------------------
   SIDEBAR
   ------------------------------------------------------------ */
.sidebar {
	border-left: 1px solid var(--rule);
	padding-left: 28px;
	display: flex;
	flex-direction: column;
	gap: 44px;
	position: sticky;
	top: calc(var(--head-h) + 30px);
}
.sidebar-label {
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 12px;
}
.search-wrap { display: flex; }
.search-input {
	flex: 1;
	min-width: 0;
	border: 1px solid var(--rule);
	border-right: none;
	background: transparent;
	padding: 11px 12px;
	font-family: var(--font-body);
	font-size: 13.5px;
	outline: none;
}
.search-input:focus { border-color: var(--accent); }
.search-btn {
	background: var(--ink);
	color: var(--paper);
	border: none;
	padding: 0 16px;
	font-family: var(--font-body);
	font-size: 12.5px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.25s var(--ease);
}
.search-btn:hover { background: var(--accent); }

/* Affiliate card */
.aff-ai {
	display: block;
	border: 1px solid var(--rule);
	padding: 22px;
	color: inherit;
	transition: border-color 0.25s var(--ease);
}
.aff-ai:hover { border-color: var(--accent); color: inherit; }
.aff-ai-fx, .aff-ai-grid, .aff-ai-spark { display: none; }
.aff-ai-body { display: block; }
.aff-ai-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 16px;
	font-family: var(--font-mono);
	font-size: 9.5px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}
.aff-ai-chip { color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }
.aff-ai-chip-dot { width: 6px; height: 6px; background: var(--accent); }
.aff-ai-tag { color: var(--muted); border: 1px solid var(--rule); padding: 2px 6px; }
.aff-ai-ico { display: none; }
.aff-ai-title {
	display: block;
	font-family: var(--font-display);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.028em;
}
.aff-ai-sub {
	display: block;
	font-family: var(--font-prose);
	font-size: 14px;
	line-height: 1.6;
	color: oklch(40% 0.012 60);
	margin: 12px 0 18px;
}
.aff-ai-cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--accent);
	border-bottom: 1px solid var(--accent);
	padding-bottom: 3px;
}
.aff-ai-cta svg { width: 13px; height: 13px; }

/* Plugin promo block */
.plugin-sidebar-card {
	background: var(--ink);
	color: oklch(96% 0.006 85);
	padding: 24px;
}
.plugin-sidebar-card .sidebar-label { color: var(--accent-up) !important; }
.plugin-sidebar-title {
	font-family: var(--font-display);
	font-size: 21px;
	font-weight: 700;
	line-height: 1.18;
	letter-spacing: -0.028em;
}
.plugin-sidebar-sub {
	font-family: var(--font-prose);
	font-size: 14px;
	line-height: 1.6;
	color: oklch(78% 0.008 80);
	margin: 12px 0 20px;
}
.plugin-sidebar-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	border-top: 1px solid oklch(35% 0.02 60);
	border-bottom: 1px solid oklch(35% 0.02 60);
	margin-bottom: 20px;
}
.pss { padding: 14px 0; }
.pss-num { font-family: var(--font-display); font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.pss-label {
	font-family: var(--font-mono);
	font-size: 9.5px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: oklch(70% 0.01 80);
	margin-top: 3px;
}
.btn-sidebar {
	display: block;
	text-align: center;
	background: var(--accent);
	color: #fff;
	padding: 13px;
	font-size: 13.5px;
	font-weight: 600;
	transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.btn-sidebar:hover { background: var(--paper); color: var(--ink); }

/* ------------------------------------------------------------
   SINGLE POST
   ------------------------------------------------------------ */
.single-grid {
	max-width: var(--shell);
	margin: 0 auto;
	padding: 34px var(--gutter) 90px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--rail);
	gap: 60px;
	align-items: start;
}
.single.is-wide .single-grid { grid-template-columns: minmax(0, 1fr); }
.single.is-wide .single-main { max-width: 900px; margin: 0 auto; }
.single-main { min-width: 0; }
.single-bg { display: none; }

.post-breadcrumb {
	font-family: var(--font-mono);
	font-size: 10.5px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--muted);
	display: flex;
	gap: 9px;
	flex-wrap: wrap;
	margin-bottom: 26px;
}
.post-breadcrumb a { color: var(--muted); }
.post-breadcrumb a:hover { color: var(--accent); }
.post-breadcrumb span:last-child { color: var(--ink); }

.post-cat-badge {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-family: var(--font-mono);
	font-size: 10.5px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--accent);
	margin-bottom: 18px;
}
.post-cat-badge .ico {
	width: 9px;
	height: 9px;
	flex: none;
	background: var(--accent);
}
.post-cat-badge .ico svg { display: none; }

.post-title {
	font-size: clamp(34px, 4.2vw, 56px);
	line-height: 1.03;
	letter-spacing: -0.036em;
	font-weight: 800;
}
.post-deck {
	font-family: var(--font-prose);
	font-size: 20px;
	line-height: 1.58;
	color: oklch(35% 0.012 60);
	margin-top: 26px;
	max-width: 58ch;
}

.post-meta-row {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	margin-top: 30px;
	padding-top: 22px;
	border-top: 1px solid var(--rule);
}
.post-author-chip { display: flex; align-items: center; gap: 12px; color: inherit; }
.post-author-chip:hover { color: var(--accent); }
.post-author-chip .avatar { width: 44px; height: 44px; flex: none; }
.post-author-chip .who { display: flex; flex-direction: column; }
.post-author-chip .name { font-size: 14.5px; font-weight: 700; letter-spacing: -0.015em; }
.post-author-chip .role {
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--muted);
	margin-top: 3px;
}
.meta-dot { width: 3px; height: 3px; background: var(--rule); flex: none; }
.post-meta-bit {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-family: var(--font-mono);
	font-size: 10.5px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--muted);
}
.post-meta-bit svg { width: 13px; height: 13px; }

.post-feature {
	margin: 44px 0 0;
	max-width: var(--measure);
	position: relative;
	overflow: hidden;
	background: var(--plate);
	aspect-ratio: 16 / 9;
}
.post-feature img,
.post-feature .gen-thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.post-feature .gen-thumb-title { font-size: 30px; -webkit-line-clamp: 3; }

.post-tags {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 44px;
	padding-top: 22px;
	border-top: 1px solid var(--rule);
}
.post-tag, .post-tags a {
	font-family: var(--font-mono);
	font-size: 10.5px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ink-2);
	border: 1px solid var(--rule);
	padding: 6px 10px;
	transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.post-tags a:hover { border-color: var(--accent); color: var(--accent); }

/* Author bio */
.author-bio {
	margin-top: 44px;
	border-top: 2px solid var(--rule-hard);
	padding-top: 26px;
}
.author-bio-top { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 26px; }
.author-bio-avatar { width: 88px; height: 88px; }
.author-bio-eyebrow {
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--muted);
}
.author-bio-name {
	font-family: var(--font-display);
	font-size: 24px;
	font-weight: 700;
	letter-spacing: -0.028em;
	margin-top: 6px;
}
.author-bio-role {
	font-family: var(--font-mono);
	font-size: 10.5px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--accent);
	margin-top: 4px;
}
.author-bio-desc {
	font-family: var(--font-prose);
	font-size: 15.5px;
	line-height: 1.68;
	color: oklch(38% 0.012 60);
	margin-top: 12px;
	max-width: 58ch;
}
.author-bio-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.author-website, .author-social {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-family: var(--font-mono);
	font-size: 10.5px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ink);
	border: 1px solid var(--rule);
	padding: 8px 12px;
	transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.author-website:hover, .author-social:hover { border-color: var(--accent); color: var(--accent); }
.author-website svg, .author-social svg { width: 13px; height: 13px; }

/* Related */
.related-wrap { padding-bottom: 90px; }
.related-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 34px;
}
.related-grid .card-title { font-size: 19px; line-height: 1.24; letter-spacing: -0.024em; font-weight: 700; }

/* ------------------------------------------------------------
   IN-ARTICLE TABLE OF CONTENTS
   Built by main.js from the post's own H2/H3 — skipped entirely
   when a TOC plugin has already output one.
   ------------------------------------------------------------ */
.tt-toc {
	margin: 34px 0;
	border: 1px solid var(--rule);
	border-top: 2px solid var(--rule-hard);
	background: var(--paper-3);
	padding: 20px 24px 18px;
}
.tt-toc-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 4px;
}
.tt-toc-toggle {
	background: transparent;
	border: none;
	padding: 0;
	cursor: pointer;
	font: inherit;
	color: var(--accent);
	letter-spacing: 0.12em;
}
.tt-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.tt-toc li { counter-increment: toc; }
.tt-toc a {
	display: grid;
	grid-template-columns: 28px 1fr;
	gap: 10px;
	align-items: baseline;
	padding: 9px 0;
	border-bottom: 1px solid var(--rule-2);
	font-family: var(--font-display);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: -0.015em;
	line-height: 1.35;
	color: var(--ink);
	transition: color 0.2s var(--ease);
}
.tt-toc a::before {
	content: counter(toc, decimal-leading-zero);
	font-family: var(--font-mono);
	font-size: 10.5px;
	font-weight: 400;
	color: var(--accent);
}
.tt-toc a:hover { color: var(--accent); }
.tt-toc li:last-child a { border-bottom: none; }
.tt-toc li.is-sub a {
	font-size: 14px;
	font-weight: 500;
	color: var(--ink-2);
	padding-left: 18px;
}
.tt-toc[data-collapsed="1"] ol { display: none; }

/* Any TOC-plugin container inherits the same paper treatment */
#ez-toc-container, .lwptoc, .toc_widget_list, #toc_container {
	background: var(--paper-3) !important;
	border: 1px solid var(--rule) !important;
	border-top: 2px solid var(--rule-hard) !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	font-family: var(--font-display) !important;
	padding: 20px 24px !important;
	margin: 34px 0 !important;
}
#ez-toc-container a, .lwptoc a, #toc_container a { color: var(--ink) !important; text-decoration: none !important; }
#ez-toc-container a:hover, .lwptoc a:hover, #toc_container a:hover { color: var(--accent) !important; }

/* ------------------------------------------------------------
   PROSE — the article body
   ------------------------------------------------------------ */
.prose {
	max-width: var(--measure);
	margin-top: 44px;
	font-family: var(--font-prose);
	font-size: 18.5px;
	line-height: 1.76;
	color: var(--body);
}
.single.is-wide .prose { max-width: none; }

.prose > * + * { margin-top: 26px; }

.prose p { margin: 0; }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: var(--accent-ink); }
.prose strong { font-weight: 600; color: var(--ink); }

/* Drop cap on the opening paragraph */
.prose > p:first-child::first-letter {
	float: left;
	font-family: var(--font-display);
	font-size: 66px;
	line-height: 0.8;
	font-weight: 800;
	color: var(--accent);
	margin: 6px 12px 0 0;
}

.prose h2 {
	font-family: var(--font-display);
	font-size: 30px;
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.15;
	margin-top: 48px;
	padding-top: 22px;
	border-top: 2px solid var(--rule-hard);
	scroll-margin-top: calc(var(--head-h) + 40px);
}
.prose h3 {
	font-family: var(--font-display);
	font-size: 21px;
	font-weight: 700;
	letter-spacing: -0.024em;
	margin-top: 44px;
	scroll-margin-top: calc(var(--head-h) + 40px);
}
.prose h4 {
	font-family: var(--font-display);
	font-size: 17px;
	font-weight: 700;
	letter-spacing: -0.02em;
	margin-top: 34px;
	scroll-margin-top: calc(var(--head-h) + 40px);
}

/* Markers are absolutely positioned so the list item keeps normal inline
   flow — a <strong> at the start of a bullet must not become a grid item. */
.prose ul, .prose ol { margin: 20px 0 0; padding-left: 0; list-style: none; }
.prose li + li { margin-top: 10px; }
.prose ul > li {
	position: relative;
	padding-left: 28px;
}
.prose ul > li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.66em;
	width: 7px;
	height: 7px;
	background: var(--accent);
}
.prose ol { counter-reset: prosenum; }
.prose ol > li {
	counter-increment: prosenum;
	position: relative;
	padding: 16px 0 16px 48px;
	border-bottom: 1px solid var(--rule);
	margin-top: 0;
}
.prose ol > li::before {
	content: counter(prosenum, decimal-leading-zero);
	position: absolute;
	left: 0;
	top: 21px;
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--accent);
}
.prose li > ul, .prose li > ol { margin-top: 10px; }
.prose ol ol { counter-reset: prosenum; }
.prose li > p { margin: 0; }
.prose li > p + p { margin-top: 10px; }

.prose blockquote {
	margin: 34px 0 0;
	padding: 4px 0 4px 24px;
	border-left: 3px solid var(--accent);
	font-size: 21px;
	line-height: 1.5;
	font-style: italic;
	color: oklch(28% 0.012 60);
}
.prose blockquote cite {
	display: block;
	font-family: var(--font-mono);
	font-size: 11px;
	font-style: normal;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
	margin-top: 12px;
}

.prose figure { margin: 34px 0 0; }
.prose figure img { width: 100%; }
.prose figcaption,
.wp-block-image figcaption {
	font-family: var(--font-mono);
	font-size: 10.5px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
	margin-top: 10px;
	text-align: left;
}
.prose hr {
	border: none;
	border-top: 2px solid var(--rule-hard);
	margin: 44px 0;
}
.prose img { border-radius: 0; }

/* Wide / full-bleed blocks inside a measured column */
.prose .alignwide { width: min(100%, 900px); max-width: none; }
.prose .alignfull { width: 100%; }
.prose .alignleft { float: left; margin: 6px 28px 18px 0; max-width: 46%; }
.prose .alignright { float: right; margin: 6px 0 18px 28px; max-width: 46%; }
.prose .aligncenter { margin-left: auto; margin-right: auto; }

/* ---------- Inline code ---------- */
.prose code,
code.inline,
.prose :not(pre) > code {
	font-family: var(--font-mono);
	font-size: 0.86em;
	font-weight: 500;
	background: oklch(95.5% 0.03 285);
	color: oklch(40% 0.18 288);
	border: 1px solid var(--accent-br);
	border-radius: 0;
	padding: 1px 6px;
	white-space: nowrap;
}
/* Inline code keeps working on ink surfaces and inside headings */
.prose h2 code, .prose h3 code, .prose h4 code { font-size: 0.8em; }
.prose blockquote code { background: oklch(96% 0.02 285); }
.plugin-sidebar-card code,
.gen-thumb code {
	background: oklch(30% 0.05 285);
	color: oklch(88% 0.06 290);
	border-color: oklch(40% 0.06 285);
}
.tt-toc code { white-space: nowrap; }

/* ---------- Code blocks ---------- */
.prose pre,
.wp-block-code,
.wp-block-preformatted {
	font-family: var(--font-mono);
	font-size: 13.5px;
	line-height: 1.7;
	background: var(--ink);
	color: oklch(92% 0.01 85);
	padding: 20px 22px;
	margin: 26px 0 0;
	overflow-x: auto;
	border-radius: 0;
	border: none;
	position: relative;
	white-space: pre;
	tab-size: 2;
}
.prose pre code,
.wp-block-code code {
	background: none;
	border: none;
	color: inherit;
	padding: 0;
	font-size: inherit;
	white-space: pre;
}
.tt-copy {
	position: absolute;
	top: 10px;
	right: 10px;
	background: transparent;
	color: oklch(88% 0.01 85);
	border: 1px solid oklch(45% 0.02 60);
	padding: 5px 11px;
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.tt-copy:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.tt-pre-wrap { position: relative; margin: 26px 0 0; }
.tt-pre-wrap pre { margin: 0; }

/* ---------- Tables ---------- */
.prose table,
.wp-block-table table {
	width: 100%;
	border-collapse: collapse;
	font-family: var(--font-display);
	font-size: 15.5px;
	margin: 34px 0 0;
}
.prose .tt-table-scroll { overflow-x: auto; border: 1px solid var(--rule); margin: 34px 0 0; }
.prose .tt-table-scroll table { margin: 0; }
.prose th, .wp-block-table th {
	text-align: left;
	background: var(--ink);
	color: oklch(94% 0.006 85);
	font-family: var(--font-mono);
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	padding: 11px 15px;
	border: none;
}
.prose td, .wp-block-table td {
	padding: 12px 15px;
	border: none;
	border-bottom: 1px solid var(--rule-2);
	color: oklch(26% 0.012 60);
}
.prose tbody tr:nth-child(even) { background: var(--paper-2); }
.wp-block-table figcaption { margin-top: 10px; }

/* ---------- Callouts (block styles + plugin/legacy classes) ---------- */
.prose .is-style-cs-about,
.prose .key-takeaway,
.prose .quick-answer,
.prose .is-style-cs-note,
.prose .info-note,
.prose .is-style-cs-stat {
	border-radius: 0 !important;
	box-shadow: none !important;
}

/* Quick answer — the summary box that opens an article */
.prose .quick-answer,
.prose .is-style-quick-answer {
	background: var(--paper-3);
	border: 1px solid var(--rule);
	border-top: 2px solid var(--rule-hard);
	border-right: 3px solid var(--accent);
	padding: 22px 26px;
	margin: 30px 0 0;
}
.prose .quick-answer > *:first-child { margin-top: 0; }
.prose .quick-answer::before {
	content: "Quick answer";
	display: block;
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--accent);
	margin-bottom: 10px;
}
.prose .quick-answer > p:first-of-type {
	font-family: var(--font-display);
	font-size: 17.5px;
	font-weight: 700;
	letter-spacing: -0.018em;
	line-height: 1.35;
	color: var(--ink);
}
.prose .quick-answer > p + p { font-size: 16px; line-height: 1.68; margin-top: 12px; color: var(--ink-2); }

/* Key takeaway */
.prose .is-style-cs-about,
.prose .key-takeaway {
	background: var(--accent-lo);
	border: 1px solid var(--accent-br);
	border-right: 3px solid var(--accent);
	padding: 22px 26px;
	margin: 34px 0 0;
}
.prose .is-style-cs-about > *:first-child,
.prose .key-takeaway > *:first-child { margin-top: 0; }
.prose .is-style-cs-about p:first-child strong,
.prose .key-takeaway p:first-child strong {
	font-family: var(--font-display);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: -0.015em;
	color: var(--ink);
}
.prose .is-style-cs-about p,
.prose .key-takeaway p { font-size: 16px; line-height: 1.68; color: oklch(30% 0.012 60); }

/* Info note */
.prose .is-style-cs-note,
.prose .info-note {
	background: var(--paper-2);
	border: 1px solid var(--rule);
	border-left: 3px solid var(--accent);
	padding: 16px 20px;
	margin: 26px 0 0;
	font-size: 16px;
	line-height: 1.66;
	color: var(--ink-2);
}
.prose .is-style-cs-note > *:first-child,
.prose .info-note > *:first-child { margin-top: 0; }
.prose .is-style-cs-note strong,
.prose .info-note strong { font-family: var(--font-display); font-weight: 700; color: var(--ink); }

/* Stat callout */
.prose .is-style-cs-stat {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin: 34px 0 0;
	padding: 20px 0;
	border-top: 1px solid var(--rule);
	border-bottom: 1px solid var(--rule);
	background: none;
}
.prose .is-style-cs-stat > * { margin: 0 !important; }
.prose .cs-stat-num {
	font-family: var(--font-display) !important;
	font-size: 62px !important;
	font-weight: 800 !important;
	letter-spacing: -0.04em;
	line-height: 0.9;
	color: var(--accent);
}
.prose .cs-stat-label {
	font-family: var(--font-mono) !important;
	font-size: 11px !important;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
	text-align: right;
	line-height: 1.9;
	max-width: 22ch;
}

/* Pros & cons columns */
.prose .wp-block-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; margin: 34px 0 0; }
.prose .wp-block-column > h4:first-child {
	font-family: var(--font-mono);
	font-size: 10.5px;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--accent);
	padding-bottom: 8px;
	border-bottom: 1px solid var(--rule);
	margin: 0 0 4px;
}
.prose .wp-block-column:last-child > h4:first-child { color: var(--muted); }
.prose .wp-block-column:last-child ul > li::before { background: oklch(78% 0.01 80); }
.prose .wp-block-column ul { margin-top: 8px; }
.prose .wp-block-column li { font-size: 16px; line-height: 1.6; }

/* Buttons in content */
.prose .wp-block-button__link,
.prose .wp-block-buttons .wp-block-button__link {
	background: var(--ink);
	color: var(--paper);
	border-radius: 0;
	font-family: var(--font-display);
	font-size: 14px;
	font-weight: 600;
	padding: 14px 24px;
	transition: background 0.25s var(--ease);
}
.prose .wp-block-button__link:hover { background: var(--accent); color: #fff; }

/* Embeds */
.prose .wp-block-embed__wrapper { position: relative; }
.prose iframe { max-width: 100%; border: 1px solid var(--rule); }

.page-links {
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin-top: 34px;
	padding-top: 18px;
	border-top: 1px solid var(--rule);
	display: flex;
	gap: 10px;
}

/* ------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------ */
@media (max-width: 1180px) {
	.splash { gap: 44px; }
	.issue-index { padding-left: 24px; }
}

@media (max-width: 1000px) {
	.splash {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px;
		padding-bottom: 40px;
	}
	.issue-index {
		border-left: none;
		border-top: 2px solid var(--rule-hard);
		padding-left: 0;
		padding-top: 22px;
	}
	.single-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
	.post-card-big { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.post-card-big .card-title { font-size: 27px; }
	.card-pair, .archive-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
	.related-grid { grid-template-columns: minmax(0, 1fr); }
	.article-item {
		grid-template-columns: 26px 74px minmax(0, 1fr);
		gap: 14px;
		align-items: start;
	}
	.article-item .article-meta { grid-column: 2 / -1; white-space: normal; margin-top: 8px; }
	.prose { font-size: 17.5px; }
	.prose h2 { font-size: 25px; }
	.prose .wp-block-columns { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.prose .is-style-cs-stat { flex-direction: column; align-items: flex-start; gap: 8px; }
	.prose .cs-stat-label { text-align: left; }
	.author-bio-top { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.post-feature { aspect-ratio: 4 / 3; }
	.prose > p:first-child::first-letter { font-size: 52px; }
}


/* ------------------------------------------------------------
   TABLE OF CONTENTS — off. The theme no longer builds one, and
   any TOC-plugin container is hidden inside an article.
   ------------------------------------------------------------ */
.tt-toc,
.single .prose #ez-toc-container,
.single .prose .ez-toc-v2,
.single .prose #toc_container,
.single .prose .lwptoc,
.single .prose .toc-container,
.single .prose .kb-table-of-content-wrap,
.single .prose .rank-math-toc,
.single .prose .wp-block-yoast-seo-table-of-contents { display: none !important; }


/* ------------------------------------------------------------
   FEATURED IMAGE TREATMENT (v2.1)
   Resting: 22% accent tint over a photo pushed in 9%.
   Hover:   tint clears, image settles to 1:1, accent blade
            crosses the frame once. Transform/opacity only.
   ------------------------------------------------------------ */
.card-img-wrap,
.article-img-wrap,
.post-feature {
	position: relative;
	overflow: hidden;
	background: var(--paper-2);
	isolation: isolate;
}
.card-img-wrap img, .card-img-wrap .gen-thumb,
.article-img-wrap img, .article-img-wrap .gen-thumb,
.post-feature img, .post-feature .gen-thumb {
	transform: scale(1.09);
	filter: saturate(0.78) contrast(1.02);
	transition: transform 0.8s var(--ease), filter 0.55s var(--ease);
	will-change: transform;
}
.card-img-wrap::after,
.article-img-wrap::after,
.post-feature::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	background: var(--accent);
	opacity: 0.22;
	pointer-events: none;
	transition: opacity 0.5s var(--ease);
}
.card-img-wrap::before,
.article-img-wrap::before,
.post-feature::before {
	content: "";
	position: absolute;
	top: -30%;
	bottom: -30%;
	width: 42%;
	left: -58%;
	z-index: 3;
	background: var(--accent);
	opacity: 0.9;
	transform: rotate(12deg);
	pointer-events: none;
	transition: left 0.8s var(--ease);
}
.post-card:hover .card-img-wrap img,
.post-card-big:hover .card-img-wrap img,
.article-item:hover .article-img-wrap img,
.post-feature:hover img,
.post-card:hover .card-img-wrap .gen-thumb,
.post-card-big:hover .card-img-wrap .gen-thumb,
.article-item:hover .article-img-wrap .gen-thumb,
.post-feature:hover .gen-thumb {
	transform: scale(1);
	filter: saturate(1.02) contrast(1);
}
.post-card:hover .card-img-wrap::after,
.post-card-big:hover .card-img-wrap::after,
.article-item:hover .article-img-wrap::after,
.post-feature:hover::after { opacity: 0; }
.post-card:hover .card-img-wrap::before,
.post-card-big:hover .card-img-wrap::before,
.article-item:hover .article-img-wrap::before,
.post-feature:hover::before { left: 118%; }

/* The compact feed rows are small; skip the blade there. */
.article-img-wrap::before { display: none; }

@media (prefers-reduced-motion: reduce) {
	.card-img-wrap img, .article-img-wrap img, .post-feature img,
	.card-img-wrap .gen-thumb, .article-img-wrap .gen-thumb, .post-feature .gen-thumb {
		transform: none;
		transition: none;
	}
	.card-img-wrap::before, .article-img-wrap::before, .post-feature::before { display: none; }
}

/* ------------------------------------------------------------
   HEADLINE TUMBLE — character cells locked to final width by
   main.js, so a rolling headline never reflows the line.
   ------------------------------------------------------------ */
.tt-roll { display: inline-block; white-space: pre; }
.tt-roll.is-rolling { color: var(--accent); }

/* ------------------------------------------------------------
   BREATHING ROOM around tables, headings and figures
   ------------------------------------------------------------ */
.prose h2 { margin-top: 64px; }
.prose h3 { margin-top: 46px; }
.prose table, .wp-block-table table { margin: 8px 0 0; }
.prose .tt-table-scroll { margin: 56px 0 0; }
.prose table + *, .prose .tt-table-scroll + *, .prose .wp-block-table + * { margin-top: 52px; }
.prose figure + *, .prose .wp-block-image + * { margin-top: 44px; }
.prose hr + * { margin-top: 44px; }
.prose h2 + p, .prose h3 + p, .prose h2 + ul, .prose h3 + ul { margin-top: 20px; }

/* A TOC plugin's floating / sticky panel is hidden too. */
.ez-toc-widget-sticky, #ez-toc-widget-sticky-wrap, .ez-toc-sticky, .ez-toc-sticky-fixed,
#ez-toc-sticky-container, .ez-toc-widget-container, .lwptoc-fixed, .toc_sticky,
.rank-math-toc-sticky { display: none !important; }

/* Generated plates already carry the accent, so they get a whisper of tint
   and no push-in — the treatment is for real photography. */
.card-img-wrap:has(.gen-thumb)::after,
.article-img-wrap:has(.gen-thumb)::after,
.post-feature:has(.gen-thumb)::after { opacity: 0.06; }
.card-img-wrap .gen-thumb,
.article-img-wrap .gen-thumb,
.post-feature .gen-thumb { transform: none; filter: none; }


/* ------------------------------------------------------------
   COMMENTS
   ------------------------------------------------------------ */
.post-comments { max-width: var(--measure); margin-top: 72px; }
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { margin-left: 26px; border-left: 1px solid var(--rule); padding-left: 22px; }
.comment-list li.comment { padding: 22px 0; border-bottom: 1px solid var(--rule); }
.comment-list .comment-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-mono);
	font-size: 10.5px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 10px;
}
.comment-list .comment-meta .avatar { width: 26px; height: 26px; flex: none; }
.comment-list .comment-author { color: var(--ink); }
.comment-list .comment-author .says { display: none; }
.comment-list .comment-content {
	font-family: var(--font-prose);
	font-size: 16.5px;
	line-height: 1.68;
	color: var(--body);
}
.comment-list .comment-content p + p { margin-top: 14px; }
.comment-list .reply {
	margin-top: 12px;
	font-family: var(--font-mono);
	font-size: 10.5px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}
.comments-closed, .comment-note {
	font-family: var(--font-prose);
	font-size: 14.5px;
	color: var(--muted);
	margin: 14px 0 0;
}
.comment-form { margin-top: 20px; }
.comment-form p { margin: 0 0 18px; }
.comment-form label {
	display: block;
	font-family: var(--font-mono);
	font-size: 10.5px;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: var(--ink);
	margin-bottom: 7px;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	box-sizing: border-box;
	font-family: var(--font-body);
	font-size: 15px;
	color: var(--ink);
	background: var(--paper-3);
	border: 1px solid var(--rule);
	padding: 12px 14px;
	transition: border-color 0.2s var(--ease);
}
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--accent); }
.comment-form textarea { min-height: 150px; resize: vertical; }
.comment-form .form-submit { margin-bottom: 0; }
.comment-form .comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 9px; }
.comment-form .comment-form-cookies-consent label { margin: 0; text-transform: none; letter-spacing: 0.02em; font-family: var(--font-prose); font-size: 13.5px; color: var(--muted); }
