/* Fetaze Journal — main stylesheet. Mobile-first; breakpoints 640 / 900 / 1180. */

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/inter-latin-wght.woff2") format("woff2-variations"), url("../fonts/inter-latin-wght.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, 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("../fonts/inter-latin-ext-wght.woff2") format("woff2-variations"), url("../fonts/inter-latin-ext-wght.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 {
	--navy: #172d46;
	--navy-2: #142b45;
	--navy-3: #1f3a59;
	--bg: #f5f7fb;
	--white: #ffffff;
	--text: #394a5d;
	--muted: #657184;
	--violet: #5747de;
	--violet-hover: #4537c6;
	--violet-soft: #eceafc;
	--champagne: #987c51;
	--champagne-text: #7d6440; /* AA-contrast variant for small text */
	--champagne-soft: #f3eee6;
	--border: #dce3eb;
	--border-strong: #c9d3de;
	--focus: #5747de;

	--font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

	--fs-hero: clamp(2.125rem, 1.35rem + 3.6vw, 4rem);       /* 34 → 64 */
	--fs-h1: clamp(1.75rem, 1.3rem + 2.1vw, 3.25rem);        /* 28 → 52 */
	--fs-h2: clamp(1.5625rem, 1.25rem + 1.3vw, 2.5rem);      /* 25 → 40 */
	--fs-h3: clamp(1.1875rem, 1.1rem + 0.4vw, 1.375rem);
	--fs-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
	--fs-body: clamp(1.0625rem, 1.02rem + 0.15vw, 1.1875rem); /* 17 → 19 */
	--fs-meta: 0.8125rem;

	--gutter: 16px;
	--max: 1200px;
	--radius: 6px;
	--shadow: 0 1px 2px rgba(23, 45, 70, .06), 0 12px 32px -12px rgba(23, 45, 70, .18);
	--header-h: 64px;
}
@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1180px) { :root { --gutter: 32px; --header-h: 72px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: var(--fs-body);
	line-height: 1.6;
	font-feature-settings: "cv11", "ss01";
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
h1, h2, h3, h4, h5, h6 { color: var(--navy); line-height: 1.15; letter-spacing: -0.02em; font-weight: 650; margin: 0 0 .5em; overflow-wrap: anywhere; hyphens: manual; }
p { margin: 0 0 1em; }
a { color: var(--violet); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--violet-hover); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
button { font: inherit; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius); }
.skip-link:focus { top: 8px; color: #fff; }
main:focus { outline: none; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--article { max-width: calc(760px + 2 * var(--gutter)); }
.wrap--wide { max-width: calc(1120px + 2 * var(--gutter)); }

/* ---------- Buttons & small elements ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 1px solid transparent;
	font-size: .9375rem; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--violet); color: #fff; }
.btn-primary:hover { background: var(--violet-hover); color: #fff; }
.btn-secondary { background: var(--white); color: var(--navy); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--navy); color: var(--navy); }
.btn-sm { min-height: 38px; padding: 8px 16px; font-size: .875rem; }
.btn .icon { transition: transform .15s ease; }
.btn:hover .icon-arrow, .more:hover .icon-arrow, .text-link:hover .icon-arrow { transform: translateX(3px); }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; color: var(--navy); border-radius: 999px; cursor: pointer; }
.icon-btn:hover { background: rgba(23, 45, 70, .06); color: var(--navy); }
.link-btn { border: 0; background: none; color: inherit; text-decoration: underline; cursor: pointer; padding: 0; }
.eyebrow { font-size: var(--fs-meta); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--champagne-text); margin-bottom: 14px; }
.kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: var(--fs-meta); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 8px; }
.kicker a, .kicker span { color: var(--champagne-text); text-decoration: none; }
.kicker a:hover { color: var(--navy); }
.kicker .kicker-type { color: var(--violet); background: var(--violet-soft); padding: 2px 8px; border-radius: 999px; letter-spacing: .06em; }
.meta { font-size: var(--fs-meta); color: var(--muted); margin: 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.meta-item { white-space: nowrap; }
.meta-sep { margin: 0 8px; color: var(--border-strong); }
.meta-author { color: var(--text); font-weight: 500; }
.chip { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--white); color: var(--text); font-size: .875rem; text-decoration: none; white-space: nowrap; }
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip[aria-current="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.more, .text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9375rem; text-decoration: none; color: var(--violet); }
.media { width: 100%; height: 100%; object-fit: cover; background: #e8edf3; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(245, 247, 251, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.site-header.is-scrolled { border-bottom-color: var(--border); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none; flex: none; }
.brand img { width: 104px; height: auto; }
.brand-divider { width: 1px; height: 20px; background: var(--border-strong); }
.brand-name { font-weight: 600; font-size: 1rem; letter-spacing: -0.01em; color: var(--navy); }
.primary-nav { display: none; }
.primary-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.primary-nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border-radius: 999px; color: var(--navy); font-weight: 500; font-size: .9375rem; text-decoration: none; }
.primary-nav a:hover { background: rgba(23, 45, 70, .06); color: var(--navy); }
.primary-nav a[aria-current="page"] { color: var(--violet); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
@media (min-width: 900px) {
	.primary-nav { display: block; margin-left: 24px; }
	.menu-toggle { display: none; }
	.brand img { width: 120px; }
}
.header-search { border-top: 1px solid var(--border); background: var(--white); }
.header-search .wrap { padding-block: 14px; }
.search-form { display: flex; align-items: center; gap: 10px; }
.search-form input[type="search"] { flex: 1; min-width: 0; min-height: 44px; border: 1px solid var(--border-strong); border-radius: 999px; padding: 10px 16px; font: inherit; font-size: 1rem; color: var(--navy); background: var(--white); }
.search-form--header { position: relative; }
.search-form--header > .icon-search { color: var(--muted); flex: none; }
.search-form--header input[type="search"] { border: 0; padding-inline: 4px; border-radius: 0; }
.search-form--header input[type="search"]:focus-visible { outline: none; }
.search-form--header:focus-within { box-shadow: inset 0 -2px 0 var(--violet); }
@media (max-width: 639px) { .search-form--header .btn { display: none; } }

/* Mobile menu panel */
.mobile-menu { position: fixed; inset: 0; z-index: 60; overscroll-behavior: contain; background: var(--white); display: flex; flex-direction: column; padding: 0 var(--gutter) 24px; overflow-y: auto; }
.mobile-menu-head { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.mobile-menu nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu nav a { display: flex; align-items: center; justify-content: space-between; min-height: 56px; border-bottom: 1px solid var(--border); color: var(--navy); font-size: 1.375rem; font-weight: 600; letter-spacing: -0.01em; text-decoration: none; }
.mobile-menu nav a[aria-current="page"] { color: var(--violet); }
.mobile-menu .search-form { margin-top: 24px; }
body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 40px 0 56px; border-bottom: 1px solid var(--border); }
.hero::before { /* fine architectural grid */
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background-image: linear-gradient(to right, rgba(23, 45, 70, .055) 1px, transparent 1px), linear-gradient(to bottom, rgba(23, 45, 70, .055) 1px, transparent 1px);
	background-size: 64px 64px;
	-webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.9), rgba(0,0,0,.25) 70%, transparent);
	mask-image: linear-gradient(180deg, rgba(0,0,0,.9), rgba(0,0,0,.25) 70%, transparent);
}
.hero-geo { position: absolute; inset: 0; pointer-events: none; }
.geo { position: absolute; display: block; }
.geo-a { right: -80px; top: 48px; width: 46%; height: 62%; background: var(--violet-soft); border: 1px solid #dcd8fa; }
.geo-b { right: 18%; bottom: -40px; width: 22%; height: 34%; background: var(--champagne-soft); border: 1px solid #e6dccb; }
.geo-c { right: 8%; top: 22%; width: 120px; height: 120px; border: 1px solid var(--border-strong); }
@media (max-width: 899px) {
	.geo-a { right: -40%; top: auto; bottom: 0; width: 110%; height: 44%; }
	.geo-b, .geo-c { display: none; }
}
.hero-grid { position: relative; display: grid; gap: 40px; }
.hero h1 { font-size: var(--fs-hero); line-height: 1.04; letter-spacing: -0.035em; font-weight: 700; max-width: 13ch; margin-bottom: 20px; }
.hero-lede { font-size: var(--fs-lead); color: var(--text); max-width: 34em; margin-bottom: 28px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 900px) {
	.hero { padding: 72px 0 96px; }
	.hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center; gap: 56px; }
}
@media (min-width: 1180px) { .hero { padding: 96px 0 120px; } .hero-grid { gap: 80px; } }

/* Document preview */
.doc { position: relative; padding: 0 12px 12px 0; }
.doc-sheet { position: relative; background: var(--white); border: 1px solid var(--border); border-radius: 4px; box-shadow: var(--shadow); padding: 24px; }
.doc-sheet--back { position: absolute; inset: 12px 0 0 12px; box-shadow: none; background: #fbfcfe; padding: 0; }
.doc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 2px solid var(--navy); }
.doc-brand { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 600; color: var(--navy); }
.doc-brand img { width: 64px; }
.doc-label { font-size: .6875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.doc-cat { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--champagne-text); margin-bottom: 8px; }
.doc-title { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.625rem); line-height: 1.2; margin-bottom: 12px; }
.doc-title a { color: var(--navy); text-decoration: none; }
.doc-title a:hover { color: var(--violet); }
.doc-excerpt { font-size: .9375rem; line-height: 1.6; color: var(--text); margin-bottom: 18px; }
.doc-toc { border-top: 1px solid var(--border); padding-top: 14px; margin-bottom: 18px; }
.doc-toc-title { font-size: .6875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.doc-toc ol { list-style: none; margin: 0; padding: 0; }
.doc-toc li { display: flex; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--border); font-size: .875rem; line-height: 1.4; }
.doc-toc li:last-child { border-bottom: 0; }
.doc-num { flex: none; font-variant-numeric: tabular-nums; color: var(--champagne-text); font-weight: 600; }
.doc-toc a { color: var(--navy); text-decoration: none; }
.doc-toc a:hover { color: var(--violet); text-decoration: underline; }
.doc-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid var(--border); }
.doc-meta { font-size: .75rem; color: var(--muted); }
.doc-read { display: inline-flex; align-items: center; gap: 6px; font-size: .875rem; font-weight: 600; text-decoration: none; }
@media (min-width: 640px) { .doc-sheet { padding: 32px; } }
@media (min-width: 900px) { .doc { transform: rotate(0.6deg); } .doc-sheet { padding: 36px 36px 28px; } }

