/* ============================================================
   LEOGRAPHER 1.0
   Leographer design system · light default, dark optional
   Fonts: iCielSignatrust (logo) · Crimson Pro (display) · Inter (UI/body)
   ============================================================ */

@font-face {
	font-family: "iCielSignatrust";
	src: url("../fonts/iCielSignatrust-Regular.otf") format("opentype");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Inter";
	src: url("../fonts/Inter-Vietnamese.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
	font-family: "Inter";
	src: url("../fonts/Inter-Latin.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Crimson Pro";
	src: url("../fonts/CrimsonPro-Vietnamese.woff2") format("woff2");
	font-weight: 400 600;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
	font-family: "Crimson Pro";
	src: url("../fonts/CrimsonPro-Latin.woff2") format("woff2");
	font-weight: 400 600;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Crimson Pro";
	src: url("../fonts/CrimsonPro-Italic-Vietnamese.woff2") format("woff2");
	font-weight: 400 600;
	font-style: italic;
	font-display: swap;
	unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
	font-family: "Crimson Pro";
	src: url("../fonts/CrimsonPro-Italic-Latin.woff2") format("woff2");
	font-weight: 400 600;
	font-style: italic;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
	--font-logo: "iCielSignatrust", "Segoe Script", cursive;
	--font-display: "Crimson Pro", Georgia, "Times New Roman", serif;
	--font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	--logo-tracking: 0.08em;

	--text-display: clamp(56px, 7.4vw, 96px);
	--text-h1: clamp(42px, 5vw, 64px);
	--text-h2: clamp(32px, 3.6vw, 48px);
	--text-h3: clamp(26px, 2.5vw, 36px);
	--text-h4: clamp(20px, 1.7vw, 24px);
	--text-h5: 18px;
	--text-h6: 16px;
	--text-body: 16px;
	--text-lg: 18px;
	--text-sm: 14px;
	--text-xs: 12px;
	--text-overline: 11px;

	--white: #ffffff;
	--black: #0c0a09;
	--stone-50: #fafaf9;
	--stone-100: #f5f5f4;
	--stone-200: #e7e5e4;
	--stone-300: #d6d3d1;
	--stone-400: #a8a29e;
	--stone-500: #78716c;
	--stone-600: #57534e;
	--stone-700: #44403c;
	--stone-800: #292524;
	--stone-900: #1c1917;
	--stone-950: #0c0a09;

	--red-50: #fff1f3;
	--red-100: #ffe0e5;
	--red-200: #ffc2cb;
	--red-300: #ff8a9b;
	--red-400: #ff5c70;
	--red-500: #d80629;
	--red-600: #b80523;
	--red-700: #95041c;
	--red-800: #6e0315;
	--red-900: #4a020e;
	--red-950: #2b0107;

	--bg: var(--white);
	--bg-subtle: var(--stone-50);
	--fg: var(--stone-950);
	--fg-muted: var(--stone-600);
	--fg-subtle: var(--stone-500);
	--surface: var(--white);
	--surface-2: var(--stone-100);
	--surface-3: var(--stone-200);
	--border: var(--stone-200);
	--border-strong: var(--stone-300);
	--primary: var(--stone-950);
	--primary-hover: var(--stone-800);
	--primary-fg: var(--stone-50);
	--secondary: var(--stone-100);
	--secondary-hover: var(--stone-200);
	--secondary-fg: var(--stone-900);
	--brand: var(--red-500);
	--brand-hover: var(--red-600);
	--brand-fg: var(--white);
	--brand-text: var(--red-600);
	--brand-soft: var(--red-50);
	--brand-soft-fg: var(--red-700);
	--ring: var(--red-500);
	--ring-soft: rgba(216, 6, 41, 0.15);
	--destructive: #b42318;
	--destructive-soft: #fef3f2;
	--success: #067647;
	--success-soft: #ecfdf3;
	--warning: #b54708;
	--warning-soft: #fffaeb;
	--selection: var(--red-100);

	--radius-sm: 4px;
	--radius-md: 8px;
	--radius-lg: 12px;
	--radius-xl: 20px;
	--radius-full: 999px;
	--shadow-xs: 0 1px 2px rgba(12, 10, 9, 0.04);
	--shadow-sm: 0 4px 12px rgba(12, 10, 9, 0.05);
	--shadow-md: 0 16px 40px rgba(12, 10, 9, 0.08);

	--container: 1240px;
	--reading: 680px;
	--gutter: 24px;
	--section-y: 96px;
	--section-y-lg: 128px;
	--header-h: 72px;
	--admin-bar: 0px;

	--ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	--fast: 150ms;
	--base: 220ms;
	--slow: 600ms;
}

html[data-theme="dark"] {
	--bg: var(--stone-950);
	--bg-subtle: #141210;
	--fg: var(--stone-50);
	--fg-muted: var(--stone-400);
	--fg-subtle: var(--stone-500);
	--surface: var(--stone-900);
	--surface-2: var(--stone-800);
	--surface-3: #332f2c;
	--border: var(--stone-800);
	--border-strong: var(--stone-700);
	--primary: var(--stone-50);
	--primary-hover: var(--stone-200);
	--primary-fg: var(--stone-950);
	--secondary: var(--stone-900);
	--secondary-hover: var(--stone-800);
	--secondary-fg: var(--stone-50);
	--brand: var(--red-500);
	--brand-hover: var(--red-600);
	--brand-fg: var(--white);
	--brand-text: var(--red-400);
	--brand-soft: var(--red-950);
	--brand-soft-fg: var(--red-200);
	--ring: var(--red-400);
	--ring-soft: rgba(255, 92, 112, 0.18);
	--destructive: #f97066;
	--destructive-soft: #2b0107;
	--success: #75e0a7;
	--success-soft: #052e1c;
	--warning: #fdb022;
	--warning-soft: #2b1a02;
	--selection: var(--red-900);
	--shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.24);
	--shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.28);
	--shadow-md: 0 20px 48px rgba(0, 0, 0, 0.36);
}

body.admin-bar {
	--admin-bar: 32px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	color-scheme: light;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + var(--admin-bar) + 24px);
}

html[data-theme="dark"] {
	color-scheme: dark;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--fg);
	font-family: var(--font-sans);
	font-size: var(--text-body);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
	transition: background-color var(--base) var(--ease), color var(--base) var(--ease);
}

/* Khoá cuộn khi menu mobile mở: JS đặt --leographer-scroll-gutter bằng đúng
 * chiều rộng scrollbar để padding-right bù lại — nội dung không đổi độ rộng,
 * trang không bị dịch vị trí khi scrollbar ẩn rồi hiện lại. */
body.leographer-nav-open {
	overflow: hidden;
	padding-right: var(--leographer-scroll-gutter, 0px);
}

::selection {
	background: var(--selection);
	color: var(--fg);
}

h1,
h2,
h3,
h4,
h5,
h6,
.display,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
	font-family: var(--font-display);
	font-weight: 500;
	letter-spacing: -0.02em;
	color: var(--fg);
	margin: 0;
	text-wrap: balance;
}

.display {
	font-size: var(--text-display);
	line-height: 0.95;
	letter-spacing: -0.035em;
	font-weight: 400;
}

.h1 { font-size: var(--text-h1); line-height: 1.04; }
.h2 { font-size: var(--text-h2); line-height: 1.1; }
.h3 { font-size: var(--text-h3); line-height: 1.15; }
.h4 { font-size: var(--text-h4); line-height: 1.25; }
.h5 { font-size: var(--text-h5); line-height: 1.35; font-weight: 600; }
.h6 { font-size: var(--text-h6); line-height: 1.45; font-weight: 600; }

.display em,
.h1 em,
.h2 em,
.h3 em {
	font-style: italic;
	color: var(--brand-text);
}

p {
	margin: 0 0 1em;
	text-wrap: pretty;
}

a {
	color: var(--brand-text);
	text-decoration: none;
}

/* Underline on hover belongs to editorial content, not to every anchor on the
 * page: chat widgets, plugin panels and maps links ship their own UI and must
 * not inherit a text underline. */
.site-main a:hover,
.comment-content a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

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

figure {
	margin: 0;
}

button,
input,
select,
textarea {
	font: inherit;
}

button {
	cursor: pointer;
}

:focus-visible {
	outline: 2px solid var(--ring);
	outline-offset: 3px;
}

hr {
	border: 0;
	border-top: 1px solid var(--border);
	margin: 32px 0;
}

.eyebrow {
	font-family: var(--font-sans);
	font-size: var(--text-overline);
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--brand-text);
	margin: 0 0 12px;
}

.lead {
	font-size: var(--text-lg);
	line-height: 1.65;
	color: var(--fg-muted);
	max-width: var(--reading);
}

.small {
	font-size: var(--text-sm);
	line-height: 1.55;
	color: var(--fg-muted);
}

.caption {
	font-size: var(--text-xs);
	line-height: 1.5;
	color: var(--fg-subtle);
}

.icon {
	display: inline-block;
	vertical-align: middle;
	flex: 0 0 auto;
}

.icon--sm {
	width: 14px;
	height: 14px;
}

.icon--lg {
	width: 24px;
	height: 24px;
}

.icon--xl {
	width: 32px;
	height: 32px;
}

.icon--2xl {
	width: 40px;
	height: 40px;
}

.icon--brand {
	color: var(--brand-text);
}

.icon--muted {
	color: var(--fg-muted);
}

.icon--hairline {
	stroke-width: 1.4;
}

/* MOTION */

.lottie {
	display: inline-grid;
	place-items: center;
	width: var(--lottie-size, 120px);
	height: var(--lottie-size, 120px);
}

.lottie > svg {
	display: block;
	width: 100%;
	height: 100%;
}

.lottie__fallback {
	display: grid;
	place-items: center;
	color: var(--fg-muted);
}

.lottie.is-active .lottie__fallback {
	display: none;
}

.lottie--fill {
	width: 100%;
	height: 100%;
}

.lottie__fallback .icon {
	width: 42%;
	height: 42%;
}

html[data-theme="dark"] .lottie.is-active > svg {
	filter: invert(1);
}

.avatar {
	border-radius: 50%;
	object-fit: cover;
	display: inline-block;
	vertical-align: middle;
	flex: 0 0 auto;
}

.avatar--initials {
	display: inline-grid;
	place-items: center;
	font-family: var(--font-sans);
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.02em;
	border-radius: 50%;
}

.avatar--xs {
	width: 20px;
	height: 20px;
	font-size: 8px;
}

/* ---------- Layout ---------- */
.container {
	width: min(var(--container), calc(100% - 48px));
	margin-inline: auto;
}

.container--narrow {
	width: min(860px, calc(100% - 48px));
	margin-inline: auto;
}

.texture {
	background-image: radial-gradient(circle at 20% 20%, rgba(12, 10, 9, 0.035) 0 1px, transparent 1px);
	background-size: 7px 7px;
}

html[data-theme="dark"] .texture {
	background-image: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px);
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background: var(--surface);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-sm);
	clip: auto !important;
	clip-path: none;
	color: var(--fg);
	display: block;
	font-size: 14px;
	font-weight: 600;
	height: auto;
	left: 12px;
	line-height: 1.5;
	padding: 12px 16px;
	text-decoration: none;
	top: 12px;
	width: auto;
	z-index: 100000;
}

.skip-link {
	position: fixed;
	left: 16px;
	top: -100px;
	z-index: 100001;
	background: var(--primary);
	color: var(--primary-fg);
	padding: 12px 18px;
	border-radius: var(--radius-md);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	transition: top var(--fast) var(--ease);
}

.skip-link:focus {
	top: 16px;
	text-decoration: none;
}

/* ---------- Buttons ---------- */
.btn {
	--btn-bg: transparent;
	--btn-fg: var(--fg);
	--btn-border: transparent;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 20px;
	border: 1px solid var(--btn-border);
	border-radius: var(--radius-md);
	background: var(--btn-bg);
	color: var(--btn-fg);
	font-family: var(--font-sans);
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease), color var(--fast) var(--ease), transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}

.btn:hover {
	text-decoration: none;
	transform: translateY(-1px);
}

.btn:active {
	transform: translateY(0);
}

.btn:disabled,
.btn[aria-disabled="true"] {
	opacity: 0.45;
	pointer-events: none;
}

.btn-primary {
	--btn-bg: var(--primary);
	--btn-fg: var(--primary-fg);
	--btn-border: var(--primary);
}

.btn-primary:hover {
	--btn-bg: var(--primary-hover);
	--btn-border: var(--primary-hover);
}

.btn-brand {
	--btn-bg: var(--brand);
	--btn-fg: var(--brand-fg);
	--btn-border: var(--brand);
}

.btn-brand:hover {
	--btn-bg: var(--brand-hover);
	--btn-border: var(--brand-hover);
}

