/* ==========================================================================
   Falabetinho Design Zero — main.css
   Inspired by WordPress.org Editorial Aesthetic
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
	/* Palette */
	--clr-blue:        #3858e9;
	--clr-blue-rgb:    56, 88, 233;
	--clr-blue-dark:   #1d35b4;
	--clr-blue-light:  #7b93f5;
	--clr-blue-surf:   rgba(56, 88, 233, 0.08);
	--clr-accent:      #f59e0b;
	--clr-accent-rgb:  245, 158, 11;
	--clr-green:       #1a7f37;
	--clr-red:         #d63638;

	/* Neutrals */
	--clr-900: #1e1e1e;
	--clr-700: #50575e;
	--clr-500: #787c82;
	--clr-300: #dcdcde;
	--clr-200: #e2e4e7;
	--clr-100: #f6f7f7;
	--clr-50:  #fafafa;

	/* Semantic */
	--bg:           #ffffff;
	--bg-subtle:    #f6f7f7;
	--bg-strong:    #e2e4e7;
	--surface:      #ffffff;
	--border:       #dcdcde;
	--border-focus: #3858e9;
	--text:         #1e1e1e;
	--text-muted:   #50575e;
	--text-subtle:  #787c82;
	--text-inverse: #ffffff;

	/* Shadows */
	--sh-xs: 0 1px 2px rgba(0,0,0,.06);
	--sh-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 6px rgba(0,0,0,.04);
	--sh-md: 0 4px 12px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.04);
	--sh-lg: 0 8px 24px rgba(0,0,0,.10), 0 2px 8px rgba(0,0,0,.05);
	--sh-xl: 0 16px 48px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.06);

	/* Shape */
	--r-xs:   2px;
	--r-sm:   4px;
	--r-md:   8px;
	--r-lg:   16px;
	--r-xl:   24px;
	--r-full: 9999px;

	/* Typography */
	--font:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--font-mono: 'SFMono-Regular', ui-monospace, Consolas, Monaco, monospace;

	/* Sizes */
	--text-xs:   0.6875rem;
	--text-sm:   0.8125rem;
	--text-base: 1rem;
	--text-lg:   1.125rem;
	--text-xl:   1.375rem;
	--text-2xl:  1.75rem;
	--text-3xl:  2.375rem;
	--text-4xl:  3.25rem;
	--text-5xl:  4.5rem;

	/* Spacing (8pt grid) */
	--s1: 0.25rem;
	--s2: 0.5rem;
	--s3: 0.75rem;
	--s4: 1rem;
	--s5: 1.25rem;
	--s6: 1.5rem;
	--s7: 2rem;
	--s8: 2.5rem;
	--s9: 3rem;
	--s10: 4rem;

	/* Layout */
	--header-h:    60px;
	--sidebar-w:   260px;
	--content-max: 1280px;
	--reading-w:   74ch;
	--gap:         1.5rem;

	/* Motion */
	--ease: cubic-bezier(0.2, 0, 0, 1);
	--dur:  0.2s;
}

/* Dark mode */
html.dark-mode {
	--bg:           #0d1117;
	--bg-subtle:    #161b22;
	--bg-strong:    #21262d;
	--surface:      #161b22;
	--border:       #30363d;
	--border-focus: #a5b4ff;
	--text:         #e6edf3;
	--text-muted:   #8b949e;
	--text-subtle:  #6e7681;
	--text-inverse: #0d1117;

	--clr-blue:       #f59e0b;
	--clr-blue-rgb:   245, 158, 11;
	--clr-blue-dark:  #d97706;
	--clr-blue-light: #fcd34d;
	--clr-blue-surf:  rgba(245, 158, 11, 0.12);
	--border-focus:   #f59e0b;

	--sh-xs: 0 1px 2px rgba(0,0,0,.40);
	--sh-sm: 0 1px 3px rgba(0,0,0,.40), 0 1px 6px rgba(0,0,0,.25);
	--sh-md: 0 4px 12px rgba(0,0,0,.40), 0 1px 4px rgba(0,0,0,.25);
	--sh-lg: 0 8px 24px rgba(0,0,0,.45), 0 2px 8px rgba(0,0,0,.30);
	--sh-xl: 0 16px 48px rgba(0,0,0,.50), 0 4px 12px rgba(0,0,0,.35);
}

/* --------------------------------------------------------------------------
   2. Reset & Base
   -------------------------------------------------------------------------- */
html {
	font-size: 16px;
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font);
	font-size: var(--text-base);
	line-height: 1.6;
	color: var(--text);
	background: var(--bg);
	transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.skip-link {
	position: absolute;
	top: -100%;
	left: var(--s4);
	z-index: 10000;
	padding: var(--s2) var(--s5);
	background: var(--clr-blue);
	color: #fff;
	font-weight: 600;
	border-radius: 0 0 var(--r-md) var(--r-md);
	text-decoration: none;
	transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 0; }

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

a {
	color: var(--clr-blue);
	text-decoration: none;
	transition: color var(--dur) var(--ease);
}
a:hover { color: var(--clr-blue-dark); text-decoration: underline; }

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.025em;
	color: var(--text);
	margin: 0 0 var(--s4);
}