/* ---------- Identity strip ---------- */
.strip { background: var(--navy); color: #c9d4e2; }
.strip-inner { display: flex; flex-direction: column; gap: 6px; padding-block: 28px; }
.strip-title { margin: 0; color: #fff; font-size: clamp(1.25rem, 1.1rem + .7vw, 1.625rem); font-weight: 650; letter-spacing: -0.02em; }
.strip-text { margin: 0; font-size: 1rem; }
@media (min-width: 900px) { .strip-inner { flex-direction: row; align-items: baseline; justify-content: space-between; padding-block: 32px; } }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section + .section { border-top: 1px solid var(--border); }
@media (min-width: 900px) { .section { padding: 88px 0; } }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 32px; }
.section-head h2 { font-size: var(--fs-h2); margin: 0; }
.section-head--stack { display: block; }
.section-intro { color: var(--muted); font-size: var(--fs-lead); max-width: 40em; margin: 12px 0 0; }

/* Latest insights */
.latest-grid { display: grid; gap: 32px; }
.lead-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); margin-bottom: 20px; background: #e8edf3; }
.lead-media img, .report-media img, .guide-media img, .card-media img, .archive-feature-media img { transition: transform .4s ease; }
.lead-media:hover img, .report-media:hover img, .guide-media:hover img, .card-media:hover img { transform: scale(1.02); }
.lead-title { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); line-height: 1.15; margin-bottom: 12px; }
.lead-title a, .card-title a, .compact-title a, .guide-title a, .report-title a { color: var(--navy); text-decoration: none; }
.lead-title a:hover, .card-title a:hover, .compact-title a:hover, .guide-title a:hover, .report-title a:hover { color: var(--violet); }
.lead-excerpt { font-size: var(--fs-lead); color: var(--text); margin-bottom: 14px; }
.latest-list { display: grid; align-content: start; }
.compact { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 16px; padding: 20px 0; border-top: 1px solid var(--border); }
.compact--text { grid-template-columns: minmax(0, 1fr); }
.latest-list .compact:first-child { border-top: 0; padding-top: 0; }
.compact-title { font-size: 1.125rem; line-height: 1.3; margin-bottom: 8px; }
.compact-excerpt { font-size: .9375rem; color: var(--text); margin-bottom: 8px; }
.compact-media { display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 4px; background: #e8edf3; }
@media (min-width: 640px) { .compact { grid-template-columns: minmax(0, 1fr) 140px; gap: 20px; } .compact-media { aspect-ratio: 4 / 3; } .compact--text { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 1024px) {
	.latest-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 56px; }
	.latest-list .compact { grid-template-columns: minmax(0, 1fr) 112px; }
}

/* Special report */
.report { background: var(--white); }
.report-feature { display: grid; gap: 24px; }
.report-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: #e8edf3; }
.report-label { font-size: var(--fs-meta); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--champagne-text); margin-bottom: 10px; }
.report-title { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); margin-bottom: 14px; }
.report-excerpt { font-size: var(--fs-lead); margin-bottom: 16px; }
.report-body .meta { margin-bottom: 24px; }
@media (min-width: 900px) { .report-feature { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: center; } }