.btn-outline {
	--btn-bg: transparent;
	--btn-fg: var(--fg);
	--btn-border: var(--border-strong);
}

.btn-outline:hover {
	--btn-bg: var(--surface-2);
	--btn-border: var(--fg);
}

.btn-secondary {
	--btn-bg: var(--secondary);
	--btn-fg: var(--secondary-fg);
	--btn-border: var(--secondary);
}

.btn-secondary:hover {
	--btn-bg: var(--secondary-hover);
}

.btn-ghost {
	--btn-bg: transparent;
	--btn-fg: var(--fg-muted);
	--btn-border: transparent;
}

.btn-ghost:hover {
	--btn-bg: var(--surface-2);
	--btn-fg: var(--fg);
}

.btn-link {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--brand-text);
	font-family: var(--font-sans);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}

.btn-link:hover {
	text-decoration: underline;
	text-underline-offset: 4px;
	transform: none;
}

.btn-link .icon {
	width: 15px;
	height: 15px;
	transition: transform var(--fast) var(--ease);
}

.btn-link:hover .icon {
	transform: translateX(3px);
}

.btn-sm {
	min-height: 36px;
	padding: 0 14px;
	font-size: 13px;
	border-radius: var(--radius-sm);
}

.btn-lg {
	min-height: 52px;
	padding: 0 26px;
	font-size: 15px;
	border-radius: var(--radius-md);
}

.btn-block {
	width: 100%;
}

.icon-button {
	width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 1px solid var(--border);
	border-radius: var(--radius-full);
	background: var(--surface);
	color: var(--fg);
	transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease), color var(--fast) var(--ease);
}

.icon-button:hover {
	background: var(--surface-2);
	border-color: var(--border-strong);
	color: var(--fg);
}

/* ---------- Badges + forms ---------- */
.badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 24px;
	padding: 3px 9px;
	border: 1px solid var(--border);
	border-radius: var(--radius-full);
	background: var(--surface);
	color: var(--fg-muted);
	font-family: var(--font-sans);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	white-space: nowrap;
	text-decoration: none;
}

.badge:hover {
	text-decoration: none;
}

.badge-brand {
	background: var(--brand-soft);
	border-color: color-mix(in srgb, var(--brand) 24%, var(--border));
	color: var(--brand-soft-fg);
}

.badge-solid {
	background: var(--brand);
	border-color: var(--brand);
	color: var(--brand-fg);
}

.badge-dark {
	background: var(--fg);
	border-color: var(--fg);
	color: var(--bg);
}

.field {
	display: grid;
	gap: 7px;
}

.label {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--fg);
}

.input,
.select,
.textarea {
	width: 100%;
	min-height: 44px;
	padding: 10px 13px;
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-md);
	background: var(--surface);
	color: var(--fg);
	font-family: var(--font-sans);
	font-size: 14px;
	line-height: 1.5;
	transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease), background-color var(--fast) var(--ease);
}

.input::placeholder,
.textarea::placeholder {
	color: var(--fg-subtle);
}

.input:hover,
.select:hover,
.textarea:hover {
	border-color: var(--fg-subtle);
}

.input:focus,
.select:focus,
.textarea:focus {
	outline: none;
	border-color: var(--ring);
	box-shadow: 0 0 0 3px var(--ring-soft);
}

.textarea {
	min-height: 124px;
	resize: vertical;
}

/* ---------- Header ---------- */
.site-header {
	position: relative;
	z-index: 50;
	background: var(--bg);
	background: color-mix(in srgb, var(--bg) 88%, transparent);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border-bottom: 1px solid var(--border);
	transition: box-shadow var(--base) var(--ease), background-color var(--base) var(--ease);
}

.site-header.is-sticky {
	position: sticky;
	top: var(--admin-bar);
}

.site-header.is-scrolled {
	box-shadow: var(--shadow-xs);
}

.site-header__inner {
	min-height: var(--header-h);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.site-branding {
	display: flex;
	align-items: center;
	min-width: 0;
}

.site-branding__link {
	color: var(--fg);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
}

.site-branding__link:hover {
	text-decoration: none;
	color: var(--fg);
}

.custom-logo-link {
	display: inline-flex;
	align-items: center;
}

.custom-logo {
	max-height: 42px;
	width: auto;
}

.wordmark {
	display: inline-block;
	color: var(--fg);
	white-space: nowrap;
}

.wordmark--signature {
	font-family: var(--font-logo);
	font-size: 34px;
	font-weight: 400;
	line-height: 1;
	letter-spacing: var(--logo-tracking);
}

.wordmark--text {
	font-family: var(--font-display);
	font-size: 30px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.03em;
}

.primary-nav {
	display: flex;
	align-items: center;
}

.primary-nav .menu {
	display: flex;
	align-items: center;
	gap: 26px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.primary-nav .menu-item {
	position: relative;
}

.primary-nav .menu-item > a {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 10px 0;
	color: var(--fg-muted);
	font-family: var(--font-sans);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.01em;
	text-decoration: none;
	transition: color var(--fast) var(--ease);
}

.primary-nav .menu-item > a:hover,
.primary-nav .menu-item.current-menu-item > a,
.primary-nav .menu-item.current-menu-ancestor > a {
	color: var(--fg);
	text-decoration: none;
}

.primary-nav .menu-item-has-children > a::after {
	content: "";
	width: 5px;
	height: 5px;
	margin-left: 4px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg) translateY(-1px);
}

.primary-nav .sub-menu {
	position: absolute;
	top: calc(100% - 2px);
	left: -16px;
	width: max-content;
	min-width: 220px;
	margin: 0;
	padding: 8px;
	list-style: none;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-sm);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity var(--fast) var(--ease), transform var(--fast) var(--ease), visibility var(--fast);
	z-index: 20;
}

.primary-nav .menu-item:hover > .sub-menu,
.primary-nav .menu-item:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.primary-nav .sub-menu a {
	display: block;
	padding: 9px 12px;
	border-radius: var(--radius-sm);
	color: var(--fg-muted);
	font-size: 13px;
	line-height: 1.4;
	text-decoration: none;
	white-space: nowrap;
}

.primary-nav .sub-menu a:hover,
.primary-nav .sub-menu .current-menu-item > a {
	background: var(--surface-2);
	color: var(--fg);
}

/* Current page inside a dropdown: weight does the work, no rule. A 1px line
 * inside a rounded, tinted row read like a leftover underline. */
.primary-nav .sub-menu .current-menu-item > a {
	font-weight: 600;
}

.primary-nav .sub-menu .sub-menu {
	top: -8px;
	left: 100%;
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 6px;
	flex: 0 0 auto;
}

.header-actions .btn {
	margin-left: 6px;
}

.header-search-toggle,
.menu-toggle {
	display: inline-flex;
}

.menu-toggle {
	display: none;
}

.theme-toggle__moon {
	display: none;
}

html[data-theme="dark"] .theme-toggle__sun {
	display: none;
}

html[data-theme="dark"] .theme-toggle__moon {
	display: inline-flex;
}

/* Language switcher */
.language-switcher {
	display: inline-flex;
	align-items: center;
	margin-right: 2px;
}

.language-switcher ul {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	list-style: none;
	margin: 0;
	padding: 3px;
	border: 1px solid var(--border);
	border-radius: var(--radius-full);
	background: var(--surface);
}

.language-switcher__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 30px;
	min-height: 26px;
	padding: 0 7px;
	border-radius: var(--radius-full);
	color: var(--fg-subtle);
	font-family: var(--font-sans);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-decoration: none;
}

.language-switcher__link:hover {
	color: var(--fg);
	text-decoration: none;
}

.language-switcher__link.is-current {
	background: var(--fg);
	color: var(--bg);
}

/* ---------- Mobile navigation ---------- */
.mobile-nav {
	position: fixed;
	inset: 0;
	z-index: 90;
	display: flex;
	justify-content: flex-end;
	padding-top: var(--admin-bar);
}

.mobile-nav[hidden] {
	display: none;
}

.mobile-nav__backdrop {
	position: absolute;
	inset: 0;
	border: 0;
	background: rgba(12, 10, 9, 0.38);
	backdrop-filter: blur(3px);
	cursor: default;
}

.mobile-nav__panel {
	position: relative;
	z-index: 1;
	width: min(400px, 100%);
	height: 100%;
	padding: 20px 24px 28px;
	background: var(--bg);
	border-left: 1px solid var(--border);
	box-shadow: var(--shadow-md);
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	animation: leographer-slide-in var(--base) var(--ease);
}

@keyframes leographer-slide-in {
	from { transform: translateX(24px); opacity: 0; }
	to { transform: translateX(0); opacity: 1; }
}

.mobile-nav__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--border);
}

.mobile-nav__head .wordmark--signature {
	font-size: 30px;
}

.mobile-nav__nav {
	padding: 26px 0;
}

.mobile-nav .menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 2px;
}

.mobile-nav .menu > .menu-item > a {
	display: block;
	padding: 8px 0;
	font-family: var(--font-display);
	font-size: 28px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: var(--fg);
	text-decoration: none;
}

.mobile-nav .menu > .menu-item > a:hover {
	color: var(--brand-text);
	text-decoration: none;
}

.mobile-nav .sub-menu {
	list-style: none;
	margin: 0 0 8px;
	padding: 2px 0 6px 14px;
	border-left: 1px solid var(--border);
	display: grid;
	gap: 2px;
}

.mobile-nav .sub-menu a {
	display: block;
	padding: 6px 0;
	font-family: var(--font-sans);
	font-size: 14px;
	line-height: 1.45;
	color: var(--fg-muted);
	text-decoration: none;
}

.mobile-nav .sub-menu a:hover {
	color: var(--fg);
}

.mobile-nav__footer {
	margin-top: auto;
	padding-top: 24px;
	border-top: 1px solid var(--border);
	display: grid;
	gap: 16px;
}

.mobile-nav__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.mobile-nav__footer .language-switcher {
	display: flex;
}

.mobile-nav__contact {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 6px;
	font-size: 13px;
	color: var(--fg-muted);
}

.mobile-nav__contact a {
	color: var(--fg);
	text-decoration: none;
}

/* ---------- Search dialog ---------- */
.search-dialog {
	width: min(720px, calc(100vw - 32px));
	max-height: calc(100vh - 48px);
	margin: auto;
	padding: 0;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: var(--bg);
	color: var(--fg);
	box-shadow: var(--shadow-md);
	overflow: auto;
}

.search-dialog::backdrop {
	background: rgba(12, 10, 9, 0.45);
	backdrop-filter: blur(6px);
}

.search-dialog__inner {
	padding: 30px;
}

.search-dialog__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 10px;
}

.search-dialog__head .eyebrow {
	margin: 0;
}

.search-dialog__title {
	font-family: var(--font-display);
	font-size: clamp(32px, 5vw, 48px);
	font-weight: 500;
	line-height: 1.05;
	letter-spacing: -0.03em;
	margin: 0 0 24px;
}

.search-dialog__hint {
	margin: 16px 0 0;
	font-size: 12px;
	color: var(--fg-subtle);
}

/* ---------- Search form ---------- */
.search-form {
	width: 100%;
}

.search-form__field {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 52px;
	padding: 4px 4px 4px 14px;
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-md);
	background: var(--surface);
	transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}

.search-form__field:focus-within {
	border-color: var(--ring);
	box-shadow: 0 0 0 3px var(--ring-soft);
}

.search-form__field > .icon {
	color: var(--fg-subtle);
	width: 17px;
	height: 17px;
}

.search-form__input {
	flex: 1;
	min-width: 0;
	height: 42px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--fg);
	font-family: var(--font-sans);
	font-size: 15px;
	outline: none;
}

.search-form__input::placeholder {
	color: var(--fg-subtle);
}

.search-form__submit {
	flex: 0 0 auto;
}

.search-dialog .search-form__field {
	min-height: 58px;
	padding-left: 18px;
}

.search-dialog .search-form__input {
	font-size: 18px;
	height: 48px;
}

/* ---------- Footer ---------- */
.site-footer {
	background: var(--stone-950);
	color: var(--stone-400);
	padding: 72px 0 28px;
	position: relative;
}

.site-footer.texture {
	background-image: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px);
	background-size: 7px 7px;
}

.site-footer a {
	color: var(--stone-300);
}

.site-footer a:hover {
	color: var(--white);
}

.footer-top {
	display: grid;
	grid-template-columns: 1.5fr repeat(3, 1fr);
	gap: 48px;
}

.footer-brand {
	max-width: 360px;
}

.footer-brand__link {
	display: inline-block;
	text-decoration: none;
}

.footer-brand__link:hover {
	text-decoration: none;
}