h1 { font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl)); }
h2 { font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl)); }
h3 { font-size: clamp(var(--text-xl),  3vw, var(--text-3xl)); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p { margin: 0 0 var(--s5); }

ul, ol {
	margin: 0 0 var(--s5);
	padding-left: var(--s7);
}

blockquote {
	margin: var(--s7) 0;
	padding: var(--s5) var(--s6);
	border-left: 4px solid var(--clr-blue);
	border-radius: 0 var(--r-md) var(--r-md) 0;
	background: var(--clr-blue-surf);
	font-size: var(--text-lg);
	font-style: normal;
	color: var(--text-muted);
}
blockquote cite {
	display: block;
	margin-top: var(--s3);
	font-size: var(--text-sm);
	color: var(--text-subtle);
}

pre, code {
	font-family: var(--font-mono);
	font-size: 0.875em;
}

pre {
	overflow-x: auto;
	padding: var(--s5) var(--s6);
	background: var(--bg-subtle);
	border: 1px solid var(--border);
	border-radius: var(--r-md);
	line-height: 1.6;
}

code:not(pre code) {
	padding: 0.1em 0.4em;
	background: var(--clr-blue-surf);
	color: var(--clr-blue-dark);
	border-radius: var(--r-xs);
}
html.dark-mode code:not(pre code) { color: var(--clr-blue-light); }

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

/* --------------------------------------------------------------------------
   4. Forms
   -------------------------------------------------------------------------- */
input, textarea, select {
	font-family: var(--font);
	font-size: var(--text-base);
	color: var(--text);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--r-md);
	padding: 0.625rem var(--s4);
	width: 100%;
	outline: none;
	transition:
		border-color var(--dur) var(--ease),
		box-shadow var(--dur) var(--ease);
}

input:focus, textarea:focus, select:focus {
	border-color: var(--border-focus);
	box-shadow: 0 0 0 3px rgba(var(--clr-blue-rgb), 0.18);
}

textarea { min-height: 120px; resize: vertical; }

