/* ============================================================
   1000 Days — Main Theme Stylesheet
   Dark + cobalt + orange · Space Grotesk / Inter / JetBrains Mono
   ============================================================ */

:root {
	--bg: #0a0f1e;
	--bg-soft: #0f172a;
	--bg-card: #131c30;
	--bg-card-hover: #1a2540;
	--border: rgba(59, 130, 246, 0.18);
	--border-strong: rgba(59, 130, 246, 0.40);
	--text: #f1f5f9;
	--text-muted: #94a3b8;
	--text-dim: #64748b;
	--primary: #3b82f6;
	--primary-hover: #60a5fa;
	--primary-deep: #1d4ed8;
	--accent: #f97316;
	--accent-hover: #fb923c;
	--success: #10b981;
	--radius: 12px;
	--radius-sm: 6px;
	--radius-lg: 18px;
	--shadow-glow: 0 0 40px rgba(59, 130, 246, 0.22);
	--font-display: 'Space Grotesk', 'Inter', system-ui, -apple-system, sans-serif;
	--font-body: 'Inter', system-ui, -apple-system, sans-serif;
	--font-mono: 'JetBrains Mono', ui-monospace, monospace;
	--content-w: 860px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	line-height: 1.65;
	min-height: 100vh;
	overflow-x: hidden;
	background-image:
		radial-gradient(ellipse 80% 50% at 50% -10%, rgba(59,130,246,0.15), transparent),
		radial-gradient(ellipse 60% 40% at 90% 30%, rgba(249,115,22,0.06), transparent),
		radial-gradient(ellipse 60% 40% at 10% 60%, rgba(29,78,216,0.10), transparent);
	background-attachment: fixed;
	text-align: left;
}

a { color: var(--primary-hover); text-decoration: none; }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; height: auto; }

/* ─── HEADER ─── */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(10, 15, 30, 0.85);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border-bottom: 1px solid var(--border);
}
.header-inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 18px 32px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.logo {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none !important;
	color: var(--text) !important;
	font-family: var(--font-display);
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -0.02em;
}
.logo-mark {
	width: 32px;
	height: 32px;
	border-radius: 8px;
	background: linear-gradient(135deg, var(--primary), var(--accent));
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 600;
	box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}
.custom-logo-link img { max-height: 40px; width: auto; }

.nav { display: flex; gap: 28px; align-items: center; }
.nav-menu, .nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 28px;
}
.nav a, .nav-menu a {
	color: var(--text-muted);
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	transition: color 0.2s;
}
.nav a:hover, .nav-menu a:hover, .nav .current-menu-item a {
	color: var(--primary-hover);
}
@media (max-width: 720px) {
	.nav { display: none; }
}

/* ─── CONTENT WELL ─── */
.wrap {
	max-width: var(--content-w);
	margin: 0 auto;
	padding: 0 28px;
}
@media (max-width: 720px) {
	.wrap { padding: 0 18px; }
}

/* ─── BREADCRUMB ─── */
.breadcrumb {
	padding-top: 24px;
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--text-dim);
	text-align: left;
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--primary-hover); }
.breadcrumb span { margin: 0 10px; color: var(--border-strong); }

/* ─── HERO ─── */
.page-hero {
	padding: 36px 0 24px;
	text-align: left;
	position: relative;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 13px;
	background: rgba(59, 130, 246, 0.10);
	border: 1px solid var(--border-strong);
	border-radius: 999px;
	font-size: 11px;
	font-weight: 500;
	color: var(--primary-hover);
	letter-spacing: 0.06em;
	margin-bottom: 22px;
	font-family: var(--font-mono);
	text-transform: uppercase;
}
.eyebrow::before { content: "◆"; color: var(--accent); font-size: 9px; }

.page-title {
	font-family: var(--font-display);
	font-size: clamp(34px, 5.5vw, 60px);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -0.025em;
	color: var(--text);
	margin: 0 0 12px;
	text-align: left;
}
.page-title .accent {
	background: linear-gradient(135deg, var(--primary-hover), var(--accent));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}
.page-subtitle {
	font-size: 17px;
	color: var(--text-muted);
	line-height: 1.6;
	margin: 0 0 32px;
}

