/*
Theme Name: Recyclatanteil Pro
Theme URI: https://recyclatanteil.com/
Author: Niazi Links
Author URI: https://www.linkedin.com/in/muzamil-niazi
Description: A fast, mobile-first, SEO-ready WordPress theme for recycling, sustainability and circular-economy publishers. Premium green design, animated "live" hero, built-in recycled-content calculator, FAQ + Article + Breadcrumb schema, auto table of contents, dark mode, validated contact form and a customizer for everything. No jQuery, no external fonts, no page builder required.
Version: 1.6.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: recyclatanteil-pro
Tags: blog, news, education, one-column, two-columns, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, accessibility-ready, block-styles, wide-blocks, custom-colors
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */
/* Inter, self-hosted */
@font-face{font-family:"Inter";font-style:normal;font-weight:100 900;font-display:swap;src:url("assets/fonts/inter-latin-wght-normal.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Inter";font-style:normal;font-weight:100 900;font-display:swap;src:url("assets/fonts/inter-latin-ext-wght-normal.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
:root {
	--primary: #138a5a;
	--primary-dark: #0f6a47;
	--c-950: #04201a;
	--c-900: #06281e;
	--c-800: #0a3d2c;
	--c-500: #1fa971;
	--c-400: #4cc790;
	--c-100: #e4f5ec;
	--c-50: #f3faf6;
	--accent: #b8e45c;
	--ink: #10201a;
	--muted: #53655d;
	--line: #dce8e2;
	--bg: #ffffff;
	--surface: #f5faf7;
	--card: #ffffff;
	--radius: 16px;
	--radius-sm: 10px;
	--shadow: 0 14px 34px -16px rgba(6, 40, 30, .35);
	--shadow-sm: 0 4px 14px -6px rgba(6, 40, 30, .25);
	--maxw: 1200px;
	--read: 760px;
	--header-h: 68px;
	--font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

[data-theme="dark"] {
	--ink: #e8f3ee;
	--muted: #9db3a9;
	--line: #1f3a30;
	--bg: #07140f;
	--surface: #0b1d16;
	--card: #0e241b;
	--c-100: #12301f;
	--c-50: #0b1d16;
	--shadow: 0 14px 34px -16px rgba(0, 0, 0, .7);
	--shadow-sm: 0 4px 14px -6px rgba(0, 0, 0, .6);
	color-scheme: dark;
}

/* ==========================================================================
   2. Reset / base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 1.0625rem;
	line-height: 1.7;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
img, svg, video, iframe { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-dark); }
[data-theme="dark"] a { color: var(--c-400); }
[data-theme="dark"] a:hover { color: var(--accent); }
h1, h2, h3, h4, h5, h6 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.015em; font-weight: 750; }
h1 { font-size: clamp(2rem, 4.5vw + .5rem, 3.4rem); }
h2 { font-size: clamp(1.55rem, 2.2vw + .8rem, 2.3rem); }
h3 { font-size: clamp(1.2rem, 1vw + 1rem, 1.5rem); }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
:focus-visible { outline: 3px solid var(--c-400); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--c-950); }
.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}
.skip-link {
	position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--c-900); color: #fff;
	padding: 10px 16px; border-radius: 8px; transition: top .2s;
}
.skip-link:focus { top: 12px; color: #fff; }
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-alt { background: var(--surface); }
.section-head { max-width: 720px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.kicker {
	display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
	color: var(--primary); background: var(--c-100); padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
[data-theme="dark"] .kicker { color: var(--c-400); }

/* Reveal on scroll (only when JS is on) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   3. Buttons & forms
   ========================================================================== */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
	font: inherit; font-weight: 700; font-size: 1rem; line-height: 1; text-decoration: none;
	padding: 15px 26px; border-radius: 999px; border: 2px solid transparent;
	transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 24px -10px var(--primary); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
[data-theme="dark"] .btn-primary { color: #fff; }
.btn-accent { background: var(--accent); color: var(--c-950); box-shadow: 0 10px 24px -10px var(--accent); }
.btn-accent:hover { background: #cbf273; color: var(--c-950); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .06); }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.btn-sm { padding: 11px 20px; font-size: .92rem; }

input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="search"],
input[type="number"], input[type="password"], textarea, select {
	width: 100%; font: inherit; color: var(--ink); background: var(--card);
	border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 13px 16px;
	transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--c-500); box-shadow: 0 0 0 4px rgba(31, 169, 113, .18); }
textarea { min-height: 150px; resize: vertical; }
label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.field { margin-bottom: 18px; }
.field-row { display: grid; gap: 0 18px; }
.field .err { color: #c0392b; font-size: .85rem; margin-top: 4px; display: none; }
.field.invalid .err { display: block; }
.field.invalid input, .field.invalid textarea { border-color: #c0392b; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-weight: 600; }
.notice-ok { background: var(--c-100); color: var(--c-800); border: 1px solid var(--c-400); }
.notice-err { background: #fdecea; color: #8e2b20; border: 1px solid #f5b5ad; }
[data-theme="dark"] .notice-ok { color: var(--c-400); }
[data-theme="dark"] .notice-err { background: #3a1511; color: #ffb3a8; border-color: #6b2a22; }

/* ==========================================================================
   4. Header / navigation
   ========================================================================== */
.site-header {
	position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .88);
	-webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
	border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s;
}
[data-theme="dark"] .site-header { background: rgba(7, 20, 15, .88); }
.site-header.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink) !important; font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; }
.brand .mark { width: 34px; height: 34px; color: var(--primary); flex: none; }
.custom-logo-link img { max-height: 44px; width: auto; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.primary-nav a {
	display: block; padding: 9px 11px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .94rem; white-space: nowrap; color: var(--ink);
}
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav .current_page_item > a { background: var(--c-100); color: var(--primary-dark); }
[data-theme="dark"] .primary-nav a:hover, [data-theme="dark"] .primary-nav .current-menu-item > a { color: var(--c-400); }
.primary-nav li { position: relative; }
.primary-nav .sub-menu {
	position: absolute; left: 0; top: 100%; min-width: 220px; flex-direction: column; gap: 0; background: var(--card);
	border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 8px;
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s;
}
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
	width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
	border: 1.5px solid var(--line); background: var(--card); color: var(--ink); border-radius: 50%; padding: 0; transition: .2s;
}
.icon-btn:hover { border-color: var(--c-500); color: var(--primary); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-sun { display: none; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }
.nav-toggle { display: none; }
.search-panel { border-top: 1px solid var(--line); background: var(--bg); padding: 16px 0; }
.search-panel[hidden] { display: none; }
.header-cta { display: none; }
.brand { min-width: 0; }
.brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-actions { flex: none; }

@media (max-width: 480px) {
	.header-inner { gap: 8px; }
	.header-actions { gap: 6px; }
	.header-actions .icon-btn { width: 38px; height: 38px; }
	.brand { font-size: 1.05rem; gap: 8px; }
	.brand .mark { width: 28px; height: 28px; }
}
@media (min-width: 1000px) { .header-cta { display: inline-flex; } }
@media (max-width: 1179px) and (min-width: 900px) { .header-cta { display: none; } }
@media (max-width: 1179px) {
	.nav-toggle { display: inline-flex; }
	.primary-nav {
		position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line);
		box-shadow: var(--shadow); max-height: 0; overflow: hidden; visibility: hidden; transition: max-height .35s ease, visibility .35s;
	}
	.primary-nav.open { max-height: calc(100vh - var(--header-h)); overflow-y: auto; visibility: visible; }
	.primary-nav ul { flex-direction: column; padding: 12px 20px 20px; gap: 2px; }
	.primary-nav a { padding: 14px 16px; border-radius: var(--radius-sm); }
	.primary-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 14px; min-width: 0; }
}

/* Reading progress */
.progress { position: fixed; left: 0; top: 0; height: 4px; width: 100%; z-index: 200; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--c-500), var(--accent)); }
.admin-bar .progress { top: 32px; }
@media (max-width: 782px) { .admin-bar .progress { top: 46px; } }

/* ==========================================================================
   5. Hero (animated "live" scene)
   ========================================================================== */
.hero {
	position: relative; isolation: isolate; overflow: hidden; color: #fff;
	background:
		radial-gradient(900px 500px at 85% 10%, rgba(76, 199, 144, .28), transparent 60%),
		radial-gradient(700px 500px at 0% 100%, rgba(184, 228, 92, .14), transparent 60%),
		linear-gradient(160deg, var(--c-950) 0%, var(--c-800) 60%, #0e5a3d 100%);
	padding: clamp(48px, 8vw, 96px) 0 clamp(110px, 14vw, 150px);
}
.hero h1 { color: #fff; margin-bottom: .45em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .kicker { background: rgba(255, 255, 255, .12); color: var(--accent); }
.hero .lead { font-size: clamp(1.05rem, .8vw + .95rem, 1.25rem); color: rgba(255, 255, 255, .84); max-width: 58ch; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.hero-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 0; color: rgba(255, 255, 255, .8); font-size: .95rem; }
.hero-badges li::before { content: "✓"; color: var(--accent); font-weight: 800; margin-right: 8px; }
.hero-visual { position: relative; display: grid; place-items: center; min-height: 280px; }
.emblem {
	width: min(78vw, 400px); aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%;
	background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .22), rgba(255, 255, 255, .04) 60%);
	border: 1px solid rgba(255, 255, 255, .22); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6), inset 0 0 60px rgba(76, 199, 144, .2);
	transform: perspective(900px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)); transition: transform .15s ease-out;
}
.emblem svg { width: 82%; height: 82%; animation: spin 26s linear infinite; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .35)); }
.emblem .pct { animation: spin-rev 26s linear infinite; transform-origin: 100px 100px; }
.chip {
	position: absolute; padding: 8px 16px; border-radius: 999px; font-weight: 800; font-size: .85rem; letter-spacing: .06em;
	background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3);
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: float 6s ease-in-out infinite;
}
.chip.c1 { top: 6%; left: 4%; }
.chip.c2 { bottom: 10%; right: 2%; animation-delay: -2s; background: rgba(184, 228, 92, .2); color: var(--accent); }
.chip.c3 { top: 38%; right: -2%; animation-delay: -4s; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.pellet { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--c-400); opacity: .35; animation: float 9s ease-in-out infinite; }
.pellet:nth-child(1) { left: 6%; top: 18%; }
.pellet:nth-child(2) { left: 18%; top: 62%; width: 22px; height: 22px; animation-delay: -3s; background: var(--accent); }
.pellet:nth-child(3) { left: 44%; top: 12%; width: 10px; height: 10px; animation-delay: -5s; }
.pellet:nth-child(4) { left: 58%; top: 70%; animation-delay: -1s; }
.pellet:nth-child(5) { left: 72%; top: 20%; width: 18px; height: 18px; animation-delay: -6s; background: var(--accent); }
.pellet:nth-child(6) { left: 90%; top: 55%; width: 10px; height: 10px; animation-delay: -2s; }