.wordmark--footer {
	color: var(--stone-50);
	font-size: 42px;
}

.footer-about {
	margin: 18px 0 20px;
	font-size: 13px;
	line-height: 1.7;
	color: var(--stone-400);
}

.social-links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
}

.social-links a {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	color: var(--stone-300);
	text-decoration: none;
}

.social-links .icon {
	width: 12px;
	height: 12px;
}

.footer-column .widget-title,
.footer-heading {
	font-family: var(--font-sans);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--stone-500);
	margin: 0 0 14px;
}

.footer-column .widget {
	margin-bottom: 24px;
}

.footer-column .widget a {
	font-size: 13px;
	line-height: 1.7;
}

.site-footer .widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 7px;
}

.site-footer .widget p {
	font-size: 13px;
	line-height: 1.65;
	color: var(--stone-400);
}

.footer-column .menu,
.menu--footer {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 7px;
}

.footer-column .menu a,
.menu--footer a {
	font-size: 13px;
	line-height: 1.5;
	color: var(--stone-300);
	text-decoration: none;
}

.footer-column .menu a:hover,
.menu--footer a:hover {
	color: var(--white);
}

.footer-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 7px;
}

.footer-list a {
	font-size: 13px;
	line-height: 1.5;
	color: var(--stone-300);
	text-decoration: none;
}

.footer-contact {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 12px;
	font-size: 13px;
	line-height: 1.5;
}

.footer-contact li {
	display: grid;
	gap: 2px;
}

.footer-contact__label {
	font-size: 9px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--stone-500);
}

.footer-contact a {
	color: var(--stone-200);
	text-decoration: none;
}

.footer-cta {
	margin-top: 18px;
	color: var(--stone-100) !important;
	border-color: var(--stone-700) !important;
}

.footer-cta:hover {
	background: var(--stone-900) !important;
	border-color: var(--stone-500) !important;
}

.footer-bottom {
	margin-top: 48px;
	padding-top: 20px;
	border-top: 1px solid var(--stone-800);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
	font-size: 11px;
	color: var(--stone-500);
}

.footer-copyright {
	margin: 0;
}

.footer-bottom__links {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}

.menu--legal {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 16px;
}

.menu--legal a {
	font-size: 11px;
	color: var(--stone-300);
	text-decoration: none;
}

.footer-top-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	color: var(--stone-300);
	text-decoration: none;
}

.footer-top-link .icon {
	width: 13px;
	height: 13px;
}

/* ---------- Archive header ---------- */
.archive-header {
	background: var(--bg-subtle);
	border-bottom: 1px solid var(--border);
	padding: 72px 0 44px;
}

.archive-header__inner {
	max-width: 980px;
}

.archive-title {
	font-family: var(--font-display);
	font-size: clamp(46px, 6vw, 76px);
	font-weight: 500;
	line-height: 0.98;
	letter-spacing: -0.035em;
	margin: 0;
	max-width: 900px;
	text-wrap: balance;
}

.archive-description {
	margin-top: 20px;
	max-width: 680px;
	font-size: 17px;
	line-height: 1.65;
	color: var(--fg-muted);
}

.archive-description p {
	margin-bottom: 0;
}

.archive-search {
	max-width: 560px;
	margin-top: 26px;
}

.category-filter {
	margin-top: 28px;
}

.category-filter ul {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.category-filter a {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	padding: 0 13px;
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-full);
	background: transparent;
	color: var(--fg-muted);
	font-size: 12px;
	font-weight: 500;
	text-decoration: none;
	transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease), color var(--fast) var(--ease);
}

.category-filter a:hover {
	border-color: var(--fg);
	color: var(--fg);
	text-decoration: none;
}

.category-filter a.is-active {
	background: var(--primary);
	border-color: var(--primary);
	color: var(--primary-fg);
}

/* ---------- Archive layout + cards ---------- */
.archive-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 64px;
	padding-block: 32px 96px;
	align-items: start;
}

.archive-layout--none {
	grid-template-columns: minmax(0, 1fr);
}

.archive-layout--left {
	grid-template-columns: 300px minmax(0, 1fr);
}

.archive-layout--left .archive-body {
	order: 2;
}

.archive-layout--left .sidebar {
	order: 1;
}

.archive-body {
	min-width: 0;
}

.featured-post {
	display: grid;
	grid-template-columns: 1.08fr 0.92fr;
	align-items: stretch;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	overflow: hidden;
	background: var(--surface);
	margin: 0 0 56px;
	box-shadow: var(--shadow-xs);
}

.featured-post__media {
	display: block;
	min-height: 420px;
	background: var(--surface-2);
	overflow: hidden;
	position: relative;
}

.featured-post__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--slow) var(--ease);
}

.featured-post:hover .featured-post__media img {
	transform: scale(1.02);
}

.featured-post__body {
	padding: 46px 40px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 16px;
}

.featured-post__kicker {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.featured-post__title {
	font-family: var(--font-display);
	font-size: clamp(32px, 3.4vw, 46px);
	font-weight: 500;
	line-height: 1.05;
	letter-spacing: -0.025em;
	margin: 0;
}

.featured-post__title a {
	color: var(--fg);
	text-decoration: none;
}

.featured-post__title a:hover {
	color: var(--brand-text);
	text-decoration: none;
}

.featured-post__excerpt {
	margin: 0;
	font-size: 14px;
	line-height: 1.7;
	color: var(--fg-muted);
}

.featured-post__link {
	margin-top: 4px;
}

.featured-post__placeholder {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	background:
		radial-gradient(circle at 72% 24%, rgba(216, 6, 41, 0.18), transparent 40%),
		linear-gradient(145deg, var(--surface-2), var(--surface-3));
}

.featured-post__placeholder::before {
	content: "";
	position: absolute;
	inset: 16%;
	border: 1px solid var(--border-strong);
	border-radius: 50% 50% 48% 52% / 48% 52% 48% 52%;
	opacity: 0.55;
}

.featured-post__placeholder-mark {
	font-family: var(--font-display);
	font-size: 96px;
	color: var(--fg);
	opacity: 0.5;
	position: relative;
	z-index: 1;
}

.post-grid {
	display: grid;
	gap: 42px 28px;
}

.post-grid--cols-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.post-grid--cols-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.post-grid--list {
	grid-template-columns: 1fr;
	gap: 0;
}

.post-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.post-card__media {
	display: block;
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	background: var(--surface-2);
}

.post-card__media.ratio-16-9 {
	aspect-ratio: 16 / 9;
}

.post-card__media.ratio-4-3 {
	aspect-ratio: 4 / 3;
}

.post-card__media.ratio-1-1 {
	aspect-ratio: 1 / 1;
}

.post-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--slow) var(--ease);
}

.post-card:hover .post-card__media img {
	transform: scale(1.025);
}

.post-card__placeholder {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	background:
		radial-gradient(circle at 70% 22%, rgba(216, 6, 41, 0.16), transparent 42%),
		linear-gradient(145deg, var(--surface-2), var(--surface-3));
}

.post-card__placeholder::before {
	content: "";
	position: absolute;
	inset: 18%;
	border: 1px solid var(--border-strong);
	border-radius: 50% 50% 48% 52% / 48% 52% 48% 52%;
	opacity: 0.5;
}

.post-card__placeholder-mark {
	position: relative;
	z-index: 1;
	font-family: var(--font-display);
	font-size: 56px;
	line-height: 1;
	color: var(--fg);
	opacity: 0.42;
}

.post-card__body {
	padding-top: 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
}

.post-card__kicker {
	min-height: 20px;
	display: flex;
	align-items: center;
	gap: 6px;
}

.post-card__title {
	font-family: var(--font-display);
	font-size: clamp(22px, 2vw, 26px);
	font-weight: 500;
	line-height: 1.18;
	letter-spacing: -0.015em;
	margin: 0;
}

.post-card__title a {
	color: var(--fg);
	text-decoration: none;
}

.post-card__title a:hover {
	color: var(--brand-text);
	text-decoration: none;
}

.post-card__excerpt {
	margin: 0;
	font-size: 13px;
	line-height: 1.65;
	color: var(--fg-muted);
}

.post-card__arrow {
	position: absolute;
	right: 2px;
	bottom: 2px;
	color: var(--brand-text);
	opacity: 0;
	transform: translateX(-4px);
	transition: opacity var(--base) var(--ease), transform var(--base) var(--ease);
	display: none;
}

.post-card:hover .post-card__arrow,
.post-card:focus-within .post-card__arrow {
	opacity: 1;
	transform: translateX(0);
}

.post-card__arrow .icon {
	width: 16px;
	height: 16px;
}

.post-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	font-size: 11px;
	line-height: 1.5;
	color: var(--fg-subtle);
}

.post-meta__item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.post-meta__item + .post-meta__item::before {
	content: "·";
	color: var(--border-strong);
	margin-right: 2px;
}

.post-meta__author a {
	color: var(--fg-muted);
	text-decoration: none;
}

.post-meta__author a:hover {
	color: var(--fg);
}

.post-meta .avatar {
	width: 20px;
	height: 20px;
	font-size: 8px;
}

.post-card--compact .post-card__body {
	gap: 7px;
}

.post-card--compact .post-card__title {
	font-size: 20px;
	line-height: 1.22;
}

.post-card--compact .post-card__media {
	border-radius: var(--radius-md);
}

.post-card--compact .post-meta {
	font-size: 10px;
}

/* Editorial list layout */
.post-grid--list .post-card {
	display: grid;
	grid-template-columns: 320px minmax(0, 1fr);
	gap: 32px;
	padding: 30px 0;
	border-top: 1px solid var(--border);
	align-items: center;
}

.post-grid--list .post-card:first-child {
	border-top: 0;
	padding-top: 8px;
}

.post-grid--list .post-card__media {
	aspect-ratio: 4 / 3;
}

.post-grid--list .post-card__body {
	padding-top: 0;
	padding-right: 36px;
	gap: 12px;
}

.post-grid--list .post-card__title {
	font-size: clamp(26px, 2.6vw, 34px);
}

.post-grid--list .post-card__excerpt {
	max-width: 620px;
	font-size: 14px;
}

.post-grid--list .post-card__arrow {
	display: block;
	right: 0;
	bottom: 30px;
}

/* Pagination */
.pagination {
	margin-top: 56px;
}

.pagination .nav-links {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 5px;
}

.pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 40px;
	height: 40px;
	padding: 0 10px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--surface);
	color: var(--fg-muted);
	font-family: var(--font-sans);
	font-size: 12px;
	font-weight: 500;
	text-decoration: none;
	transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease), color var(--fast) var(--ease);
}

.pagination .page-numbers:hover {
	border-color: var(--fg);
	color: var(--fg);
	text-decoration: none;
}

.pagination .page-numbers.current {
	background: var(--primary);
	border-color: var(--primary);
	color: var(--primary-fg);
}

.pagination .page-numbers.dots {
	border-color: transparent;
	background: transparent;
}

.pagination .prev,
.pagination .next {
	font-size: 14px;
}

/* ---------- Sidebar ---------- */
.sidebar {
	min-width: 0;
}

.sidebar .widget {
	margin: 0 0 20px;
	padding: 24px;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: var(--surface);
}

.sidebar .widget:last-child {
	margin-bottom: 0;
}

.sidebar .widget-title {
	font-family: var(--font-display);
	font-size: 24px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -0.015em;
	margin: 0 0 12px;
}

.sidebar .eyebrow {
	margin-bottom: 8px;
}

.sidebar .widget p {
	font-size: 13px;
	line-height: 1.65;
	color: var(--fg-muted);
	margin-bottom: 12px;
}

.sidebar .widget p:last-child {
	margin-bottom: 0;
}

.sidebar .widget ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sidebar .widget li {
	font-size: 13px;
	line-height: 1.6;
}

.sidebar .widget li a {
	color: var(--fg-muted);
	text-decoration: none;
}

.sidebar .widget li a:hover {
	color: var(--brand-text);
}

.sidebar .widget select {
	width: 100%;
	max-width: 100%;
	min-height: 40px;
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-sm);
	background: var(--surface);
	color: var(--fg);
	padding: 8px;
}

.topic-list li {
	border-bottom: 1px solid var(--border);
}

.topic-list li:last-child {
	border-bottom: 0;
}

.topic-list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 9px 0;
	color: var(--fg-muted);
	text-decoration: none;
}

.topic-list a:hover {
	color: var(--fg);
	text-decoration: none;
}

.topic-list__count {
	font-size: 11px;
	color: var(--fg-subtle);
}

.mini-posts {
	display: grid;
	gap: 14px;
}

.mini-post {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr);
	gap: 12px;
	align-items: center;
}

.mini-post__media {
	width: 64px;
	height: 64px;
	border-radius: var(--radius-sm);
	overflow: hidden;
	background: var(--surface-2);
	display: block;
}