/* ─── ANSWER CARD ─── */
.answer-card {
	background: linear-gradient(135deg, rgba(59,130,246,0.16), rgba(249,115,22,0.08));
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-lg);
	padding: 36px 40px;
	box-shadow: var(--shadow-glow);
	position: relative;
	overflow: hidden;
	margin-bottom: 32px;
}
.answer-card::before {
	content: "";
	position: absolute;
	top: -60px;
	right: -60px;
	width: 220px;
	height: 220px;
	background: radial-gradient(circle, rgba(249,115,22,0.22), transparent 70%);
	pointer-events: none;
}
.answer-card::after {
	content: "";
	position: absolute;
	bottom: -80px;
	left: -80px;
	width: 220px;
	height: 220px;
	background: radial-gradient(circle, rgba(59,130,246,0.18), transparent 70%);
	pointer-events: none;
}
.answer-card > * { position: relative; }
.answer-label {
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	color: var(--primary-hover);
	margin-bottom: 12px;
}
.answer-date {
	font-family: var(--font-display);
	font-size: clamp(28px, 5vw, 48px);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--text);
	margin-bottom: 24px;
	background: linear-gradient(135deg, #f1f5f9, var(--primary-hover));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}
.answer-meta {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 22px;
	padding-top: 24px;
	border-top: 1px solid var(--border-strong);
}
.answer-meta-item { display: flex; flex-direction: column; gap: 5px; }
.answer-meta-label {
	font-family: var(--font-mono);
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--text-dim);
}
.answer-meta-value {
	font-family: var(--font-display);
	font-size: 17px;
	font-weight: 600;
	color: var(--text);
}

/* ─── FORMATS CARD ─── */
.formats-card {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 22px;
	margin-bottom: 32px;
}
.formats-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 14px;
	flex-wrap: wrap;
	gap: 12px;
}
.formats-head h3 {
	font-family: var(--font-display);
	font-size: 16px;
	font-weight: 600;
	color: var(--text);
	margin: 0;
}
.region-select {
	background: var(--bg-soft);
	border: 1px solid var(--border-strong);
	border-radius: 6px;
	padding: 7px 11px;
	color: var(--text);
	font-family: var(--font-mono);
	font-size: 12px;
	cursor: pointer;
}
.region-select:focus { outline: none; border-color: var(--primary); }
.formats-list { display: flex; flex-direction: column; gap: 8px; }
.format-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 14px;
	background: var(--bg-soft);
	border: 1px solid var(--border);
	border-radius: 8px;
	gap: 10px;
}
.format-label {
	font-family: var(--font-mono);
	font-size: 10px;
	color: var(--text-dim);
	text-transform: uppercase;
	letter-spacing: 0.12em;
	min-width: 70px;
}
.format-value {
	font-family: var(--font-mono);
	font-size: 14px;
	color: var(--text);
	flex: 1;
	word-break: break-all;
}
.copy-btn {
	background: transparent;
	border: 1px solid var(--border-strong);
	color: var(--primary-hover);
	font-family: var(--font-mono);
	font-size: 11px;
	padding: 5px 10px;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.15s;
	flex-shrink: 0;
}
.copy-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }
.copy-btn.copied { background: var(--success); color: white; border-color: var(--success); }

/* ─── INTERACTIVE CALCULATOR ─── */
.calc-card {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 24px;
	margin-bottom: 36px;
}
.calc-card h3 {
	font-family: var(--font-display);
	font-size: 17px;
	font-weight: 600;
	color: var(--text);
	margin: 0 0 6px;
}
.calc-card p {
	font-size: 14px;
	color: var(--text-muted);
	margin: 0 0 16px;
}
.calc-row {
	display: flex;
	gap: 12px;
	align-items: center;
	flex-wrap: wrap;
}
.calc-input {
	background: var(--bg-soft);
	border: 1px solid var(--border-strong);
	border-radius: 8px;
	padding: 12px 14px;
	color: var(--text);
	font-family: var(--font-display);
	font-size: 18px;
	font-weight: 600;
	width: 140px;
	transition: all 0.15s;
}
.calc-input:focus {
	outline: none;
	border-color: var(--primary);
	box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
.calc-label {
	font-family: var(--font-body);
	font-size: 14px;
	color: var(--text-muted);
}
.calc-button {
	background: linear-gradient(135deg, var(--primary), var(--accent));
	border: none;
	color: white;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 14px;
	padding: 12px 22px;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.15s;
}
.calc-button:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(59,130,246,0.3);
}
.calc-result {
	margin-top: 16px;
	padding: 14px 16px;
	background: var(--bg-soft);
	border-left: 3px solid var(--accent);
	border-radius: 0 8px 8px 0;
	font-family: var(--font-display);
	font-size: 16px;
	color: var(--text);
}
.calc-result strong { color: var(--accent-hover); }

