/* ==========================================================================
   GTA6Zone — "Leonida Map Grid"
   Tokens → base → layout → header → hero → sections → cards → single →
   sidebar → FAQ → footer → utilities → responsive → reduced motion
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
	--font-display: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

	--space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px;
	--space-8: 32px; --space-12: 48px; --space-16: 64px; --space-24: 96px;

	--radius-xs: 2px; --radius-sm: 6px; --radius-md: 10px; --radius-lg: 14px; --radius-xl: 18px; --radius-full: 9999px;

	--ease-out: cubic-bezier(0, 0, 0.2, 1);
	--ease-in: cubic-bezier(0.4, 0, 1, 1);
	--ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
	--ease-slide: cubic-bezier(0.22, 0.61, 0.36, 1);
	--dur-fast: 140ms; --dur-ui: 220ms; --dur-slow: 480ms;

	--container: 1240px;
	--container-narrow: 780px;
	--gutter: clamp(16px, 4vw, 32px);
	--grid-size: 56px;
}

/* Dark — "Midnight Survey" (default for everyone) */
:root,
:root[data-theme="dark"] {
	--bg-base: #060A18;
	--bg-raised: #0C1328;
	--bg-overlay: #111A36;
	--bg-subtle: #16213F;
	--bg-glass: rgba(12, 19, 40, 0.62);
	--grid-line: rgba(45, 212, 191, 0.055);
	--border: #1E2A4D;
	--border-strong: #2C3B66;
	--text-primary: #E2E8F0;
	--text-secondary: #94A3B8;
	--text-disabled: #64748B;
	--accent: #2DD4BF;
	--accent-hover: #5EEAD4;
	--on-accent: #042F2A;
	--accent-muted: rgba(45, 212, 191, 0.12);
	--accent-2: #8B5CF6;
	--accent-2-text: #A78BFA;
	--accent-2-muted: rgba(139, 92, 246, 0.16);
	--marker: #F59E0B;
	--focus-ring: #5EEAD4;
	--success: #34D399;
	--destructive: #F87171;
	--shadow-card: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 12px 32px -18px rgba(0, 0, 0, 0.8);
	--shadow-hover: 0 0 0 1px rgba(45, 212, 191, 0.35), 0 18px 40px -18px rgba(45, 212, 191, 0.35);
	--overlay-grad: linear-gradient(180deg, rgba(6, 10, 24, 0) 25%, rgba(6, 10, 24, 0.72) 60%, rgba(6, 10, 24, 0.96) 100%);
	--bloom-a: rgba(139, 92, 246, 0.35);
	--bloom-b: rgba(45, 212, 191, 0.26);
	--map-land: rgba(45, 212, 191, 0.10);
	--map-land-stroke: rgba(45, 212, 191, 0.75);
	--map-line: rgba(139, 92, 246, 0.55);
	--map-water: radial-gradient(120% 90% at 70% 80%, rgba(139, 92, 246, 0.22), transparent 60%), linear-gradient(160deg, #0B1733 0%, #081026 100%);
	--map-grid: rgba(45, 212, 191, 0.16);
	--map-edge: rgba(45, 212, 191, 0.45);
	--tile-text: #F1F5F9;
}

/* Light — "Surveyor's Paper" (cartographic, not inverted) */
:root[data-theme="light"] {
	--bg-base: #F2F5FA;
	--bg-raised: #FFFFFF;
	--bg-overlay: #FFFFFF;
	--bg-subtle: #E4EBF5;
	--bg-glass: rgba(255, 255, 255, 0.78);
	--grid-line: rgba(30, 58, 138, 0.06);
	--border: #D5DEEA;
	--border-strong: #B6C3D6;
	--text-primary: #0B1328;
	--text-secondary: #475569;
	--text-disabled: #64748B;
	--accent: #0F766E;
	--accent-hover: #115E59;
	--on-accent: #FFFFFF;
	--accent-muted: rgba(15, 118, 110, 0.10);
	--accent-2: #6D28D9;
	--accent-2-text: #6D28D9;
	--accent-2-muted: rgba(109, 40, 217, 0.09);
	--marker: #B45309;
	--focus-ring: #0F766E;
	--success: #047857;
	--destructive: #B91C1C;
	--shadow-card: 0 1px 2px rgba(15, 23, 42, 0.05), 0 10px 28px -18px rgba(30, 58, 138, 0.28);
	--shadow-hover: 0 0 0 1px rgba(15, 118, 110, 0.35), 0 18px 36px -20px rgba(30, 58, 138, 0.4);
	--overlay-grad: linear-gradient(180deg, rgba(11, 19, 40, 0) 25%, rgba(11, 19, 40, 0.66) 62%, rgba(11, 19, 40, 0.92) 100%);
	--bloom-a: rgba(109, 40, 217, 0.14);
	--bloom-b: rgba(15, 118, 110, 0.14);
	--map-land: #F7EFDC;
	--map-land-stroke: #1E3A8A;
	--map-line: rgba(109, 40, 217, 0.55);
	--map-water: radial-gradient(120% 90% at 70% 80%, rgba(15, 118, 110, 0.14), transparent 60%), linear-gradient(160deg, #DCE8F6 0%, #CFDDF0 100%);
	--map-grid: rgba(30, 58, 138, 0.14);
	--map-edge: rgba(30, 58, 138, 0.4);
	--tile-text: #F8FAFC;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.6;
	color: var(--text-primary);
	background-color: var(--bg-base);
	background-image:
		linear-gradient(var(--grid-line) 1px, transparent 1px),
		linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
	background-size: var(--grid-size) var(--grid-size);
	background-position: center top;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
	transition: background-color var(--dur-ui) var(--ease-out), color var(--dur-ui) var(--ease-out);
}

img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.015em;
	margin: 0 0 var(--space-4);
	color: var(--text-primary);
	overflow-wrap: anywhere;
}

p { margin: 0 0 var(--space-4); }

a { color: var(--accent); text-decoration: none; transition: color var(--dur-fast) var(--ease-out); }
a:hover { color: var(--accent-hover); }

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

::selection { background: var(--accent); color: var(--on-accent); }

.mono {
	font-family: var(--font-mono);
	font-weight: 500;
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }

.site-main { display: block; }

/* ---------- 3. Buttons, inputs, chips ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	min-height: 44px;
	padding: 10px 20px;
	border: 1px solid transparent;
	border-radius: var(--radius-sm);
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 0.95rem;
	line-height: 1.2;
	cursor: pointer;
	text-decoration: none;
	transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-ui) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn--lg { min-height: 50px; padding: 12px 24px; font-size: 1rem; }
.btn--primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 24px -10px var(--accent); }
.btn--primary:hover { background: var(--accent-hover); color: var(--on-accent); box-shadow: 0 10px 28px -8px var(--accent); }
.btn--ghost { background: transparent; color: var(--text-primary); border-color: var(--border-strong); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-muted); }

.icon-btn {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--bg-raised);
	color: var(--text-primary);
	cursor: pointer;
	transition: border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.icon-btn:active { transform: scale(0.94); }
.icon-btn .icon { width: 20px; height: 20px; }

.input {
	width: 100%;
	min-height: 44px;
	padding: 10px 14px;
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-sm);
	background: var(--bg-subtle);
	color: var(--text-primary);
	font: inherit;
	font-size: 1rem;
	transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.input::placeholder { color: var(--text-disabled); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-muted); }

.region-tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	max-width: 100%;
	padding: 5px 10px 5px 8px;
	border: 1px solid rgba(45, 212, 191, 0.45);
	border-radius: var(--radius-xs);
	background: rgba(6, 10, 24, 0.78);
	color: #5EEAD4;
	font-family: var(--font-mono);
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1.2;
	white-space: nowrap;
}
.region-tag span { overflow: hidden; text-overflow: ellipsis; }
.region-tag .icon { width: 13px; height: 13px; flex: none; }
a.region-tag:hover { border-color: #5EEAD4; color: #CCFBF1; }

.badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: var(--radius-xs);
	background: var(--accent-2);
	color: #fff;
	font-family: var(--font-mono);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.tag-list { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.tag-chip {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	padding: 4px 12px;
	border: 1px solid var(--border);
	border-radius: var(--radius-full);
	background: var(--bg-subtle);
	color: var(--text-secondary);
	font-family: var(--font-mono);
	font-size: 0.75rem;
	transition: all var(--dur-fast) var(--ease-out);
}
.tag-chip:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-muted); }

.meta-row {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2) var(--space-4);
	color: var(--text-secondary);
	font-family: var(--font-mono);
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.meta-row__item { display: inline-flex; align-items: center; gap: 6px; }
.meta-row .icon { width: 13px; height: 13px; color: var(--accent); }

/* ---------- 4. Header (normal flow — never fixed/sticky) ---------- */
.site-header {
	position: relative;
	z-index: 20;
	border-bottom: 1px solid var(--border);
	background: color-mix(in srgb, var(--bg-base) 88%, transparent);
}
.site-header__bar {
	display: flex;
	align-items: center;
	gap: var(--space-6);
	min-height: 72px;
	padding-block: var(--space-3);
}
.site-header__brand { flex: none; min-width: 0; }
.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--text-primary);
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.35rem;
	letter-spacing: -0.02em;
	white-space: nowrap;
}
.brand:hover { color: var(--text-primary); }
.brand__mark {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border: 1px solid var(--accent);
	border-radius: var(--radius-sm);
	color: var(--accent);
	background: var(--accent-muted);
	box-shadow: 0 0 18px -4px var(--accent);
}
.brand__mark .icon { width: 20px; height: 20px; }
.brand__six { color: var(--accent); }
.custom-logo-link img { max-height: 48px; width: auto; }