.mini-post__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mini-post__placeholder {
	width: 100%;
	height: 100%;
	display: grid;
	place-items: center;
	background: linear-gradient(145deg, var(--surface-2), var(--surface-3));
	font-family: var(--font-display);
	font-size: 20px;
	color: var(--fg);
	opacity: 0.6;
}

.mini-post__body {
	display: grid;
	gap: 3px;
	min-width: 0;
}

.mini-post__title {
	font-family: var(--font-sans);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--fg);
	text-decoration: none;
}

.mini-post__title:hover {
	color: var(--brand-text);
}

.mini-post__date {
	font-size: 10px;
	color: var(--fg-subtle);
}

.sidebar-cta {
	background: var(--brand-soft) !important;
	border-color: color-mix(in srgb, var(--brand) 24%, var(--border)) !important;
}

.sidebar-cta .widget-title {
	color: var(--brand-soft-fg);
}

.sidebar-cta p {
	color: var(--brand-soft-fg) !important;
	opacity: 0.85;
}

.sidebar-cta .btn {
	--btn-bg: var(--brand);
	--btn-fg: var(--brand-fg);
	--btn-border: var(--brand);
}

/* ---------- Single post ---------- */
.reading-progress {
	position: fixed;
	left: 0;
	top: var(--admin-bar);
	width: 100%;
	height: 2px;
	z-index: 60;
	pointer-events: none;
	background: transparent;
}

.reading-progress__bar {
	display: block;
	width: 0;
	height: 100%;
	background: var(--brand);
	transition: width 80ms linear;
}

.entry-header {
	padding-top: 44px;
}

.breadcrumbs {
	margin: 0 0 30px;
	font-family: var(--font-sans);
	font-size: 11px;
	line-height: 1.5;
	color: var(--fg-subtle);
}

.breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.breadcrumbs li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.breadcrumbs li + li::before {
	content: "/";
	color: var(--border-strong);
}

.breadcrumbs a {
	color: var(--fg-muted);
	text-decoration: none;
}

.breadcrumbs a:hover {
	color: var(--fg);
}

.breadcrumbs li[aria-current="page"] span {
	color: var(--fg-subtle);
}

.entry-kicker {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	min-height: 24px;
	margin-bottom: 18px;
}

.entry-title {
	font-family: var(--font-display);
	font-size: clamp(42px, 5.4vw, 68px);
	font-weight: 500;
	line-height: 1.02;
	letter-spacing: -0.03em;
	margin: 0;
	text-wrap: balance;
}

.entry-deck {
	margin: 22px 0 0;
	max-width: 720px;
	font-family: var(--font-sans);
	font-size: 20px;
	line-height: 1.6;
	color: var(--fg-muted);
	text-wrap: pretty;
}

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 20px;
	margin-top: 24px;
	font-family: var(--font-sans);
	font-size: 12px;
	line-height: 1.5;
	color: var(--fg-subtle);
}

.entry-meta__item {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.entry-meta__author a {
	color: var(--fg);
	font-weight: 500;
	text-decoration: none;
}

.entry-meta__author a:hover {
	color: var(--brand-text);
}

.entry-meta .avatar {
	width: 32px;
	height: 32px;
	font-size: 12px;
}

.entry-meta__updated {
	padding: 3px 9px;
	border-radius: var(--radius-full);
	background: var(--brand-soft);
	color: var(--brand-soft-fg);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.04em;
}

.entry-share {
	margin-top: 24px;
}

.entry-share--bottom {
	border-top: 1px solid var(--border);
	padding-top: 22px;
	margin-top: 44px;
}

.share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.share__label {
	font-family: var(--font-sans);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--fg-subtle);
}

.share__links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.share__link {
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	padding: 0 11px;
	border: 1px solid var(--border);
	border-radius: var(--radius-full);
	background: var(--surface);
	color: var(--fg-muted);
	font-family: var(--font-sans);
	font-size: 11px;
	font-weight: 500;
	text-decoration: none;
	cursor: pointer;
	transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}

.share__link:hover {
	background: var(--surface-2);
	border-color: var(--border-strong);
	color: var(--fg);
	text-decoration: none;
}

.share__copy {
	background: transparent;
}

.entry-media {
	margin-top: 40px;
}

.entry-media__image {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: var(--radius-lg);
	border: 1px solid var(--border);
	background: var(--surface-2);
}

.entry-media__caption {
	margin-top: 10px;
	font-size: 12px;
	line-height: 1.5;
	color: var(--fg-subtle);
}

.single-layout {
	display: grid;
	grid-template-columns: minmax(0, 680px) 300px;
	justify-content: space-between;
	gap: 64px;
	padding-block: 56px 0;
	align-items: start;
}

.single-layout--none {
	display: block;
	max-width: 780px;
}

.single-layout--left {
	grid-template-columns: 300px minmax(0, 680px);
}

.single-layout--left .single-body {
	order: 2;
}

.single-layout--left .single-aside {
	order: 1;
}

.single-layout--none .single-body {
	max-width: 720px;
	margin-inline: auto;
}

.single-body {
	min-width: 0;
}

.single-aside {
	min-width: 0;
	min-height: 1px;
}

/* ---------- Reading typography ---------- */
.entry--single .entry-content,
.page-content--narrow .entry-content {
	font-family: var(--font-sans);
	font-size: 18px;
	line-height: 1.75;
	color: var(--fg);
}

.entry--single .entry-content > *:first-child,
.page-content--narrow .entry-content > *:first-child {
	margin-top: 0;
}

.entry--single .entry-content p,
.page-content--narrow .entry-content p {
	margin: 0 0 1.35em;
}

.entry--single .entry-content h2,
.page-content--narrow .entry-content h2 {
	font-family: var(--font-display);
	font-size: clamp(30px, 3.2vw, 40px);
	font-weight: 500;
	line-height: 1.12;
	letter-spacing: -0.02em;
	margin: 1.6em 0 0.55em;
	scroll-margin-top: calc(var(--header-h) + var(--admin-bar) + 28px);
}

.entry--single .entry-content h3,
.page-content--narrow .entry-content h3 {
	font-family: var(--font-sans);
	font-size: 22px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -0.01em;
	margin: 1.8em 0 0.5em;
	color: var(--fg);
	scroll-margin-top: calc(var(--header-h) + var(--admin-bar) + 28px);
}

.entry--single .entry-content h4,
.page-content--narrow .entry-content h4 {
	font-family: var(--font-sans);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.4;
	margin: 1.7em 0 0.4em;
}

.entry--single .entry-content h5,
.entry--single .entry-content h6,
.page-content--narrow .entry-content h5,
.page-content--narrow .entry-content h6 {
	font-family: var(--font-sans);
	font-weight: 600;
	font-size: 16px;
	margin: 1.5em 0 0.4em;
}

.entry--single .entry-content a:not(.wp-element-button):not(.wp-block-button__link):not(.btn),
.page-content--narrow .entry-content a:not(.wp-element-button):not(.wp-block-button__link):not(.btn) {
	color: var(--brand-text);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-decoration-color: color-mix(in srgb, var(--brand-text) 35%, transparent);
	text-underline-offset: 3px;
}

.entry--single .entry-content a:not(.wp-element-button):not(.wp-block-button__link):not(.btn):hover,
.page-content--narrow .entry-content a:not(.wp-element-button):not(.wp-block-button__link):not(.btn):hover {
	text-decoration-color: currentColor;
}

.entry--single .entry-content strong,
.page-content--narrow .entry-content strong {
	font-weight: 600;
	color: var(--fg);
}

.entry--single .entry-content ul,
.entry--single .entry-content ol,
.page-content--narrow .entry-content ul,
.page-content--narrow .entry-content ol {
	margin: 0 0 1.4em;
	padding-left: 1.35em;
}

.entry--single .entry-content li,
.page-content--narrow .entry-content li {
	margin-bottom: 0.45em;
}

.entry--single .entry-content li > ul,
.entry--single .entry-content li > ol,
.page-content--narrow .entry-content li > ul,
.page-content--narrow .entry-content li > ol {
	margin-top: 0.45em;
	margin-bottom: 0;
}

.entry--single .entry-content blockquote,
.page-content--narrow .entry-content blockquote {
	margin: 44px 0;
	padding: 8px 0 8px 28px;
	border-left: 2px solid var(--brand);
	font-family: var(--font-display);
	font-size: clamp(24px, 2.5vw, 30px);
	font-weight: 400;
	line-height: 1.35;
	font-style: italic;
	color: var(--fg);
}

.entry--single .entry-content blockquote p,
.page-content--narrow .entry-content blockquote p {
	margin-bottom: 0.6em;
}

.entry--single .entry-content blockquote cite,
.page-content--narrow .entry-content blockquote cite {
	display: block;
	margin-top: 12px;
	font-family: var(--font-sans);
	font-size: 11px;
	font-style: normal;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--fg-subtle);
}

.entry--single .entry-content hr,
.page-content--narrow .entry-content hr {
	margin: 48px 0;
}

.entry--single .entry-content img,
.page-content--narrow .entry-content img {
	border-radius: var(--radius-md);
}

.entry--single .entry-content figure,
.page-content--narrow .entry-content figure {
	margin: 36px 0;
}

.entry--single .entry-content figcaption,
.page-content--narrow .entry-content figcaption {
	margin-top: 9px;
	font-family: var(--font-sans);
	font-size: 11px;
	line-height: 1.55;
	color: var(--fg-subtle);
	text-align: left;
}

.entry--single .entry-content code,
.page-content--narrow .entry-content code {
	padding: 2px 6px;
	border-radius: 4px;
	background: var(--surface-2);
	color: var(--brand-text);
	font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
	font-size: 0.86em;
}

.entry--single .entry-content pre,
.page-content--narrow .entry-content pre {
	margin: 32px 0;
	padding: 20px 22px;
	border-radius: var(--radius-md);
	background: var(--stone-950);
	color: var(--stone-200);
	overflow-x: auto;
	font-size: 13px;
	line-height: 1.7;
}

.entry--single .entry-content pre code,
.page-content--narrow .entry-content pre code {
	padding: 0;
	background: transparent;
	color: inherit;
	font-size: inherit;
}

.entry--single .entry-content kbd,
.page-content--narrow .entry-content kbd {
	padding: 2px 6px;
	border: 1px solid var(--border-strong);
	border-radius: 4px;
	background: var(--surface-2);
	font-family: ui-monospace, Consolas, monospace;
	font-size: 0.85em;
}

.entry--single .entry-content mark,
.page-content--narrow .entry-content mark {
	background: var(--brand-soft);
	color: var(--brand-soft-fg);
	padding: 0 3px;
}

.entry--single .entry-content abbr[title],
.page-content--narrow .entry-content abbr[title] {
	text-decoration: underline dotted;
	cursor: help;
}

.entry--single .entry-content table,
.page-content--narrow .entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 32px 0;
	font-size: 14px;
	line-height: 1.55;
}

.entry--single .entry-content th,
.page-content--narrow .entry-content th {
	padding: 11px 13px;
	border: 1px solid var(--border);
	background: var(--surface-2);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-align: left;
	color: var(--fg-muted);
}

.entry--single .entry-content td,
.page-content--narrow .entry-content td {
	padding: 11px 13px;
	border: 1px solid var(--border);
	vertical-align: top;
}

.entry--single .entry-content iframe,
.page-content--narrow .entry-content iframe {
	max-width: 100%;
	border-radius: var(--radius-md);
}

/* WordPress alignments inside articles */
.entry--single .entry-content .alignwide {
	max-width: 100%;
	width: 100%;
}

.entry--single .entry-content .alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	border-radius: 0;
}

.single-layout--left .entry-content .alignfull,
.single-layout--right .entry-content .alignfull {
	width: 100%;
	max-width: 100%;
	margin-left: 0;
	border-radius: var(--radius-md);
}

.entry--single .entry-content .alignleft {
	float: left;
	margin: 8px 28px 20px 0;
}

.entry--single .entry-content .alignright {
	float: right;
	margin: 8px 0 20px 28px;
}

.entry--single .entry-content .aligncenter {
	margin-left: auto;
	margin-right: auto;
}

.entry--single .entry-content .wp-block-image {
	margin: 36px 0;
}

.entry--single .entry-content .wp-block-image img {
	border-radius: var(--radius-md);
}

.entry--single .entry-content .wp-block-image .aligncenter {
	margin-inline: auto;
}

.entry--single .entry-content .wp-block-gallery {
	display: grid;
	gap: 10px;
	margin: 32px 0;
}

.entry--single .entry-content .wp-block-gallery img {
	border-radius: var(--radius-sm);
}