/* Road with moving vehicles */
.road { position: absolute; left: 0; right: 0; bottom: 0; height: 74px; background: linear-gradient(#0a3023, #05160f); border-top: 3px solid rgba(76, 199, 144, .45); overflow: hidden; }
.road-line { position: absolute; left: 0; right: 0; bottom: 14px; height: 4px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .55) 0 34px, transparent 34px 72px); animation: road 1.2s linear infinite; }
.veh { position: absolute; left: -200px; bottom: 26px; will-change: transform; animation: drive 24s linear infinite; }
.veh svg { display: block; }
.truck { width: 120px; }
.bike { width: 64px; bottom: 30px; animation-duration: 15s; animation-delay: -7s; }
.truck.t2 { width: 96px; animation-duration: 32s; animation-delay: -18s; opacity: .75; bottom: 24px; }
.wheel { transform-box: fill-box; transform-origin: center; animation: spin .6s linear infinite; }
.paused .veh, .paused .road-line, .paused .emblem svg, .paused .emblem .pct, .paused .chip, .paused .pellet, .paused .wheel { animation-play-state: paused; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-rev { to { transform: rotate(-360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes drive { to { transform: translateX(calc(100vw + 400px)); } }
@keyframes road { to { background-position-x: -72px; } }

@media (min-width: 900px) {
	.hero-grid { grid-template-columns: 1.1fr .9fr; gap: 56px; }
}

/* ==========================================================================
   6. Sections: stats, about, process, solutions, calculator, why, FAQ, CTA
   ========================================================================== */
.stats { margin-top: 36px; position: relative; z-index: 2; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.stat { background: var(--card); padding: clamp(20px, 3vw, 34px) 18px; text-align: center; }
.stat-num { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: var(--primary); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
[data-theme="dark"] .stat-num { color: var(--c-400); }
.stat p { margin: 10px 0 0; color: var(--muted); font-size: .93rem; line-height: 1.4; }
@media (min-width: 800px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }

.intro .entry-content { max-width: var(--read); margin-inline: auto; }

.cards-2 { display: grid; gap: 24px; }
.cards-4 { display: grid; gap: 22px; }
@media (min-width: 760px) { .cards-2 { grid-template-columns: 1fr 1fr; } .cards-4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .cards-4 { grid-template-columns: repeat(4, 1fr); } }
.feature {
	background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
	transition: transform .25s, box-shadow .25s, border-color .25s;
}
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--c-400); }
.feature .ico {
	width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
	background: linear-gradient(135deg, var(--c-100), #fff0); color: var(--primary); border: 1px solid var(--line);
}
[data-theme="dark"] .feature .ico { color: var(--c-400); }
.feature .ico svg { width: 28px; height: 28px; }
.feature h3 { margin-bottom: .4em; }
.feature p { color: var(--muted); margin: 0; }
.feature .more { display: inline-block; margin-top: 14px; font-weight: 700; text-decoration: none; }
.feature .more::after { content: " →"; transition: margin .2s; }
.feature .more:hover::after { margin-left: 4px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; counter-reset: s; position: relative; }
.step { position: relative; padding: 0 0 0 76px; counter-increment: s; }
.step::before {
	content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 0; width: 56px; height: 56px; border-radius: 50%;
	display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--c-500), var(--primary-dark)); box-shadow: 0 10px 22px -10px var(--primary);
}
.step::after { content: ""; position: absolute; left: 27px; top: 64px; bottom: -18px; width: 2px; background: repeating-linear-gradient(var(--c-400) 0 6px, transparent 6px 12px); }
.step:last-child::after { display: none; }
.step h3 { margin: 4px 0 .3em; font-size: 1.2rem; }
.step p { margin: 0; color: var(--muted); }
@media (min-width: 900px) {
	.steps { grid-template-columns: repeat(5, 1fr); gap: 24px; }
	.step { padding: 76px 0 0; text-align: center; }
	.step::before { left: 50%; margin-left: -28px; }
	.step::after { left: calc(50% + 40px); right: calc(-50% + 40px); top: 27px; bottom: auto; width: auto; height: 2px; background: repeating-linear-gradient(90deg, var(--c-400) 0 6px, transparent 6px 12px); }
}

/* Calculator */
.calc { display: grid; gap: 28px; background: var(--card); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); padding: clamp(22px, 4vw, 44px); box-shadow: var(--shadow); }
.calc-fields { display: grid; gap: 0 18px; }
.calc small { color: var(--muted); display: block; margin-top: 4px; }
.calc-result { display: grid; place-items: center; text-align: center; gap: 14px; background: var(--surface); border-radius: var(--radius); padding: 28px 20px; }
.ring {
	--p: 0; width: 190px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
	background: radial-gradient(closest-side, var(--surface) 76%, transparent 78% 100%), conic-gradient(var(--c-500) calc(var(--p) * 1%), var(--line) 0);
	transition: --p .6s;
}
.ring strong { font-size: 2.4rem; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.calc-result p { margin: 0; color: var(--muted); font-size: .95rem; }
.calc-split { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.calc-split span { background: var(--card); border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600; }
@media (min-width: 560px) { .calc-fields { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .calc { grid-template-columns: 1.3fr .7fr; align-items: stretch; } }

.why { display: grid; gap: 36px; align-items: center; }
.why-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.why-list li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
.why-list .tick { width: 44px; height: 44px; border-radius: 12px; background: var(--c-100); color: var(--primary); display: grid; place-items: center; font-weight: 800; }
[data-theme="dark"] .why-list .tick { color: var(--c-400); }
.why-list h3 { font-size: 1.12rem; margin: 0 0 .15em; }
.why-list p { margin: 0; color: var(--muted); }
.why-panel { background: linear-gradient(160deg, var(--c-900), var(--c-800)); color: #fff; border-radius: calc(var(--radius) + 6px); padding: clamp(26px, 4vw, 44px); box-shadow: var(--shadow); }
.why-panel h3 { color: #fff; }
.why-panel ul { padding-left: 0; list-style: none; margin: 0 0 24px; }
.why-panel li { padding: 10px 0 10px 30px; position: relative; border-bottom: 1px solid rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .9); }
.why-panel li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
@media (min-width: 900px) { .why { grid-template-columns: 1.1fr .9fr; gap: 64px; } }

.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 22px; transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: var(--c-400); box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; padding: 18px 28px 18px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--primary); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

.cta {
	position: relative; overflow: hidden; color: #fff; isolation: isolate;
	background: radial-gradient(700px 400px at 100% 0%, rgba(184, 228, 92, .2), transparent 60%), linear-gradient(160deg, var(--c-950), var(--c-800));
}
.cta h2, .cta h3 { color: #fff; }
.cta-grid { display: grid; gap: 40px; align-items: start; }
.cta p { color: rgba(255, 255, 255, .82); }
.cta .contact-card { background: var(--card); color: var(--ink); border-radius: calc(var(--radius) + 6px); padding: clamp(22px, 4vw, 38px); box-shadow: var(--shadow); }
.cta .contact-card h3 { color: var(--ink); }
.contact-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.contact-list a { color: var(--accent); }
@media (min-width: 900px) { .cta-grid { grid-template-columns: .9fr 1.1fr; gap: 64px; } }

/* ==========================================================================
   7. Cards / archives / pagination
   ========================================================================== */
.grid { display: grid; gap: 26px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card-media { display: block; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--c-800), var(--c-500)); overflow: hidden; position: relative; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-media img { transform: scale(1.05); }
.card-media .mark { position: absolute; inset: 0; margin: auto; width: 38%; color: rgba(255, 255, 255, .35); }
.card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.card .cat { font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; margin-bottom: 10px; }
.card h2, .card h3 { font-size: 1.15rem; line-height: 1.3; margin: 0 0 .5em; }
.card h2 a, .card h3 a { color: var(--ink); text-decoration: none; }
.card h2 a:hover, .card h3 a:hover { color: var(--primary); }
.card p { color: var(--muted); font-size: .98rem; margin-bottom: 16px; }
.meta { margin-top: auto; font-size: .85rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.meta .dot::before { content: "·"; margin-right: 14px; }

.page-hero { background: linear-gradient(160deg, var(--c-900), var(--c-800)); color: #fff; padding: clamp(40px, 6vw, 72px) 0; }
.page-hero h1 { color: #fff; margin-bottom: .3em; font-size: clamp(1.9rem, 3.5vw + .5rem, 2.8rem); }
.page-hero p { color: rgba(255, 255, 255, .82); max-width: 62ch; margin: 0; }
.page-hero .breadcrumbs, .page-hero .breadcrumbs a, .article-hero .breadcrumbs, .article-hero .breadcrumbs a { color: rgba(255, 255, 255, .75); }
.page-body { padding: clamp(36px, 5vw, 64px) 0 clamp(56px, 8vw, 96px); }

.navigation.pagination { margin-top: 48px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.page-numbers { min-width: 44px; height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 700; color: var(--ink); background: var(--card); }
.page-numbers:hover { border-color: var(--c-500); color: var(--primary); }
.page-numbers.current { background: var(--primary); border-color: var(--primary); color: #fff; }
.page-numbers.dots { border: 0; background: none; }

.breadcrumbs { font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: nowrap; padding: 0; margin: 0; }
.breadcrumbs li { flex: none; white-space: nowrap; }
.breadcrumbs li:last-child { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.breadcrumbs li:not(:last-child)::after { content: "›"; margin: 0 9px; opacity: .6; }
.breadcrumbs a { color: inherit; text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: 600; }
.page-hero .breadcrumbs [aria-current], .article-hero .breadcrumbs [aria-current] { color: #fff; }

/* ==========================================================================
   8. Single post / page content
   ========================================================================== */
.layout { display: grid; gap: 48px; }
@media (min-width: 1024px) { .layout.has-sidebar { grid-template-columns: minmax(0, 1fr) 330px; align-items: start; } }
.article { max-width: var(--read); margin-inline: auto; width: 100%; min-width: 0; }
.has-sidebar .article { margin-inline: 0; max-width: none; }
.entry-header h1 { font-size: clamp(1.9rem, 3.2vw + .8rem, 2.9rem); margin-bottom: .45em; }
.entry-cat { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; background: var(--c-100); color: var(--primary-dark); padding: 5px 14px; border-radius: 999px; margin-bottom: 16px; }
[data-theme="dark"] .entry-cat { color: var(--c-400); }
.entry-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: .92rem; margin-bottom: 26px; align-items: center; }
.entry-meta .avatar { width: 30px; height: 30px; font-size: .75rem; }
.entry-meta a { color: inherit; font-weight: 600; }
.featured { margin: 0 0 32px; border-radius: var(--radius); overflow: hidden; }
.featured img { width: 100%; height: auto; }
.featured figcaption { font-size: .85rem; color: var(--muted); padding: 8px 4px; }

.entry-content { overflow-wrap: break-word; }
.entry-content > * { max-width: 100%; }
.entry-content h2 { margin-top: 2.1em; scroll-margin-top: calc(var(--header-h) + 20px); }
.entry-content h3 { margin-top: 1.7em; scroll-margin-top: calc(var(--header-h) + 20px); }
.entry-content h2 strong, .entry-content h3 strong { font-weight: inherit; }
.entry-content li { margin-bottom: .45em; }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content blockquote { margin: 1.8em 0; padding: 18px 24px; border-left: 5px solid var(--c-500); background: var(--c-50); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 1.1rem; }
.entry-content blockquote p:last-child { margin: 0; }
.entry-content table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; margin: 1.6em 0; font-size: .96rem; -webkit-overflow-scrolling: touch; }
.entry-content th, .entry-content td { padding: 12px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; min-width: 120px; }
.entry-content th { background: var(--c-50); font-weight: 700; }
.entry-content code { font-family: var(--mono); font-size: .9em; background: var(--surface); padding: 2px 6px; border-radius: 6px; }
.entry-content pre { background: var(--c-950); color: #e8f3ee; padding: 18px; border-radius: var(--radius-sm); overflow-x: auto; }
.entry-content pre code { background: none; padding: 0; color: inherit; }
.entry-content .alignwide { max-width: min(1100px, 100vw - 40px); }
.entry-content .alignfull { max-width: none; }
.wp-caption, .wp-block-image figcaption { font-size: .88rem; color: var(--muted); }
.alignleft { float: left; margin: .3em 1.4em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.4em; }
.aligncenter { margin-inline: auto; display: block; }
.entry-content::after { content: ""; display: block; clear: both; }
.wp-block-button__link { border-radius: 999px; }

.toc { background: var(--c-50); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin: 0 0 34px; }
.toc strong { display: block; font-size: 1rem; margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc li { margin-bottom: .3em; font-size: .97rem; }
.toc ol ol { margin-top: .3em; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.toc details > summary { cursor: pointer; font-weight: 700; list-style: none; }
.toc details > summary::-webkit-details-marker { display: none; }
.toc details > summary::after { content: " ▾"; color: var(--primary); }

.entry-footer { margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--line); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tags a { font-size: .85rem; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--muted); }
.tags a:hover { border-color: var(--c-500); color: var(--primary); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.share > span { font-weight: 700; margin-right: 6px; }
.share a, .share button { font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; padding: 8px 16px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; text-decoration: none; }
.share a:hover, .share button:hover { border-color: var(--c-500); color: var(--primary); }

.avatar { width: 56px; height: 56px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; background: linear-gradient(135deg, var(--c-500), var(--primary-dark)); color: #fff; font-weight: 800; text-transform: uppercase; }
.author-box { display: flex; gap: 18px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-top: 36px; }
.author-box h3 { margin: 0 0 .2em; font-size: 1.1rem; }
.author-box p { margin: 0; color: var(--muted); font-size: .95rem; }
.post-nav { display: grid; gap: 14px; margin-top: 36px; }
@media (min-width: 640px) { .post-nav { grid-template-columns: 1fr 1fr; } }
.post-nav a { display: block; padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); background: var(--card); transition: .2s; }
.post-nav a:hover { border-color: var(--c-500); transform: translateY(-3px); }
.post-nav small { display: block; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; }
.post-nav .next { text-align: right; }
.related { margin-top: 64px; }
.related h2 { font-size: 1.6rem; }

/* Sidebar & widgets */
.sidebar { display: grid; gap: 24px; align-content: start; }
.widget { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.widget-title { font-size: 1.05rem; margin-bottom: .8em; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.widget li:last-child { border: 0; }
.widget a { text-decoration: none; }
@media (min-width: 1024px) {
	.sidebar { position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; scrollbar-width: thin; padding-right: 2px; }
}
.toc-widget ol { list-style: none; margin: 0; padding: 0; counter-reset: t; }
.toc-widget li { padding: 7px 0; font-size: .93rem; line-height: 1.4; }
.toc-widget li.l3 { padding-left: 16px; font-size: .88rem; }
.toc-widget a { color: var(--ink); }
.toc-widget a:hover, .toc-widget a.is-active { color: var(--primary); }
.widget-cta { background: var(--c-950); border-color: transparent; color: #fff; }
.widget-cta .widget-title { color: #fff; }
.widget-cta p { color: rgba(255, 255, 255, .8); font-size: .94rem; margin: 0 0 14px; }
.widget-cta .btn { width: 100%; justify-content: center; }
.post-list li { display: grid; gap: 2px; }
.post-list a { font-weight: 600; line-height: 1.35; color: var(--ink); }
.post-list a:hover { color: var(--primary); }
.post-list time { font-size: .8rem; color: var(--muted); }
.cat-list li { display: flex; justify-content: space-between; gap: 10px; }
.widget-contact { background: var(--c-100); border-color: transparent; }
.widget-contact p { margin: 0 0 12px; font-size: .94rem; }
html, body, #page { max-width: none; margin: 0; padding: 0; width: 100%; background: var(--bg); }
body { overflow-x: clip; }
.brand-name { margin-left: -4px; }
.custom-logo-link img, .custom-logo { max-height: 44px; width: auto; }
@media (max-width: 480px) { .brand-name span { max-width: 38vw; } }

/* Comments */
.comments { margin-top: 56px; }
.comments-title { font-size: 1.4rem; }
.comment-list { list-style: none; padding: 0; margin: 0 0 32px; }
.comment-list .children { list-style: none; padding-left: 22px; border-left: 2px solid var(--line); margin-left: 8px; }
.comment-body { padding: 18px 0; border-bottom: 1px solid var(--line); }
.comment-meta { font-size: .88rem; color: var(--muted); margin-bottom: 6px; }
.comment-author .fn { font-weight: 700; font-style: normal; }
.comment-respond { background: var(--surface); border-radius: var(--radius); padding: 26px; }
.comment-respond .comment-reply-title { font-size: 1.25rem; }
.comment-form p { margin-bottom: 16px; }
.comment-form .form-submit input { background: var(--primary); color: #fff; border: 0; border-radius: 999px; padding: 14px 28px; font: inherit; font-weight: 700; cursor: pointer; }
.comment-form .form-submit input:hover { background: var(--primary-dark); }

/* Search + 404 */
.search-form { display: flex; gap: 8px; }
.search-form input[type="search"] { flex: 1; border-radius: 999px; padding-inline: 20px; }
.search-form button { border: 0; background: var(--primary); color: #fff; border-radius: 999px; padding: 0 24px; font: inherit; font-weight: 700; cursor: pointer; }
.empty { text-align: center; max-width: 560px; margin: 0 auto; padding: 40px 0; }
.error-code { font-size: clamp(5rem, 18vw, 10rem); font-weight: 900; line-height: 1; margin: 0; background: linear-gradient(135deg, var(--c-500), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ==========================================================================
   9. Footer
   ========================================================================== */
.site-footer { background: var(--c-950); color: rgba(255, 255, 255, .78); padding: clamp(48px, 7vw, 80px) 0 0; margin-top: auto; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.site-footer h2, .site-footer .widget-title { color: #fff; font-size: 1.05rem; margin-bottom: 1em; }
.site-footer .widget { background: none; border: 0; padding: 0; }
.site-footer .widget li { border-color: rgba(255, 255, 255, .1); }
.footer-grid { display: grid; gap: 36px; padding-bottom: 44px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer-brand .brand { color: #fff !important; margin-bottom: 14px; }
.footer-brand .mark { color: var(--accent); }
.footer-brand p { max-width: 38ch; font-size: .96rem; }
.footer-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .25); font-size: .78rem; font-weight: 800; }
.social a:hover { background: var(--accent); color: var(--c-950); border-color: var(--accent); text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 20px 0; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: .9rem; }
.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 90; opacity: 0; visibility: hidden; transform: translateY(10px); transition: .25s; background: var(--primary); color: #fff; border: 0; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--primary-dark); color: #fff; }

/* ==========================================================================
   10. Accessibility: reduced motion, print
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
	.js .reveal { opacity: 1; transform: none; }
	.veh { left: 8%; }
}
@media print {
	.site-header, .site-footer, .sidebar, .share, .post-nav, .related, .comments, .progress, .to-top, .toc { display: none !important; }
	body { font-size: 12pt; color: #000; background: #fff; }
	a { color: #000; text-decoration: underline; }
}


/* ==========================================================================
   11. Post header band, quick answer, pillar box, intro/formula, TOC polish
   ========================================================================== */
.article-hero {
	background:
		radial-gradient(700px 320px at 90% 0%, rgba(76, 199, 144, .25), transparent 60%),
		linear-gradient(160deg, var(--c-950), var(--c-800));
	color: #fff; padding: clamp(26px, 4.5vw, 52px) 0 clamp(34px, 5.5vw, 64px);
}
.article-hero-inner { max-width: var(--read); margin-inline: auto; }
.has-sidebar .article-hero-inner { margin-inline: 0; max-width: none; }
.article-hero h1 { color: #fff; font-size: clamp(1.85rem, 3.2vw + .8rem, 2.85rem); margin: 0 0 .5em; }
.article-hero .entry-cat { background: rgba(255, 255, 255, .14); color: var(--accent); }
.article-hero .entry-meta { color: rgba(255, 255, 255, .8); margin: 0; }
.article-hero .entry-meta a { color: #fff; }
.article-hero .byline { display: inline-flex; align-items: center; gap: 8px; }
.article-hero .avatar { background: linear-gradient(135deg, var(--c-400), var(--c-500)); color: var(--c-950); }
.page-body .article > .featured:first-child, .page-body .article > .quick-answer:first-child { margin-top: 0; }

.quick-answer {
	background: var(--c-50); border: 1px solid var(--c-400); border-left-width: 6px; border-radius: var(--radius);
	padding: 18px 22px; margin: 0 0 32px;
}
.quick-answer strong { display: block; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--primary-dark); margin-bottom: 6px; }
[data-theme="dark"] .quick-answer strong { color: var(--c-400); }
.quick-answer p { margin: 0; font-size: 1.08rem; }

.pillar {
	display: grid; gap: 8px; background: linear-gradient(160deg, var(--c-900), var(--c-800)); color: #fff;
	border-radius: var(--radius); padding: 22px 26px; margin-top: 36px;
}
.pillar strong { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.pillar a { color: #fff; font-weight: 700; text-decoration: none; }
.pillar a::after { content: " →"; }
.pillar a:hover { color: var(--accent); text-decoration: underline; }

.def-grid { display: grid; gap: 36px; align-items: center; }
.def-grid h2 { margin-bottom: .5em; }
.def-grid p { color: var(--muted); }
.def-grid p strong { color: var(--ink); }
.formula-card { background: linear-gradient(160deg, var(--c-900), var(--c-800)); color: #fff; border-radius: calc(var(--radius) + 6px); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }
.formula-card p { color: rgba(255, 255, 255, .85); }
.formula-label { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent) !important; font-weight: 700; margin-bottom: 8px; }
.formula { font-size: clamp(1.15rem, 2vw + .6rem, 1.6rem); font-weight: 800; line-height: 1.3; color: #fff !important; margin-bottom: 14px; }
@media (min-width: 900px) { .def-grid { grid-template-columns: 1.2fr .8fr; gap: 64px; } }

.toc ol ol { list-style: lower-alpha; }
.toc ol { padding-left: 1.4em; }
.footer-title { color: #fff; font-size: 1.05rem; font-weight: 750; margin: 0 0 1em; }
.formula-card strong { color: var(--accent); }

/* Magazine layout: article card lifts over the hero band */
.single .page-body { background: var(--surface, var(--bg)); padding-top: 0; }
.single .layout { margin-top: -28px; position: relative; }
.single .article { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3.5vw, 44px); box-shadow: 0 6px 24px rgba(10, 40, 30, .06); }
.single .has-sidebar .article { max-width: none; }
.single .entry-content { font-size: clamp(1.03rem, .35vw + 1rem, 1.14rem); line-height: 1.75; }
@media (min-width: 1100px) { .single .has-sidebar .toc { display: none; } }

/* ---- Hardening: never boxed, never squeezed, whatever plugins or old CSS do ---- */
html, body { width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; background: var(--bg) !important; border: 0 !important; box-shadow: none !important; }
body > #page, #page.site { width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; background: transparent !important; float: none !important; }
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }
.site-header { width: 100%; }
.container { max-width: var(--maxw) !important; width: 100% !important; margin-inline: auto !important; }
/* Post typography: calm sizes */
.article-hero h1 { font-size: clamp(1.7rem, 1.2vw + 1.35rem, 2.4rem) !important; line-height: 1.2; letter-spacing: -.015em; font-weight: 800; }
.article-hero-inner { max-width: 860px !important; }
.single .article .entry-content { font-size: 1.125rem; line-height: 1.75; max-width: 760px; }
.single .article .entry-content h2 { font-size: clamp(1.4rem, .6vw + 1.2rem, 1.75rem); line-height: 1.3; margin: 1.9em 0 .6em; }
.single .article .entry-content h3 { font-size: clamp(1.15rem, .4vw + 1.05rem, 1.35rem); line-height: 1.35; }
.single .article .entry-content p, .single .article .entry-content ul, .single .article .entry-content ol { margin: 0 0 1.15em; }
.single .article .entry-content img { max-width: 100%; height: auto; border-radius: 12px; }
.single .article .featured img { width: 100%; height: auto; border-radius: 14px; }
@media (max-width: 640px) {
	.single .article { padding: 18px; border-radius: 12px; }
	.single .article .entry-content { font-size: 1.0625rem; }
}

/* ---- Content building blocks used by the built-in pages ---- */
.callout { background: var(--c-100); border-left: 4px solid var(--primary); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 16px 20px; margin: 1.4em 0; }
[data-theme="dark"] .callout { background: rgba(255, 255, 255, .06); }
.formula-box { background: var(--c-950); color: #fff; border-radius: var(--radius-sm); padding: 18px 22px; margin: 1.2em 0; font-weight: 700; font-size: 1.05rem; text-align: center; overflow-wrap: anywhere; }
.card-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); margin: 1.4em 0; }
.mat-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-decoration: none; color: inherit; display: block; }
.mat-card h3 { margin: 0 0 .45em; font-size: 1.1rem; line-height: 1.3; }
.mat-card p { margin: 0 0 .7em; font-size: .97rem; line-height: 1.6; color: var(--muted); }
.mat-card p:last-child { margin-bottom: 0; }
.mat-badge { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--c-100); color: var(--primary-dark); font-weight: 800; font-size: .85rem; letter-spacing: .04em; margin-bottom: 12px; }
.link-card { transition: border-color .15s, transform .15s; }
.link-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.link-card h3 { color: var(--primary-dark); }
.table-wrap { overflow-x: auto; margin: 1.4em 0; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.table-wrap table { width: 100%; border-collapse: collapse; min-width: 520px; font-size: .97rem; }
.table-wrap th, .table-wrap td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap th { background: var(--surface); font-weight: 700; }
.table-wrap tr:last-child td { border-bottom: 0; }
.steps-list { counter-reset: s; list-style: none; padding: 0; margin: 1.2em 0; display: grid; gap: 12px; }
.steps-list li { counter-increment: s; position: relative; padding: 14px 16px 14px 60px; background: var(--surface); border-radius: var(--radius-sm); }
.steps-list li::before { content: counter(s); position: absolute; left: 14px; top: 12px; width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; display: grid; place-items: center; }
.sources li { overflow-wrap: anywhere; }
.related-pages { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.related-pages h2 { font-size: 1.4rem; margin-top: 0; }
.cta-band { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; background: var(--c-950); color: #fff; border-radius: var(--radius); padding: 22px 26px; margin-top: 28px; }
.cta-band strong { display: block; font-size: 1.15rem; }
.cta-band span { color: rgba(255, 255, 255, .8); }
.page .article { max-width: 860px; }
@media (max-width: 640px) { .steps-list li { padding-left: 54px; } }

/* Pages get the same card treatment as posts */
body.page:not(.home) .page-body { background: var(--surface); padding-top: 0; }
body.page:not(.home) .page-hero { padding-bottom: clamp(48px, 6vw, 80px); }
body.page:not(.home) .page-body > .container { margin-top: -28px; position: relative; }
body.page:not(.home) .article { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3.5vw, 44px); box-shadow: 0 6px 24px rgba(10, 40, 30, .06); max-width: 900px; }
body.page:not(.home) .entry-content { font-size: 1.125rem; line-height: 1.75; }
body.page:not(.home) .entry-content h2 { font-size: clamp(1.4rem, .6vw + 1.2rem, 1.75rem); margin: 1.9em 0 .6em; line-height: 1.3; }
body.page:not(.home) .entry-content h3 { font-size: clamp(1.1rem, .4vw + 1rem, 1.3rem); }
.toc ol { list-style: none; padding-left: 0; margin: .6em 0 0; display: grid; gap: 4px; }
.toc li.l3 { padding-left: 18px; font-size: .94em; }
@media (min-width: 1180px) { .brand { flex: none; } .brand span { max-width: none; overflow: visible; text-overflow: clip; } .primary-nav ul { gap: 2px; } }

.page-meta { margin-top: 14px !important; font-size: .9rem; color: rgba(255, 255, 255, .72) !important; }
.page-meta a { color: var(--accent); }
.page-meta-dark { color: var(--muted); font-size: .9rem; margin-top: 18px; }

/* ---- Blog toolbar + featured article ---- */
.blog-toolbar { background: var(--surface); border-bottom: 1px solid var(--line); padding: 16px 0; }
.blog-toolbar .container { display: grid; gap: 14px; }
@media (min-width: 900px) { .blog-toolbar .container { grid-template-columns: 1fr minmax(240px, 320px); align-items: center; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; gap: 6px; align-items: center; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9rem; }
.chip span { font-size: .75rem; color: var(--muted); }
.chip:hover, .chip.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip.is-active span, .chip:hover span { color: rgba(255, 255, 255, .85); }
.featured-post { display: grid; gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 32px; box-shadow: 0 6px 24px rgba(10, 40, 30, .06); }
@media (min-width: 800px) { .featured-post { grid-template-columns: 1.1fr 1fr; } }
.featured-media { display: block; background: var(--c-100); min-height: 220px; }
.featured-media img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 16/10; }
.featured-media .mark { width: 72px; height: 72px; margin: 60px auto; display: block; }
.featured-body { padding: clamp(20px, 3vw, 36px); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.featured-body h2 { font-size: clamp(1.35rem, 1vw + 1.1rem, 1.8rem); line-height: 1.25; margin: 0; }
.featured-body h2 a { color: var(--ink); text-decoration: none; }
.featured-body h2 a:hover { color: var(--primary); }
.featured-body p { margin: 0; color: var(--muted); }
.featured-body .meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .88rem; color: var(--muted); }
.blog-toolbar { position: relative; z-index: 2; }
.blog .page-body > .container, .archive .page-body > .container { margin-top: 0; }