/* Guides */
.guide-grid { display: grid; gap: 40px; }
.guide-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius); margin-bottom: 18px; background: #e8edf3; }
.guide-title { font-size: clamp(1.25rem, 1.15rem + .5vw, 1.5rem); margin-bottom: 10px; }
.guide-excerpt { margin-bottom: 12px; }
@media (min-width: 768px) { .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 40px; } }

/* Topics */
.topics { background: var(--white); }
.topic-list { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--navy); }
.topic-list a { display: grid; gap: 6px; padding: 20px 0; border-bottom: 1px solid var(--border); text-decoration: none; color: var(--text); }
.topic-name { display: inline-flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--navy); font-weight: 650; font-size: 1.125rem; }
.topic-desc { font-size: .9375rem; color: var(--muted); }
.topic-list a:hover .topic-name { color: var(--violet); }
@media (min-width: 900px) {
	.topic-list { grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 0; }
	.topic-list a { height: 100%; padding: 24px 24px 24px 0; border-bottom: 0; border-top: 2px solid var(--navy); margin-right: 24px; align-content: start; }
	.topic-list li:last-child a { margin-right: 0; }
}

/* Newsletter */
.newsletter { background: var(--navy); color: #c9d4e2; padding: 56px 0; }
.newsletter h2 { color: #fff; font-size: var(--fs-h2); margin-bottom: 10px; }
.newsletter p { margin: 0; }
.newsletter-grid { display: grid; gap: 28px; align-items: center; }
.nl-form { display: grid; gap: 14px; }
.nl-row { display: flex; flex-wrap: wrap; gap: 10px; }
.nl-row input { flex: 1 1 220px; min-width: 0; min-height: 48px; border: 1px solid #3a5372; background: var(--navy-2); color: #fff; border-radius: 999px; padding: 10px 18px; font: inherit; font-size: 1rem; }
.nl-row input::placeholder { color: #9fb0c5; }
.nl-row .btn { min-height: 48px; }
.nl-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .8125rem; line-height: 1.5; color: #b8c5d6; }
.nl-consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--violet); flex: none; }
.nl-consent a { color: #fff; }
.newsletter .form-status { font-size: .9375rem; color: #fff; min-height: 1.5em; }
.newsletter .form-status.is-error { color: #ffc9c9; }
@media (min-width: 900px) { .newsletter { padding: 72px 0; } .newsletter-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; } }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Page heroes & archives ---------- */
.page-hero { padding: 40px 0 32px; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, var(--bg), var(--bg)); position: relative; }
.page-hero h1 { font-size: var(--fs-h1); letter-spacing: -0.03em; max-width: 20ch; }
.page-lede { font-size: var(--fs-lead); color: var(--text); max-width: 40em; }
.page-lede p:last-child { margin-bottom: 0; }
@media (min-width: 900px) { .page-hero { padding: 64px 0 48px; } }
.archive { padding-block: 32px 72px; }
.archive--narrow { max-width: calc(860px + 2 * var(--gutter)); }
.filters { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 32px; }
.filters > * { min-width: 0; }
.filter-topics { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.filter-search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--white); padding: 4px 4px 4px 16px; max-width: 520px; }
.filter-search .icon { color: var(--muted); flex: none; }
.filter-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 1rem; min-height: 40px; color: var(--navy); }
.filter-search input:focus-visible { outline: none; }
.filter-search:focus-within { border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-soft); }
@media (min-width: 1024px) { .filters { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } .filter-topics { flex-wrap: wrap; overflow: visible; } .filter-search { width: 340px; } }
.result-note { font-size: .9375rem; color: var(--muted); margin: 0 0 24px; }
.archive-feature { display: grid; gap: 24px; padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--border); }
.archive-feature-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); }
@media (min-width: 900px) { .archive-feature { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; } }
.card-grid { display: grid; gap: 40px 32px; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { display: flex; flex-direction: column; }
.card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius); margin-bottom: 16px; background: #e8edf3; }
.card-title { font-size: var(--fs-h3); line-height: 1.25; margin-bottom: 8px; }
.card-excerpt { font-size: .9375rem; margin-bottom: 12px; }
.card .meta { margin-top: auto; }
.result-list .compact:first-child { border-top: 0; }
.empty { text-align: left; padding: 48px 0; max-width: 40em; }
.empty h2 { font-size: var(--fs-h3); }
.suggest { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.search-form--page { margin-top: 20px; max-width: 640px; position: relative; }
.search-form--page > .icon-search { position: absolute; left: 16px; color: var(--muted); pointer-events: none; }
.search-form--page input[type="search"] { padding-left: 46px; min-height: 52px; }
.search-form--page .btn { min-height: 52px; }
.page-hero--404 .hero-ctas { margin-top: 24px; }

.pagination { margin-top: 56px; }
.pagination ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--white); color: var(--navy); text-decoration: none; font-size: .9375rem; }
.pagination a:hover { border-color: var(--navy); }
.pagination .current { background: var(--navy); color: #fff; border-color: var(--navy); }
.pagination .dots { border: 0; background: none; }

.breadcrumbs ol { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: var(--fs-meta); color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 4px; color: var(--border-strong); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--violet); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--text); display: inline-block; max-width: 28ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }

/* ---------- Article ---------- */
.article-head { padding: 32px 0 28px; }
.article-title { font-size: var(--fs-h1); letter-spacing: -0.03em; line-height: 1.08; margin-bottom: 16px; }
.article-dek { font-size: var(--fs-lead); color: var(--text); line-height: 1.55; margin-bottom: 20px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font-size: .875rem; color: var(--muted); padding-top: 16px; border-top: 1px solid var(--border); }
.article-meta .byline a { color: var(--navy); font-weight: 600; text-decoration: none; }
@media (min-width: 900px) { .article-head { padding: 56px 0 36px; } }
.article-image { margin: 0 auto 8px; }
.article-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }
.article-image figcaption { font-size: var(--fs-meta); color: var(--muted); padding-top: 10px; }
@media (max-width: 639px) { .article-image { padding-inline: 0; } .article-image img { border-radius: 0; } .article-image figcaption { padding-inline: var(--gutter); } }
.article-layout { padding-block: 32px 56px; display: grid; gap: 32px; }
.article-main { min-width: 0; max-width: 720px; width: 100%; margin-inline: auto; }
@media (min-width: 1180px) {
	.article-layout.has-toc { grid-template-columns: 240px minmax(0, 720px); justify-content: center; gap: 64px; }
	.article-layout.has-toc .article-main { margin: 0; }
	.toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; max-height: calc(100vh - var(--header-h) - 48px); overflow: auto; }
}
.toc { max-width: 720px; width: 100%; margin-inline: auto; }
.toc details { border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); padding: 4px 18px; }
.toc summary { cursor: pointer; font-size: var(--fs-meta); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); padding: 12px 0; list-style-position: inside; }
.toc ol { margin: 0 0 14px; padding-left: 20px; font-size: .9375rem; line-height: 1.45; }
.toc li { padding: 5px 0; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover, .toc a.is-active { color: var(--violet); }
@media (min-width: 1180px) { .toc details { border: 0; border-left: 2px solid var(--navy); border-radius: 0; background: none; padding: 0 0 0 18px; } .toc summary { list-style: none; pointer-events: none; padding-top: 0; } .toc summary::-webkit-details-marker { display: none; } }

/* Prose (block content) */
.prose { font-size: var(--fs-body); line-height: 1.75; color: var(--text); }
.prose > * { margin-block: 0 1.25em; }
.prose h2 { font-size: clamp(1.4375rem, 1.25rem + .8vw, 1.875rem); margin-top: 2em; margin-bottom: .6em; }
.prose h3 { font-size: clamp(1.1875rem, 1.1rem + .4vw, 1.375rem); margin-top: 1.6em; margin-bottom: .5em; }
.prose h4 { font-size: 1.0625rem; margin-top: 1.5em; }
.prose a { color: var(--violet); }
.prose strong { color: var(--navy); font-weight: 650; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--champagne); }
.prose blockquote, .prose .wp-block-quote { margin-inline: 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--violet); color: var(--navy); font-size: 1.125em; line-height: 1.55; }
.prose blockquote cite { display: block; font-size: .8125rem; font-style: normal; color: var(--muted); margin-top: 8px; }
.prose .wp-block-pullquote { border-block: 2px solid var(--navy); padding: 24px 0; text-align: left; }
.prose figure { margin-inline: 0; }
.prose img { border-radius: 4px; }
.prose figcaption, .prose .wp-element-caption { font-size: var(--fs-meta); color: var(--muted); margin-top: 10px; line-height: 1.5; }
.prose .alignwide { margin-inline: 0; }
@media (min-width: 1024px) { .article-layout:not(.has-toc) .prose .alignwide { margin-inline: -120px; } }
.prose hr, .prose .wp-block-separator { border: 0; border-top: 1px solid var(--border); margin: 2.5em 0; }
.prose code { font-family: var(--mono); font-size: .875em; background: #eef2f7; padding: 2px 6px; border-radius: 4px; color: var(--navy); }
.prose pre, .prose .wp-block-code { font-family: var(--mono); font-size: .875rem; line-height: 1.6; background: var(--navy); color: #e6edf5; padding: 18px 20px; border-radius: var(--radius); overflow-x: auto; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose .wp-block-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.prose table { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.5; min-width: 520px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { color: var(--navy); font-weight: 650; border-bottom: 2px solid var(--navy); background: transparent; }
.prose .wp-block-table figcaption { text-align: left; }
.prose .wp-block-embed__wrapper, .prose iframe { max-width: 100%; }
.prose .wp-block-file { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); }
.prose .wp-block-file .wp-block-file__button { background: var(--violet); color: #fff; border-radius: 999px; padding: 8px 16px; text-decoration: none; font-size: .875rem; font-weight: 600; }
/* Callouts: use the block style "Callout" on a Group, or the core Group with class "callout" */
.prose .is-style-callout, .prose .callout { background: var(--white); border: 1px solid var(--border); border-left: 3px solid var(--champagne); border-radius: 4px; padding: 18px 22px; }
.prose .is-style-callout > :last-child, .prose .callout > :last-child { margin-bottom: 0; }
.prose .is-style-callout-note { border-left-color: var(--violet); }
/* Checklists: List block style "Checklist" */
.prose .is-style-checklist { list-style: none; padding-left: 0; }
.prose .is-style-checklist li { position: relative; padding-left: 32px; }
.prose .is-style-checklist li::before { content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; border: 1.5px solid var(--violet); border-radius: 4px; background: var(--violet-soft); }
.prose .is-style-checklist li::after { content: ""; position: absolute; left: 6px; top: calc(.32em + 3px); width: 5px; height: 9px; border: solid var(--violet); border-width: 0 2px 2px 0; transform: rotate(45deg); }
/* Steps: Ordered list style "Steps" */
.prose .is-style-steps { list-style: none; padding-left: 0; counter-reset: step; }
.prose .is-style-steps > li { counter-increment: step; position: relative; padding-left: 48px; margin-bottom: 1em; }
.prose .is-style-steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 999px; background: var(--navy); color: #fff; font-size: .875rem; font-weight: 600; }

.tags { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 32px; padding-block: 18px; border-block: 1px solid var(--border); }
.share-label { font-size: var(--fs-meta); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); }
.share ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.share a, .share button { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--white); color: var(--text); font-size: .8125rem; text-decoration: none; cursor: pointer; }
.share a:hover, .share button:hover { border-color: var(--navy); color: var(--navy); }
.share-status { font-size: .8125rem; color: var(--violet); }
.author-box { display: flex; gap: 16px; align-items: flex-start; margin-top: 32px; padding: 20px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); }
.author-avatar { border-radius: 999px; flex: none; }
.author-name { margin: 0 0 4px; font-weight: 650; }
.author-name a { color: var(--navy); text-decoration: none; }
.author-bio { margin: 0; font-size: .9375rem; color: var(--text); }
.related { background: var(--white); }