.entry--single .entry-content .wp-block-embed {
	margin: 36px 0;
}

.entry--single .entry-content .wp-block-embed__wrapper {
	position: relative;
}

.entry--single .entry-content .wp-block-cover,
.entry--single .entry-content .wp-block-media-text {
	margin: 36px 0;
	border-radius: var(--radius-md);
	overflow: hidden;
}

.entry--single .entry-content .wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 28px 0;
}

.entry--single .entry-content .wp-block-button__link {
	background: var(--primary);
	color: var(--primary-fg);
	border-radius: var(--radius-md);
	padding: 14px 20px;
	font-family: var(--font-sans);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
}

.entry--single .entry-content .wp-block-button__link:hover {
	background: var(--primary-hover);
	color: var(--primary-fg);
}

.entry--single .entry-content .wp-block-separator {
	border: 0;
	border-top: 1px solid var(--border);
	margin: 48px 0;
}

.entry--single .entry-content .wp-block-pullquote {
	margin: 44px 0;
	padding: 32px 0;
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
}

.entry--single .entry-content .wp-block-pullquote blockquote {
	margin: 0;
	padding: 0;
	border: 0;
	text-align: left;
}

.entry--single .entry-content .wp-block-file {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 24px 0;
	padding: 16px;
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	background: var(--bg-subtle);
}

.entry--single .entry-content .wp-block-file a:first-child {
	font-weight: 600;
	color: var(--fg);
}

.entry--single .entry-content .wp-block-file__button {
	background: var(--primary);
	color: var(--primary-fg);
	border-radius: var(--radius-sm);
	padding: 6px 12px;
	font-size: 12px;
	text-decoration: none;
}

/* Details / FAQ */
.entry--single .entry-content .wp-block-details {
	margin: 16px 0;
	padding: 18px 20px;
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	background: var(--surface);
}

.entry--single .entry-content .wp-block-details summary {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-family: var(--font-sans);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.5;
	color: var(--fg);
	cursor: pointer;
	list-style: none;
}

.entry--single .entry-content .wp-block-details summary::-webkit-details-marker {
	display: none;
}

.entry--single .entry-content .wp-block-details summary::before {
	content: "+";
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin-top: 1px;
	display: grid;
	place-items: center;
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-full);
	font-family: var(--font-sans);
	font-size: 14px;
	font-weight: 400;
	color: var(--fg-muted);
	line-height: 1;
}

.entry--single .entry-content .wp-block-details[open] summary::before {
	content: "–";
}

.entry--single .entry-content .wp-block-details > p {
	margin: 14px 0 0;
	padding-left: 30px;
	font-size: 15px;
	line-height: 1.7;
	color: var(--fg-muted);
}

.entry--single .entry-content .wp-block-details > p:last-child {
	margin-bottom: 0;
}

/* Key takeaways + sources patterns */
.leographer-takeaways {
	margin: 32px 0;
	padding: 26px 28px;
	border: 1px solid var(--border);
	border-left: 2px solid var(--brand);
	border-radius: var(--radius-md);
	background: var(--bg-subtle);
}

.leographer-takeaways .eyebrow {
	margin-bottom: 8px;
}

.leographer-takeaways h2,
.leographer-takeaways h3 {
	font-family: var(--font-sans) !important;
	font-size: 18px !important;
	font-weight: 600 !important;
	margin: 0 0 10px !important;
	letter-spacing: 0 !important;
}

.leographer-takeaways ul {
	margin: 0 !important;
	padding-left: 18px !important;
}

.leographer-takeaways li {
	font-size: 15px !important;
	line-height: 1.6 !important;
	margin-bottom: 6px !important;
}

.leographer-sources {
	margin-top: 44px;
	padding-top: 22px;
	border-top: 1px solid var(--border);
}

.leographer-sources .eyebrow {
	margin-bottom: 8px;
}

.leographer-sources ol {
	margin: 0;
	padding-left: 18px;
}

.leographer-sources li {
	font-size: 13px;
	line-height: 1.65;
	color: var(--fg-muted);
}

/* Entry footer pieces */
.entry-tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 7px;
	margin-top: 44px;
	padding-top: 20px;
	border-top: 1px solid var(--border);
}

.entry-tags .eyebrow {
	margin: 0 6px 0 0;
}

.tag-link {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	padding: 0 10px;
	border: 1px solid var(--border);
	border-radius: var(--radius-full);
	background: var(--surface);
	color: var(--fg-muted);
	font-size: 11px;
	text-decoration: none;
}

.tag-link:hover {
	border-color: var(--border-strong);
	color: var(--fg);
	text-decoration: none;
}

.author-box {
	display: grid;
	grid-template-columns: 88px minmax(0, 1fr);
	gap: 24px;
	align-items: start;
	margin: 44px 0;
	padding: 28px;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: var(--bg-subtle);
}

.author-box__avatar .avatar {
	width: 88px;
	height: 88px;
	font-size: 30px;
}

.author-box__body .eyebrow {
	margin-bottom: 6px;
}

.author-box__name {
	font-family: var(--font-display);
	font-size: 26px;
	font-weight: 500;
	line-height: 1.2;
	margin: 0 0 8px;
}

.author-box__name a {
	color: var(--fg);
	text-decoration: none;
}

.author-box__name a:hover {
	color: var(--brand-text);
}

.author-box__bio {
	margin: 0 0 12px;
	font-size: 14px;
	line-height: 1.65;
	color: var(--fg-muted);
}

.author-box__links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 18px;
}

.author-box__links .btn-link {
	font-size: 12px;
}

.author-box__socials {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	font-size: 11px;
}

.author-box__socials a {
	color: var(--fg-muted);
	text-decoration: none;
}

.author-box__socials a:hover {
	color: var(--brand-text);
}

.post-navigation {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin: 40px 0 0;
}

.post-navigation__link {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-height: 116px;
	padding: 20px 22px;
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	background: var(--surface);
	text-decoration: none;
	transition: border-color var(--fast) var(--ease), background-color var(--fast) var(--ease);
}

.post-navigation__link:hover {
	border-color: var(--border-strong);
	background: var(--bg-subtle);
	text-decoration: none;
}

.post-navigation__link--next {
	text-align: right;
	align-items: flex-end;
}

.post-navigation__label {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--fg-subtle);
}

.post-navigation__label .icon {
	width: 12px;
	height: 12px;
}

.post-navigation__link--previous .post-navigation__label .icon {
	transform: rotate(180deg);
}

.post-navigation__title {
	font-family: var(--font-display);
	font-size: 20px;
	font-weight: 500;
	line-height: 1.25;
	color: var(--fg);
}

/* ---------- TOC ---------- */
.toc {
	margin: 0 0 24px;
	padding: 22px;
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	background: var(--surface);
}

.toc__title {
	margin: 0 0 10px;
}

.toc__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 1px;
	counter-reset: toc;
}

.toc__item a {
	display: block;
	padding: 6px 0 6px 12px;
	border-left: 1px solid transparent;
	color: var(--fg-muted);
	font-family: var(--font-sans);
	font-size: 12.5px;
	line-height: 1.45;
	text-decoration: none;
	transition: color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}

.toc__item a:hover {
	color: var(--fg);
	text-decoration: none;
}

.toc__item a.is-active,
.toc__item a[aria-current="location"] {
	border-left-color: var(--brand);
	color: var(--brand-text);
}

.toc__item--h3 a {
	padding-left: 26px;
	font-size: 12px;
	color: var(--fg-subtle);
}

.toc--aside {
	position: sticky;
	top: calc(var(--admin-bar) + var(--header-h) + 24px);
	z-index: 1;
}

.toc--above {
	max-width: 680px;
	margin-bottom: 32px;
}

.toc--mobile {
	display: none;
	margin-bottom: 28px;
	padding: 0;
}

.toc__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 20px;
	font-family: var(--font-sans);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--fg);
	cursor: pointer;
	list-style: none;
}

.toc__summary::-webkit-details-marker {
	display: none;
}

.toc__summary::after {
	content: "+";
	font-size: 16px;
	font-weight: 400;
	color: var(--fg-muted);
}

.toc--mobile[open] .toc__summary::after {
	content: "–";
}

.toc__count {
	display: inline-grid;
	place-items: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: var(--radius-full);
	background: var(--surface-2);
	font-size: 10px;
	color: var(--fg-subtle);
	margin-left: auto;
	margin-right: 10px;
}

.toc--mobile nav {
	padding: 0 20px 18px;
}

.toc--mobile .toc__list {
	padding-top: 4px;
}

/* ---------- Related + comments ---------- */
.single-after {
	padding-bottom: 96px;
}

.related-posts {
	margin-top: 64px;
	padding-top: 48px;
	border-top: 1px solid var(--border);
}

.related-posts__head {
	margin-bottom: 24px;
}

.related-posts__title {
	font-family: var(--font-display);
	font-size: clamp(32px, 3.5vw, 44px);
	font-weight: 500;
	line-height: 1.08;
	letter-spacing: -0.025em;
	margin: 0;
}

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

.comments-wrap {
	max-width: 680px;
	margin-top: 56px;
}

.comments-area {
	padding-top: 40px;
	border-top: 1px solid var(--border);
}

.comments-title,
.comment-reply-title {
	font-family: var(--font-display);
	font-size: clamp(28px, 3vw, 36px);
	font-weight: 500;
	line-height: 1.15;
	letter-spacing: -0.02em;
	margin: 0 0 24px;
}

.comment-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.comment-list .children {
	list-style: none;
	margin: 0 0 0 48px;
	padding: 0;
}

.comment-body {
	padding: 24px 0;
	border-bottom: 1px solid var(--border);
}

.comment-meta {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 12px;
}

.comment-author {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	font-weight: 600;
	color: var(--fg);
}

.comment-author .avatar {
	width: 40px;
	height: 40px;
	font-size: 14px;
}

.comment-author .fn {
	font-style: normal;
}

.comment-author .says {
	display: none;
}

.comment-metadata {
	font-size: 11px;
	color: var(--fg-subtle);
	text-align: right;
}

.comment-metadata a {
	color: var(--fg-subtle);
	text-decoration: none;
}

.comment-metadata a:hover {
	color: var(--fg);
}

.comment-content {
	font-size: 15px;
	line-height: 1.7;
	color: var(--fg-muted);
}

.comment-content p:last-child {
	margin-bottom: 0;
}

.comment-content a {
	color: var(--brand-text);
}

.reply {
	margin-top: 8px;
	font-size: 11px;
}

.reply a {
	color: var(--brand-text);
	font-weight: 600;
	text-decoration: none;
}

.comments-closed {
	margin-top: 24px;
	font-size: 13px;
	color: var(--fg-muted);
}

.comment-respond {
	margin-top: 36px;
}

.comment-notes,
.logged-in-as {
	font-size: 12px;
	color: var(--fg-muted);
}

.comment-form {
	display: grid;
	gap: 16px;
	margin-top: 20px;
}

.comment-form p {
	margin: 0;
}

.comment-form label {
	display: block;
	margin-bottom: 6px;
	font-size: 12px;
	font-weight: 600;
	color: var(--fg);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 11px 13px;
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-md);
	background: var(--surface);
	color: var(--fg);
	font-family: var(--font-sans);
	font-size: 14px;
	line-height: 1.5;
	transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}

.comment-form input:focus,
.comment-form textarea:focus {
	outline: none;
	border-color: var(--ring);
	box-shadow: 0 0 0 3px var(--ring-soft);
}

.comment-form textarea {
	min-height: 140px;
	resize: vertical;
}

.comment-form .form-submit {
	margin: 0;
}

.comment-form .submit {
	min-height: 44px;
	padding: 0 22px;
	border: 1px solid var(--primary);
	border-radius: var(--radius-md);
	background: var(--primary);
	color: var(--primary-fg);
	font-family: var(--font-sans);
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
}

.comment-form .submit:hover {
	background: var(--primary-hover);
	border-color: var(--primary-hover);
}

.comment-form-cookies-consent {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 12px;
	color: var(--fg-muted);
}

.comment-form-cookies-consent input {
	margin-top: 3px;
	accent-color: var(--brand);
}

.comment-form-cookies-consent label {
	margin: 0;
	font-weight: 400;
	color: var(--fg-muted);
}

/* ---------- Pages ---------- */
.page-header {
	padding: 64px 0 36px;
}

.page-header .eyebrow {
	margin-bottom: 16px;
}

.page-title {
	font-family: var(--font-display);
	font-size: clamp(42px, 5vw, 62px);
	font-weight: 500;
	line-height: 1.04;
	letter-spacing: -0.03em;
	margin: 0;
	max-width: 900px;
}

.page-deck {
	margin: 20px 0 0;
	max-width: 720px;
	font-size: 19px;
	line-height: 1.6;
	color: var(--fg-muted);
}