label {
	display: block;
	margin-bottom: var(--s2);
	font-size: var(--text-sm);
	font-weight: 600;
	color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
	display: inline-flex;
	align-items: center;
	gap: var(--s2);
	height: 44px;
	padding: 0 var(--s6);
	font-family: var(--font);
	font-size: var(--text-sm);
	font-weight: 600;
	border-radius: var(--r-sm);
	border: 1px solid transparent;
	cursor: pointer;
	text-decoration: none;
	transition:
		background var(--dur) var(--ease),
		border-color var(--dur) var(--ease),
		box-shadow var(--dur) var(--ease),
		transform 0.1s var(--ease);
	white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn:focus-visible {
	outline: 2px solid var(--border-focus);
	outline-offset: 3px;
}

.btn-primary {
	background: var(--clr-blue);
	color: #fff;
	box-shadow: var(--sh-sm);
}
.btn-primary:hover {
	background: var(--clr-blue-dark);
	box-shadow: var(--sh-md);
	color: #fff;
}

.btn-outline {
	background: transparent;
	border-color: var(--border);
	color: var(--text);
}
.btn-outline:hover {
	border-color: var(--clr-blue);
	color: var(--clr-blue);
}

.btn-ghost {
	background: transparent;
	border-color: transparent;
	color: var(--text-muted);
}
.btn-ghost:hover {
	background: var(--bg-subtle);
	color: var(--text);
}

.btn-sm {
	height: 32px;
	padding: 0 var(--s4);
	font-size: var(--text-xs);
}

.btn-lg {
	height: 52px;
	padding: 0 var(--s8);
	font-size: var(--text-base);
}

/* --------------------------------------------------------------------------
   6. Layout
   -------------------------------------------------------------------------- */
.container {
	width: 100%;
	max-width: var(--content-max);
	margin-inline: auto;
	padding-inline: var(--s6);
}

.site-wrapper {
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
}

#content { flex: 1; }

/* Three-column layout */
.layout-3col,
.layout-2col-left,
.layout-2col-right {
	display: grid;
	gap: var(--gap);
	align-items: start;
	padding-block: var(--s8);
}

.layout-3col     { grid-template-columns: 1fr; }
.layout-2col-left    { grid-template-columns: 1fr; }
.layout-2col-right   { grid-template-columns: 1fr; }

@media (min-width: 1024px) {
	.layout-3col {
		grid-template-columns: var(--sidebar-w) 1fr var(--sidebar-w);
	}
	.layout-2col-left {
		grid-template-columns: var(--sidebar-w) 1fr;
	}
	.layout-2col-right {
		grid-template-columns: 1fr var(--sidebar-w);
	}

	/* Sidebar order on mobile: content first */
	.sidebar-left  { order: -1; }
	.sidebar-right { order: 1; }
}

/* --------------------------------------------------------------------------
   7. Site Header
   -------------------------------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 500;
	height: var(--header-h);
	background: var(--surface);
	border-bottom: 1px solid var(--border);
	box-shadow: var(--sh-xs);
	overflow: visible;
	transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.header-inner {
	height: var(--header-h);
	display: flex;
	align-items: center;
	gap: var(--s3);
}

/* Site branding */
.site-branding {
	display: flex;
	align-items: center;
	gap: var(--s3);
	flex-shrink: 0;
}

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

.site-title {
	font-size: var(--text-lg);
	font-weight: 800;
	letter-spacing: -0.03em;
	color: var(--text) !important;
	line-height: 1;
	margin: 0;
}
.site-title a {
	color: inherit;
	text-decoration: none;
}
.site-title a:hover { color: var(--clr-blue) !important; text-decoration: none; }

.site-description {
	display: none;
	font-size: var(--text-xs);
	color: var(--text-subtle);
	margin: 0;
}

/* Primary navigation */
.primary-nav {
	margin-left: auto;
	flex-shrink: 0;
}

.primary-nav ul {
	display: none; /* hidden on mobile — shown in overlay */
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (min-width: 1024px) {
	.primary-nav ul {
		display: flex;
		align-items: center;
		gap: var(--s1);
	}
}

.primary-nav a {
	display: flex;
	align-items: center;
	height: 36px;
	padding: 0 var(--s3);
	font-size: var(--text-sm);
	font-weight: 600;
	color: var(--text-muted);
	border-radius: var(--r-sm);
	text-decoration: none;
	transition:
		background var(--dur) var(--ease),
		color var(--dur) var(--ease);
}
.primary-nav a:hover {
	background: var(--bg-subtle);
	color: var(--text);
	text-decoration: none;
}
.primary-nav .current-menu-item > a,
.primary-nav .current-menu-ancestor > a {
	background: var(--clr-blue-surf);
	color: var(--clr-blue);
}

/* Sub-menus */
.primary-nav li { position: relative; }
.primary-nav .sub-menu {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	min-width: 200px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--r-md);
	box-shadow: var(--sh-lg);
	padding: var(--s2) 0;
	z-index: 100;
	display: none;
}
.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu { display: block; }
.primary-nav .sub-menu a {
	display: block;
	height: auto;
	padding: var(--s2) var(--s4);
	border-radius: 0;
	width: 100%;
}

/* Header actions */
.header-actions {
	display: flex;
	align-items: center;
	gap: var(--s2);
	flex-shrink: 0;
}

/* Search toggle button */
.header-search-toggle {
	width: 36px;
	height: 36px;
	border: none;
	background: transparent;
	border-radius: var(--r-sm);
	cursor: pointer;
	color: var(--text-muted);
	font-size: 0.875rem;
	display: grid;
	place-items: center;
	transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.header-search-toggle:hover {
	background: var(--bg-subtle);
	color: var(--text);
}

/* Dark mode toggle */
.dark-toggle {
	width: 36px;
	height: 36px;
	border: none;
	background: transparent;
	border-radius: var(--r-sm);
	cursor: pointer;
	color: var(--text-muted);
	font-size: 0.875rem;
	display: grid;
	place-items: center;
	transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.dark-toggle:hover { background: var(--bg-subtle); color: var(--text); }
.dark-toggle .icon-sun  { display: none; }
.dark-toggle .icon-moon { display: block; }
html.dark-mode .dark-toggle .icon-sun  { display: block; }
html.dark-mode .dark-toggle .icon-moon { display: none; }

/* Hamburger */
.menu-toggle {
	width: 44px;
	height: 44px;
	border: 1px solid var(--border);
	background: transparent;
	border-radius: var(--r-sm);
	cursor: pointer;
	color: var(--text);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	outline: none;
}
.menu-toggle:focus-visible { outline: 2px solid var(--border-focus); }
.menu-toggle span {
	display: block;
	width: 18px;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
	transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 1024px) {
	.menu-toggle { display: none; }
}

/* --------------------------------------------------------------------------
   8. Mobile Navigation Overlay
   -------------------------------------------------------------------------- */
.nav-overlay {
	position: fixed;
	inset: var(--header-h) 0 0 0;
	z-index: 400;
	background: var(--surface);
	border-top: 1px solid var(--border);
	overflow-y: auto;
	padding: var(--s4) var(--s5);
	transform: translateY(-8px);
	opacity: 0;
	pointer-events: none;
	transition:
		opacity var(--dur) var(--ease),
		transform var(--dur) var(--ease);
}

.nav-overlay.is-open {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.nav-overlay ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav-overlay li { border-bottom: 1px solid var(--border); }
.nav-overlay li:last-child { border-bottom: none; }

.nav-overlay a {
	display: flex;
	align-items: center;
	padding: var(--s4) var(--s2);
	font-size: var(--text-base);
	font-weight: 600;
	color: var(--text);
	text-decoration: none;
}
.nav-overlay a:hover { color: var(--clr-blue); text-decoration: none; }

.nav-overlay .sub-menu {
	padding-left: var(--s5);
}
.nav-overlay .sub-menu a {
	padding: var(--s3) var(--s2);
	font-size: var(--text-sm);
	font-weight: 500;
}

/* Mobile search */
.nav-overlay .mobile-search {
	margin-bottom: var(--s4);
}

.nav-overlay .mobile-search .search-form {
	display: flex;
	align-items: center;
	width: 100%;
	gap: 0;
	border: 2px solid var(--border);
	border-radius: var(--r-md);
	overflow: hidden;
	background: var(--bg-subtle);
	transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.nav-overlay .mobile-search .search-form:focus-within {
	border-color: var(--clr-blue);
	box-shadow: 0 0 0 3px rgba(var(--clr-blue-rgb), 0.15);
	background: var(--surface);
}
.nav-overlay .mobile-search input[type="search"] {
	flex: 1;
	min-width: 0;
	height: 44px;
	padding: 0 var(--s4);
	font-size: var(--text-sm);
	border: none;
	background: transparent;
	color: var(--text);
	outline: none;
}
.nav-overlay .mobile-search .search-submit {
	flex-shrink: 0;
	width: 52px;
	height: 44px;
	padding: 0;
	background: var(--clr-blue);
	color: #fff;
	border: none;
	border-radius: 0;
	font-size: var(--text-sm);
	cursor: pointer;
	display: grid;
	place-items: center;
	transition: background var(--dur) var(--ease);
}
.nav-overlay .mobile-search .search-submit:hover { background: var(--clr-blue-dark); }

/* --------------------------------------------------------------------------
   9. Header Search Dropdown
   -------------------------------------------------------------------------- */
.header-search-box {
	position: absolute;
	top: var(--header-h);
	left: 0;
	right: 0;
	background: var(--surface);
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
	box-shadow: 0 8px 24px rgba(0,0,0,0.10);
	padding: var(--s4) 0;
	z-index: 490;
	transform: translateY(-6px);
	opacity: 0;
	pointer-events: none;
	transition:
		opacity var(--dur) var(--ease),
		transform var(--dur) var(--ease);
}
.header-search-box.is-open {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.header-search-box .container {
	display: flex;
	justify-content: center;
}

/* Centered search wrapper — max width so it doesn't span the full page */
.header-search-box .search-form {
	display: flex;
	align-items: center;
	width: 100%;
	max-width: 640px;
	gap: 0;
	border: 2px solid var(--border);
	border-radius: var(--r-md);
	overflow: hidden;
	background: var(--bg-subtle);
	transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.header-search-box .search-form:focus-within {
	border-color: var(--clr-blue);
	box-shadow: 0 0 0 3px rgba(var(--clr-blue-rgb), 0.15);
	background: var(--surface);
}

.header-search-box input[type="search"] {
	flex: 1;
	min-width: 0;
	height: 44px;
	padding: 0 var(--s4);
	font-size: var(--text-sm);
	border: none;
	background: transparent;
	color: var(--text);
	outline: none;
}

.header-search-box .search-submit {
	flex-shrink: 0;
	width: 52px;
	height: 44px;
	padding: 0;
	background: var(--clr-blue);
	color: #fff;
	border: none;
	border-radius: 0;
	font-size: var(--text-sm);
	cursor: pointer;
	display: grid;
	place-items: center;
	transition: background var(--dur) var(--ease);
}
.header-search-box .search-submit:hover { background: var(--clr-blue-dark); }

/* Search toggle active state */
.header-search-toggle.is-active,
.header-search-toggle[aria-expanded="true"] {
	background: var(--clr-blue-surf);
	color: var(--clr-blue);
}

/* --------------------------------------------------------------------------
   10. Hero — Front Page
   -------------------------------------------------------------------------- */
.fdz-hero {
	position: relative;
	overflow: hidden;
	background: #1a1a2e;
	color: #fff;
	padding: clamp(5rem, 12vw, 9rem) 0 clamp(4rem, 9vw, 7rem);
}

/* Animated dot grid */
.fdz-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image: radial-gradient(circle, rgba(255,255,255,0.10) 1px, transparent 1px);
	background-size: 28px 28px;
	animation: hero-grid 10s ease-in-out infinite alternate;
	pointer-events: none;
}

/* Blue glow blob */
.fdz-hero::after {
	content: '';
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 80% 60% at 50% -10%, rgba(var(--clr-blue-rgb), 0.5) 0%, transparent 70%),
		radial-gradient(ellipse 40% 40% at 85% 80%, rgba(var(--clr-accent-rgb), 0.2) 0%, transparent 60%);
	pointer-events: none;
}

@keyframes hero-grid {
	0%   { opacity: 0.6; transform: scale(1); }
	100% { opacity: 1;   transform: scale(1.05); }
}

.fdz-hero .container { position: relative; z-index: 1; }

.hero-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: var(--s2);
	height: 28px;
	padding: 0 var(--s4);
	border: 1px solid rgba(255,255,255,0.25);
	border-radius: var(--r-full);
	font-size: var(--text-xs);
	font-weight: 700;
	letter-spacing: 0.10em;
	text-transform: uppercase;
	color: rgba(255,255,255,0.80);
	margin-bottom: var(--s5);
}

.hero-title {
	font-size: clamp(2.5rem, 7vw, 5rem) !important;
	font-weight: 900 !important;
	letter-spacing: -0.04em !important;
	line-height: 1.05 !important;
	color: #fff;
	margin-bottom: var(--s5);
}
.hero-title mark {
	background: transparent;
	color: #a5b4ff;
}

.hero-subtitle {
	font-size: clamp(1rem, 2.5vw, 1.25rem);
	line-height: 1.7;
	color: rgba(255,255,255,0.70);
	max-width: 600px;
	margin-bottom: var(--s8);
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s3);
}

.hero-btn {
	display: inline-flex;
	align-items: center;
	gap: var(--s2);
	height: 52px;
	padding: 0 2rem;
	font-family: var(--font);
	font-weight: 700;
	font-size: var(--text-base);
	border-radius: var(--r-sm);
	text-decoration: none;
	transition: all var(--dur) var(--ease);
}
.hero-btn-primary {
	background: var(--clr-blue);
	color: #fff;
	box-shadow: 0 4px 20px rgba(var(--clr-blue-rgb), 0.5);
}
.hero-btn-primary:hover {
	background: var(--clr-blue-dark);
	box-shadow: 0 6px 28px rgba(var(--clr-blue-rgb), 0.6);
	color: #fff;
	text-decoration: none;
}
.hero-btn-outline {
	border: 1px solid rgba(255,255,255,0.30);
	color: rgba(255,255,255,0.85);
	background: transparent;
}
.hero-btn-outline:hover {
	border-color: rgba(255,255,255,0.70);
	background: rgba(255,255,255,0.08);
	color: #fff;
	text-decoration: none;
}

/* --------------------------------------------------------------------------
   11. Stats Bar
   -------------------------------------------------------------------------- */
.fdz-stats {
	background: var(--bg-subtle);
	border-bottom: 1px solid var(--border);
	padding: var(--s8) 0;
}

.fdz-stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: var(--s6);
}

.stat-item { text-align: center; }

.stat-num {
	display: block;
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 900;
	letter-spacing: -0.04em;
	color: var(--clr-blue);
	line-height: 1;
}

.stat-label {
	display: block;
	font-size: var(--text-xs);
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--text-subtle);
	margin-top: var(--s2);
}

/* --------------------------------------------------------------------------
   12. Section Headers
   -------------------------------------------------------------------------- */
.section-header {
	margin-bottom: var(--s7);
}

.section-header.center {
	text-align: center;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: var(--s2);
	height: 26px;
	padding: 0 0.75rem;
	background: var(--clr-blue-surf);
	color: var(--clr-blue);
	border-radius: var(--r-full);
	font-size: var(--text-xs);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: var(--s4);
}

.section-title {
	font-size: clamp(1.75rem, 3.5vw, var(--text-3xl)) !important;
	font-weight: 900 !important;
	letter-spacing: -0.03em !important;
	line-height: 1.15 !important;
	color: var(--text);
	margin: 0 0 var(--s3);
}

.section-subtitle {
	font-size: clamp(0.9375rem, 2vw, var(--text-lg));
	color: var(--text-muted);
	line-height: 1.65;
	max-width: 560px;
}
.section-header.center .section-subtitle { margin-inline: auto; }

/* --------------------------------------------------------------------------
   13. Post Cards
   -------------------------------------------------------------------------- */
.posts-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--gap);
}