/* Comments */
.comments { padding: 48px 0 64px; }
.comments > h2 { font-size: var(--fs-h3); }
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { margin-left: 16px; padding-left: 16px; border-left: 2px solid var(--border); }
@media (min-width: 640px) { .comment-list .children { margin-left: 28px; padding-left: 24px; } }
.comment-body { padding: 18px 0; border-bottom: 1px solid var(--border); }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--navy); }
.comment-author .avatar { border-radius: 999px; }
.comment-author .says { display: none; }
.comment-metadata { font-size: var(--fs-meta); margin: 4px 0 8px 50px; }
.comment-metadata a { color: var(--muted); text-decoration: none; }
.comment-content { margin-left: 50px; font-size: 1rem; }
.comment-awaiting-moderation { display: block; font-size: var(--fs-meta); color: var(--champagne-text); margin: 4px 0 0 50px; }
.reply { margin-left: 50px; font-size: .875rem; }
.reply a { font-weight: 600; text-decoration: none; }
.comment-respond { margin-top: 32px; padding: 24px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); }
.comment-reply-title { font-size: 1.25rem; }
.comment-reply-title small { font-size: .875rem; margin-left: 8px; }
.comment-notes, .logged-in-as { font-size: .875rem; color: var(--muted); }
.comment-form p { margin-bottom: 16px; }
.comment-form label, .field label { display: block; font-size: .875rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form textarea,
.field input, .field textarea { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--white); font: inherit; font-size: 1rem; color: var(--navy); }
.comment-form textarea, .field textarea { min-height: 150px; resize: vertical; }
.comment-form input:focus-visible, .comment-form textarea:focus-visible, .field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--violet); outline-offset: 0; border-color: var(--violet); }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; font-size: .875rem; }
.comment-form-cookies-consent label { font-weight: 400; color: var(--text); margin: 0; }
.notice-inline { padding: 12px 16px; background: var(--violet-soft); border-radius: var(--radius); color: var(--navy); font-size: .9375rem; }

