/*
Theme Name: Universal Ground
Description: Marketing site for Universal Ground. Lightweight, no page builder, and no external requests except Google Analytics once the Privacy page is live. Pairs with the Universal Ground app (Next.js), which holds sign-in, introductions and conversations.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: universalground
*/

/* ---------- Fonts (self-hosted copies of Geist and Newsreader, SIL Open Font License) ---------- */
@font-face {
	font-family: "Geist";
	src: url("assets/fonts/geist-latin.woff2") format("woff2");
	font-weight: 100 900;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Geist";
	src: url("assets/fonts/geist-latin-ext.woff2") format("woff2");
	font-weight: 100 900;
	font-display: swap;
	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;
}
@font-face {
	font-family: "Newsreader";
	src: url("assets/fonts/newsreader-latin.woff2") format("woff2");
	font-weight: 200 800;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Newsreader";
	src: url("assets/fonts/newsreader-latin-ext.woff2") format("woff2");
	font-weight: 200 800;
	font-display: swap;
	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;
}

/* ---------- Tokens (same palette as the app, light and dark) ---------- */
:root {
	--bg: #faf7f2;
	--surface: #ffffff;
	--ink: #1d2327;
	--muted: #5b6670;
	--line: #e4ddd0;
	--accent: #1f6f6b;
	--accent-ink: #ffffff;
	--accent-soft: #e3f1ef;
	--warm: #c98a3d;
	--band-bg: #1f6f6b;
	--band-ink: #ffffff;
	--font-sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-serif: "Newsreader", Georgia, "Times New Roman", serif;
	--wrap: 1080px;
	--prose: 42rem;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #14181b;
		--surface: #1c2226;
		--ink: #eceae4;
		--muted: #a2adb5;
		--line: #2e373d;
		--accent: #5fb8b1;
		--accent-ink: #0d1a19;
		--accent-soft: #1d2e2d;
		--warm: #e0a95e;
		--band-bg: #17524f;
		--band-ink: #eceae4;
	}
}

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

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

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

h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.screen-reader-text {
	position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	position: fixed; z-index: 100; top: .5rem; left: .5rem; width: auto; height: auto; margin: 0;
	padding: .6rem 1rem; clip: auto; background: var(--accent); color: var(--accent-ink); border-radius: 8px;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 1.25rem; }
.wrap--narrow { max-width: calc(var(--prose) + 2.5rem); }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 46px; padding: .55rem 1.3rem; border-radius: 10px;
	border: 1px solid var(--line); background: var(--surface); color: var(--ink);
	font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn:hover { border-color: var(--accent); text-decoration: none; }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { filter: brightness(1.08); }
.btn--on-band { background: var(--band-ink); color: var(--band-bg); border-color: var(--band-ink); }
.btn--ghost-on-band { background: transparent; color: var(--band-ink); border-color: var(--band-ink); }