@media (min-width: 640px) {
	.posts-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1200px) {
	.posts-grid.col-3 { grid-template-columns: repeat(3, 1fr); }
}

.post-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--r-lg);
	overflow: hidden;
	box-shadow: var(--sh-sm);
	display: flex;
	flex-direction: column;
	transition:
		box-shadow var(--dur) var(--ease),
		border-color var(--dur) var(--ease),
		transform var(--dur) var(--ease);
}

.post-card:hover {
	box-shadow: var(--sh-lg);
	border-color: var(--clr-blue);
	transform: translateY(-2px);
}

.post-card-thumb {
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.post-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s var(--ease);
}

.post-card:hover .post-card-thumb img {
	transform: scale(1.04);
}

.post-card-body {
	padding: var(--s5) var(--s6);
	flex: 1;
	display: flex;
	flex-direction: column;
}

.post-card-cats {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s1);
	margin-bottom: var(--s3);
}

.cat-chip {
	display: inline-flex;
	align-items: center;
	height: 22px;
	padding: 0 var(--s3);
	background: var(--clr-blue-surf);
	color: var(--clr-blue);
	border-radius: var(--r-full);
	font-size: var(--text-xs);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
}
.cat-chip:hover {
	background: rgba(var(--clr-blue-rgb), 0.16);
	color: var(--clr-blue-dark);
	text-decoration: none;
}