.page-content {
	padding-bottom: 96px;
}

.page-content--narrow {
	width: min(820px, calc(100% - 48px));
	margin-inline: auto;
}

.page-content--builder {
	width: 100%;
	max-width: none;
	padding-bottom: 0;
}

.page-content--builder .entry-content {
	max-width: none;
}

.page-content--builder .entry-content > *:first-child {
	margin-top: 0;
}

.page-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 32px;
	font-size: 13px;
}

.page-links a,
.page-links > span {
	display: inline-grid;
	place-items: center;
	min-width: 34px;
	height: 34px;
	padding: 0 8px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	color: var(--fg-muted);
	text-decoration: none;
}

.page-links > span {
	background: var(--primary);
	border-color: var(--primary);
	color: var(--primary-fg);
}

/* ---------- Empty states ---------- */
.no-results {
	max-width: 680px;
	padding: 48px 0 24px;
}

.no-results__title {
	font-family: var(--font-display);
	font-size: clamp(32px, 4vw, 44px);
	font-weight: 500;
	line-height: 1.1;
	margin: 0 0 12px;
}

.no-results__text {
	font-size: 16px;
	color: var(--fg-muted);
	margin: 0 0 24px;
}

.no-results .search-form {
	margin-bottom: 20px;
}

/* ---------- 404 ---------- */
.error-404 {
	padding: 88px 0 104px;
	background: var(--bg-subtle);
}

.error-404__copy {
	max-width: 820px;
}

.error-404__code {
	font-family: var(--font-display);
	font-size: clamp(120px, 18vw, 220px);
	font-weight: 400;
	line-height: 0.78;
	letter-spacing: -0.06em;
	color: var(--brand);
	opacity: 0.12;
	margin-bottom: -18px;
	user-select: none;
}

.error-404__title {
	font-family: var(--font-display);
	font-size: clamp(38px, 5vw, 58px);
	font-weight: 500;
	line-height: 1.05;
	letter-spacing: -0.03em;
	margin: 0 0 16px;
	max-width: 760px;
}

.error-404__text {
	max-width: 620px;
	margin: 0 0 28px;
	font-size: 18px;
	line-height: 1.65;
	color: var(--fg-muted);
}

.error-404__search {
	max-width: 560px;
	margin-bottom: 24px;
}

.error-404__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.error-404__latest {
	margin-top: 80px;
	padding-top: 48px;
	border-top: 1px solid var(--border);
}

.section-heading {
	margin-bottom: 24px;
}

.section-heading .h2 {
	font-family: var(--font-display);
	font-size: clamp(30px, 3.5vw, 42px);
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: -0.025em;
	margin: 0;
}

/* ---------- Gutenberg + shared page blocks ---------- */
.wp-block-image img {
	border-radius: var(--radius-md);
}

.wp-block-button__link {
	background: var(--primary);
	color: var(--primary-fg);
	border-radius: var(--radius-md);
	font-family: var(--font-sans);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
}

.wp-block-button__link:hover {
	background: var(--primary-hover);
	color: var(--primary-fg);
	text-decoration: none;
}

.wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.wp-block-separator {
	border: 0;
	border-top: 1px solid var(--border);
}

.wp-block-quote {
	margin: 40px 0;
	padding-left: 24px;
	border-left: 2px solid var(--brand);
}

.wp-block-pullquote {
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
	padding: 32px 0;
}

.wp-block-pullquote blockquote {
	margin: 0;
	border: 0;
	padding: 0;
}

.wp-block-table {
	overflow-x: auto;
}

.wp-block-table table {
	border-collapse: collapse;
	width: 100%;
}

.wp-block-table th,
.wp-block-table td {
	border: 1px solid var(--border);
	padding: 10px 12px;
}

.wp-block-table th {
	background: var(--surface-2);
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-align: left;
}

.wp-block-code {
	padding: 18px 20px;
	border-radius: var(--radius-md);
	background: var(--stone-950);
	color: var(--stone-200);
	overflow-x: auto;
	font-size: 13px;
}

.wp-block-details {
	margin: 18px 0;
	padding: 18px 20px;
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	background: var(--surface);
}

.wp-block-details summary {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-family: var(--font-sans);
	font-size: 16px;
	font-weight: 600;
	color: var(--fg);
	cursor: pointer;
	list-style: none;
}

.wp-block-details summary::-webkit-details-marker {
	display: none;
}

.wp-block-details summary::before {
	content: "+";
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	display: grid;
	place-items: center;
	border: 1px solid var(--border-strong);
	border-radius: 50%;
	font-size: 14px;
	font-weight: 400;
	color: var(--fg-muted);
}

.wp-block-details[open] summary::before {
	content: "–";
}

.wp-block-details > p {
	margin: 12px 0 0;
	padding-left: 30px;
	font-size: 15px;
	color: var(--fg-muted);
}

/* Core widget/list blocks used in sidebars */
.wp-block-latest-posts,
.wp-block-categories,
.wp-block-archives {
	list-style: none;
	margin: 0;
	padding: 0;
}

.wp-block-latest-posts li,
.wp-block-categories li,
.wp-block-archives li {
	padding: 8px 0;
	border-bottom: 1px solid var(--border);
	font-size: 13px;
}

.wp-block-latest-posts li:last-child,
.wp-block-categories li:last-child,
.wp-block-archives li:last-child {
	border-bottom: 0;
}

.wp-block-latest-posts a,
.wp-block-categories a,
.wp-block-archives a {
	color: var(--fg-muted);
	text-decoration: none;
}

.wp-block-latest-posts a:hover,
.wp-block-categories a:hover,
.wp-block-archives a:hover {
	color: var(--brand-text);
}

.wp-block-tag-cloud a {
	display: inline-flex;
	margin: 0 4px 4px 0;
	padding: 4px 9px;
	border: 1px solid var(--border);
	border-radius: var(--radius-full);
	font-size: 11px !important;
	color: var(--fg-muted);
	text-decoration: none;
}

.wp-block-search__input {
	min-height: 40px;
	padding: 8px 12px;
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-sm);
	background: var(--surface);
	color: var(--fg);
}

.wp-block-search__button {
	min-height: 40px;
	padding: 0 14px;
	border: 1px solid var(--primary);
	border-radius: var(--radius-sm);
	background: var(--primary);
	color: var(--primary-fg);
	font-size: 12px;
	font-weight: 500;
}

/* ---------- Leographer patterns ---------- */
.leographer-pattern-hero {
	position: relative;
	padding-block: clamp(56px, 8vw, 112px);
	border-bottom: 1px solid var(--border);
	background-image: radial-gradient(circle at 20% 20%, rgba(12, 10, 9, 0.03) 0 1px, transparent 1px);
	background-size: 7px 7px;
	overflow: hidden;
}

html[data-theme="dark"] .leographer-pattern-hero {
	background-image: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px);
}

.leographer-pattern-hero .wp-block-columns {
	align-items: center;
}

.leographer-pattern-hero h1,
.leographer-pattern-hero .display {
	font-family: var(--font-display);
	font-size: clamp(48px, 7vw, 88px);
	font-weight: 400;
	line-height: 0.98;
	letter-spacing: -0.035em;
	margin: 0 0 22px;
}

.leographer-pattern-hero h1 em {
	font-style: italic;
	color: var(--brand-text);
}

.leographer-pattern-hero .leographer-hero-lead {
	max-width: 540px;
	font-size: 17px;
	line-height: 1.65;
	color: var(--fg-muted);
}

.leographer-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 26px;
}

.leographer-lens-panel {
	position: relative;
	aspect-ratio: 1;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background:
		radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.8), transparent 28%),
		radial-gradient(circle at 72% 80%, rgba(216, 6, 41, 0.14), transparent 42%),
		linear-gradient(135deg, var(--surface-2), var(--surface-3));
	overflow: hidden;
	display: grid;
	place-items: center;
}

.leographer-lens-panel::before {
	content: "";
	position: absolute;
	inset: 14%;
	border: 1px solid var(--border-strong);
	border-radius: 50% 50% 48% 52% / 48% 52% 48% 52%;
	opacity: 0.55;
}

.leographer-lens-panel::after {
	content: "";
	position: absolute;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--brand);
	right: 22%;
	top: 20%;
}

.leographer-lens-panel .wp-block-paragraph {
	position: relative;
	z-index: 1;
	text-align: center;
	max-width: 60%;
	font-family: var(--font-sans);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--fg-muted);
}

.leographer-services {
	padding-block: clamp(56px, 7vw, 96px);
}

.leographer-services-header {
	max-width: 720px;
	margin-bottom: 36px;
}

.leographer-service-card {
	height: 100%;
	padding: 28px;
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	background: var(--surface);
	box-shadow: var(--shadow-xs);
}

.leographer-service-card .leographer-service-number {
	font-family: var(--font-sans);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--brand-text);
	margin-bottom: 18px;
}

.leographer-service-card h3 {
	font-family: var(--font-display);
	font-size: 26px;
	font-weight: 500;
	line-height: 1.15;
	margin: 0 0 10px;
}

.leographer-service-card p {
	font-size: 14px;
	line-height: 1.65;
	color: var(--fg-muted);
	margin: 0 0 16px;
}

.leographer-proof {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	padding-block: 32px;
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
}

.leographer-proof-item {
	display: grid;
	gap: 4px;
}

.leographer-proof-item strong {
	font-family: var(--font-display);
	font-size: clamp(32px, 4vw, 46px);
	font-weight: 500;
	line-height: 1;
	color: var(--fg);
}

.leographer-proof-item span {
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--fg-subtle);
}

.leographer-cta {
	padding: clamp(40px, 6vw, 72px);
	border-radius: var(--radius-lg);
	background: var(--stone-950);
	color: var(--stone-50);
	background-image: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px);
	background-size: 7px 7px;
}

.leographer-cta h2 {
	font-family: var(--font-display);
	font-size: clamp(34px, 4.4vw, 54px);
	font-weight: 500;
	line-height: 1.05;
	letter-spacing: -0.03em;
	color: var(--stone-50);
	margin: 0 0 14px;
	max-width: 720px;
}

.leographer-cta p {
	color: var(--stone-400);
	max-width: 560px;
	margin: 0 0 24px;
}

.leographer-cta .wp-block-button__link,
.leographer-cta .btn {
	background: var(--stone-50);
	border-color: var(--stone-50);
	color: var(--stone-950);
}

.leographer-cta .wp-block-button__link:hover,
.leographer-cta .btn:hover {
	background: var(--stone-200);
	border-color: var(--stone-200);
	color: var(--stone-950);
}

.leographer-case-study {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	overflow: hidden;
	background: var(--surface);
}

.leographer-case-study .leographer-case-media {
	min-height: 320px;
	aspect-ratio: 4 / 3;
	background:
		radial-gradient(circle at 70% 24%, rgba(216, 6, 41, 0.16), transparent 42%),
		linear-gradient(145deg, var(--surface-2), var(--surface-3));
	position: relative;
	display: grid;
	place-items: center;
}

.leographer-case-study .leographer-case-media::before {
	content: "";
	position: absolute;
	inset: 16%;
	border: 1px solid var(--border-strong);
	border-radius: 50% 50% 48% 52% / 48% 52% 48% 52%;
	opacity: 0.55;
}

.leographer-case-study .leographer-case-body {
	padding: 40px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.leographer-case-study h2 {
	font-family: var(--font-display);
	font-size: clamp(28px, 3vw, 38px);
	font-weight: 500;
	line-height: 1.1;
	margin: 0 0 12px;
}

.leographer-case-study p {
	font-size: 14px;
	line-height: 1.65;
	color: var(--fg-muted);
	margin: 0 0 18px;
}

.leographer-faq {
	display: grid;
	gap: 10px;
}

.leographer-feature-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
}

.leographer-feature-list li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14px;
	line-height: 1.6;
	color: var(--fg-muted);
}

.leographer-feature-list li::before {
	content: "";
	flex: 0 0 auto;
	width: 6px;
	height: 6px;
	margin-top: 9px;
	border-radius: 50%;
	background: var(--brand);
}

/* ---------- Elementor compatibility ---------- */
.leographer-builder-page .site-main {
	margin: 0;
}

.leographer-builder-page .page-content--builder {
	padding-bottom: 0;
}

.leographer-builder-page .page-content--builder .entry-content {
	width: 100%;
	max-width: none;
	margin: 0;
}

.elementor-page .page-header {
	padding-bottom: 24px;
}

.elementor-edit-area-active .site-header,
.elementor-edit-area-active .site-footer {
	display: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.primary-nav .menu {
		gap: 18px;
	}

	.header-actions .language-switcher {
		display: none;
	}
}

