/*
Theme Name: CryptoNation
Theme URI: https://cryptonation.co.il
Author: CryptoNation
Description: תבנית מותאמת אישית לאתר CryptoNation — מדריך הקריפטו והבלוקצ'יין בעברית. RTL, מצב כהה, SEO מובנה, אנציקלופדיית פרויקטים ומילון מונחים.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: cryptonation
*/

/* ========== Tokens ========== */
:root {
	--bg: #ffffff;
	--bg-soft: #f4f6fb;
	--bg-elev: #ffffff;
	--ink: #0b1220;
	--ink-2: #4a5573;
	--ink-3: #7a84a0;
	--line: #e3e8f2;
	--brand: #5b4cff;
	--brand-ink: #4a3be6;
	--brand-2: #0fbfa3;
	--gold: #f5a524;
	--up: #0e9f6e;
	--down: #e0364f;
	--grad: linear-gradient(120deg, #7c6cff 0%, #5b4cff 40%, #18d6b8 100%);
	--night: #070b1a;
	--night-2: #0e1530;
	--radius: 16px;
	--radius-sm: 10px;
	--shadow: 0 1px 2px rgba(11, 18, 32, .04), 0 8px 24px rgba(11, 18, 32, .06);
	--shadow-lg: 0 20px 50px rgba(11, 18, 32, .12);
	--font: "Heebo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	--font-head: "Rubik", "Heebo", system-ui, sans-serif;
	--wrap: 1200px;
	--gutter: clamp(16px, 4vw, 32px);
	color-scheme: light;
}

:root[data-theme="dark"] {
	--bg: #0a0f1f;
	--bg-soft: #0f1630;
	--bg-elev: #131b38;
	--ink: #eef1fa;
	--ink-2: #a9b2cc;
	--ink-3: #7a84a0;
	--line: #222c4d;
	--brand: #8577ff;
	--brand-ink: #a59bff;
	--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
	--shadow-lg: 0 20px 50px rgba(0, 0, 0, .45);
	color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #0a0f1f;
		--bg-soft: #0f1630;
		--bg-elev: #131b38;
		--ink: #eef1fa;
		--ink-2: #a9b2cc;
		--ink-3: #7a84a0;
		--line: #222c4d;
		--brand: #8577ff;
		--brand-ink: #a59bff;
		--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
		--shadow-lg: 0 20px 50px rgba(0, 0, 0, .45);
		color-scheme: dark;
	}
}