.post-card-title {
	font-size: var(--text-lg) !important;
	font-weight: 800 !important;
	letter-spacing: -0.02em !important;
	line-height: 1.3 !important;
	margin-bottom: var(--s3);
}

.post-card-title a {
	color: var(--text);
	text-decoration: none;
}
.post-card-title a:hover { color: var(--clr-blue); }

.post-card-excerpt {
	font-size: var(--text-sm);
	color: var(--text-muted);
	line-height: 1.65;
	flex: 1;
	margin-bottom: var(--s4);
	/* Clamp to 3 lines */
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.post-card-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--s3);
	font-size: var(--text-xs);
	color: var(--text-subtle);
	margin-top: auto;
	padding-top: var(--s4);
	border-top: 1px solid var(--border);
}

.post-card-meta a { color: inherit; }
.post-card-meta a:hover { color: var(--clr-blue); text-decoration: none; }

.post-card-avatar {
	width: 28px;
	height: 28px;
	border-radius: var(--r-full);
	border: 2px solid var(--border);
}

/* Featured post (large card) */
.post-card.is-featured {
	display: grid;
}

@media (min-width: 768px) {
	.post-card.is-featured {
		grid-template-columns: 1fr 1fr;
	}
	.post-card.is-featured .post-card-thumb {
		aspect-ratio: auto;
	}
}

.post-card.is-featured .post-card-body {
	padding: var(--s8) var(--s7);
}

.post-card.is-featured .post-card-title {
	font-size: var(--text-2xl) !important;
}

/* --------------------------------------------------------------------------
   14. Category Cards (front-page grid)
   -------------------------------------------------------------------------- */
.cats-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--s4);
}

@media (min-width: 640px) {
	.cats-grid {
		grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	}
}

.cat-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--s3);
	padding: var(--s6) var(--s4);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--r-lg);
	text-decoration: none;
	color: var(--text);
	box-shadow: var(--sh-sm);
	position: relative;
	overflow: hidden;
	transition:
		box-shadow var(--dur) var(--ease),
		border-color var(--dur) var(--ease),
		transform var(--dur) var(--ease);
}
.cat-card::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: var(--clr-blue);
	border-radius: var(--r-sm) var(--r-sm) 0 0;
}
.cat-card:hover {
	box-shadow: var(--sh-lg);
	border-color: var(--clr-blue);
	transform: translateY(-3px);
	text-decoration: none;
	color: var(--text);
}

.cat-card-icon {
	width: 48px;
	height: 48px;
	border-radius: var(--r-md);
	background: var(--clr-blue-surf);
	color: var(--clr-blue);
	display: grid;
	place-items: center;
	font-size: 1.25rem;
}

.cat-card-name {
	font-weight: 700;
	font-size: var(--text-sm);
	text-align: center;
}

.cat-card-count {
	font-size: var(--text-xs);
	color: var(--text-subtle);
}

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

.widget {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--r-lg);
	padding: var(--s5) var(--s6);
	margin-bottom: var(--s5);
	box-shadow: var(--sh-xs);
}

.widget-title {
	font-size: var(--text-sm) !important;
	font-weight: 800 !important;
	letter-spacing: 0.08em !important;
	text-transform: uppercase !important;
	color: var(--text-subtle) !important;
	margin-bottom: var(--s4) !important;
	padding-bottom: var(--s3);
	border-bottom: 1px solid var(--border);
}

/* Widget list */
.widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.widget ul li {
	padding: var(--s2) 0;
	border-bottom: 1px solid var(--border);
	font-size: var(--text-sm);
}

.widget ul li:last-child { border-bottom: none; }

.widget ul a {
	color: var(--text-muted);
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: var(--s2);
}
.widget ul a:hover { color: var(--clr-blue); text-decoration: none; }

/* Widget search */
.widget .search-form {
	display: flex;
	gap: var(--s2);
}
.widget .search-field { flex: 1; }

/* Widget: recent posts inside sidebar */
.widget_recent_entries a { font-weight: 600; }

/* Sidebar left — nav accent */
.sidebar-left .widget {
	border-left: 3px solid var(--clr-blue);
	padding-left: calc(var(--s6) - 3px);
}