@media (max-width: 1024px) {
	:root {
		--header-h: 68px;
	}

	.primary-nav {
		display: none;
	}

	.menu-toggle {
		display: inline-flex;
	}

	.header-cta {
		display: none;
	}

	.archive-layout,
	.archive-layout--left {
		grid-template-columns: minmax(0, 1fr);
		gap: 48px;
	}

	.archive-layout--left .archive-body,
	.archive-layout--left .sidebar {
		order: initial;
	}

	.sidebar {
		max-width: 680px;
	}

	.single-layout,
	.single-layout--left {
		grid-template-columns: minmax(0, 1fr);
		gap: 44px;
	}

	.single-layout--left .single-body,
	.single-layout--left .single-aside {
		order: initial;
	}

	.single-layout--left .single-aside {
		margin-top: 8px;
	}

	.toc--aside {
		display: none;
	}

	.toc--mobile {
		display: block;
	}

	.single-aside .sidebar {
		max-width: none;
	}

	.footer-top {
		grid-template-columns: 1.2fr 1fr 1fr;
		gap: 36px;
	}

	.footer-brand {
		grid-column: 1 / -1;
		max-width: 560px;
	}

	.related-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.error-404__latest .related-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.featured-post {
		grid-template-columns: 1fr;
	}

	.featured-post__media {
		min-height: 0;
		aspect-ratio: 16 / 9;
	}

	.featured-post__body {
		padding: 30px 28px 32px;
	}

	.featured-post__title {
		font-size: clamp(30px, 5vw, 40px);
	}

	.post-grid--cols-3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.leographer-proof {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.leographer-case-study {
		grid-template-columns: 1fr;
	}

	.leographer-case-study .leographer-case-media {
		aspect-ratio: 16 / 9;
		min-height: 0;
	}

	.footer-top {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.footer-brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 782px) {
	body.admin-bar {
		--admin-bar: 46px;
	}
}

@media (max-width: 768px) {
	:root {
		--header-h: 64px;
	}

	.container,
	.container--narrow {
		width: calc(100% - 32px);
	}

	.archive-header {
		padding: 48px 0 32px;
	}

	.archive-title {
		font-size: clamp(38px, 10vw, 54px);
	}

	.archive-description {
		font-size: 16px;
	}

	.entry-header {
		padding-top: 30px;
	}

	.entry-title {
		font-size: clamp(38px, 9.5vw, 52px);
	}

	.entry-deck {
		font-size: 18px;
	}

	.entry-media {
		margin-top: 28px;
	}

	.entry-media__image {
		aspect-ratio: 4 / 3;
		border-radius: var(--radius-md);
	}

	.single-layout {
		padding-top: 36px;
	}

	.single-layout--none .single-body {
		max-width: none;
	}

	.entry--single .entry-content,
	.page-content--narrow .entry-content {
		font-size: 17px;
		line-height: 1.72;
	}

	.entry--single .entry-content h2,
	.page-content--narrow .entry-content h2 {
		font-size: 30px;
	}

	.author-box {
		grid-template-columns: 64px minmax(0, 1fr);
		gap: 16px;
		padding: 22px;
	}

	.author-box__avatar .avatar {
		width: 64px;
		height: 64px;
		font-size: 22px;
	}

	.author-box__name {
		font-size: 22px;
	}

	.post-navigation {
		grid-template-columns: 1fr;
	}

	.post-navigation__link--next {
		text-align: left;
		align-items: flex-start;
	}

	.page-header {
		padding: 44px 0 28px;
	}

	.page-title {
		font-size: clamp(36px, 9vw, 48px);
	}

	.page-content {
		padding-bottom: 72px;
	}

	.page-content--narrow {
		width: calc(100% - 32px);
	}

	.comments-wrap {
		margin-top: 44px;
	}

	.comment-list .children {
		margin-left: 18px;
	}

	.error-404 {
		padding: 64px 0 80px;
	}

	.error-404__code {
		font-size: clamp(110px, 30vw, 180px);
	}

	.error-404__latest {
		margin-top: 56px;
		padding-top: 36px;
	}

	.footer-top {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.footer-brand {
		grid-column: auto;
	}

	.footer-bottom {
		flex-direction: column;
		align-items: flex-start;
	}

	.wordmark--footer {
		font-size: 36px;
	}
}

@media (max-width: 640px) {
	.post-grid--cols-2,
	.post-grid--cols-3 {
		grid-template-columns: 1fr;
	}

	.post-grid {
		gap: 34px;
	}

	.post-grid--list .post-card {
		grid-template-columns: 1fr;
		gap: 16px;
		padding: 26px 0;
	}

	.post-grid--list .post-card__body {
		padding-right: 0;
	}

	.post-grid--list .post-card__arrow {
		display: none;
	}

	.post-grid--list .post-card__media {
		aspect-ratio: 16 / 9;
	}

	.post-card__title {
		font-size: 24px;
	}

	.post-card__excerpt {
		font-size: 14px;
	}

	.featured-post__body {
		padding: 24px 22px 26px;
	}

	.featured-post__title {
		font-size: 30px;
	}

	.related-grid,
	.error-404__latest .related-grid {
		grid-template-columns: 1fr;
	}

	.entry-meta {
		gap: 8px 14px;
	}

	.share {
		align-items: flex-start;
	}

	.entry-tags {
		margin-top: 36px;
	}

	.author-box {
		grid-template-columns: 1fr;
	}

	.leographer-proof {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.leographer-pattern-hero {
		padding-block: 48px;
	}

	.leographer-pattern-hero h1 {
		font-size: clamp(42px, 11vw, 58px);
	}

	.leographer-cta {
		padding: 32px 24px;
	}

	.leographer-case-study .leographer-case-body {
		padding: 26px;
	}

	.primary-nav {
		display: none;
	}

	.search-form__submit {
		padding: 0 14px;
		font-size: 12px;
	}

	.search-dialog__inner {
		padding: 22px;
	}

	.mobile-nav__panel {
		padding: 16px 20px 24px;
	}

	.mobile-nav .menu > .menu-item > a {
		font-size: 25px;
	}

	.footer-bottom__links {
		gap: 14px;
	}

	.entry--single .entry-content .alignleft,
	.entry--single .entry-content .alignright,
	.page-content--narrow .entry-content .alignleft,
	.page-content--narrow .entry-content .alignright {
		float: none;
		margin: 24px 0;
	}
}

/* Theme toggle stays in the header on mobile; only iPhone SE (375px) and
 * narrower drop it — there it would crowd the wordmark against the two
 * other icon buttons, and the mobile nav panel still carries a toggle. */
@media (max-width: 375px) {
	.header-actions .theme-toggle {
		display: none;
	}
}

@media (max-width: 480px) {
	.wordmark--signature {
		font-size: 29px;
	}

	.wordmark--text {
		font-size: 26px;
	}

	.entry-meta__updated {
		display: none;
	}

	.error-404__actions .btn {
		width: 100%;
	}

	.search-form__submit {
		width: 44px;
		padding: 0;
		font-size: 0;
	}

	.search-form__submit::after {
		content: "→";
		font-size: 16px;
	}
}

/* ---------- Interaction polish (1.7.0) ----------
 * Elementor global classes ship hover transforms but no transitions, so
 * buttons snap instead of easing. These rules add the missing motion layer,
 * press feedback and growing link underlines. Everything stays <= 520 ms and
 * collapses under prefers-reduced-motion (block below).
 */
.elementor .leo-btn {
	transition:
		transform var(--fast) var(--ease),
		background-color var(--fast) var(--ease),
		border-color var(--fast) var(--ease),
		color var(--fast) var(--ease),
		box-shadow var(--fast) var(--ease);
}

.elementor .leo-btn-primary:hover,
.elementor .leo-btn-brand:hover,
.elementor .leo-btn-on-dark:hover {
	box-shadow: 0 10px 24px rgba(12, 10, 9, 0.16);
}

.elementor .leo-btn:active {
	transform: translateY(0) scale(0.985);
	box-shadow: none;
	transition-duration: 90ms;
}

/* Ghost CTAs read as links: let the underline grow instead of snapping in. */
.elementor .leo-btn.leo-btn-ghost {
	text-decoration: none;
	background-image: linear-gradient(currentColor, currentColor);
	background-repeat: no-repeat;
	background-origin: content-box; /* measure from the text box, not the button padding */
	background-position: 0 calc(100% + 3px);
	background-size: 0% 1px;
	transition: background-size var(--base) var(--ease), color var(--fast) var(--ease), transform var(--fast) var(--ease);
}

.elementor .leo-btn.leo-btn-ghost:hover,
.elementor .leo-btn.leo-btn-ghost:focus-visible {
	text-decoration: none;
	background-size: 100% 1px;
}

/* Cards lift only when they contain a link, so static content stays calm. */
.elementor .leo-card,
.elementor .leo-card-flat,
.elementor .leo-door-card {
	transition: transform var(--base) var(--ease), border-color var(--base) var(--ease), box-shadow var(--base) var(--ease), background-color var(--base) var(--ease);
}

.elementor .leo-card:has(a):hover,
.elementor .leo-card:has(a):focus-within,
.elementor .leo-card-flat:has(a):hover,
.elementor .leo-card-flat:has(a):focus-within,
.elementor .leo-door-card:has(a):hover,
.elementor .leo-door-card:has(a):focus-within {
	transform: translateY(-3px);
	border-color: var(--border-strong);
	box-shadow: var(--shadow-sm);
}

.elementor .leo-card:has(a):active,
.elementor .leo-card-flat:has(a):active,
.elementor .leo-door-card:has(a):active {
	transform: translateY(-1px) scale(0.997);
	transition-duration: 90ms;
}

/* Services storyboard cards: the whole item lifts, the frame carries the
 * border/shadow emphasis because the item itself has no border. */
.elementor .leo-svc-item {
	transition: transform var(--base) var(--ease);
}

.elementor .leo-svc-frame {
	transition: border-color var(--base) var(--ease), box-shadow var(--base) var(--ease);
}

.elementor .leo-svc-item:has(a):hover,
.elementor .leo-svc-item:has(a):focus-within {
	transform: translateY(-3px);
}

.elementor .leo-svc-item:has(a):hover .leo-svc-frame,
.elementor .leo-svc-item:has(a):focus-within .leo-svc-frame {
	border-color: var(--border-strong);
	box-shadow: var(--shadow-sm);
}

.elementor .leo-svc-item:has(a):active {
	transform: translateY(-1px) scale(0.997);
	transition-duration: 90ms;
}

/* Nav underline grows from the left; current items keep it on. Scoped to the
 * top-level list only — submenu rows already have a background state, and an
 * underline that grows then retracts there reads as a flicker. */
.primary-nav .menu > .menu-item > a {
	background-image: linear-gradient(currentColor, currentColor);
	background-repeat: no-repeat;
	background-origin: content-box;
	background-position: 0 calc(100% + 3px);
	background-size: 0% 1px;
	transition: color var(--fast) var(--ease), background-size var(--base) var(--ease);
}

.primary-nav .menu > .menu-item:hover > a,
.primary-nav .menu > .menu-item.current-menu-item > a,
.primary-nav .menu > .menu-item.current-menu-ancestor > a {
	background-size: 100% 1px;
}

.primary-nav .menu > .menu-item.current-menu-item > a {
	box-shadow: none; /* replaced by the animated underline */
}

.primary-nav .sub-menu a {
	background-image: none;
}

/* Footer navigation and legal links get the same, quieter treatment. Contact
 * entries (address, email, phone) are excluded: an address wraps over several
 * lines, and a per-line underline reads as noise rather than affordance. */
.menu--footer a,
.footer-column .menu a,
.footer-bottom__links a {
	padding-bottom: 3px; /* keeps the underline clear of descenders */
	width: fit-content; /* the line follows the words, not the column */
	justify-self: start;
	background-image: linear-gradient(currentColor, currentColor);
	background-repeat: no-repeat;
	background-position: 0 100%;
	background-size: 0% 1px;
	transition: color var(--fast) var(--ease), background-size var(--base) var(--ease);
}

.menu--footer a:hover,
.footer-column .menu a:hover,
.footer-bottom__links a:hover {
	background-size: 100% 1px;
}

.footer-contact a,
.footer-column .wp-block-list a,
.site-footer .wp-block-list a {
	background-image: none; /* colour shift only — widget lists often wrap */
}

/* The global a:hover underline is right for body copy but wrong in the footer:
 * the address link wraps over several lines and the theme already draws its
 * own (spaced, word-width) underline for navigation. */
.site-footer a:hover,
.site-footer a:focus-visible {
	text-decoration: none;
}

/* Small controls feel pressed on tap. */
.icon-button,
.header-search-toggle,
.menu-toggle,
.theme-toggle {
	transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease), color var(--fast) var(--ease), transform var(--fast) var(--ease);
}

.icon-button:hover,
.header-search-toggle:hover,
.menu-toggle:hover,
.theme-toggle:hover {
	transform: translateY(-1px);
}

.icon-button:active,
.header-search-toggle:active,
.menu-toggle:active,
.theme-toggle:active {
	transform: scale(0.94);
}

.theme-toggle .icon {
	transition: transform var(--base) var(--ease);
}

.theme-toggle:hover .icon {
	transform: rotate(-14deg);
}

/* Inputs hint at interactivity before focus. */
.input:hover,
.textarea:hover,
input[type="text"]:hover,
input[type="email"]:hover,
input[type="search"]:hover,
input[type="tel"]:hover {
	border-color: var(--border-strong);
}

/* Sections below the fold fade up once. The class is added by JS only, so
 * content is never hidden when scripting or motion is unavailable. */
.leo-reveal {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 520ms var(--ease), transform 520ms var(--ease);
}

.leo-reveal.is-revealed {
	opacity: 1;
	transform: none;
}

@media (hover: none) {
	.elementor .leo-btn:hover,
	.elementor .leo-card:has(a):hover,
	.elementor .leo-card-flat:has(a):hover,
	.elementor .leo-door-card:has(a):hover {
		transform: none;
		box-shadow: none;
	}

	.elementor .leo-svc-item:has(a):hover {
		transform: none;
	}

	.elementor .leo-svc-item:has(a):hover .leo-svc-frame {
		border-color: var(--border);
		box-shadow: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.001ms !important;
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
	}
}

@media print {
	@page {
		size: A4;
		margin: 14mm;
	}

	.site-header,
	.site-footer,
	.entry-share,
	.author-box,
	.post-navigation,
	.related-posts,
	.comments-wrap,
	.reading-progress,
	.toc,
	.breadcrumbs,
	.no-print {
		display: none !important;
	}

	body {
		background: #fff;
		color: #000;
		font-size: 10pt;
	}

	.entry--single .entry-content,
	.page-content--narrow .entry-content {
		max-width: none;
		font-size: 10pt;
		line-height: 1.55;
	}

	.entry-title,
	.page-title {
		font-size: 26pt;
	}

	a {
		color: inherit;
		text-decoration: none;
	}
}

/* Pattern refinements */
.leographer-proof-item {
	display: grid;
	gap: 4px;
	margin: 0;
}

.leographer-proof-item strong {
	font-family: var(--font-display);
	font-size: clamp(32px, 4vw, 46px);
	font-weight: 500;
	line-height: 1;
	color: var(--fg);
}

.leographer-proof-item span {
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--fg-subtle);
}

.leographer-case-media p {
	position: relative;
	z-index: 1;
	margin: 0;
	font-family: var(--font-sans);
	font-size: 9px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--fg-subtle);
	text-align: center;
}

.leographer-cta .eyebrow {
	color: #ff8a9b;
}

.leographer-sources h2 {
	font-family: var(--font-sans);
	font-size: 18px;
	font-weight: 600;
	letter-spacing: 0;
	margin: 0 0 8px;
}

.leographer-sources a {
	color: var(--brand-text);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	border: 1px solid var(--border-strong);
	color: var(--fg);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--surface-2);
	border-color: var(--fg);
	color: var(--fg);
}