.site-nav { flex: 1 1 auto; min-width: 0; display: flex; justify-content: center; }
.site-nav__list {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
	white-space: nowrap;
}
.site-nav__list a {
	position: relative;
	display: block;
	padding: 10px 12px;
	border-radius: var(--radius-sm);
	color: var(--text-secondary);
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 0.9rem;
	white-space: nowrap;
}
.site-nav__list a:hover { color: var(--text-primary); background: var(--bg-subtle); }
.site-nav__list .current-menu-item > a,
.site-nav__list .current-menu-ancestor > a,
.site-nav__list .current-category-ancestor > a,
.site-nav__list a[aria-current="page"] { color: var(--accent); }
.site-nav__list .current-menu-item > a::after,
.site-nav__list a[aria-current="page"]::after {
	content: "";
	position: absolute;
	left: 12px; right: 12px; bottom: 4px;
	height: 2px;
	background: var(--accent);
	box-shadow: 0 0 8px var(--accent);
}

.site-header__actions { flex: none; display: flex; align-items: center; gap: var(--space-2); margin-left: auto; }
.menu-toggle { display: none; }
.menu-toggle__close, .menu-toggle[aria-expanded="true"] .menu-toggle__open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__close { display: block; }

.theme-toggle__sun { display: block; }
.theme-toggle__moon { display: none; }
[data-theme="light"] .theme-toggle__sun { display: none; }
[data-theme="light"] .theme-toggle__moon { display: block; }

.header-search { border-top: 1px solid var(--border); padding-block: var(--space-4); background: var(--bg-raised); }
.header-search[hidden] { display: none; }

/* Collapsed header — applied by CSS breakpoint AND by JS whenever the nav would not fit on one line */
.site-header.is-collapsed .menu-toggle { display: inline-grid; }
.site-header.is-collapsed .site-header__bar { flex-wrap: wrap; }
.site-header.is-collapsed .site-nav {
	display: none;
	order: 10;
	flex: 1 0 100%;
	justify-content: flex-start;
	padding-bottom: var(--space-3);
}
.site-header.is-collapsed.is-menu-open .site-nav { display: block; }
.site-header.is-collapsed .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; white-space: normal; }
.site-header.is-collapsed .site-nav__list a {
	padding: 14px 4px;
	border-radius: 0;
	border-bottom: 1px solid var(--border);
	font-size: 1rem;
	white-space: normal;
}
.site-header.is-collapsed .site-nav__list a::after { display: none; }

/* ---------- 5. Hero — 3D Leonida survey plate ---------- */
.hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	display: flex;
	align-items: center;
	min-height: min(85vh, 760px);
	padding-block: clamp(40px, 7vh, 88px);
	border-bottom: 1px solid var(--border);
}
.hero__bloom {
	position: absolute;
	inset: -20% -10% -20% 20%;
	z-index: -1;
	background:
		radial-gradient(40% 45% at 62% 45%, var(--bloom-a), transparent 70%),
		radial-gradient(35% 40% at 78% 62%, var(--bloom-b), transparent 70%);
	pointer-events: none;
}
.hero__inner {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	align-items: center;
	gap: clamp(24px, 4vw, 64px);
}
.glass {
	background: var(--bg-glass);
	border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
	border-radius: var(--radius-xl);
	box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.05);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
}
.hero__panel { position: relative; z-index: 2; padding: clamp(24px, 3.5vw, 44px); }
.hero__panel::before {
	content: "";
	position: absolute;
	top: -1px; left: 28px;
	width: 72px; height: 3px;
	background: linear-gradient(90deg, var(--accent), var(--accent-2));
	border-radius: 0 0 3px 3px;
}
.hero__label { color: var(--accent); margin-bottom: var(--space-4); }
.hero__title {
	font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4.25rem);
	line-height: 1.02;
	letter-spacing: -0.035em;
	margin-bottom: var(--space-4);
	text-wrap: balance;
}
.hero__text { max-width: 52ch; color: var(--text-secondary); font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem); margin-bottom: var(--space-6); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-8); }
.hero__stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--space-4);
	margin: 0;
	padding-top: var(--space-6);
	border-top: 1px dashed var(--border-strong);
}
.hero__stat dt { color: var(--text-secondary); font-size: 0.6875rem; margin-bottom: 4px; }
.hero__stat dd { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); color: var(--text-primary); font-variant-numeric: tabular-nums; }