/* Contact form */
.contact-form { margin: 32px 0 72px; padding: 24px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); display: grid; gap: 4px; }
.field { margin-bottom: 12px; }
.field .optional { font-weight: 400; color: var(--muted); }
.field-error { color: #b42318; font-size: .8125rem; margin: 6px 0 0; min-height: 0; }
.field-error:empty { display: none; }
.field [aria-invalid="true"] { border-color: #b42318; }
.form-note { font-size: .8125rem; color: var(--muted); }
.form-status { font-size: .9375rem; margin: 8px 0 0; min-height: 1.4em; color: var(--navy); }
.form-status.is-error { color: #b42318; }
.form-status.is-ok { color: #146c43; }
.contact-form .btn { justify-self: start; }

/* ---------- Footer ---------- */
.site-footer { background: var(--white); border-top: 1px solid var(--border); padding-top: 48px; font-size: .9375rem; }
.footer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; padding-bottom: 40px; }
.footer-brand { grid-column: 1 / -1; max-width: 26em; }
.footer-brand p { color: var(--muted); margin: 14px 0 0; font-size: .9375rem; }
.footer-col h2 { font-size: var(--fs-meta); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); margin-bottom: 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 4px; }
.footer-col a { display: inline-block; padding: 6px 0; color: var(--text); text-decoration: none; }
.footer-col a:hover { color: var(--violet); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 20px 28px; border-top: 1px solid var(--border); font-size: var(--fs-meta); color: var(--muted); }
.footer-base p { margin: 0; }
@media (min-width: 900px) {
	.footer-grid { grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); }
	.footer-grid--social { grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr)); }
	.footer-brand { grid-column: auto; }
}

/* Consent banner (only when GA4 is configured) */
.consent { position: fixed; z-index: 70; left: var(--gutter); right: var(--gutter); bottom: var(--gutter); max-width: 560px; margin-inline: auto; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; font-size: .875rem; }
.consent p { margin: 0 0 12px; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }

/* Block editor alignment helpers on the front end */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-inline: auto; }
@media (max-width: 639px) { .alignleft, .alignright { float: none; margin: 0 0 1em; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
@media print { .site-header, .site-footer, .newsletter, .share, .comments, .related, .toc, .consent { display: none !important; } body { background: #fff; } }