/* ---------- Header ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header__inner {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
	gap: .5rem 1.5rem; padding-block: .75rem;
}
.brand { font-family: var(--font-serif); font-size: 1.4rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.brand:hover { text-decoration: none; color: var(--accent); }

.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.25rem; font-size: .95rem; }
.nav__list { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: 0; padding: 0; list-style: none; }
.nav__list a, .site-nav__signin { color: var(--ink); text-decoration: none; padding-block: .5rem; display: inline-block; }
.nav__list a:hover, .site-nav__signin:hover { color: var(--accent); text-decoration: underline; }
.nav__list .current-menu-item > a, .nav__list .current_page_item > a { color: var(--accent); font-weight: 600; }
.site-nav .btn { min-height: 42px; padding-block: .35rem; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.5rem, 7vw, 5.5rem); }
.hero__grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 860px) { .hero__grid { grid-template-columns: .9fr 1.1fr; } }
.eyebrow { display: inline-block; margin-bottom: 1rem; color: var(--accent); font-weight: 600; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.hero h1 { margin-bottom: .45em; }
.hero__lede { font-size: 1.2rem; color: var(--muted); max-width: 34rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero__note { margin-top: 1rem; color: var(--muted); font-size: .95rem; }
.hero__img { display: block; width: 100%; border-radius: 18px; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section--tint { background: var(--accent-soft); }
.section__head { max-width: 40rem; margin-bottom: 2rem; }
.section__head p { color: var(--muted); font-size: 1.1rem; }

.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); }
.card {
	background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.25rem;
	display: flex; flex-direction: column; gap: .75rem;
}
.badge { align-self: flex-start; padding: .1rem .65rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: .8rem; font-weight: 600; }
.quote { margin: 0; font-family: var(--font-serif); font-size: 1.15rem; line-height: 1.5; border-left: 3px solid var(--accent); padding-left: .9rem; flex: 1; }
.quote__source { margin: 0; color: var(--muted); font-size: .88rem; }
.section__foot { margin: 1.5rem 0 0; color: var(--muted); font-size: .95rem; }

.steps { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; position: relative; }
.steps li::before {
	content: counter(step); position: absolute; top: .75rem; left: .75rem;
	width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center;
	background: var(--accent); color: var(--accent-ink); font-family: var(--font-serif); font-size: 1.2rem; font-weight: 600;
}
.steps img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; margin-bottom: 1rem; }
.steps h3 { margin-bottom: .3em; }
.steps p { color: var(--muted); margin: 0; }

.section__head--flush { margin-bottom: 0; max-width: 46rem; }
.section__head--flush p { margin-bottom: 0; }

.compare { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.compare h3 { margin: 0; color: var(--accent); }
.compare ul { margin: 0; padding-left: 1.2rem; }
.compare li { margin-bottom: .5em; }
.compare li:last-child { margin-bottom: 0; }

.ground { text-align: center; }
.ground .btn { margin-top: .5rem; }

.next { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 860px) { .next { grid-template-columns: 1.2fr 1fr; gap: 3rem; } }
.next img { display: block; width: 100%; border-radius: 18px; }
.next p { color: var(--muted); }
.next p:last-child { margin-bottom: 0; }

.values { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.values h3 { color: var(--accent); }
.values p { margin: 0; color: var(--muted); }

.band { background: var(--band-bg); color: var(--band-ink); padding-block: clamp(2.5rem, 6vw, 4rem); text-align: center; }
.band h2 { color: inherit; }
.band p { max-width: 34rem; margin-inline: auto; opacity: .9; }
.band__actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 1.5rem; }

/* ---------- Inner pages ---------- */
.page__head { padding-block: clamp(2rem, 5vw, 3.5rem) 1rem; }
.page__head h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.page__lede { font-size: 1.2rem; color: var(--muted); max-width: var(--prose); margin: 0; }
.page__body { padding-bottom: clamp(2.5rem, 6vw, 4rem); }

.prose { max-width: var(--prose); }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.5rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.25em; }
.prose li { margin-bottom: .45em; }
.prose strong { font-weight: 600; }
.prose details { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: .75rem 1rem; margin-bottom: .75rem; }
.prose summary { cursor: pointer; font-weight: 600; }
.prose details p { margin: .75rem 0 0; }