.hero__map { position: relative; z-index: 1; pointer-events: none; }
.hero__map-caption { margin: var(--space-2) 0 0; text-align: center; color: var(--text-secondary); font-size: 0.625rem; opacity: 0.8; }
.map-stage {
	perspective: 1100px;
	perspective-origin: 50% 30%;
	width: min(100%, 540px);
	margin-inline: auto;
	aspect-ratio: 1 / 0.82;
	display: grid;
	place-items: center;
}
.map-plane {
	position: relative;
	width: 82%;
	aspect-ratio: 1;
	border: 1px solid var(--map-edge);
	border-radius: 12px;
	background:
		linear-gradient(var(--map-grid) 1px, transparent 1px) 0 0 / 10% 10%,
		linear-gradient(90deg, var(--map-grid) 1px, transparent 1px) 0 0 / 10% 10%,
		var(--map-water);
	box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 6%, transparent), 0 40px 80px -20px rgba(0, 0, 0, 0.55), 0 0 60px -10px var(--bloom-a);
	transform-style: preserve-3d;
	transform: rotateX(56deg) rotateZ(-32deg);
	animation: gz-drift 26s ease-in-out infinite alternate;
	will-change: transform;
}
.map-plane::after {
	/* thickness edge */
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 12px;
	transform: translateZ(-14px);
	background: linear-gradient(135deg, var(--accent-2-muted), var(--accent-muted));
	border: 1px solid var(--map-edge);
}
.map-plane__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.map-land { fill: var(--map-land); stroke: var(--map-land-stroke); stroke-width: 1.4; stroke-linejoin: round; }
.map-contour { fill: none; stroke: var(--map-land-stroke); stroke-opacity: 0.28; stroke-width: 0.8; stroke-dasharray: 3 5; }
.map-road { fill: none; stroke: var(--map-line); stroke-width: 1.2; stroke-dasharray: 8 6; }
.map-water-line { fill: none; stroke: var(--map-land-stroke); stroke-opacity: 0.25; stroke-width: 0.8; }
.map-scan {
	position: absolute;
	left: 0; right: 0; top: 0;
	height: 22%;
	background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--accent) 16%, transparent) 70%, color-mix(in srgb, var(--accent) 45%, transparent) 100%);
	border-bottom: 1px solid color-mix(in srgb, var(--accent) 70%, transparent);
	animation: gz-scan 7s linear infinite;
	pointer-events: none;
}
.hotspot {
	position: absolute;
	left: var(--x);
	top: var(--y);
	width: 0; height: 0;
	transform-style: preserve-3d;
	--c: var(--accent);
}
.hotspot--violet { --c: var(--accent-2); }
.hotspot--amber { --c: var(--marker); }
.hotspot__dot, .hotspot__ring {
	position: absolute;
	left: 0; top: 0;
	border-radius: 50%;
	transform: translate(-50%, -50%);
}
.hotspot__dot { width: 10px; height: 10px; background: var(--c); box-shadow: 0 0 12px 2px var(--c); }
.hotspot__ring {
	width: 34px; height: 34px;
	border: 2px solid var(--c);
	animation: gz-pulse 2.6s var(--ease-out) infinite;
}
.hotspot:nth-child(4) .hotspot__ring { animation-delay: .5s; }
.hotspot:nth-child(5) .hotspot__ring { animation-delay: 1s; }
.hotspot:nth-child(6) .hotspot__ring { animation-delay: 1.5s; }
.hotspot:nth-child(7) .hotspot__ring { animation-delay: 2s; }
.hotspot__label {
	position: absolute;
	left: 0; bottom: 0;
	padding: 3px 7px;
	border: 1px solid color-mix(in srgb, var(--c) 60%, transparent);
	border-radius: var(--radius-xs);
	background: color-mix(in srgb, var(--bg-base) 85%, transparent);
	color: var(--text-primary);
	font-size: 0.5625rem;
	white-space: nowrap;
	/* stand the label up against the plane's tilt */
	transform-origin: 0 100%;
	transform: translate(10px, -10px) rotateZ(32deg) rotateX(-56deg) translateZ(18px);
}

@keyframes gz-drift {
	0% { transform: rotateX(56deg) rotateZ(-32deg) translate3d(0, 0, 0); }
	100% { transform: rotateX(52deg) rotateZ(-24deg) translate3d(3%, -3%, 0); }
}
@keyframes gz-pulse {
	0% { transform: translate(-50%, -50%) scale(0.35); opacity: 0.95; }
	100% { transform: translate(-50%, -50%) scale(1.6); opacity: 0; }
}
@keyframes gz-scan {
	0% { transform: translateY(-100%); opacity: 0; }
	10% { opacity: 1; }
	90% { opacity: 1; }
	100% { transform: translateY(455%); opacity: 0; }
}

/* ---------- 6. Sections ---------- */
.section { padding-block: clamp(40px, 6vw, 72px); }
.section + .section { padding-top: 0; }
.section--carousel { padding-top: clamp(32px, 5vw, 56px); }

.section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--space-4);
	margin-bottom: var(--space-6);
	padding-bottom: var(--space-4);
	border-bottom: 1px solid var(--border);
	position: relative;
}
.section-head::after {
	content: "";
	position: absolute;
	left: 0; bottom: -1px;
	width: 64px; height: 2px;
	background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.section-head__text { min-width: 0; }
.section-head__code { color: var(--accent-2-text); margin: 0 0 6px; }
.section-head__title { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); margin: 0; }
.section-head__link {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 0.9rem;
	white-space: nowrap;
}
.section-head__link .icon { transition: transform var(--dur-fast) var(--ease-out); }
.section-head__link:hover .icon { transform: translateX(3px); }