/* ─── BODY SECTIONS ─── */
.body-section {
	padding: 24px 0;
	text-align: left;
}
.body-section h2 {
	font-family: var(--font-display);
	font-size: clamp(22px, 3.2vw, 30px);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.015em;
	color: var(--text);
	margin: 28px 0 12px;
	text-align: left;
}
.body-section h2:first-child { margin-top: 0; }
.body-section h2 .accent {
	background: linear-gradient(135deg, var(--primary-hover), var(--accent));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}
.body-section h3 {
	font-family: var(--font-display);
	font-size: 19px;
	font-weight: 600;
	color: var(--text);
	margin: 24px 0 10px;
	text-align: left;
}
.body-section p {
	color: var(--text-muted);
	font-size: 16px;
	line-height: 1.75;
	margin: 0 0 14px;
	text-align: left;
}
.body-section p strong { color: var(--text); font-weight: 600; }
.body-section em { color: var(--primary-hover); font-style: italic; }
.body-section a { color: var(--primary-hover); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.body-section a:hover { color: var(--accent-hover); }

.lead-para {
	font-size: 18px;
	color: var(--text);
	line-height: 1.65;
	margin: 0 0 20px;
}
.body-section .section-eyebrow {
	display: inline-block;
	font-family: var(--font-mono);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	color: var(--primary-hover);
	margin-bottom: 6px;
}

/* ─── MATH BLOCK ─── */
.math-block {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 22px 26px;
	margin: 18px 0;
	font-family: var(--font-mono);
	font-size: 14.5px;
	color: var(--text);
	line-height: 1.85;
}
.math-block .calc-line { color: var(--text-muted); display: block; }
.math-block .calc-line .num { color: var(--accent-hover); font-weight: 500; }
.math-block .calc-line .equals { color: var(--primary-hover); margin: 0 8px; }
.math-block .calc-line .result { color: var(--text); font-weight: 600; }
.math-block .calc-final {
	display: block;
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid var(--border);
	color: var(--accent-hover);
	font-weight: 600;
	font-size: 16px;
}

/* ─── CONTEXT / HISTORY BLOCK ─── */
.context-block {
	background: var(--bg-card);
	border-left: 3px solid var(--accent);
	border-radius: 0 var(--radius) var(--radius) 0;
	padding: 20px 24px;
	margin: 20px 0;
}
.context-block h4 {
	font-family: var(--font-display);
	font-size: 16px;
	font-weight: 600;
	color: var(--text);
	margin: 0 0 6px;
}
.context-block .ctx-date {
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--accent-hover);
	text-transform: uppercase;
	letter-spacing: 0.12em;
	margin-bottom: 8px;
}
.context-block p {
	font-size: 14.5px;
	line-height: 1.7;
	color: var(--text-muted);
	margin: 0;
}

/* ─── COMMON TABLE ─── */
.common-table {
	width: 100%;
	border-collapse: collapse;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	margin-top: 14px;
	font-size: 14px;
}
.common-table th {
	background: var(--bg-soft);
	color: var(--primary-hover);
	font-family: var(--font-mono);
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-weight: 500;
	padding: 12px 16px;
	text-align: left;
	border-bottom: 1px solid var(--border-strong);
}
.common-table td {
	padding: 11px 16px;
	border-bottom: 1px solid var(--border);
	color: var(--text-muted);
}
.common-table tr:last-child td { border-bottom: none; }
.common-table tr:hover td { background: rgba(59,130,246,0.05); }
.common-table td:first-child {
	font-family: var(--font-mono);
	color: var(--text-dim);
	width: 130px;
}
.common-table td:nth-child(2) { color: var(--text); }
.common-table td a { color: var(--primary-hover); text-decoration: none; }
.common-table td a:hover { color: var(--accent-hover); }
.common-table tr.row-highlight td { background: rgba(59,130,246,0.08); }
.common-table tr.row-highlight td:first-child {
	color: var(--primary-hover);
	font-weight: 600;
}