/* ========== Base ========== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 400 17px/1.7 var(--font);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
	overflow-wrap: break-word;
	-webkit-tap-highlight-color: transparent;
}
/* Clip sideways overflow without creating a scroll container, so the sticky header keeps working on phones. */
@supports (overflow: clip) {
	html, body { overflow-x: clip; }
}
iframe, embed, object, table { max-width: 100%; }
/* Grid/flex children default to min-width:auto, so one wide table or long word stretches the whole page past the screen. */
.hero__inner > *, .paths__grid > *, .pillars__grid > *, .cards > *, .projects-grid > *, .trust__grid > *, .trust__list > *,
.newsletter__box > *, .article__layout > *, .post-nav > *, .next-steps > *, .g-grid > *, .footer__cta > *, .footer__grid > *,
.footer__nav > *, .step > *, .pp-hero__grid > *, .pp-stats > *, .pp-id > *, .pp-price__mini > *, .pp-supply > *, .pp-wp > *, .pp-analysis > *, .prose > * { min-width: 0; }
a, button, input, select, textarea, label { touch-action: manipulation; }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.icon { width: 1.2em; height: 1.2em; flex: none; vertical-align: -.2em; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.hp { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); border: 0; opacity: 0; }
.skip-link { position: absolute; inset-inline-start: 1rem; top: -100px; z-index: 999; background: var(--brand); color: #fff; padding: .6rem 1rem; border-radius: 8px; }
.skip-link:focus { top: 1rem; }

.container { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.container--mid { max-width: 900px; }
.container--narrow { max-width: 760px; }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tight { padding-block: clamp(32px, 5vw, 56px); }
.section--soft { background: var(--bg-soft); }
.section__head { max-width: 680px; margin-bottom: clamp(28px, 4vw, 48px); }
.section__head p:last-child { color: var(--ink-2); font-size: 1.1rem; }
.section__head--row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.section__title { margin-bottom: 1.5rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .4rem; font: 600 .82rem/1 var(--font-head); letter-spacing: .04em; color: var(--brand-ink); text-transform: uppercase; margin-bottom: .9rem; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.link-more { font-weight: 600; }

/* ========== Buttons ========== */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	padding: .75rem 1.3rem; border-radius: 999px; border: 1.5px solid transparent;
	font: 600 1rem/1.1 var(--font-head); cursor: pointer; text-decoration: none !important;
	transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s;
	white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(91, 76, 255, .35); }
.btn--primary:hover { background: var(--brand-ink); color: #fff; box-shadow: 0 10px 26px rgba(91, 76, 255, .45); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-ink); }
.btn--light { background: #fff; color: var(--night); }
.btn--sm { padding: .55rem 1rem; font-size: .92rem; }
.btn--lg { padding: .95rem 1.6rem; font-size: 1.06rem; }
.btn--block { width: 100%; }
.btn .icon { transform: scaleX(1); }
.icon-btn {
	display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
	border: 1px solid var(--line); background: var(--bg-elev); color: var(--ink); cursor: pointer;
	transition: border-color .2s, color .2s;
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand-ink); }

/* ========== Ticker ========== */
.ticker { position: relative; background: var(--night); color: #cfd5ea; font-size: .82rem; overflow: hidden; contain: paint; white-space: nowrap; border-bottom: 1px solid #141c3a; }
.ticker__track { display: flex; width: max-content; animation: ticker 60s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker ul { display: flex; gap: 2rem; list-style: none; margin: 0; padding: .5rem 1rem; }
.ticker li { display: inline-flex; align-items: center; gap: .45rem; }
.ticker b { color: #fff; font-weight: 600; }
.ticker img { border-radius: 50%; }
@keyframes ticker { to { transform: translateX(50%); } }
.chg { font-weight: 600; font-size: .9em; white-space: nowrap; }
.chg--up { color: var(--up); }
.chg--down { color: var(--down); }
.ticker .chg--up { color: #34d399; }
.ticker .chg--down { color: #fb7185; }

/* ========== Header ========== */
.site-header {
	position: sticky; top: 0; z-index: 100;
	border-bottom: 1px solid var(--line);
	transition: box-shadow .2s;
}
/* Blur lives on a pseudo-element: a backdrop-filter on the header itself would trap the fixed mobile drawer inside it. */
.site-header::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: color-mix(in srgb, var(--bg) 85%, transparent);
	backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
}
.site-header.is-scrolled { box-shadow: 0 6px 24px -12px rgba(7, 11, 26, .35); }
.site-header__inner { transition: min-height .2s; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none !important; flex: none; direction: ltr; }
.logo__word { font: 500 1.3rem/1 var(--font-head); letter-spacing: .01em; text-transform: uppercase; }
.logo__word b { font-weight: 700; }
.custom-logo { max-height: 44px; width: auto; }

.nav { flex: 1; }
.nav__list { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav__list > li { position: relative; display: flex; align-items: center; }
.nav__list > li > a { display: block; padding: .6rem .8rem; border-radius: 10px; color: var(--ink); font: 500 .98rem/1 var(--font-head); text-decoration: none; }
.nav__list > li > a:hover, .nav__list > .current-menu-item > a, .nav__list > .current-menu-ancestor > a, .nav__list > .current-menu-parent > a { color: var(--brand-ink); background: var(--bg-soft); }
.submenu-toggle { background: none; border: 0; color: var(--ink-3); cursor: pointer; padding: .3rem; margin-inline-start: -.5rem; display: grid; place-items: center; }
.submenu-toggle .icon { width: 16px; height: 16px; transition: transform .2s; }
.nav .sub-menu {
	position: absolute; top: calc(100% + 8px); inset-inline-start: 0; min-width: 260px;
	list-style: none; margin: 0; padding: .5rem; background: var(--bg-elev);
	border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s ease;
}
.nav .sub-menu::before { content: ""; position: absolute; inset-inline: 0; top: -10px; height: 10px; }
.nav li:hover > .sub-menu, .nav li:focus-within > .sub-menu, .nav li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav .sub-menu a { display: block; padding: .6rem .8rem; border-radius: 10px; color: var(--ink); font-weight: 500; text-decoration: none; }
.nav .sub-menu a:hover { background: var(--bg-soft); color: var(--brand-ink); }
.nav__mobile-cta { display: none; }

.header-actions { display: flex; align-items: center; gap: .5rem; margin-inline-start: auto; }
.js-theme .i-sun { display: none; }
:root[data-theme="dark"] .js-theme .i-sun { display: block; }
:root[data-theme="dark"] .js-theme .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .js-theme .i-sun { display: block; }
	:root:not([data-theme="light"]) .js-theme .i-moon { display: none; }
}
.nav-toggle { display: none; }
.nav-toggle .i-close { display: none; }
.nav-open .nav-toggle .i-close { display: block; }
.nav-open .nav-toggle .i-open { display: none; }

@media (max-width: 1080px) {
	.header-cta { display: none; }
	.nav-toggle { display: inline-grid; }
	.nav {
		position: fixed; inset: 0; top: var(--hdr, 72px); z-index: 99; background: var(--bg);
		padding: 1rem var(--gutter) calc(2rem + env(safe-area-inset-bottom, 0px)); overflow-y: auto; overscroll-behavior: contain;
		/* Closed state stays inside the viewport (no off-canvas offset), so it never adds sideways scroll. */
		opacity: 0; transform: translateY(-8px); visibility: hidden; pointer-events: none;
		transition: opacity .2s ease, transform .2s ease, visibility .2s;
	}
	.nav-open .nav { opacity: 1; transform: none; visibility: visible; pointer-events: auto; }
	html.nav-lock { overflow: hidden; }
	.nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.nav__list > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
	.nav__list > li > a { flex: 1; padding: 1rem .25rem; font-size: 1.1rem; background: none !important; }
	.submenu-toggle { padding: .8rem; margin: 0; }
	.nav .sub-menu { position: static; width: 100%; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 .75rem; display: none; background: transparent; }
	.nav li.is-open > .sub-menu { display: block; }
	.nav li.is-open > .submenu-toggle .icon { transform: rotate(180deg); }
	.nav li:hover > .sub-menu { opacity: 1; }
	.nav__mobile-cta { display: block; margin-top: 1.5rem; }
}

/* ========== Search ========== */
.search-form { position: relative; display: flex; gap: .5rem; align-items: center; background: var(--bg-elev); border: 1.5px solid var(--line); border-radius: 999px; padding: .35rem; padding-inline-start: 2.6rem; transition: border-color .2s, box-shadow .2s; }
.search-form:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(91, 76, 255, .15); }
.search-form__icon { position: absolute; inset-inline-start: 1rem; color: var(--ink-3); }
.search-form__input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 1rem; padding: .5rem 0; outline: none; }
.search-form .btn { padding: .6rem 1.1rem; }
.search-overlay { position: fixed; inset: 0; z-index: 300; background: rgba(7, 11, 26, .6); backdrop-filter: blur(6px); display: grid; place-items: start center; padding: 12vh var(--gutter) 0; }
.search-overlay[hidden] { display: none; }
.search-overlay__box { position: relative; width: min(680px, 100%); background: var(--bg); border-radius: 20px; padding: 2rem 1.5rem 1.25rem; box-shadow: var(--shadow-lg); }
.search-overlay__close { position: absolute; top: .6rem; inset-inline-end: .6rem; width: 36px; height: 36px; }
.search-overlay__hint { margin: 1rem 0 0; color: var(--ink-3); font-size: .9rem; }

/* ========== Hero ========== */
.hero { position: relative; overflow: hidden; background: var(--night); color: #e7eaf6; padding-block: clamp(56px, 9vw, 120px); isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%); }
.hero__bg span { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; animation: float 18s ease-in-out infinite alternate; }
.hero__bg span:nth-child(1) { width: 520px; height: 520px; background: #5b4cff; top: -180px; inset-inline-start: -120px; }
.hero__bg span:nth-child(2) { width: 420px; height: 420px; background: #18d6b8; bottom: -200px; inset-inline-end: 10%; animation-delay: -6s; opacity: .35; }
.hero__bg span:nth-child(3) { width: 300px; height: 300px; background: #f5a524; top: 30%; inset-inline-end: -120px; animation-delay: -12s; opacity: .18; }
@keyframes float { to { transform: translate(40px, 30px) scale(1.08); } }
.hero__inner { display: grid; grid-template-columns: 1.25fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero .eyebrow { color: #a59bff; }
.hero__title { color: #fff; margin-bottom: 1.25rem; }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #b8c0dc; max-width: 600px; margin-bottom: 2rem; }
.hero__ctas { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 2rem; }
.hero .btn--ghost { color: #fff; border-color: rgba(255,255,255,.25); }
.hero .btn--ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.06); }
.hero__search { max-width: 560px; }
.hero__search .search-form { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }
.hero__search .search-form__input { color: #fff; }
.hero__search .search-form__input::placeholder { color: #8d96b8; }

.panel { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 22px; padding: 1.25rem; backdrop-filter: blur(10px); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.panel__head { display: flex; align-items: center; gap: .5rem; font: 600 .95rem/1 var(--font-head); color: #fff; padding: .25rem .25rem 1rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.panel__head small { margin-inline-start: auto; color: #7f89ab; font-weight: 400; font-size: .78rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); } }
.panel__list { list-style: none; margin: 0; padding: 0; }
.panel__list li { display: grid; grid-template-columns: 28px 1fr auto auto; align-items: center; gap: .75rem; padding: .85rem .25rem; border-bottom: 1px solid rgba(255,255,255,.06); }
.panel__list img { border-radius: 50%; }
.panel__name { color: #fff; font-weight: 500; }
.panel__name small { color: #7f89ab; margin-inline-start: .25rem; }
.panel__price { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.panel .chg--up { color: #34d399; } .panel .chg--down { color: #fb7185; }
.panel__more { display: block; text-align: center; padding-top: 1rem; color: #a59bff; font-weight: 600; }
.panel__empty { color: #8d96b8; padding: 1rem .25rem; }

/* ========== Paths ========== */
.paths__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.path { position: relative; display: flex; flex-direction: column; padding: 2rem 1.75rem; border-radius: 22px; border: 1px solid var(--line); background: var(--bg-elev); color: var(--ink); text-decoration: none !important; overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; }
.path::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--grad); }
.path--2::before { background: linear-gradient(90deg, #18d6b8, #5b4cff); }
.path--3::before { background: linear-gradient(90deg, #f5a524, #e0364f); }
.path:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.path__step { font: 800 2.6rem/1 var(--font-head); color: var(--line); margin-bottom: 1rem; }
.path p { color: var(--ink-2); flex: 1; }
.path__go { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--brand-ink); }

/* ========== Pillars ========== */
.pillars__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.pillar { display: block; padding: 1.6rem; border-radius: var(--radius); background: var(--bg-elev); border: 1px solid var(--line); color: var(--ink); text-decoration: none !important; transition: .2s; }
.pillar:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-2px); }
.pillar__icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; margin-bottom: 1rem; background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand-ink); }
.pillar__icon .icon { width: 26px; height: 26px; }
.pillar p { color: var(--ink-2); margin: 0; font-size: .97rem; }

/* ========== Cards ========== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card { display: flex; flex-direction: column; border-radius: var(--radius); background: var(--bg-elev); border: 1px solid var(--line); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-soft); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card__media img { transform: scale(1.04); }
.card__placeholder { display: grid; place-items: center; width: 100%; height: 100%; background: radial-gradient(circle at 30% 20%, rgba(124,108,255,.35), transparent 60%), radial-gradient(circle at 80% 90%, rgba(24,214,184,.3), transparent 55%), var(--night-2); color: #fff; }
.card__placeholder .icon { width: 56px; height: 56px; opacity: .9; }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 1.25rem 1.35rem 1.35rem; }
.card__title { font-size: 1.18rem; margin: .6rem 0 .5rem; }
.card__title a { color: var(--ink); }
.card__title a:hover { color: var(--brand-ink); text-decoration: none; }
.card__excerpt { color: var(--ink-2); font-size: .96rem; flex: 1; }
.card--feature { grid-column: span 2; flex-direction: row; }
.card--feature .card__media { flex: 1.2; aspect-ratio: auto; min-height: 320px; }
.card--feature .card__body { flex: 1; justify-content: center; padding: 2rem; }
.card--feature .card__title { font-size: 1.6rem; }
.tag { display: inline-block; align-self: flex-start; padding: .3rem .7rem; border-radius: 999px; font: 600 .78rem/1 var(--font-head); background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand-ink); text-decoration: none !important; }
.meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; color: var(--ink-3); font-size: .86rem; }
.meta span { display: inline-flex; align-items: center; gap: .3rem; }

/* ========== Manifesto ========== */
.manifesto { position: relative; background: var(--night); color: #cfd5ea; padding-block: clamp(64px, 10vw, 128px); overflow: hidden; text-align: center; }
.manifesto::before { content: "₿"; position: absolute; font: 800 32rem/1 var(--font-head); color: rgba(245, 165, 36, .05); top: 50%; left: 50%; transform: translate(-50%, -50%); pointer-events: none; }
.manifesto__inner { position: relative; max-width: 860px; }
.manifesto .eyebrow { color: var(--gold); }
.manifesto blockquote { margin: 0 0 2rem; }
.manifesto blockquote p { font: 700 clamp(1.4rem, 3vw, 2.2rem)/1.35 var(--font-head); color: #fff; direction: ltr; margin-bottom: .75rem; }
.manifesto cite { color: #8d96b8; font-style: normal; font-size: .95rem; }
.manifesto__lead { font-size: 1.15rem; color: #b8c0dc; margin-bottom: 2rem; }

/* ========== Projects ========== */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.project { display: flex; flex-direction: column; gap: .9rem; padding: 1.35rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-elev); color: var(--ink); text-decoration: none !important; transition: .2s; }
.project:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-2px); }
.project__top { display: flex; align-items: center; gap: .85rem; }
.project__top img { border-radius: 50%; }
.project__sym { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--grad); color: #fff; font: 700 .8rem/1 var(--font-head); }
.project__name { display: block; font: 600 1.1rem/1.2 var(--font-head); }
.project__meta { color: var(--ink-3); }
.project__excerpt { color: var(--ink-2); font-size: .94rem; flex: 1; }
.project__price { display: flex; align-items: center; justify-content: space-between; padding-top: .8rem; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.source-note { color: var(--ink-3); font-size: .85rem; margin-top: 1.5rem; text-align: center; }

.project-head__row { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.project-head__id { display: flex; align-items: center; gap: 1.25rem; }
.project-head__id img { border-radius: 50%; }
.page-head__title small { font-size: .5em; color: var(--ink-3); font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(4, auto); gap: .5rem; margin: 0; }
.stats div { background: var(--bg-elev); border: 1px solid var(--line); border-radius: 12px; padding: .7rem 1rem; }
.stats dt { font-size: .78rem; color: var(--ink-3); }
.stats dd { margin: 0; font: 700 1.1rem/1.3 var(--font-head); font-variant-numeric: tabular-nums; }
.facts { position: sticky; top: 140px; align-self: start; display: flex; flex-direction: column; gap: 1rem; }
.facts > h2 { font-size: 1.1rem; margin: 0; }
.facts dl { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-elev); }
.facts dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 1rem; border-bottom: 1px solid var(--line); font-size: .94rem; }
.facts dl div:last-child { border: 0; }
.facts dt { color: var(--ink-3); }
.facts dd { margin: 0; font-weight: 600; text-align: end; }

/* ========== Trust ========== */
.trust__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.trust__grid > div > p { color: var(--ink-2); font-size: 1.1rem; }
.trust__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.trust__list li { display: flex; gap: .8rem; padding: 1.25rem; border-radius: var(--radius); background: var(--bg-elev); border: 1px solid var(--line); }
.trust__list .icon { color: var(--brand-2); width: 24px; height: 24px; }
.trust__list strong { display: block; font-family: var(--font-head); margin-bottom: .2rem; }
.trust__list span { color: var(--ink-2); font-size: .93rem; }

/* ========== FAQ ========== */
.faq__list { display: grid; gap: .75rem; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elev); padding: 0 1.4rem; transition: border-color .2s; }
.faq__item[open] { border-color: var(--brand); }
.faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.2rem 0; cursor: pointer; font: 600 1.08rem/1.4 var(--font-head); list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .icon { transition: transform .2s; color: var(--ink-3); }
.faq__item[open] summary .icon { transform: rotate(180deg); color: var(--brand); }
.faq__item p { color: var(--ink-2); margin: 0 0 1.25rem; }

/* ========== Newsletter ========== */
.newsletter__box { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.5rem; align-items: center; padding: clamp(28px, 5vw, 56px); border-radius: 28px; background: radial-gradient(circle at 0% 0%, rgba(124,108,255,.45), transparent 50%), radial-gradient(circle at 100% 100%, rgba(24,214,184,.35), transparent 50%), var(--night); color: #cfd5ea; }
.newsletter__box h2 { color: #fff; }
.newsletter__box .eyebrow { color: #a59bff; }
.nl-form__row { display: flex; gap: .5rem; background: #fff; border-radius: 999px; padding: .35rem; }
.nl-form__row input { flex: 1; min-width: 0; border: 0; background: transparent; padding: .6rem 1rem; font: inherit; color: #0b1220; outline: none; text-align: right; }
.nl-form__consent { display: flex; gap: .5rem; align-items: flex-start; font-size: .82rem; margin-top: .75rem; color: inherit; opacity: .85; }
.nl-form__consent a { color: inherit; text-decoration: underline; }
.nl-form__msg { margin: .75rem 0 0; font-weight: 600; }
.nl-form__msg--ok { color: #34d399; }
.nl-form__msg--err { color: #fb7185; }
.nl-form--compact .nl-form__row { border: 1px solid var(--line); background: var(--bg-elev); }
.nl-form--compact .nl-form__row input { color: var(--ink); }
.nl-form--compact .btn { padding: .55rem 1rem; }

/* ========== Page heads ========== */
.page-head { padding-block: clamp(28px, 5vw, 56px) clamp(24px, 4vw, 40px); background: linear-gradient(180deg, var(--bg-soft), var(--bg)); border-bottom: 1px solid var(--line); }
.page-head__title { margin-bottom: .4em; }
.page-head__lead { font-size: 1.15rem; color: var(--ink-2); max-width: 720px; margin: 0; }
.page-head__lead p { margin: 0; }
.page-head__row { display: flex; gap: 1.25rem; align-items: flex-start; }
.page-head__icon { display: grid; place-items: center; flex: none; width: 64px; height: 64px; border-radius: 18px; background: var(--grad); color: #fff; box-shadow: 0 10px 30px rgba(91,76,255,.3); }
.page-head__icon .icon { width: 30px; height: 30px; }
.page-head__search { margin-top: 1.5rem; max-width: 620px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .3rem; list-style: none; margin: 0 0 1.25rem; padding: 0; font-size: .86rem; color: var(--ink-3); }
.crumbs li:not(:last-child)::after { content: "‹"; margin-inline-start: .4rem; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.75rem; }
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .95rem; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-elev); color: var(--ink); font: 500 .92rem/1 var(--font-head); text-decoration: none !important; transition: .15s; }
.chip:hover { border-color: var(--brand); color: var(--brand-ink); }
.chip.is-active, .chip--strong { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip .icon { width: 16px; height: 16px; }

/* ========== Article ========== */
.progress { position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 200; }
.progress span { display: block; height: 100%; width: 0; background: var(--grad); }
.article__head { padding-block: clamp(28px, 5vw, 56px) 1.5rem; }
.article__title { font-size: clamp(2rem, 4.2vw, 3rem); margin: .8rem 0 1rem; }
.article__lead { font-size: 1.25rem; color: var(--ink-2); line-height: 1.6; }
.byline { display: flex; align-items: center; gap: .85rem; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.byline__avatar, .author-box img { border-radius: 50%; }
.byline__name { font-weight: 600; color: var(--ink); }
.article__hero { margin-block: 0 2rem; }
.article__hero img { width: 100%; border-radius: 20px; }
.article__layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); padding-bottom: clamp(48px, 6vw, 80px); max-width: 1100px; }
.article__layout--solo { grid-template-columns: minmax(0, 760px); justify-content: center; }
.toc { position: sticky; top: 140px; align-self: start; font-size: .92rem; }
.toc summary, .toc__title { font: 600 .82rem/1 var(--font-head); color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .75rem; cursor: pointer; }
.toc ol { list-style: none; margin: 0; padding: 0; border-inline-start: 2px solid var(--line); }
.toc li a { display: block; padding: .35rem .9rem; margin-inline-start: -2px; border-inline-start: 2px solid transparent; color: var(--ink-2); line-height: 1.45; }
.toc li a:hover { color: var(--brand-ink); text-decoration: none; }
.toc li a.is-active { color: var(--brand-ink); border-color: var(--brand); font-weight: 600; }
.toc .toc__l3 a { padding-inline-start: 1.7rem; font-size: .88rem; }
.toc--inline { position: static; }

.prose { font-size: 1.1rem; line-height: 1.85; }
.prose > * + * { margin-top: 1.25em; }
.prose h2 { font-size: 1.75rem; margin-top: 2.2em; }
.prose h3 { font-size: 1.3rem; margin-top: 1.8em; }
.prose p, .prose ul, .prose ol { margin-bottom: 0; }
.prose ul, .prose ol { padding-inline-start: 1.4em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--brand); }
.prose a { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--brand) 40%, transparent); text-underline-offset: 3px; }
.prose blockquote { margin-inline: 0; padding: 1.25rem 1.5rem; border-inline-start: 4px solid var(--brand); background: var(--bg-soft); border-radius: 0 12px 12px 0; font-size: 1.15rem; }
.prose img { border-radius: 14px; }
.prose figcaption { color: var(--ink-3); font-size: .88rem; text-align: center; margin-top: .5rem; }
.prose code { background: var(--bg-soft); padding: .15em .4em; border-radius: 6px; font-size: .9em; direction: ltr; unicode-bidi: embed; }
.prose pre { background: var(--night); color: #e7eaf6; padding: 1.25rem; border-radius: 14px; overflow-x: auto; direction: ltr; text-align: left; }
.prose table { width: 100%; border-collapse: collapse; font-size: .97rem; display: block; overflow-x: auto; }
.prose th, .prose td { padding: .75rem 1rem; border-bottom: 1px solid var(--line); text-align: start; }
.prose th { background: var(--bg-soft); font-family: var(--font-head); }
.prose .key-takeaways, .definition { background: color-mix(in srgb, var(--brand-2) 10%, var(--bg)); border: 1px solid color-mix(in srgb, var(--brand-2) 35%, transparent); border-radius: var(--radius); padding: 1.25rem 1.5rem; }
.definition { font-size: 1.15rem; margin-bottom: 1.5rem; }
.note-box { margin-top: 2.5rem; padding: 1rem 1.25rem; border-radius: 12px; background: color-mix(in srgb, var(--gold) 12%, var(--bg)); border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); font-size: .94rem; color: var(--ink-2); }
.tags { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; font-size: .9rem; }
.tags a { padding: .25rem .7rem; border-radius: 999px; background: var(--bg-soft); color: var(--ink-2); }
.share { display: flex; align-items: center; gap: .5rem; margin-top: 1.75rem; }
.share__label { color: var(--ink-3); font-size: .9rem; margin-inline-end: .25rem; }
.share a, .share button { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg-elev); color: var(--ink-2); cursor: pointer; transition: .15s; }
.share a:hover, .share button:hover { border-color: var(--brand); color: var(--brand-ink); }
.share .is-copied { background: var(--up); color: #fff; border-color: var(--up); }
.share { flex-wrap: wrap; }
.share svg { width: 18px; height: 18px; }
.share a.share--wa:hover { border-color: #25d366; color: #128c4a; background: color-mix(in srgb, #25d366 12%, var(--bg-elev)); }
.share a.share--tg:hover { border-color: #229ed9; color: #1a7fb0; background: color-mix(in srgb, #229ed9 12%, var(--bg-elev)); }
.share a.share--fb:hover { border-color: #1877f2; color: #1462c9; background: color-mix(in srgb, #1877f2 12%, var(--bg-elev)); }
.share .share__native { background: var(--brand); border-color: var(--brand); color: #fff; }
.share .share__native:hover { color: #fff; filter: brightness(1.08); }
.share button.share__native[hidden] { display: none; }
.share__copied { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.share button.js-copy { position: relative; }
.share--top { margin-top: 1.1rem; gap: .4rem; }
.share--top a, .share--top button { width: 36px; height: 36px; }
.share--top svg { width: 16px; height: 16px; }
.share--top .share__label { font-size: .85rem; }
.author-box { display: flex; gap: 1.25rem; margin-top: 2.5rem; padding: 1.5rem; border-radius: var(--radius); background: var(--bg-soft); }
.author-box__label { font-size: .8rem; color: var(--ink-3); margin: 0; }
.author-box__name { font: 700 1.15rem/1.3 var(--font-head); color: var(--ink); }
.author-box p:last-child { margin: .3rem 0 0; color: var(--ink-2); font-size: .95rem; }
.updated { color: var(--ink-3); font-size: .88rem; margin-top: 2.5rem; }

/* ========== Article template (single.php) ========== */
.article__chips { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.chip-level { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .7rem; border-radius: 999px; font: 600 .78rem/1 var(--font-head); background: color-mix(in srgb, var(--brand-2) 14%, transparent); color: color-mix(in srgb, var(--brand-2) 55%, var(--ink)); }
.chip-level .icon { width: 1em; height: 1em; }
.article__hero img { aspect-ratio: 16 / 9; object-fit: cover; box-shadow: var(--shadow-lg); }
.article__hero figcaption { color: var(--ink-3); font-size: .86rem; text-align: center; margin-top: .6rem; }

.toc summary { list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc li a { display: flex; align-items: baseline; gap: .6rem; }
.toc__n { flex: none; display: grid; place-items: center; width: 1.45rem; height: 1.45rem; border-radius: 50%; font: 600 .7rem/1 var(--font-head); background: var(--bg-soft); color: var(--ink-3); transition: .15s; transform: translateY(-.1em); }
.toc li a.is-active .toc__n { background: var(--brand); color: #fff; }

.tldr { margin-bottom: 2.25rem; padding: 1.4rem 1.6rem; border-radius: var(--radius); background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 8%, var(--bg)), color-mix(in srgb, var(--brand-2) 8%, var(--bg))); border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent); }
.tldr__title { display: flex; align-items: center; gap: .45rem; margin: 0 0 .9rem; font: 700 1rem/1 var(--font-head); color: var(--brand-ink); }
.tldr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.tldr li { position: relative; padding-inline-start: 1.5rem; line-height: 1.65; }
.tldr li::before { content: ""; position: absolute; inset-inline-start: .1rem; top: .6em; width: .5rem; height: .5rem; border-radius: 2px; background: var(--grad); transform: rotate(45deg); }

.prose > p:first-child:has(> strong:only-child) { padding: 1.15rem 1.35rem; border-radius: 14px; background: var(--bg-soft); border-inline-start: 4px solid var(--brand); }
.prose h2::before { content: ""; display: block; width: 40px; height: 4px; margin-bottom: .75rem; border-radius: 4px; background: var(--grad); }
.prose table { border: 1px solid var(--line); border-radius: 14px; font-size: .95rem; }
.prose td { vertical-align: top; }
.prose td:first-child { font-family: var(--font-head); font-weight: 600; white-space: nowrap; }
.prose tbody tr:hover { background: color-mix(in srgb, var(--brand) 4%, transparent); }

/* Numbered how-to steps: <ol class="howto"><li><h3>…</h3><p>…</p></li></ol> */
.prose .howto { list-style: none; padding: 0; counter-reset: howto; }
.prose .howto > li { counter-increment: howto; position: relative; margin: 0; padding: 0 0 1.6rem; padding-inline-start: 3.5rem; }
.prose .howto > li::before { content: counter(howto); position: absolute; inset-inline-start: 0; top: 0; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; font: 700 1.05rem/1 var(--font-head); color: #fff; background: var(--grad); box-shadow: 0 6px 16px rgba(91, 76, 255, .3); }
.prose .howto > li::after { content: ""; position: absolute; inset-inline-start: calc(1.25rem - 1px); top: 2.9rem; bottom: .35rem; width: 2px; border-radius: 2px; background: var(--line); }
.prose .howto > li:last-child { padding-bottom: 0; }
.prose .howto > li:last-child::after { display: none; }
.prose .howto h3 { margin: .3rem 0 .35rem; font-size: 1.18rem; }
.prose .howto p { margin: 0; }

/* Callouts: <div class="callout callout--tip|warn|risk"><p class="callout__title">…</p>…</div> */
.callout { padding: 1.2rem 1.4rem; border-radius: var(--radius); border: 1px solid var(--line); border-inline-start-width: 4px; background: var(--bg-soft); }
.callout > * + * { margin-top: .6em; }
.callout > *:last-child { margin-bottom: 0; }
.prose .callout__title { margin: 0; font: 700 1.05rem/1.35 var(--font-head); color: var(--ink); }
.callout ul { padding-inline-start: 1.2em; }
.callout--tip { background: color-mix(in srgb, var(--brand-2) 8%, var(--bg)); border-color: color-mix(in srgb, var(--brand-2) 40%, transparent); }
.callout--warn { background: color-mix(in srgb, var(--gold) 10%, var(--bg)); border-color: color-mix(in srgb, var(--gold) 45%, transparent); }
.callout--risk { background: color-mix(in srgb, var(--down) 6%, var(--bg)); border-color: color-mix(in srgb, var(--down) 35%, transparent); }
.prose .callout--risk .callout__title { color: var(--down); }

/* FAQ: <section class="faq"><h2>…</h2><details><summary>Q</summary><div>A</div></details></section> */
.prose .faq { margin-top: 2.5em; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--bg-elev); transition: border-color .15s, box-shadow .15s; }
.faq details + details { margin-top: .7rem; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; cursor: pointer; list-style: none; font: 600 1.05rem/1.45 var(--font-head); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--bg-soft); color: var(--brand-ink); font: 500 1.25rem/1 var(--font); }
.faq details[open] { border-color: color-mix(in srgb, var(--brand) 35%, transparent); box-shadow: var(--shadow); }
.faq details[open] summary::after { content: "−"; background: var(--brand); color: #fff; }
.faq details > div { padding: 0 1.2rem 1.1rem; color: var(--ink-2); }
.faq details > div p { margin: 0; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.post-nav__link { display: flex; flex-direction: column; gap: .3rem; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); transition: border-color .15s; }
.post-nav__link span { font-size: .8rem; color: var(--ink-3); }
.post-nav__link:hover { border-color: var(--brand); text-decoration: none; }
.post-nav__link--prev { grid-column: 2; text-align: end; }

.next-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.next-step { display: flex; flex-direction: column; gap: .35rem; padding: 1.4rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-elev); color: var(--ink); box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.next-step:hover { transform: translateY(-3px); border-color: var(--brand); text-decoration: none; }
.next-step strong { font: 700 1.1rem/1.3 var(--font-head); }
.next-step > span:last-child { color: var(--ink-2); font-size: .95rem; }
.next-step__icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: .4rem; border-radius: 12px; background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand-ink); }

.back-top { position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 150; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg-elev); color: var(--ink); box-shadow: var(--shadow-lg); cursor: pointer; }
.back-top[hidden] { display: none; }
.back-top .icon { transform: rotate(180deg); }
.back-top:hover { border-color: var(--brand); color: var(--brand-ink); }

@media (max-width: 960px) {
	.next-steps, .post-nav { grid-template-columns: 1fr; }
	.post-nav__link--prev { grid-column: auto; }
}
@media (max-width: 640px) {
	.prose .howto > li { padding-inline-start: 3rem; }
	.prose .howto > li::before { width: 2.1rem; height: 2.1rem; font-size: .95rem; }
	.prose .howto > li::after { inset-inline-start: calc(1.05rem - 1px); top: 2.5rem; }
	.tldr { padding: 1.2rem 1.25rem; }
	.prose td:first-child { white-space: normal; }
}

/* ========== Start here ========== */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; position: relative; }
.steps::before { content: ""; position: absolute; top: 24px; bottom: 24px; inset-inline-start: 23px; width: 2px; background: linear-gradient(var(--brand), var(--brand-2)); opacity: .35; }
.step { display: grid; grid-template-columns: 48px 1fr; gap: 1rem; align-items: center; }
.step__num { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--bg); border: 2px solid var(--brand); color: var(--brand-ink); font: 800 1.1rem/1 var(--font-head); }
.step__card { display: flex; align-items: center; gap: 1rem; padding: 1.2rem 1.4rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-elev); color: var(--ink); text-decoration: none !important; transition: .2s; }
.step__card:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.step__card strong { display: block; font: 600 1.15rem/1.3 var(--font-head); }
.step__card span span { color: var(--ink-2); font-size: .95rem; }
.step__icon { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 12px; background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand-ink); }
.step__arrow { margin-inline-start: auto; color: var(--ink-3); }
.start-content { margin-top: 3rem; }
.cta-box { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-top: 3rem; padding: 1.75rem 2rem; border-radius: 20px; background: var(--bg-soft); border: 1px solid var(--line); }
.cta-box h2 { font-size: 1.35rem; margin: 0 0 .25rem; }
.cta-box p { margin: 0; color: var(--ink-2); }

/* ========== Glossary ========== */
.glossary-tools { margin-top: 1.75rem; display: grid; gap: 1rem; }
.glossary-filter { width: 100%; max-width: 520px; padding: .85rem 1.2rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg-elev); color: var(--ink); font: inherit; outline: none; }
.glossary-filter:focus { border-color: var(--brand); }
.letters { display: flex; flex-wrap: wrap; gap: .3rem; }
.letters a { display: grid; place-items: center; min-width: 36px; height: 36px; padding: 0 .4rem; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-elev); color: var(--ink); font: 600 .95rem/1 var(--font-head); text-decoration: none; }
.letters a:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.g-group { margin-bottom: 2.5rem; }
.g-group__letter { font-size: 1.6rem; color: var(--brand-ink); border-bottom: 1px solid var(--line); padding-bottom: .5rem; margin-bottom: 1rem; }
.g-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.g-term { display: flex; flex-direction: column; gap: .2rem; padding: 1.1rem 1.25rem; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-elev); color: var(--ink); text-decoration: none !important; transition: .15s; }
.g-term:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.g-term strong { font: 600 1.05rem/1.3 var(--font-head); }
.g-term small { color: var(--ink-3); text-align: end; align-self: flex-start; }
.g-term span { color: var(--ink-2); font-size: .9rem; }
.prose figure { margin: 2rem 0; }
.prose figure img { display: block; width: 100%; border: 1px solid var(--line); background: #fff; }
.prose .sources { font-size: .95rem; color: var(--ink-2); }
.more-terms { margin-top: 3rem; }
.more-terms h2 { font-size: 1.2rem; }
.more-terms .chips { margin-top: .5rem; }

/* ========== Search results / empty / 404 ========== */
.results { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.result { padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elev); }
.result h2 { font-size: 1.25rem; margin: .6rem 0 .4rem; }
.result h2 a { color: var(--ink); }
.result p { color: var(--ink-2); margin: 0; }
.empty { text-align: center; padding: 3rem 1rem; color: var(--ink-2); }
.empty__icon { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 20px; background: var(--bg-soft); color: var(--brand-ink); margin-bottom: 1rem; }
.empty__icon .icon { width: 32px; height: 32px; }
.notfound { text-align: center; }
.notfound__code { font: 800 clamp(6rem, 18vw, 11rem)/1 var(--font-head); margin: 0; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound .search-form { margin: 1.5rem auto 2rem; max-width: 560px; }

.pagination { margin-top: 3rem; }
.pagination .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 .9rem; border-radius: 12px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.pagination .page-numbers.current, .pagination a.page-numbers:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ========== Footer ========== */
.site-footer { position: relative; overflow: hidden; background: var(--night); color: #9aa3c2; padding-top: clamp(56px, 7vw, 96px); font-size: .95rem; border-top: 1px solid rgba(255,255,255,.06); }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: var(--grad); opacity: .7; }
.footer__glow { position: absolute; inset: -40% -10% auto auto; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(circle, rgba(124,108,255,.18), transparent 65%); pointer-events: none; }
.site-footer .container { position: relative; }
.site-footer .logo { color: #fff; }
.site-footer a { color: #b8c0dc; text-decoration: none; transition: color .2s; }

.footer__cta { display: grid; grid-template-columns: 1fr minmax(0, 440px); gap: 2rem; align-items: center; padding: clamp(24px, 3.5vw, 36px); margin-bottom: clamp(40px, 5vw, 64px); border-radius: 22px; background: radial-gradient(circle at 100% 0%, rgba(124,108,255,.28), transparent 55%), radial-gradient(circle at 0% 100%, rgba(24,214,184,.16), transparent 55%), var(--night-2); border: 1px solid rgba(255,255,255,.09); }
.footer__cta-title { font: 700 clamp(1.2rem, 2.2vw, 1.45rem)/1.3 var(--font-head); color: #fff; margin: 0 0 .4rem; }
.footer__cta-copy p:last-child { margin: 0; color: #a9b2cc; }
.site-footer .nl-form--compact .nl-form__row { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.14); }
.site-footer .nl-form--compact input[type=email] { color: #fff; }
.site-footer .nl-form--compact input::placeholder { color: #7f89ab; }
.site-footer .nl-form__consent { color: #8d96b5; }

.footer__grid { display: grid; grid-template-columns: minmax(0, 340px) 1fr; gap: clamp(2.5rem, 6vw, 5rem); padding-bottom: clamp(40px, 5vw, 56px); }
.footer__brand p { margin: 1.1rem 0 1.25rem; line-height: 1.75; }
.footer__badges { list-style: none; margin: 0 0 1.5rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.footer__badges li { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .75rem; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); color: #cfd5ea; font-size: .8rem; }
.footer__badges .icon { width: 14px; height: 14px; color: var(--brand-2); }
.footer__nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 2rem; }
.footer__title { font: 600 .88rem/1 var(--font-head); letter-spacing: .02em; color: #fff; margin: 0 0 1.25rem; padding-bottom: .9rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.footer__links a { position: relative; display: inline-block; }
.footer__links a::after { content: ""; position: absolute; inset-inline-start: 0; bottom: -2px; width: 0; height: 1px; background: var(--brand-2); transition: width .25s; }
.footer__links a:hover { color: #fff; }
.footer__links a:hover::after { width: 100%; }
.social { display: flex; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); color: #fff; transition: background .2s, transform .2s; }
.social a:hover { background: var(--brand); transform: translateY(-2px); }
.social a[data-net="facebook"]:hover { background: #1877f2; border-color: #1877f2; }

.footer__disclaimer { display: flex; gap: .9rem; align-items: flex-start; padding: 1.1rem 1.35rem; border-radius: 14px; background: rgba(245,165,36,.05); border: 1px solid rgba(245,165,36,.18); font-size: .82rem; line-height: 1.75; }
.footer__disclaimer p { margin: 0; }
.footer__disclaimer strong { color: #fff; }
.footer__disclaimer-icon { flex: none; display: grid; place-items: center; width: 22px; height: 22px; margin-top: .15rem; border-radius: 50%; background: rgba(245,165,36,.15); color: var(--gold); font: 700 .8rem/1 var(--font-head); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.75rem; padding-block: 1.5rem; border-top: 1px solid rgba(255,255,255,.07); font-size: .84rem; color: #7f89ab; }
.footer__bottom p { margin: 0; }
.site-footer .to-top { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .9rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.12); }
.site-footer .to-top:hover { color: #fff; border-color: var(--brand); }

/* ========== WP core bits ========== */
.alignwide { max-width: 1100px; margin-inline: auto; }
.alignfull { width: 100vw; margin-inline: calc(50% - 50vw); max-width: none; }
.aligncenter { margin-inline: auto; display: block; }
.wp-caption-text, .wp-element-caption { color: var(--ink-3); font-size: .88rem; text-align: center; }
.comment-respond, .comments-area { margin-top: 3rem; }
.comments-area input, .comments-area textarea { width: 100%; padding: .75rem 1rem; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-elev); color: var(--ink); font: inherit; }
.comments-area .submit { background: var(--brand); color: #fff; border: 0; padding: .8rem 1.4rem; border-radius: 999px; font: 600 1rem/1 var(--font-head); cursor: pointer; width: auto; }

/* ========== Responsive ========== */
@media (max-width: 1080px) {
	.footer__grid { grid-template-columns: 1fr; }
	.footer__brand { max-width: 520px; }
}
@media (max-width: 960px) {
	.hero__inner { grid-template-columns: 1fr; }
	.paths__grid, .pillars__grid, .cards, .projects-grid, .g-grid { grid-template-columns: 1fr 1fr; }
	.card--feature { grid-column: 1 / -1; }
	.trust__grid, .newsletter__box, .footer__cta { grid-template-columns: 1fr; }
	.article__layout { grid-template-columns: minmax(0, 1fr); }
	.toc, .facts { position: static; }
	.toc { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; background: var(--bg-soft); }
	.stats { grid-template-columns: repeat(2, 1fr); width: 100%; }
}
@media (max-width: 640px) {
	body { font-size: 16px; }
	.paths__grid, .pillars__grid, .cards, .projects-grid, .g-grid, .trust__list { grid-template-columns: 1fr; }
	.card--feature { flex-direction: column; }
	.card--feature .card__media { min-height: 0; aspect-ratio: 16 / 10; }
	.card--feature .card__body { padding: 1.25rem 1.35rem; }
	.card--feature .card__title { font-size: 1.25rem; }
	.footer__nav { grid-template-columns: 1fr 1fr; gap: 2rem 1.25rem; }
	.footer__bottom { flex-direction: column-reverse; align-items: flex-start; }
	.hero__ctas .btn { flex: 1; }
	.search-form .btn { padding: .6rem .9rem; }
	.page-head__row { flex-direction: column; }
	.site-header__inner { min-height: 60px; gap: .75rem; }
	.site-header.is-scrolled .site-header__inner { min-height: 54px; }
	html { scroll-padding-top: 72px; }
	.header-actions { gap: .35rem; }
	.icon-btn { width: 40px; height: 40px; }
	.back-top { inset-inline-end: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); width: 44px; height: 44px; }	.logo__word { font-size: 1.15rem; }
	.cn-mark { width: auto; height: 28px; }
	.prose { font-size: 1.05rem; }
	.manifesto::before { font-size: 18rem; }
}

/* Narrow phones (≤400px): logo + 3 header buttons must fit without pushing the menu button off-screen. */
@media (max-width: 400px) {
	.site-header__inner { gap: .5rem; padding-inline: 12px; }
	.logo { gap: .4rem; min-width: 0; }
	.logo__word { font-size: .95rem; letter-spacing: 0; }
	.cn-mark { height: 24px; }
	.header-actions { gap: .25rem; flex: none; }
	.icon-btn { width: 36px; height: 36px; border-radius: 10px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.ticker { overflow-x: auto; }
}