/* --------------------------------------------------------------------------
   16. Archive Header (category / tag / author / archive)
   -------------------------------------------------------------------------- */
.archive-header {
	padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
	background: var(--bg-subtle);
	border-bottom: 1px solid var(--border);
}

.archive-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: var(--s2);
	font-size: var(--text-xs);
	font-weight: 700;
	letter-spacing: 0.10em;
	text-transform: uppercase;
	color: var(--clr-blue);
	margin-bottom: var(--s3);
}

.archive-title {
	font-size: clamp(1.75rem, 4vw, var(--text-4xl)) !important;
	font-weight: 900 !important;
	letter-spacing: -0.04em !important;
	color: var(--text);
	margin-bottom: var(--s3);
}

.archive-description {
	font-size: var(--text-lg);
	color: var(--text-muted);
	max-width: 640px;
	line-height: 1.65;
}

/* --------------------------------------------------------------------------
   17. Author Page
   -------------------------------------------------------------------------- */
.author-hero {
	padding: clamp(3rem, 7vw, 5rem) 0;
	background: linear-gradient(160deg, var(--bg-subtle) 0%, var(--bg) 100%);
	border-bottom: 1px solid var(--border);
}

.author-hero-inner {
	display: flex;
	flex-direction: column;
	gap: var(--s6);
}

@media (min-width: 768px) {
	.author-hero-inner {
		flex-direction: row;
		align-items: center;
		gap: var(--s8);
	}
}

.author-avatar-wrap {
	flex-shrink: 0;
	position: relative;
}

.author-avatar {
	width: 120px;
	height: 120px;
	border-radius: var(--r-full);
	border: 4px solid var(--surface);
	box-shadow: var(--sh-md), 0 0 0 3px var(--clr-blue);
}

.author-info { flex: 1; }

.author-name {
	font-size: clamp(1.75rem, 4vw, var(--text-3xl)) !important;
	font-weight: 900 !important;
	letter-spacing: -0.04em !important;
	margin-bottom: var(--s2);
}

.author-bio {
	font-size: var(--text-base);
	color: var(--text-muted);
	line-height: 1.7;
	margin-bottom: var(--s5);
	max-width: 560px;
}

.author-stats {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s6);
	margin-bottom: var(--s5);
}

.author-stat strong {
	display: block;
	font-size: var(--text-xl);
	font-weight: 900;
	color: var(--clr-blue);
	letter-spacing: -0.03em;
}

.author-stat span {
	font-size: var(--text-xs);
	color: var(--text-subtle);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-weight: 600;
}

.author-socials {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s2);
}

.social-btn {
	display: inline-flex;
	align-items: center;
	gap: var(--s2);
	height: 36px;
	padding: 0 var(--s4);
	border: 1px solid var(--border);
	border-radius: var(--r-full);
	font-size: var(--text-xs);
	font-weight: 600;
	color: var(--text-muted);
	text-decoration: none;
	transition: all var(--dur) var(--ease);
}
.social-btn:hover {
	border-color: var(--clr-blue);
	color: var(--clr-blue);
	background: var(--clr-blue-surf);
	text-decoration: none;
}

/* --------------------------------------------------------------------------
   18. Single Post
   -------------------------------------------------------------------------- */
.single-header {
	padding: clamp(3rem, 6vw, 5rem) 0 var(--s8);
}

.single-cats { margin-bottom: var(--s4); }

.entry-title {
	font-size: clamp(1.75rem, 4vw, var(--text-4xl)) !important;
	font-weight: 900 !important;
	letter-spacing: -0.04em !important;
	line-height: 1.15 !important;
	margin-bottom: var(--s5);
}

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--s4);
	font-size: var(--text-sm);
	color: var(--text-subtle);
}

.entry-meta a { color: inherit; }
.entry-meta a:hover { color: var(--clr-blue); text-decoration: none; }

.entry-meta-author {
	display: flex;
	align-items: center;
	gap: var(--s2);
}

.entry-meta-author img {
	width: 32px;
	height: 32px;
	border-radius: var(--r-full);
}

.entry-meta-author a {
	font-weight: 600;
	color: var(--text-muted);
}

.single-featured-image {
	aspect-ratio: 21 / 9;
	overflow: hidden;
	border-radius: var(--r-lg);
	margin-bottom: var(--s8);
}

.single-featured-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.entry-content {
	font-size: var(--text-lg);
	line-height: 1.8;
	max-width: var(--reading-w);
	color: var(--text);
}

.entry-content p { margin-bottom: var(--s6); }
.entry-content h2 { margin-top: var(--s9); margin-bottom: var(--s4); }
.entry-content h3 { margin-top: var(--s8); margin-bottom: var(--s3); }
.entry-content h4 { margin-top: var(--s7); margin-bottom: var(--s3); }

.entry-content ul li,
.entry-content ol li {
	margin-bottom: var(--s3);
}

.entry-content img {
	border-radius: var(--r-md);
}

.entry-footer {
	margin-top: var(--s8);
	padding-top: var(--s6);
	border-top: 1px solid var(--border);
	display: flex;
	flex-wrap: wrap;
	gap: var(--s4);
	align-items: center;
}

.entry-tags {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s2);
}

.entry-tag {
	display: inline-flex;
	align-items: center;
	height: 28px;
	padding: 0 var(--s3);
	border: 1px solid var(--border);
	border-radius: var(--r-full);
	font-size: var(--text-xs);
	color: var(--text-muted);
	text-decoration: none;
}
.entry-tag:hover {
	border-color: var(--clr-blue);
	color: var(--clr-blue);
	text-decoration: none;
}

/* Post navigation */
.post-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--gap);
	margin-top: var(--s8);
	padding-top: var(--s7);
	border-top: 1px solid var(--border);
}