/* ---------- 7. Carousel ---------- */
.carousel { position: relative; }
.carousel__controls { display: flex; gap: var(--space-2); flex: none; }
.carousel__viewport { overflow: hidden; border-radius: var(--radius-lg); touch-action: pan-y; }
.carousel__track {
	--spv: 1;
	display: flex;
	margin-inline: calc(var(--space-2) * -1);
	transition: transform 640ms var(--ease-slide);
	will-change: transform;
}
.carousel__track.is-dragging, .carousel__track.no-anim { transition: none; }
.carousel__slide { flex: 0 0 calc(100% / var(--spv)); min-width: 0; padding-inline: var(--space-2); }
.slide-card {
	position: relative;
	overflow: hidden;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: var(--bg-raised);
	aspect-ratio: 16 / 10;
	box-shadow: var(--shadow-card);
}
.slide-card__media { position: absolute; inset: 0; }
.slide-card__media .media__img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.slide-card:hover .media__img { transform: scale(1.04); }
.slide-card__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: flex-start;
	gap: var(--space-2);
	padding: var(--space-6);
	background: var(--overlay-grad);
}
.slide-card__title { margin: 0; font-size: clamp(1.1rem, 0.95rem + 0.6vw, 1.4rem); line-height: 1.2; color: var(--tile-text); text-wrap: balance; }
.slide-card__title a { color: inherit; }
.slide-card__meta { margin: 0; color: #CBD5E1; font-size: 0.6875rem; }

.carousel__dots { display: flex; justify-content: center; gap: var(--space-2); margin-top: var(--space-6); }
.carousel__dot {
	position: relative;
	width: 28px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	transition: width var(--dur-ui) var(--ease-out);
}
.carousel__dot::before {
	content: "";
	position: absolute;
	left: 0; right: 0; top: 50%;
	height: 4px;
	margin-top: -2px;
	border-radius: var(--radius-full);
	background: var(--border-strong);
}
.carousel__dot.is-active { width: 56px; }
.carousel__dot-progress {
	position: absolute;
	left: 0; top: 50%;
	width: 100%;
	height: 4px;
	margin-top: -2px;
	border-radius: var(--radius-full);
	background: linear-gradient(90deg, var(--accent), var(--accent-2));
	transform: scaleX(0);
	transform-origin: left center;
}
.carousel__dot.is-active .carousel__dot-progress { transform: scaleX(1); }
.carousel.is-auto .carousel__dot.is-active .carousel__dot-progress {
	animation: gz-progress var(--interval, 5000ms) linear forwards;
}
.carousel.is-paused .carousel__dot.is-active .carousel__dot-progress { animation-play-state: paused; }
@keyframes gz-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- 8. Media + cards ---------- */
.media { position: relative; overflow: hidden; background: var(--bg-subtle); }
.media__img { width: 100%; height: 100%; object-fit: cover; }

.stretched-link { color: inherit; }
.stretched-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.stretched-link:focus-visible { outline: none; }
.stretched-link:focus-visible::after { outline: 2px solid var(--focus-ring); outline-offset: -2px; border-radius: inherit; }

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: var(--bg-raised);
	box-shadow: var(--shadow-card);
	transition: transform var(--dur-ui) var(--ease-out), box-shadow var(--dur-ui) var(--ease-out), border-color var(--dur-ui) var(--ease-out);
}
.card:hover, .card:focus-within { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: transparent; }
.card__media { aspect-ratio: 16 / 10; }
.card__media .media__img { transition: transform var(--dur-slow) var(--ease-out); }
.card:hover .card__media .media__img { transform: scale(1.04); }
.card__media .region-tag { position: absolute; left: 12px; top: 12px; z-index: 2; }
.card__body { display: flex; flex-direction: column; gap: var(--space-3); flex: 1; padding: var(--space-4) var(--space-4) var(--space-6); }
.card__title { margin: 0; font-size: 1.1rem; line-height: 1.3; letter-spacing: -0.01em; }
.card__title a:hover { color: var(--accent); }
.card__excerpt {
	margin: 0;
	color: var(--text-secondary);
	font-size: 0.95rem;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.card .meta-row { margin-top: auto; }
.card--lead .card__title { font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.6rem); }

.card-compact {
	position: relative;
	display: grid;
	grid-template-columns: 132px minmax(0, 1fr);
	gap: var(--space-4);
	align-items: center;
	padding: var(--space-3);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	background: var(--bg-raised);
	transition: border-color var(--dur-ui) var(--ease-out), transform var(--dur-ui) var(--ease-out);
}
.card-compact:hover, .card-compact:focus-within { border-color: var(--accent); transform: translateX(3px); }
.card-compact__media { aspect-ratio: 4 / 3; border-radius: var(--radius-sm); }
.card-compact__body { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.card-compact__title { margin: 0; font-size: 1rem; line-height: 1.3; }
.card-compact__title a:hover { color: var(--accent); }

.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
.post-grid--archive { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---------- 9. Bento ---------- */
.bento {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--space-4);
}
.tile {
	position: relative;
	overflow: hidden;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: var(--bg-raised);
	aspect-ratio: 4 / 3.3;
	isolation: isolate;
	transition: transform var(--dur-ui) var(--ease-out), box-shadow var(--dur-ui) var(--ease-out);
}
.tile:hover, .tile:focus-within { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.tile--lead { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; min-height: 100%; }
.bento--1 .tile--lead { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
.tile__media { position: absolute; inset: 0; z-index: -1; }
.tile__media .media__img { transition: transform 700ms var(--ease-out); }
.tile:hover .tile__media .media__img { transform: scale(1.05); }
.tile__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: var(--space-3);
	padding: var(--space-4);
	background: var(--overlay-grad);
}
.tile--lead .tile__overlay { padding: clamp(20px, 3vw, 36px); background: linear-gradient(180deg, rgba(6, 10, 24, 0.1) 0%, rgba(6, 10, 24, 0.55) 45%, rgba(6, 10, 24, 0.95) 100%), radial-gradient(80% 60% at 100% 0%, rgba(139, 92, 246, 0.25), transparent 60%); }
.tile__top { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-2); flex-wrap: wrap; }
.tile__coords { color: #99F6E4; font-size: 0.625rem; padding: 4px 8px; background: rgba(6, 10, 24, 0.6); border-radius: var(--radius-xs); }
.tile__bottom { display: flex; flex-direction: column; gap: var(--space-2); }
.tile__title { margin: 0; color: var(--tile-text); font-size: 1.05rem; line-height: 1.25; text-wrap: balance; }
.tile__title a { color: inherit; }
.tile--lead .tile__title { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.4rem); letter-spacing: -0.025em; line-height: 1.08; }
.tile__excerpt { margin: 0; color: #CBD5E1; max-width: 60ch; }
.tile .meta-row { color: #CBD5E1; }
.tile .meta-row .icon { color: #5EEAD4; }

/* ---------- 10. Category sections ---------- */
.cat-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: var(--space-6);
	align-items: start;
}
.cat-layout--single { grid-template-columns: minmax(0, 1fr); max-width: 720px; }
.cat-layout__list { display: flex; flex-direction: column; gap: var(--space-3); }
.section--category.is-flipped .cat-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.section--category.is-flipped .cat-layout__lead { order: 2; }
.section--category.is-flipped .cat-layout--single { grid-template-columns: minmax(0, 1fr); }

/* ---------- 11. Pagination ---------- */
.pagination { margin-top: var(--space-12); }
.pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 12px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--bg-raised);
	color: var(--text-primary);
	font-family: var(--font-mono);
	font-size: 0.875rem;
}
.pagination a.page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 700; }
.pagination .page-numbers.dots { border: 0; background: none; }