/* ─── USE CASES ─── */
.use-cases { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.use-case {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-left: 3px solid var(--primary);
	border-radius: var(--radius);
	padding: 18px 22px;
	transition: all 0.25s;
}
.use-case:hover {
	background: var(--bg-card-hover);
	border-left-color: var(--accent);
	transform: translateX(2px);
}
.use-case h4 {
	font-family: var(--font-display);
	font-size: 16px;
	font-weight: 600;
	color: var(--text);
	margin: 0 0 6px;
}
.use-case p {
	font-size: 14.5px;
	color: var(--text-muted);
	line-height: 1.6;
	margin: 0;
}

/* ─── FACTS LIST ─── */
.facts-list { list-style: none; padding: 0; margin: 14px 0; }
.facts-list li {
	padding: 12px 0;
	border-bottom: 1px solid var(--border);
	color: var(--text-muted);
	font-size: 15.5px;
	line-height: 1.65;
	display: flex;
	gap: 12px;
	align-items: start;
}
.facts-list li::before {
	content: "◆";
	color: var(--accent);
	flex-shrink: 0;
	margin-top: 3px;
	font-size: 10px;
}
.facts-list li:last-child { border-bottom: none; }

/* ─── FAQ ─── */
.faq { border-top: 1px solid var(--border); margin-top: 18px; }
.faq-item { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq-question {
	font-family: var(--font-display);
	font-size: 17px;
	font-weight: 600;
	color: var(--text);
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	list-style: none;
	transition: color 0.2s;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question:hover { color: var(--primary-hover); }
.faq-question::after {
	content: "+";
	font-size: 22px;
	color: var(--accent);
	font-weight: 400;
	transition: transform 0.25s;
	flex-shrink: 0;
}
details[open] .faq-question::after { content: "−"; }
.faq-answer {
	margin-top: 12px;
	color: var(--text-muted);
	font-size: 15px;
	line-height: 1.7;
}

/* ─── AUTHOR CARD ─── */
.author-card {
	margin-top: 36px;
	padding: 22px;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	display: flex;
	gap: 18px;
	align-items: start;
	position: relative;
	overflow: hidden;
}
.author-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(90deg, var(--primary), var(--accent));
}
.author-avatar {
	width: 52px;
	height: 52px;
	border-radius: 10px;
	background: linear-gradient(135deg, var(--primary), var(--accent));
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 20px;
	flex-shrink: 0;
	box-shadow: 0 4px 14px rgba(59,130,246,0.35);
}
.author-info h4 {
	font-family: var(--font-display);
	font-size: 15px;
	font-weight: 600;
	color: var(--text);
	margin: 0 0 4px;
}
.author-role {
	font-family: var(--font-mono);
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--primary-hover);
	margin-bottom: 8px;
}
.author-bio {
	font-size: 13.5px;
	color: var(--text-muted);
	line-height: 1.6;
	margin: 0;
}
.author-bio a {
	color: var(--primary-hover);
	text-decoration: none;
	border-bottom: 1px solid var(--border-strong);
}

/* ─── RELATED LINKS ─── */
.related-section {
	background: var(--bg-soft);
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
	padding: 44px 0;
	margin-top: 44px;
}
.related-section h2 {
	font-family: var(--font-display);
	font-size: clamp(22px, 3vw, 28px);
	font-weight: 700;
	letter-spacing: -0.015em;
	color: var(--text);
	margin: 0 0 16px;
}
.related-section h2 .accent {
	background: linear-gradient(135deg, var(--primary-hover), var(--accent));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}
.related-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 10px;
	margin-top: 16px;
}
.related-link {
	display: block;
	padding: 14px 16px;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	text-decoration: none;
	color: var(--text);
	transition: all 0.25s;
	position: relative;
}
.related-link::after {
	content: "→";
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--accent);
	opacity: 0;
	transition: all 0.25s;
}
.related-link:hover {
	background: var(--bg-card-hover);
	border-color: var(--border-strong);
	transform: translateY(-1px);
}
.related-link:hover::after { opacity: 1; right: 11px; }
.related-link strong {
	display: block;
	font-family: var(--font-display);
	font-weight: 600;
	color: var(--text);
	margin-bottom: 3px;
	font-size: 14px;
}
.related-link span {
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--text-dim);
}

/* ─── FOOTER ─── */
.footer {
	background: var(--bg-soft);
	border-top: 1px solid var(--border);
	padding: 44px 0 24px;
	margin-top: 44px;
	position: relative;
	overflow: hidden;
}
.footer::before {
	content: "";
	position: absolute;
	top: -100px;
	left: 50%;
	transform: translateX(-50%);
	width: 800px;
	height: 200px;
	background: radial-gradient(ellipse, rgba(59,130,246,0.10), transparent 60%);
	pointer-events: none;
}
.footer-inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 32px;
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: 36px;
	position: relative;
}
@media (max-width: 720px) { .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; } }