.post-nav-link {
	display: flex;
	flex-direction: column;
	gap: var(--s2);
	padding: var(--s5);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--r-lg);
	text-decoration: none;
	transition: all var(--dur) var(--ease);
}
.post-nav-link:hover {
	border-color: var(--clr-blue);
	box-shadow: var(--sh-md);
	text-decoration: none;
}

.post-nav-direction {
	font-size: var(--text-xs);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--text-subtle);
}

.post-nav-title {
	font-size: var(--text-sm);
	font-weight: 700;
	color: var(--text);
	line-height: 1.4;
}

.post-nav-link.next { text-align: right; }

/* --------------------------------------------------------------------------
   19. Search
   -------------------------------------------------------------------------- */
.search-header {
	padding: clamp(3rem, 6vw, 5rem) 0 var(--s8);
	background: var(--bg-subtle);
	border-bottom: 1px solid var(--border);
}

.search-results-list {
	display: flex;
	flex-direction: column;
}

.search-big-form {
	display: flex;
	gap: var(--s3);
	max-width: 680px;
	margin-top: var(--s5);
}

.search-big-input {
	flex: 1;
	height: 52px;
	padding: 0 var(--s5);
	font-size: var(--text-base);
	border-radius: var(--r-md);
	border: 2px solid var(--border);
}
.search-big-input:focus {
	border-color: var(--clr-blue);
	box-shadow: 0 0 0 4px rgba(var(--clr-blue-rgb), 0.14);
}

.search-count {
	font-size: var(--text-sm);
	color: var(--text-subtle);
	margin-top: var(--s3);
}

.search-count mark {
	background: transparent;
	color: var(--clr-blue);
	font-weight: 700;
}

/* No results */
.no-results {
	text-align: center;
	padding: var(--s10) 0;
}

.no-results-icon {
	font-size: 4rem;
	color: var(--clr-300);
	margin-bottom: var(--s5);
}

/* --------------------------------------------------------------------------
   20. 404 Page
   -------------------------------------------------------------------------- */
.error-404 {
	min-height: 60dvh;
	display: flex;
	align-items: center;
}

.error-inner {
	text-align: center;
	max-width: 560px;
	margin: 0 auto;
	padding: var(--s10) var(--s5);
}

.error-code {
	font-size: clamp(5rem, 20vw, 10rem);
	font-weight: 900;
	letter-spacing: -0.06em;
	line-height: 1;
	background: linear-gradient(135deg, var(--clr-blue) 0%, var(--clr-blue-light) 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	margin-bottom: var(--s5);
}

.error-title {
	font-size: clamp(1.5rem, 3vw, var(--text-2xl)) !important;
	margin-bottom: var(--s4);
}

.error-desc {
	color: var(--text-muted);
	margin-bottom: var(--s7);
}

.error-actions {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: var(--s3);
	margin-bottom: var(--s7);
}

.error-search {
	max-width: 400px;
	margin-inline: auto;
}

.error-links {
	margin-top: var(--s7);
}

.error-links h3 {
	font-size: var(--text-sm) !important;
	font-weight: 700 !important;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--text-subtle);
	margin-bottom: var(--s4);
}

.error-links ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--s2);
}

.error-links li a {
	display: inline-flex;
	align-items: center;
	gap: var(--s1);
	height: 32px;
	padding: 0 var(--s4);
	border: 1px solid var(--border);
	border-radius: var(--r-full);
	font-size: var(--text-xs);
	font-weight: 600;
	color: var(--text-muted);
	text-decoration: none;
}
.error-links li a:hover {
	border-color: var(--clr-blue);
	color: var(--clr-blue);
	text-decoration: none;
}

/* --------------------------------------------------------------------------
   21. Pagination
   -------------------------------------------------------------------------- */
.pagination {
	margin-top: var(--s8);
	display: flex;
	justify-content: center;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s2);
	align-items: center;
}

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 var(--s3);
	border: 1px solid var(--border);
	border-radius: var(--r-sm);
	font-size: var(--text-sm);
	font-weight: 600;
	color: var(--text-muted);
	text-decoration: none;
	transition: all var(--dur) var(--ease);
}
.page-numbers:hover {
	border-color: var(--clr-blue);
	color: var(--clr-blue);
	text-decoration: none;
}
.page-numbers.current {
	background: var(--clr-blue);
	border-color: var(--clr-blue);
	color: #fff;
}
.page-numbers.dots {
	border-color: transparent;
	background: transparent;
}

/* --------------------------------------------------------------------------
   22. Comments
   -------------------------------------------------------------------------- */
.comments-area {
	margin-top: var(--s9);
	padding-top: var(--s7);
	border-top: 2px solid var(--border);
}

.comments-title {
	font-size: var(--text-xl) !important;
	margin-bottom: var(--s6);
}

.comment-list {
	list-style: none;
	margin: 0 0 var(--s7);
	padding: 0;
}

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

.comment-body {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: var(--s4);
}

.comment-author img {
	width: 48px;
	height: 48px;
	border-radius: var(--r-full);
	border: 2px solid var(--border);
}

.comment-meta {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: var(--s2) var(--s4);
	margin-bottom: var(--s3);
}

.comment-author-name { font-weight: 700; color: var(--text); }
.comment-date {
	font-size: var(--text-xs);
	color: var(--text-subtle);
}

.comment-content { font-size: var(--text-sm); }
.comment-content p { margin-bottom: var(--s3); }

.reply-link {
	font-size: var(--text-xs);
	font-weight: 700;
	color: var(--clr-blue);
}

.comment-reply-title {
	font-size: var(--text-xl) !important;
	margin-bottom: var(--s5);
}

.comment-form label { font-size: var(--text-sm); }

.comment-form .form-group { margin-bottom: var(--s5); }

.form-row {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--s5);
}
@media (min-width: 640px) {
	.form-row { grid-template-columns: 1fr 1fr; }
}