/* ---------- 12. Page header, breadcrumbs ---------- */
.page-header {
	position: relative;
	padding-block: clamp(32px, 5vw, 56px) clamp(24px, 4vw, 40px);
	border-bottom: 1px solid var(--border);
	background: radial-gradient(60% 120% at 90% 0%, var(--accent-2-muted), transparent 60%), radial-gradient(50% 100% at 10% 100%, var(--accent-muted), transparent 60%);
	margin-bottom: clamp(24px, 4vw, 48px);
}
.page-header__code { color: var(--accent-2-text); margin: var(--space-4) 0 var(--space-2); }
.page-header__title { font-size: clamp(2rem, 1.5rem + 2.2vw, 3.25rem); letter-spacing: -0.03em; margin: 0; }
.page-header__desc { max-width: 70ch; margin-top: var(--space-4); color: var(--text-secondary); }
.page-header__desc p:last-child { margin: 0; }

.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; color: var(--text-secondary); font-size: 0.6875rem; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.breadcrumbs li + li::before { content: "/"; color: var(--border-strong); }
.breadcrumbs a { color: var(--text-secondary); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs [aria-current="page"] { color: var(--text-primary); max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 13. Layout with sidebar ---------- */
.layout-sidebar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: clamp(24px, 4vw, 48px);
	align-items: start;
	padding-bottom: clamp(40px, 6vw, 72px);
}
.site-main--single .layout-sidebar { padding-top: clamp(24px, 4vw, 40px); }
.layout-sidebar__main { min-width: 0; }

/* ---------- 14. Single entry ---------- */
.entry { min-width: 0; }
.entry__header { margin-bottom: var(--space-6); }
.entry__tags-top { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin: var(--space-6) 0 var(--space-4); }
.entry__coords { color: var(--text-secondary); font-size: 0.6875rem; }
.entry__title { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); letter-spacing: -0.03em; line-height: 1.08; text-wrap: balance; }
.entry__byline { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-6); color: var(--text-secondary); font-size: 0.95rem; }
.entry__author { display: inline-flex; align-items: center; gap: var(--space-2); }
.entry__author img { border-radius: 50%; border: 1px solid var(--border-strong); }
.entry__author a { color: var(--text-primary); font-weight: 600; }
.entry__updated { color: var(--marker); font-size: 0.6875rem; }
.entry__media { margin: 0 0 var(--space-8); border-radius: var(--radius-lg); border: 1px solid var(--border); aspect-ratio: 16 / 9; }
.entry__media figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--space-2) var(--space-4); background: rgba(6, 10, 24, 0.75); color: #CBD5E1; font-size: 0.8125rem; }
.entry--page .entry__media { margin-bottom: var(--space-8); }
.entry__footer { margin-top: var(--space-8); padding-top: var(--space-6); border-top: 1px dashed var(--border-strong); }

.prose { font-size: 1.0625rem; line-height: 1.75; max-width: 72ch; overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin-bottom: 0; }
.prose h2 { font-size: clamp(1.45rem, 1.25rem + 0.8vw, 1.85rem); margin-top: 1.9em; margin-bottom: 0.5em; padding-left: 14px; border-left: 3px solid var(--accent); }
.prose h3 { font-size: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem); margin-top: 1.6em; margin-bottom: 0.4em; }
.prose h4 { font-size: 1.1rem; margin-top: 1.4em; margin-bottom: 0.4em; }
.prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.prose a:hover { text-decoration-color: var(--accent); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--accent); }
.prose blockquote { margin-inline: 0; padding: var(--space-4) var(--space-6); border-left: 3px solid var(--accent-2); border-radius: 0 var(--radius-md) var(--radius-md) 0; background: var(--accent-2-muted); font-size: 1.1rem; }
.prose blockquote p { margin: 0; }
.prose img, .prose figure { border-radius: var(--radius-md); }
.prose figure { margin-inline: 0; }
.prose figcaption { margin-top: var(--space-2); color: var(--text-secondary); font-size: 0.875rem; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 12px; border: 1px solid var(--border); text-align: left; }
.prose th { background: var(--bg-subtle); font-family: var(--font-display); }
.prose code { font-family: var(--font-mono); font-size: 0.9em; padding: 2px 6px; border-radius: var(--radius-xs); background: var(--bg-subtle); }
.prose pre { overflow-x: auto; padding: var(--space-4); border-radius: var(--radius-md); background: var(--bg-subtle); border: 1px solid var(--border); }
.prose pre code { padding: 0; background: none; }
.prose hr { border: 0; border-top: 1px dashed var(--border-strong); margin-block: 2em; }
.prose .wp-block-embed, .prose iframe { max-width: 100%; }
.page-links { margin-top: var(--space-6); font-family: var(--font-mono); }

.post-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); margin-top: var(--space-8); }
.post-nav__link { display: flex; flex-direction: column; gap: 6px; padding: var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-raised); color: var(--text-secondary); transition: border-color var(--dur-fast) var(--ease-out); }
.post-nav__link:hover { border-color: var(--accent); color: var(--accent); }
.post-nav__link--next { text-align: right; grid-column: 2; }
.post-nav__title { color: var(--text-primary); font-family: var(--font-display); font-weight: 600; line-height: 1.3; }

.related { margin-top: var(--space-12); }
.related__title { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.8rem); }
.post-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.post-grid--3 .card__title { font-size: 1rem; }