/* ---------- Guides ---------- */
.crumbs { margin-bottom: .75rem; font-size: .9rem; }
.crumbs a { color: var(--accent); }
.page__meta { margin: 1rem 0 0; max-width: var(--prose); color: var(--muted); font-size: .9rem; }
.table-wrap { overflow-x: auto; margin: 0 0 1.5rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table-wrap th, .table-wrap td { padding: .65rem .8rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table-wrap thead th { font-size: .85rem; color: var(--muted); }
.table-wrap tbody th { font-weight: 600; }
.table-wrap tbody tr:last-child th, .table-wrap tbody tr:last-child td { border-bottom: 0; }
/* On a phone each row becomes a small stacked block, so nothing has to scroll sideways. */
@media (max-width: 640px) {
	.table-wrap thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
	.table-wrap table, .table-wrap tbody, .table-wrap tr, .table-wrap th, .table-wrap td { display: block; }
	.table-wrap tr { padding: .7rem .85rem; border-bottom: 1px solid var(--line); }
	.table-wrap tbody tr:last-child { border-bottom: 0; }
	.table-wrap th, .table-wrap td { padding: 0 0 .3rem; border: 0; }
}
.sources { font-size: .9rem; }
.sources a { overflow-wrap: anywhere; }
.home-faq { max-width: var(--prose); margin-inline: auto; }

/* ---------- Contact form ---------- */
.form { display: grid; gap: 1.1rem; max-width: var(--prose); margin-top: 1.5rem; }
.form label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .3rem; }
.form input[type="text"], .form input[type="email"], .form textarea {
	width: 100%; min-height: 46px; padding: .6rem .8rem; background: var(--surface); color: var(--ink);
	border: 1px solid var(--line); border-radius: 10px; font: inherit;
}
.form input:focus-visible, .form textarea:focus-visible { border-color: var(--accent); outline-offset: 0; }
.form__hint { margin: .3rem 0 0; color: var(--muted); font-size: .9rem; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: .8rem 1rem; border-radius: 10px; margin: 1.25rem 0 0; max-width: var(--prose); }
.alert--ok { background: var(--accent-soft); color: var(--accent); }
.alert--ok a { color: inherit; font-weight: 600; }
.page__notice { margin: 0 0 1.75rem; }
.alert--err { border: 1px solid #b3261e; color: #b3261e; }
@media (prefers-color-scheme: dark) { .alert--err { border-color: #f2766e; color: #f2766e; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding-block: 2.5rem; color: var(--muted); font-size: .95rem; }
.site-footer__grid { display: grid; gap: 1.5rem 3rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .site-footer__grid { grid-template-columns: 1.2fr 1fr 1.4fr 1fr; } }
.site-footer .brand { display: inline-block; margin-bottom: .4rem; }
.site-footer h2 { font-family: var(--font-sans); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .2rem; }
.site-footer a { color: var(--ink); text-decoration: none; display: inline-block; padding-block: .2rem; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.site-footer__legal { margin: 2rem 0 0; font-size: .85rem; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding-block: clamp(3rem, 10vw, 6rem); }

/* ---------- Design layer: depth, rhythm and the overlapping-circles motif (common ground) ---------- */
:root {
	--tint: #eef5f3;
	--warm-ink: #8a5a1e;
	--warm-soft: #f8efe1;
	--radius: 16px;
	--shadow-sm: 0 1px 2px rgb(29 35 39 / .05), 0 4px 14px rgb(29 35 39 / .05);
	--shadow-md: 0 2px 6px rgb(29 35 39 / .06), 0 16px 36px rgb(29 35 39 / .11);
	--rail: 250px;
	--rail-gap: 4rem;
}
@media (prefers-color-scheme: dark) {
	:root {
		--tint: #192226;
		--warm-ink: #e0a95e;
		--warm-soft: #2a241b;
		--shadow-sm: 0 1px 2px rgb(0 0 0 / .3);
		--shadow-md: 0 2px 6px rgb(0 0 0 / .3), 0 16px 36px rgb(0 0 0 / .35);
	}
}

html { scroll-behavior: smooth; }
h1 { letter-spacing: -.02em; }

.btn { transition: transform .15s ease, box-shadow .15s ease, filter .15s ease, border-color .15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }

/* Header: stays with you, and on a phone the links fold behind Menu. */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in srgb, var(--surface) 90%, transparent);
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.brand { display: inline-flex; align-items: center; gap: .55rem; }
.brand__mark { display: block; border-radius: 8px; }
.nav-toggle { position: absolute; width: 1px; height: 1px; opacity: 0; }
.nav-toggle__label { display: none; }
@media (max-width: 860px) {
	.site-header__inner { gap: .5rem .75rem; padding-block: .6rem; }
	.site-header__inner { gap: .5rem; padding-inline: 1rem; }
	.brand { margin-right: auto; font-size: 1rem; gap: .35rem; white-space: nowrap; }
	.brand__mark { width: 22px; height: 22px; }
	.site-nav { display: contents; }
	.site-nav .btn { order: 2; min-height: 40px; padding: 0 .6rem; font-size: .82rem; }
	.nav-toggle__label {
		order: 3; display: inline-flex; align-items: center; min-height: 40px; padding: 0 .55rem;
		border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
		font-size: .82rem; font-weight: 600; cursor: pointer;
	}
	.nav-toggle:focus-visible + .nav-toggle__label { outline: 2px solid var(--accent); outline-offset: 2px; }
	.nav-toggle:checked + .nav-toggle__label { border-color: var(--accent); color: var(--accent); }
	.nav__list { order: 4; display: none; width: 100%; flex-direction: column; gap: 0; padding-block: .35rem; border-top: 1px solid var(--line); }
	.nav-toggle:checked ~ .site-nav .nav__list { display: flex; }
	.nav__list a { display: block; padding-block: .6rem; }
}

/* Hero */
.hero {
	position: relative; overflow: hidden;
	background:
		radial-gradient(55% 75% at 88% 8%, var(--accent-soft), transparent 72%),
		radial-gradient(45% 60% at 0% 100%, var(--warm-soft), transparent 72%);
}
.eyebrow { padding: .2rem .75rem; border-radius: 999px; background: var(--accent-soft); letter-spacing: .06em; font-size: .78rem; }
.next .eyebrow { margin-bottom: .75rem; }
.hero__img { border-radius: 22px; box-shadow: var(--shadow-md); }
.next img { box-shadow: var(--shadow-sm); }

/* Sections */
.section--tint { background: var(--tint); }
.section__head h2 { text-wrap: balance; }

.statement { position: relative; overflow: hidden; background: var(--band-bg); color: var(--band-ink); }
.statement::after, .band::after, .page-hero::after {
	content: ""; position: absolute; pointer-events: none;
	background: url("assets/img/motif.svg") center / contain no-repeat;
}
.statement::after { right: -70px; bottom: -110px; width: 420px; height: 420px; opacity: .13; }
.statement .wrap { position: relative; z-index: 1; }
.statement h2 { font-size: clamp(1.8rem, 3.8vw, 2.7rem); color: inherit; }
.statement p { color: inherit; opacity: .9; }

.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; padding-bottom: 1.25rem; box-shadow: var(--shadow-sm); }
.steps img { border-radius: 0; }
.steps h3, .steps p { padding-inline: 1.15rem; }

.card { border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1.5rem; }
.compare .card:nth-child(2) h3 { color: var(--warm-ink); }

.ground h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.ground::before {
	content: ""; display: block; width: 64px; height: 64px; margin: 0 auto 1.25rem;
	background: url("assets/img/motif.svg") center / contain no-repeat;
}

/* Guide cards: the whole card is the link */
.guide-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.guide-card {
	position: relative; display: flex; flex-direction: column; padding: 1.35rem 1.4rem;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
	box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.guide-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.guide-card h3 { margin-bottom: .45rem; }
.guide-card h3 a { color: var(--ink); text-decoration: none; }
.guide-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.guide-card h3 a:focus-visible::after { outline: 2px solid var(--accent); outline-offset: 2px; }
.guide-card:hover h3 a { color: var(--accent); }
.guide-card p { margin: 0; color: var(--muted); font-size: .98rem; }

/* Bands */
.band { position: relative; overflow: hidden; }
.band .wrap { position: relative; z-index: 1; }
.band::after { left: -80px; top: -120px; width: 380px; height: 380px; opacity: .1; }

/* Page and article heads */
.page-hero { position: relative; overflow: hidden; background: var(--tint); border-bottom: 1px solid var(--line); margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.page-hero::after { right: -60px; bottom: -130px; width: 340px; height: 340px; opacity: .1; }
.page-hero .wrap { position: relative; z-index: 1; }
.page__head { padding-block: clamp(2rem, 5vw, 3.75rem) clamp(1.75rem, 4vw, 3rem); }
.page__head h1 { text-wrap: balance; margin-bottom: .4em; }
.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; color: var(--muted); }
.crumbs a { text-decoration: none; font-weight: 600; }
.crumbs a:hover { text-decoration: underline; }
.post-meta { margin: 0; color: var(--muted); font-size: .95rem; }
.page__meta--foot { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }

/* Article layout: text, with "On this page" beside it on a wide screen */
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr); max-width: calc(var(--prose) + 2.5rem); padding-bottom: clamp(2.5rem, 6vw, 4rem); }
.article-figure { max-width: calc(var(--prose) + 2.5rem); margin-bottom: 2rem; }
.article-figure img { display: block; width: 100%; height: auto; border-radius: 18px; box-shadow: var(--shadow-sm); }
.article-side { display: none; }
@media (min-width: 1040px) {
	.article-grid { grid-template-columns: minmax(0, var(--prose)) var(--rail); gap: var(--rail-gap); max-width: calc(var(--prose) + var(--rail) + var(--rail-gap) + 2.5rem); }
	.article-figure, .is-article .page-hero .wrap--narrow { max-width: calc(var(--prose) + var(--rail) + var(--rail-gap) + 2.5rem); }
	.is-article .page__head h1, .is-article .page__head .page__meta { max-width: var(--prose); }
	.article-side { display: block; }
	.article-toc-inline { display: none; }
	.article-side .toc { position: sticky; top: 5.5rem; max-height: calc(100vh - 7rem); overflow-y: auto; }
}
.article-main { min-width: 0; }
.toc { padding: 1rem 1.15rem; margin-bottom: 1.75rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; font-size: .92rem; }
.article-side .toc { padding: 0 0 0 1rem; margin: 0; background: none; border: 0; border-left: 2px solid var(--line); border-radius: 0; }
.toc__title { margin: 0 0 .5rem; color: var(--muted); font-size: .76rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.toc ol { margin: 0; padding: 0; list-style: none; }
.toc li { margin-bottom: .1rem; }
.toc a { display: block; padding-block: .28rem; color: var(--ink); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--accent); text-decoration: underline; }

/* The short answer: what a reader, a search snippet or an AI tool should find first */
.answer, .is-guide .prose > p:first-child {
	padding: 1.15rem 1.35rem; margin-bottom: 1.75rem; background: var(--surface);
	border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px;
	box-shadow: var(--shadow-sm); font-size: 1.09rem;
}
.answer p { margin: 0; }
.answer .answer__label { margin-bottom: .35rem; color: var(--accent); font-size: .76rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }

/* Reading */
.prose { font-size: 1.075rem; line-height: 1.72; }
.prose h2 { margin-top: 2.75rem; scroll-margin-top: 5.5rem; }
.prose h3 { margin-top: 1.75rem; scroll-margin-top: 5.5rem; }
.prose > :first-child { margin-top: 0; }
.prose li::marker { color: var(--accent); }
.prose blockquote { margin: 1.5rem 0; padding: .35rem 0 .35rem 1.25rem; border-left: 3px solid var(--warm); font-family: var(--font-serif); font-size: 1.2rem; line-height: 1.5; }
.prose blockquote p { margin-bottom: .5rem; }
.prose blockquote cite { display: block; font-family: var(--font-sans); font-size: .88rem; font-style: normal; color: var(--muted); }
.prose details { padding: 0; margin-bottom: .6rem; border-radius: 12px; transition: border-color .15s ease; }
.prose details[open] { border-color: var(--accent); }
.prose summary { position: relative; padding: .85rem 2.75rem .85rem 1.1rem; list-style: none; }
.prose summary::-webkit-details-marker { display: none; }
.prose summary::after {
	content: "+"; position: absolute; right: 1rem; top: 50%; transform: translateY(-50%);
	color: var(--accent); font-size: 1.35rem; font-weight: 400; line-height: 1;
}
.prose details[open] summary::after { content: "\2212"; }
.prose details p { margin: 0; padding: 0 1.1rem .95rem; }
.table-wrap { border-radius: 12px; box-shadow: var(--shadow-sm); }
.table-wrap thead th { background: var(--tint); }
.sources { padding-left: 1.2rem !important; color: var(--muted); }
.sources li { margin-bottom: .4em; }

/* Blog cards */
.post-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.post-card {
	position: relative; display: flex; flex-direction: column; overflow: hidden;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
	box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.post-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.post-card__media { display: block; }
.post-card__media img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.post-card__body { display: flex; flex: 1; flex-direction: column; padding: 1.15rem 1.25rem 1.25rem; }
.post-card__label { margin: 0 0 .4rem; color: var(--accent); font-size: .76rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
.post-card__title { margin: 0 0 .5rem; font-size: 1.28rem; line-height: 1.22; }
.post-card__title a { color: var(--ink); text-decoration: none; }
.post-card__title a::after { content: ""; position: absolute; inset: 0; }
.post-card__title a:focus-visible::after { outline: 2px solid var(--accent); outline-offset: -3px; border-radius: var(--radius); }
.post-card:hover .post-card__title a { color: var(--accent); }
.post-card__text { margin: 0 0 .85rem; color: var(--muted); font-size: .97rem; line-height: 1.55; }
.post-card__meta { margin: auto 0 0; color: var(--muted); font-size: .85rem; }
@media (min-width: 860px) {
	.post-card--featured { grid-column: 1 / -1; flex-direction: row; }
	.post-card--featured .post-card__media { flex: 1.15; }
	.post-card--featured .post-card__media img { height: 100%; }
	.post-card--featured .post-card__body { flex: 1; justify-content: center; padding: 2rem 2.25rem; }
	.post-card--featured .post-card__title { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
	.post-card--featured .post-card__text { font-size: 1.05rem; }
	.post-card--featured .post-card__meta { margin-top: 0; }
}
.pagination { margin-top: 2rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.pagination .page-numbers { padding: .4rem .8rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); text-decoration: none; }
.pagination .current { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* Forms */
.page__body .form { padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