.footer-brand {
	font-family: var(--font-display);
	font-size: 20px;
	font-weight: 700;
	color: var(--text);
	margin-bottom: 8px;
}
.footer-tagline {
	font-size: 14px;
	color: var(--text-muted);
	font-style: italic;
}
.footer h5, .footer-widget-title {
	font-family: var(--font-mono);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	color: var(--primary-hover);
	margin: 0 0 14px;
	font-weight: 500;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 7px; }
.footer a {
	color: var(--text-muted);
	text-decoration: none;
	font-size: 14px;
	transition: color 0.2s;
}
.footer a:hover { color: var(--primary-hover); }
.footer-bottom {
	max-width: 1280px;
	margin: 36px auto 0;
	padding: 22px 32px 0;
	border-top: 1px solid var(--border);
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--text-dim);
	position: relative;
}

/* ─── WORDPRESS COMPATIBILITY ─── */
.alignleft  { float: left;  margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin: 0 auto 1em; }
.alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px; width: 1px;
	overflow: hidden;
	word-wrap: normal !important;
}
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; color: var(--text-dim); margin-top: 6px; }

.entry-content blockquote {
	border-left: 3px solid var(--accent);
	padding: 12px 20px;
	margin: 20px 0;
	background: var(--bg-card);
	font-family: var(--font-display);
	font-size: 17px;
	color: var(--text);
}
.entry-content code, .entry-content pre {
	font-family: var(--font-mono);
	background: var(--bg-soft);
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 14px;
}
.entry-content pre {
	padding: 14px 18px;
	overflow-x: auto;
	border: 1px solid var(--border);
}

/* Pagination */
.pagination, .nav-links {
	display: flex;
	gap: 8px;
	margin: 32px 0;
	flex-wrap: wrap;
}
.pagination a, .pagination span,
.nav-links a, .nav-links span {
	padding: 8px 14px;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 8px;
	font-family: var(--font-mono);
	font-size: 13px;
	color: var(--text-muted);
	text-decoration: none;
	transition: all 0.2s;
}
.pagination a:hover, .nav-links a:hover {
	border-color: var(--primary);
	color: var(--text);
}
.pagination .current, .nav-links .current {
	background: var(--primary);
	color: white;
	border-color: var(--primary);
}

/* ============================================================
   ARTICLE STYLES — used by front-page.php (homepage AEO article)
   ============================================================ */

.article-wrap { max-width: 760px; }

.article-header { padding: 36px 0 24px; }

.article-meta-top {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--text-dim);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin-bottom: 18px;
}
.article-meta-top span.tag {
	color: var(--primary-hover);
	padding: 4px 10px;
	background: rgba(59, 130, 246, 0.10);
	border: 1px solid var(--border-strong);
	border-radius: 999px;
}
.article-meta-top time { color: var(--text-muted); }