/* ---------- 15. Comments ---------- */
.comments { margin-top: var(--space-12); padding-top: var(--space-8); border-top: 1px solid var(--border); }
.comments__title, .comment-reply-title { font-size: 1.4rem; }
.comment-list { list-style: none; margin: 0 0 var(--space-8); padding: 0; }
.comment-list .children { list-style: none; padding-left: clamp(12px, 4vw, 40px); }
.comment-body { padding: var(--space-4); margin-bottom: var(--space-3); border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-raised); }
.comment-meta { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; font-size: 0.875rem; color: var(--text-secondary); margin-bottom: var(--space-2); }
.comment-author img { border-radius: 50%; float: left; margin-right: var(--space-2); }
.comment-author .says { display: none; }
.comment-form label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 0.9rem; }
.comment-form input:not([type="submit"]):not([type="checkbox"]), .comment-form textarea {
	width: 100%; padding: 10px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
	background: var(--bg-subtle); color: var(--text-primary); font: inherit;
}
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-muted); }
.comment-form-cookies-consent { display: flex; gap: var(--space-2); align-items: flex-start; }
.comment-form-cookies-consent label { font-weight: 400; }

/* ---------- 16. Sidebar + widgets ---------- */
.sidebar { display: flex; flex-direction: column; gap: var(--space-6); min-width: 0; }
.widget { padding: var(--space-6); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-raised); box-shadow: var(--shadow-card); }
.widget__title, .widget .wp-block-heading {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	margin: 0 0 var(--space-4);
	font-family: var(--font-mono);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--accent);
}
.widget__title::before { content: "//"; color: var(--accent-2-text); }
.widget ul { margin: 0; padding: 0; list-style: none; }
.widget > ul li + li { margin-top: var(--space-2); }

.search-form { position: relative; display: flex; gap: var(--space-2); }
.search-form__icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-secondary); pointer-events: none; display: flex; }
.search-form__input { padding-left: 40px; }
.search-form__submit { flex: none; }
.sidebar .search-form__submit { padding-inline: 14px; }

.info-box__countdown { display: flex; align-items: baseline; gap: var(--space-2); margin: 0 0 var(--space-4); padding: var(--space-4); border: 1px dashed color-mix(in srgb, var(--marker) 55%, transparent); border-radius: var(--radius-md); background: color-mix(in srgb, var(--marker) 7%, transparent); }
.info-box__days { font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; line-height: 1; color: var(--marker); font-variant-numeric: tabular-nums; }
.info-box__unit { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-secondary); }
.info-box__list { margin: 0; }
.info-box__list div { display: flex; justify-content: space-between; gap: var(--space-4); padding-block: 10px; border-bottom: 1px solid var(--border); }
.info-box__list div:last-child { border-bottom: 0; }
.info-box__list dt { flex: none; font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-secondary); padding-top: 2px; }
.info-box__list dd { margin: 0; text-align: right; font-weight: 600; font-size: 0.9rem; }

.cat-list li + li { margin-top: 0; }
.cat-list a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--space-3); align-items: center; min-height: 44px; padding: 8px 0; border-bottom: 1px solid var(--border); color: var(--text-primary); }
.cat-list li:last-child a { border-bottom: 0; }
.cat-list a:hover { color: var(--accent); }
.cat-list__code { color: var(--accent-2-text); font-size: 0.625rem; }
.cat-list__name { font-weight: 600; font-size: 0.95rem; }
.cat-list__count { color: var(--text-secondary); font-size: 0.6875rem; }

.mini-list { margin: 0; padding: 0; list-style: none; counter-reset: mini; }
.mini-list__item { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: var(--space-3); align-items: center; padding-block: 10px; border-bottom: 1px solid var(--border); }
.mini-list__item:last-child { border-bottom: 0; }
.mini-list__media { display: block; aspect-ratio: 1; border-radius: var(--radius-sm); }
.mini-list__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mini-list__title { color: var(--text-primary); font-weight: 600; font-size: 0.9rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-list__title:hover { color: var(--accent); }
.mini-list__date { color: var(--text-secondary); font-size: 0.625rem; }

.newsletter__text { color: var(--text-secondary); font-size: 0.95rem; }
.newsletter__label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 0.875rem; }
.newsletter__row { display: flex; flex-direction: column; gap: var(--space-2); }
.newsletter__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.newsletter__msg { margin: var(--space-3) 0 0; font-size: 0.9rem; font-weight: 600; }
.newsletter__msg.is-success { color: var(--success); }
.newsletter__msg.is-error { color: var(--destructive); }

/* ---------- 17. Ads (reserved space → no layout shift) ---------- */
.ad-slot {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	margin-block: var(--space-8);
	padding: var(--space-6) var(--space-2) var(--space-2);
	border: 1px dashed var(--border);
	border-radius: var(--radius-md);
	overflow: hidden;
	text-align: center;
}
.ad-slot__label { position: absolute; top: 6px; left: 0; right: 0; color: var(--text-disabled); font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.12em; text-transform: uppercase; }
.ad-slot--after-title { min-height: 120px; margin-block: 0 var(--space-6); }
.ad-slot--mid-content { min-height: 300px; }
.ad-slot--after-content { min-height: 280px; }
.ad-slot--sidebar { min-height: 620px; margin: 0; }
.ad-slot > ins, .ad-slot > div { width: 100%; }

/* ---------- 18. FAQ (directly above the footer) ---------- */
.faq {
	position: relative;
	padding-block: clamp(48px, 7vw, 88px);
	border-top: 1px solid var(--border);
	background: radial-gradient(50% 80% at 0% 0%, var(--accent-muted), transparent 60%), radial-gradient(40% 70% at 100% 100%, var(--accent-2-muted), transparent 60%);
}
.faq__inner { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.faq__lede { color: var(--text-secondary); margin-top: var(--space-4); }
.faq__list { display: flex; flex-direction: column; gap: var(--space-3); }
.faq__item { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-raised); transition: border-color var(--dur-ui) var(--ease-out), box-shadow var(--dur-ui) var(--ease-out); }
.faq__item.is-open { border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 20%, transparent), 0 18px 40px -26px var(--accent); }
.faq__heading { margin: 0; font-size: 1rem; }
.faq__button {
	display: flex;
	align-items: center;
	gap: var(--space-4);
	width: 100%;
	min-height: 60px;
	padding: var(--space-4) var(--space-6);
	border: 0;
	background: transparent;
	color: var(--text-primary);
	font-family: var(--font-display);
	font-weight: 600;
	font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
	text-align: left;
	cursor: pointer;
	border-radius: var(--radius-md);
}
.faq__button:hover .faq__q { color: var(--accent); }
.faq__num { flex: none; color: var(--accent-2-text); font-size: 0.75rem; }
.faq__q { flex: 1; transition: color var(--dur-fast) var(--ease-out); }
.faq__chevron { flex: none; width: 20px; height: 20px; color: var(--accent); transition: transform var(--dur-ui) var(--ease-out); }
.faq__button[aria-expanded="true"] .faq__chevron { transform: rotate(180deg); }
.faq__panel { padding: 0 var(--space-6) var(--space-6) calc(var(--space-6) + 2.2rem); color: var(--text-secondary); }
.faq__panel p { margin: 0; line-height: 1.7; }
.faq__item.is-open .faq__panel { animation: gz-fade-down var(--dur-ui) var(--ease-out); }
html:not(.js) .faq__panel[hidden] { display: block; }
@keyframes gz-fade-down { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- 19. Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-raised); }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); padding-block: clamp(40px, 6vw, 64px); }
.site-footer__title { margin: 0 0 var(--space-4); font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.site-footer__brand { margin-bottom: var(--space-4); }
.site-footer__about p { color: var(--text-secondary); font-size: 0.95rem; max-width: 42ch; }
.footer-list { margin: 0; padding: 0; list-style: none; }
.footer-list li + li { margin-top: 2px; }
.footer-list a { display: inline-flex; align-items: center; min-height: 36px; color: var(--text-secondary); font-size: 0.95rem; }
.footer-list a:hover { color: var(--accent); }
.social-links { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-4) 0 0; padding: 0; list-style: none; }
.social-links a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-secondary); transition: all var(--dur-fast) var(--ease-out); }
.social-links a:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-muted); transform: translateY(-2px); }
.site-footer__bottom { border-top: 1px solid var(--border); padding-block: var(--space-6); }
.site-footer__bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3) var(--space-8); }
.site-footer__bottom p { margin: 0; color: var(--text-secondary); font-size: 0.8125rem; }
.site-footer__bottom .mono { font-size: 0.6875rem; }
.site-footer__disclaimer { max-width: 80ch; }