/* --------------------------------------------------------------------------
   23. Footer
   -------------------------------------------------------------------------- */
.site-footer {
	background: var(--bg-subtle);
	border-top: 1px solid var(--border);
	margin-top: auto;
}

.footer-widgets {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--s7);
	padding: var(--s10) 0;
}

@media (min-width: 640px) {
	.footer-widgets { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
	.footer-widgets { grid-template-columns: repeat(3, 1fr); }
}

.footer-brand {
	display: flex;
	flex-direction: column;
	gap: var(--s3);
}

.footer-site-name {
	font-size: var(--text-xl);
	font-weight: 900;
	letter-spacing: -0.03em;
	color: var(--text);
}

.footer-desc {
	font-size: var(--text-sm);
	color: var(--text-muted);
	line-height: 1.65;
}

.footer-social {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s2);
	margin-top: var(--s2);
}

.footer-social-link {
	width: 36px;
	height: 36px;
	border-radius: var(--r-full);
	border: 1px solid var(--border);
	display: grid;
	place-items: center;
	font-size: 0.875rem;
	color: var(--text-subtle);
	text-decoration: none;
	transition: all var(--dur) var(--ease);
}
.footer-social-link:hover {
	border-color: var(--clr-blue);
	color: var(--clr-blue);
	background: var(--clr-blue-surf);
	text-decoration: none;
}

.footer-widget-title {
	font-size: var(--text-sm);
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--text-subtle);
	margin-bottom: var(--s4);
}

.footer-links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--s3);
}

.footer-links a {
	font-size: var(--text-sm);
	color: var(--text-muted);
}
.footer-links a:hover { color: var(--clr-blue); text-decoration: none; }

.footer-bottom {
	border-top: 1px solid var(--border);
	padding: var(--s5) 0;
}

.footer-bottom-inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: var(--s3);
	font-size: var(--text-xs);
	color: var(--text-subtle);
}

.footer-bottom a { color: inherit; }
.footer-bottom a:hover { color: var(--clr-blue); text-decoration: none; }

/* --------------------------------------------------------------------------
   24. Sidebar Toggles (Mobile)
   -------------------------------------------------------------------------- */
.sidebar-toggle-btn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: var(--s4) var(--s5);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--r-md);
	font-family: var(--font);
	font-size: var(--text-sm);
	font-weight: 700;
	color: var(--text);
	cursor: pointer;
	margin-bottom: var(--s4);
	transition: background var(--dur) var(--ease);
}
.sidebar-toggle-btn:hover { background: var(--bg-subtle); }
.sidebar-toggle-btn[aria-expanded="true"] .toggle-chevron { transform: rotate(180deg); }
.sidebar-toggle-btn .toggle-chevron { transition: transform var(--dur) var(--ease); }

.sidebar-body { display: none; }
.sidebar-body.is-open { display: block; }

@media (min-width: 1024px) {
	.sidebar-toggle-btn { display: none; }
	.sidebar-body { display: block !important; }
}

/* --------------------------------------------------------------------------
   25. Reading Progress Bar
   -------------------------------------------------------------------------- */
.reading-progress {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	z-index: 9999;
	background: transparent;
	pointer-events: none;
}

.reading-progress-fill {
	height: 100%;
	width: 0%;
	background: linear-gradient(90deg, var(--clr-blue), var(--clr-blue-light));
	transition: width 0.1s linear;
}

/* --------------------------------------------------------------------------
   26. Scroll-to-top FAB
   -------------------------------------------------------------------------- */
.scroll-top-btn {
	position: fixed;
	bottom: 1.5rem;
	right: 1.5rem;
	z-index: 900;
	width: 48px;
	height: 48px;
	border-radius: var(--r-full);
	background: var(--clr-blue);
	color: #fff;
	border: none;
	cursor: pointer;
	display: grid;
	place-items: center;
	font-size: 1rem;
	box-shadow: var(--sh-lg);
	opacity: 0;
	transform: translateY(8px) scale(0.9);
	pointer-events: none;
	transition:
		opacity var(--dur) var(--ease),
		transform var(--dur) var(--ease),
		background var(--dur) var(--ease);
}
.scroll-top-btn.is-visible {
	opacity: 1;
	transform: translateY(0) scale(1);
	pointer-events: auto;
}
.scroll-top-btn:hover { background: var(--clr-blue-dark); }

/* --------------------------------------------------------------------------
   27. Utilities
   -------------------------------------------------------------------------- */
.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.section-pad { padding-block: clamp(3rem, 7vw, 5rem); }
.section-sep { border-top: 1px solid var(--border); }

/* Sticky sidebar (long pages) */
@media (min-width: 1024px) {
	.sidebar-area { position: sticky; top: calc(var(--header-h) + var(--s4)); }
}

/* Sticky post indicator */
.sticky-indicator {
	display: inline-flex;
	align-items: center;
	gap: var(--s1);
	font-size: var(--text-xs);
	font-weight: 700;
	color: var(--clr-accent);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-bottom: var(--s3);
}

/* Not found state */
.posts-not-found {
	text-align: center;
	padding: var(--s10) var(--s5);
	color: var(--text-muted);
}

/* Admin bar offset */
.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 32px); }

/* --------------------------------------------------------------------------
   28. Responsive Details
   -------------------------------------------------------------------------- */
@media (max-width: 639px) {
	.hero-title { font-size: 2.25rem !important; }
	.hero-actions { flex-direction: column; }
	.hero-btn { justify-content: center; }
	.post-nav { grid-template-columns: 1fr; }
	.post-nav-link.next { text-align: left; }
	.footer-bottom-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 1023px) {
	/* On mobile, left sidebar shows as collapsible below content */
	.sidebar-left { order: 10; }
	.sidebar-right { order: 11; }
}