h1.article-title {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(32px, 5vw, 52px);
	line-height: 1.05;
	letter-spacing: -0.025em;
	color: var(--text);
	margin: 0 0 16px;
}
h1.article-title .accent {
	background: linear-gradient(135deg, var(--primary-hover), var(--accent));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.article-deck {
	font-size: 19px;
	color: var(--text-muted);
	line-height: 1.55;
	margin: 0 0 24px;
}

/* Direct answer — AEO showpiece */
.direct-answer {
	background: linear-gradient(135deg, rgba(59,130,246,0.14), rgba(249,115,22,0.07));
	border: 1px solid var(--border-strong);
	border-left: 4px solid var(--accent);
	border-radius: var(--radius-lg);
	padding: 26px 30px;
	margin-bottom: 32px;
}
.direct-answer-label {
	font-family: var(--font-mono);
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	color: var(--accent-hover);
	margin-bottom: 10px;
	font-weight: 500;
}
.direct-answer p {
	font-family: var(--font-display);
	font-size: 19px;
	font-weight: 500;
	line-height: 1.55;
	color: var(--text);
	margin: 0;
}
.direct-answer p strong { color: var(--accent-hover); font-weight: 600; }

/* TL;DR / Key takeaways */
.tldr {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 22px 26px;
	margin-bottom: 32px;
}
.tldr h2 {
	font-family: var(--font-display);
	font-size: 14px !important;
	font-weight: 600;
	color: var(--primary-hover);
	margin: 0 0 12px !important;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	line-height: 1.3;
}
.tldr ul { list-style: none; padding: 0; margin: 0; }
.tldr li {
	padding: 6px 0;
	padding-left: 22px;
	position: relative;
	font-size: 15.5px;
	color: var(--text-muted);
	line-height: 1.6;
}
.tldr li::before {
	content: "◆";
	position: absolute;
	left: 0;
	top: 6px;
	color: var(--accent);
	font-size: 10px;
}
.tldr li strong { color: var(--text); font-weight: 600; }

/* Article body */
.article-body { padding: 8px 0; }
.article-body h2 {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(24px, 3.4vw, 32px);
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: var(--text);
	margin: 36px 0 14px;
}
.article-body h2:first-child { margin-top: 0; }
.article-body h2 .accent {
	background: linear-gradient(135deg, var(--primary-hover), var(--accent));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}
.article-body h3 {
	font-family: var(--font-display);
	font-size: 20px;
	font-weight: 600;
	color: var(--text);
	margin: 26px 0 10px;
}
.article-body p {
	color: var(--text-muted);
	font-size: 16.5px;
	line-height: 1.75;
	margin: 0 0 16px;
}
.article-body p strong { color: var(--text); font-weight: 600; }
.article-body em { color: var(--primary-hover); font-style: italic; }
.article-body a {
	color: var(--primary-hover);
	text-decoration: underline;
	text-decoration-color: var(--border-strong);
	text-underline-offset: 3px;
}
.article-body a:hover { color: var(--accent-hover); }

/* Definition block */
.definition {
	background: var(--bg-card);
	border-left: 3px solid var(--primary);
	border-radius: 0 var(--radius) var(--radius) 0;
	padding: 14px 20px;
	margin: 16px 0;
	font-size: 15.5px;
	color: var(--text-muted);
}
.definition strong { color: var(--text); }
.definition .term-label {
	font-family: var(--font-mono);
	font-size: 10px;
	color: var(--primary-hover);
	text-transform: uppercase;
	letter-spacing: 0.12em;
	display: block;
	margin-bottom: 4px;
}

/* Conversion table */
.conv-table {
	width: 100%;
	border-collapse: collapse;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	margin: 18px 0;
	font-size: 14.5px;
}
.conv-table caption {
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--text-dim);
	text-transform: uppercase;
	letter-spacing: 0.12em;
	padding: 10px 16px 6px;
	text-align: left;
}
.conv-table th {
	background: var(--bg-soft);
	color: var(--primary-hover);
	font-family: var(--font-mono);
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-weight: 500;
	padding: 11px 16px;
	text-align: left;
	border-bottom: 1px solid var(--border-strong);
}
.conv-table td {
	padding: 10px 16px;
	border-bottom: 1px solid var(--border);
	color: var(--text-muted);
}
.conv-table tr:last-child td { border-bottom: none; }
.conv-table td:first-child {
	font-family: var(--font-mono);
	color: var(--text);
	font-weight: 500;
	width: 38%;
}
.conv-table td:nth-child(2) {
	color: var(--text);
	font-family: var(--font-display);
	font-weight: 600;
}

/* Article-style FAQ (slightly different from calculator FAQ) */
.article-body .faq {
	margin: 28px 0;
	border-top: 1px solid var(--border);
}
.article-body .faq-item {
	border-bottom: 1px solid var(--border);
	padding: 16px 0;
}
.article-body .faq-q {
	font-family: var(--font-display);
	font-size: 17px;
	font-weight: 600;
	color: var(--text);
	cursor: pointer;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 14px;
}
.article-body .faq-q::-webkit-details-marker { display: none; }
.article-body .faq-q::after {
	content: "+";
	color: var(--accent);
	font-size: 22px;
	flex-shrink: 0;
}
.article-body details[open] .faq-q::after { content: "−"; }
.article-body .faq-a {
	margin-top: 10px;
	color: var(--text-muted);
	font-size: 15px;
	line-height: 1.7;
}

/* Sources block */
.sources {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 22px 26px;
	margin: 28px 0;
}
.sources h2 {
	font-family: var(--font-display);
	font-size: 14px !important;
	font-weight: 600;
	color: var(--primary-hover);
	margin: 0 0 12px !important;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	line-height: 1.3;
}
.sources ol {
	padding-left: 22px;
	margin: 0;
}
.sources li {
	font-size: 14px;
	color: var(--text-muted);
	line-height: 1.65;
	margin-bottom: 10px;
}
.sources li a {
	color: var(--primary-hover);
	text-decoration: none;
	border-bottom: 1px solid var(--border-strong);
	word-break: break-all;
}
.sources li a:hover { color: var(--accent-hover); }
.sources li strong { color: var(--text); font-weight: 600; }