/* ---------- 20. Empty state, 404 ---------- */
.empty-state { padding: var(--space-12) var(--space-6); border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); text-align: center; color: var(--text-secondary); }
.empty-state__icon { display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: var(--space-4); border-radius: 50%; background: var(--accent-muted); color: var(--accent); }
.empty-state__icon .icon { width: 26px; height: 26px; }
.empty-state__title { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--text-primary); }
.empty-state .search-form { max-width: 520px; margin: var(--space-6) auto 0; }

.error-404 { padding-block: clamp(56px, 10vw, 120px); text-align: center; }
.error-404__code { color: var(--marker); }
.error-404__title { font-size: clamp(2rem, 1.4rem + 3vw, 3.5rem); letter-spacing: -0.03em; }
.error-404__text { color: var(--text-secondary); }
.error-404 .search-form { max-width: 560px; margin: var(--space-6) auto; }
.error-404__sectors { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); margin: 0 0 var(--space-8); padding: 0; list-style: none; }

/* ---------- 21. Back to top ---------- */
.back-to-top {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 30;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border: 1px solid var(--accent);
	border-radius: var(--radius-sm);
	background: var(--bg-overlay);
	color: var(--accent);
	cursor: pointer;
	box-shadow: 0 10px 30px -10px var(--accent);
	opacity: 0;
	transform: translateY(12px);
	transition: opacity var(--dur-ui) var(--ease-out), transform var(--dur-ui) var(--ease-out);
}
.back-to-top.is-visible { opacity: 1; transform: none; }
.back-to-top[hidden] { display: none; }
.back-to-top:hover { background: var(--accent); color: var(--on-accent); }

/* ---------- 22. Scroll reveal (JS adds .is-visible; content visible without JS) ---------- */
html.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 520ms var(--ease-out), transform 520ms var(--ease-out); transition-delay: var(--reveal-delay, 0ms); }
html.js .reveal.is-visible { opacity: 1; transform: none; }
html.js .card.reveal.is-visible:hover, html.js .card.reveal.is-visible:focus-within,
html.js .tile.reveal.is-visible:hover, html.js .tile.reveal.is-visible:focus-within { transform: translateY(-3px); transition-delay: 0ms; }
html.js .card-compact.reveal.is-visible:hover, html.js .card-compact.reveal.is-visible:focus-within { transform: translateX(3px); transition-delay: 0ms; }