.leographer-cta .wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	border-color: var(--stone-500);
	color: var(--stone-50);
}

@media (max-width: 900px) {
	.leographer-proof .wp-block-column {
		flex-basis: 50% !important;
	}
}

@media (max-width: 640px) {
	.leographer-proof .wp-block-column {
		flex-basis: 100% !important;
	}
}

/* Block-built pages: full-width canvas with constrained inner blocks */
.page-content--blocks {
	width: 100%;
	max-width: none;
	padding-bottom: 96px;
}

.page-content--blocks .entry-content {
	max-width: none;
	font-family: var(--font-sans);
	font-size: 18px;
	line-height: 1.75;
	color: var(--fg);
}

.page-content--blocks .entry-content > .alignwide {
	width: min(1240px, calc(100% - 48px));
	max-width: none;
	margin-inline: auto;
}

.page-content--blocks .entry-content > .alignfull {
	width: 100%;
	max-width: 100%;
	margin-inline: 0;
}

.page-content--blocks .entry-content p {
	margin: 0 0 1.35em;
}

.page-content--blocks .entry-content h2 {
	font-family: var(--font-display);
	font-size: clamp(30px, 3.2vw, 40px);
	font-weight: 500;
	line-height: 1.12;
	letter-spacing: -0.02em;
	margin: 1.4em 0 0.5em;
}

.page-content--blocks .entry-content h3 {
	font-family: var(--font-sans);
	font-size: 22px;
	font-weight: 600;
	margin: 1.5em 0 0.45em;
}

.page-content--blocks .entry-content h4 {
	font-family: var(--font-sans);
	font-size: 18px;
	font-weight: 600;
	margin: 1.4em 0 0.4em;
}

.page-content--blocks .entry-content ul,
.page-content--blocks .entry-content ol {
	margin: 0 0 1.4em;
	padding-left: 1.35em;
}

.page-content--blocks .entry-content li {
	margin-bottom: 0.45em;
}

.page-content--blocks .entry-content a:not(.wp-element-button):not(.wp-block-button__link):not(.btn) {
	color: var(--brand-text);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-decoration-color: color-mix(in srgb, var(--brand-text) 35%, transparent);
	text-underline-offset: 3px;
}

.page-content--blocks .entry-content blockquote {
	margin: 40px 0;
	padding: 8px 0 8px 28px;
	border-left: 2px solid var(--brand);
	font-family: var(--font-display);
	font-size: 28px;
	font-style: italic;
	line-height: 1.35;
}

.page-content--blocks .entry-content .wp-block-columns {
	margin-block: 0;
}

.page-content--blocks .entry-content .wp-block-group {
	margin-block: 0;
}

.page-content--blocks .entry-content > .leographer-proof,
.entry-content > .leographer-proof {
	width: min(1240px, calc(100% - 48px));
	margin-inline: auto;
}

.post-card__body > .badge,
.post-card__body > .post-card__category {
	align-self: flex-start;
}

/* ---------- Landing page template ---------- */
.site-main--landing {
	margin: 0;
	padding: 0;
}

body.leographer-landing .site-main--landing .entry-content,
.site-main--landing .entry-content {
	max-width: none;
	margin: 0;
	padding: 0;
}

body.leographer-landing .elementor-top-section,
body.leographer-landing .elementor-section {
	margin-block: 0;
}

/* ---------- Footer widgets (core block widgets) ---------- */
.site-footer h1,
.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer h5,
.site-footer h6 {
	color: var(--stone-50);
	font-family: var(--font-sans);
}

.site-footer .widget-title,
.site-footer .widget .wp-block-heading {
	font-family: var(--font-sans);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--stone-500);
	margin: 0 0 14px;
}

.site-footer .widget li,
.site-footer .widget p {
	color: var(--stone-400);
}

.site-footer .widget a {
	color: var(--stone-300);
}

.site-footer .widget a:hover {
	color: var(--white);
}

.site-footer select,
.site-footer input[type="search"],
.site-footer .wp-block-search__input {
	background: var(--stone-900);
	border: 1px solid var(--stone-700);
	color: var(--stone-200);
}

.site-footer .wp-block-search__button,
.site-footer .widget .btn {
	background: var(--stone-50);
	border-color: var(--stone-50);
	color: var(--stone-950);
}

.site-footer table,
.site-footer th,
.site-footer td {
	border-color: var(--stone-800);
	color: var(--stone-300);
}

.site-footer th {
	background: var(--stone-900);
}

.site-footer .wp-block-tag-cloud a {
	border-color: var(--stone-700);
	color: var(--stone-300);
}

.site-footer .wp-block-calendar caption,
.site-footer .wp-block-calendar a {
	color: var(--stone-300);
}

/* ==========================================================================
   LIGHT / DARK UTILITIES
   Theme đổi chế độ bằng data-theme="dark" trên <html> (assets/js/main.js).
   Elementor global class chỉ hỗ trợ &:hover, không hỗ trợ ancestor selector,
   nên các helper dưới đây nằm ở theme để dùng được cho mọi widget.
   Gắn class trong Elementor → Advanced → CSS Classes.
   ========================================================================== */

/* 1. Dải nền cố định — không đổi theo theme.
      Dùng khi cần một khối luôn sáng hoặc luôn tối bất kể chế độ hiện tại. */
.leo-band-paper {
	background-color: #FAFAF9 !important;
	color: #0C0A09;
}

.leo-band-ink {
	background-color: #0C0A09 !important;
	color: #FAFAF9;
}

/* 2. Hiện/ẩn theo theme — đặt hai bản sao của cùng một nội dung, mỗi bản một
      class; chỉ bản đúng chế độ được hiển thị.
      Ví dụ: ảnh logo mực và ảnh logo trắng trong cùng một ô. */
html:not([data-theme="dark"]) .leo-dark-only {
	display: none !important;
}

html[data-theme="dark"] .leo-light-only {
	display: none !important;
}

/* 3. Đảo màu cho mark đơn sắc ở dark mode.
      CHỈ dùng cho logo/dấu MỘT MÀU nét đen. Với logo có chi tiết bên trong
      (con dấu, minh hoạ, chữ nhỏ) filter này xoá sạch chi tiết — hãy dùng
      cặp ảnh với .leo-light-only / .leo-dark-only thay thế. */
html[data-theme="dark"] .leo-invert-on-dark {
	filter: brightness(0) invert(1);
}

/* 4. Đường kẻ và màu chữ bám token, tự đổi theo theme. */
.leo-rule-theme {
	border: 0;
	border-top: 1px solid var(--border);
}

.leo-text-muted {
	color: var(--fg-muted);
}

.leo-text-subtle {
	color: var(--fg-subtle);
}

/* 5. Ô media giữ hai biến thể chồng khít nhau, để ẩn/hiện không nhảy layout. */
.leo-swap {
	position: relative;
	display: grid;
	place-items: center;
}

.leo-swap > * {
	grid-area: 1 / 1;
}


/* Footer clearance: pages whose last Elementor section has no leo-section
   padding would otherwise sit flush against the footer. */
.page-main .elementor > .elementor-element:last-child:not([class*="leo-section"]) {
	padding-bottom: var(--section-y);
}

/* Home post grid (inc/home-grid.php): sits directly below the Elementor
   content of a static front page when blog_home_grid is on. Top rhythm is
   carried by the hero section itself, so this block only opens the bottom. */
.home-blog {
	padding: 0 var(--gutter) var(--section-y-lg);
	background: var(--bg);
}

.home-blog__head {
	margin: 0 0 40px;
}

.home-blog__title {
	font-family: var(--font-display);
	font-size: var(--text-h2);
	line-height: 1.1;
	letter-spacing: -0.02em;
	font-weight: 400;
	color: var(--fg);
	margin: 0;
}

@media (max-width: 767px) {
	.home-blog {
		padding-bottom: var(--section-y);
	}

	.home-blog__head {
		margin-bottom: 24px;
	}
}

/* ==========================================================================
   STACKED ARCHIVE (template-parts/blog/stack.php)
   Blocks 1–2 reuse the existing featured/standard cards and the post-grid;
   these rules own the rhythm and the slim rows (mix right column + tail).
   ========================================================================== */
.stack > section + section {
	margin-top: 48px;
}

.stack-label {
	margin-bottom: 16px;
}

.stack-mix {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: 28px;
	align-items: start;
}

.stack-rows {
	list-style: none;
	margin: 0;
	padding: 0;
}

.stack-row {
	display: grid;
	grid-template-columns: 92px minmax(0, 1fr) auto;
	gap: 14px;
	align-items: baseline;
	padding: 14px 0;
	border-top: 1px solid var(--border);
}

.stack-row__date {
	font-size: var(--text-xs);
	color: var(--fg-subtle);
	font-variant-numeric: tabular-nums;
}

.stack-row__title {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 19px;
	line-height: 1.25;
	letter-spacing: -0.015em;
}

.stack-row__title a {
	color: var(--fg);
	text-decoration: none;
	transition: color var(--fast) var(--ease);
}

.stack-row__title a:hover {
	color: var(--brand-text);
}

.stack-row__cat {
	justify-self: end;
}

.stack-tail .stack-row {
	grid-template-columns: 120px minmax(0, 1fr) auto;
}

@media (max-width: 767px) {
	.stack-mix {
		grid-template-columns: 1fr;
	}

	.stack-row {
		grid-template-columns: 84px minmax(0, 1fr);
	}

	.stack-tail .stack-row {
		grid-template-columns: 84px minmax(0, 1fr);
	}

	.stack-row__cat {
		display: none;
	}
}