/* ---------- 23. Light-mode refinements ---------- */
[data-theme="light"] .site-header { background: color-mix(in srgb, var(--bg-raised) 92%, transparent); }
[data-theme="light"] .brand__mark { box-shadow: none; }
[data-theme="light"] .btn--primary { box-shadow: 0 8px 20px -12px var(--accent); }
[data-theme="light"] .glass { box-shadow: 0 30px 60px -34px rgba(30, 58, 138, 0.35), inset 0 1px 0 #fff; }
[data-theme="light"] .map-plane { box-shadow: 0 0 0 6px rgba(30, 58, 138, 0.05), 0 40px 70px -30px rgba(30, 58, 138, 0.45); }
[data-theme="light"] .hotspot__dot { box-shadow: 0 0 0 3px #fff; }
[data-theme="light"] .hotspot__label { background: #fff; color: #0B1328; }
[data-theme="light"] .site-nav__list .current-menu-item > a::after,
[data-theme="light"] .site-nav__list a[aria-current="page"]::after { box-shadow: none; }
[data-theme="light"] .widget, [data-theme="light"] .card { border-color: #DCE3EE; }
[data-theme="light"] .site-footer { background: #0B1328; color: #E2E8F0; }
[data-theme="light"] .site-footer .brand { color: #F8FAFC; }
[data-theme="light"] .site-footer__title { color: #5EEAD4; }
[data-theme="light"] .site-footer__about p, [data-theme="light"] .footer-list a, [data-theme="light"] .site-footer__bottom p { color: #A5B4CB; }
[data-theme="light"] .footer-list a:hover { color: #5EEAD4; }
[data-theme="light"] .site-footer, [data-theme="light"] .site-footer__bottom { border-color: #1E2A4D; }
[data-theme="light"] .social-links a { border-color: #2C3B66; color: #A5B4CB; }
[data-theme="light"] .social-links a:hover { color: #5EEAD4; border-color: #5EEAD4; background: rgba(45, 212, 191, 0.1); }
[data-theme="light"] .site-footer .brand__mark { color: #5EEAD4; border-color: #5EEAD4; background: rgba(45, 212, 191, 0.12); }
[data-theme="light"] .site-footer .brand__six { color: #5EEAD4; }

/* ---------- 24. Responsive ---------- */
@media (min-width: 768px) {
	.carousel__track { --spv: 2; }
	.newsletter__row { flex-direction: column; }
}
@media (min-width: 1200px) {
	.carousel__track { --spv: 3; }
}

/* Nav collapses to the menu button early (JS also collapses whenever it would not fit) */
@media (max-width: 1180px) {
	.site-header .menu-toggle { display: inline-grid; }
	.site-header .site-header__bar { flex-wrap: wrap; }
	.site-header .site-nav { display: none; order: 10; flex: 1 0 100%; justify-content: flex-start; padding-bottom: var(--space-3); }
	.site-header.is-menu-open .site-nav { display: block; }
	.site-header .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; white-space: normal; }
	.site-header .site-nav__list a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--border); font-size: 1rem; white-space: normal; }
	.site-header .site-nav__list a::after { display: none; }
}

@media (max-width: 1100px) {
	.layout-sidebar { grid-template-columns: minmax(0, 1fr); }
	.sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
	.ad-slot--sidebar { grid-column: 1 / -1; min-height: 280px; }
	.post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.post-grid--archive { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Tablet: smaller, fainter map */
@media (max-width: 1023px) {
	.hero__inner { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); }
	.hero__map { opacity: 0.55; }
	.map-stage { width: min(100%, 360px); }
	.hotspot__label { display: none; }
	.hero__map-caption { display: none; }
	.bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tile--lead { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 9; }
	.cat-layout, .section--category.is-flipped .cat-layout { grid-template-columns: minmax(0, 1fr); }
	.section--category.is-flipped .cat-layout__lead { order: 0; }
	.cat-layout__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.faq__inner { grid-template-columns: minmax(0, 1fr); }
	.post-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Mobile: map becomes a faint background; headline + CTAs stay in flow */
@media (max-width: 767px) {
	.site-header__bar { min-height: 64px; gap: var(--space-3); }
	.brand { font-size: 1.15rem; }
	.brand__mark { width: 32px; height: 32px; }
	.site-header__actions { gap: 6px; }

	.hero { min-height: 0; padding-block: 28px 36px; }
	.hero__inner { display: block; position: static; }
	.hero__map {
		position: absolute;
		inset: 0;
		z-index: 0;
		opacity: 0.18;
		display: grid;
		place-items: center;
		overflow: hidden;
	}
	.map-stage { width: 130%; max-width: none; }
	.hero__panel { background: color-mix(in srgb, var(--bg-base) 55%, transparent); -webkit-backdrop-filter: none; backdrop-filter: none; }
	.hero__ctas .btn { flex: 1 1 auto; }
	.hero__stats { gap: var(--space-2); }

	.section-head { align-items: flex-start; flex-direction: column; }
	.section--carousel .section-head { flex-direction: row; align-items: flex-end; }
	.slide-card { aspect-ratio: 4 / 3; }
	.slide-card__overlay { padding: var(--space-4); }

	.bento { grid-template-columns: minmax(0, 1fr); }
	.tile, .tile--lead { aspect-ratio: 4 / 3; }
	.tile--lead .tile__excerpt { display: none; }

	.cat-layout__list { grid-template-columns: minmax(0, 1fr); }
	.card-compact { grid-template-columns: 104px minmax(0, 1fr); }

	.post-grid, .post-grid--archive, .post-grid--3 { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
	.sidebar { grid-template-columns: minmax(0, 1fr); }
	.post-nav { grid-template-columns: minmax(0, 1fr); }
	.post-nav__link--next { grid-column: auto; }
	.site-footer__grid { grid-template-columns: minmax(0, 1fr); }
	.faq__button { padding: var(--space-4); gap: var(--space-3); }
	.faq__panel { padding: 0 var(--space-4) var(--space-4); }
	.search-form { flex-wrap: wrap; }
	.search-form__input { flex: 1 1 200px; }
	.back-to-top { right: 14px; bottom: 14px; }
}

@media (max-width: 380px) {
	.hero__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.hero__stat dt { font-size: 0.5625rem; }
	.hero__ctas .btn { width: 100%; }
}

/* ---------- 25. Reduced motion: static fallback everywhere ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
	.map-plane { animation: none; transform: rotateX(56deg) rotateZ(-32deg); }
	.hotspot__ring { animation: none; transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
	.map-scan { display: none; }
	html.js .reveal { opacity: 1; transform: none; }
	.carousel__dot-progress { animation: none !important; }
}

@media print {
	.site-header, .sidebar, .site-footer, .faq, .ad-slot, .back-to-top, .post-nav, .related, .comments { display: none !important; }
	body { background: #fff; color: #000; }
}

/* ---------- 26. Core block widgets (defaults WordPress places in the sidebar) ---------- */
.widget .wp-block-group__inner-container > * + * { margin-top: var(--space-3); }
.widget h2.wp-block-heading { font-size: 0.75rem; }
.widget .wp-block-search__label { display: block; margin: 0 0 var(--space-4); font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.widget .wp-block-search__inside-wrapper { display: flex; gap: var(--space-2); }
.widget .wp-block-search__input { flex: 1; min-width: 0; min-height: 44px; padding: 10px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--bg-subtle); color: var(--text-primary); font: inherit; }
.widget .wp-block-search__input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-muted); }
.widget .wp-block-search__button { min-height: 44px; margin: 0; padding: 10px 16px; border: 0; border-radius: var(--radius-sm); background: var(--accent); color: var(--on-accent); font-family: var(--font-display); font-weight: 600; cursor: pointer; }
.widget .wp-block-search__button:hover { background: var(--accent-hover); }
.widget .wp-block-latest-posts__list, .widget .wp-block-categories-list, .widget .wp-block-archives-list, .widget .wp-block-latest-comments { margin: 0; padding: 0; list-style: none; }
.widget .wp-block-latest-posts__list li, .widget .wp-block-categories-list li, .widget .wp-block-archives-list li, .widget .wp-block-latest-comments li { padding-block: 8px; border-bottom: 1px solid var(--border); margin: 0; }
.widget .wp-block-latest-posts__list li:last-child, .widget .wp-block-categories-list li:last-child, .widget .wp-block-archives-list li:last-child, .widget .wp-block-latest-comments li:last-child { border-bottom: 0; }
.widget .wp-block-latest-posts__post-title, .widget .wp-block-categories-list a, .widget .wp-block-archives-list a { color: var(--text-primary); font-weight: 600; font-size: 0.925rem; line-height: 1.4; }
.widget .wp-block-latest-posts__post-title:hover, .widget .wp-block-categories-list a:hover, .widget .wp-block-archives-list a:hover { color: var(--accent); }
.widget .wp-block-latest-comments__comment { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.5; }
.widget .wp-block-latest-comments__comment-meta a { color: var(--text-primary); }
.widget .wp-block-tag-cloud a { display: inline-flex; margin: 0 6px 6px 0; padding: 4px 12px; border: 1px solid var(--border); border-radius: var(--radius-full); background: var(--bg-subtle); color: var(--text-secondary); font-family: var(--font-mono); font-size: 0.75rem !important; }
.widget .wp-block-tag-cloud a:hover { color: var(--accent); border-color: var(--accent); }
