/*
Theme Name: Génération Épargne
Theme URI: https://generation-epargne.fr
Author: Génération Épargne
Author URI: https://generation-epargne.fr
Description: Thème WordPress premium et sobre pour un site français d'éducation financière destiné aux 18–30 ans. Typographie serif/sans contrastée, palette navy & or, rythme vertical généreux. Sans page builder, sans framework, sans build.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: generation-epargne
Tags: education, blog, custom-colors, custom-logo, custom-menu, featured-images, translation-ready, threaded-comments, block-styles, wide-blocks, accessibility-ready
*/

/* ==========================================================================
   TABLE OF CONTENTS
   1.  Design tokens (custom properties)
   2.  Self-hosted fonts (@font-face)
   3.  Reset & base
   4.  Typography
   5.  Layout primitives (container, section, rhythm)
   6.  Links, buttons & arrow-links
   7.  Rules & dividers
   8.  Accessibility (skip link, focus, screen-reader)
   9.  Header & navigation
   10. Hero
   11. Thematics grid (cards)
   12. Parcours (steps)
   13. Latest articles
   14. About
   15. Newsletter
   16. Footer
   17. Single article (TOC, progress bar, callouts, quotes, tables)
   18. Archives & lists
   19. Comments
   20. Page & 404 & search
   21. Reading-progress bar
   22. Utilities
   23. Responsive breakpoints (640 / 900 / 1200)
   ========================================================================== */

/* 1. DESIGN TOKENS ========================================================= */
:root {
	/* Colour palette — use nothing outside these */
	--navy:     #0D1B2A;
	--gold:     #C9A227;
	--offwhite: #FAFAF7;
	--ink:      #1A2733;
	--grey:     #E5E5E0;

	/* Derived / functional tokens */
	--gold-dark:      #A8861F;   /* accessible gold on light for text links */
	--gold-tint:      #F7F1DC;   /* key-takeaway box background */
	--navy-soft:      #16293C;   /* slightly lighter navy panel */
	--ink-on-navy:    #E8ECF1;   /* body text on navy */
	--muted-on-navy:  #A9B4C0;   /* secondary text on navy */
	--muted:          #5A6B78;   /* secondary text on light */

	/* Typography */
	--font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
	--font-sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--base-size:  18px;
	--lh-body:    1.7;
	--measure:    70ch;

	/* Spacing / rhythm */
	--section-y:   96px;
	--section-y-m: 64px;
	--container:   1200px;
	--container-narrow: 760px;
	--gap:         2rem;

	/* Motion & shape */
	--radius: 2px;
	--transition: 200ms ease;
}

/* 2. SELF-HOSTED FONTS ===================================================== */
/* Font files live in /assets/fonts (see assets/fonts/README.md). No CDN. */
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("assets/fonts/inter-regular.woff2") format("woff2");
}
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("assets/fonts/inter-medium.woff2") format("woff2");
}
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("assets/fonts/inter-semibold.woff2") format("woff2");
}
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("assets/fonts/inter-bold.woff2") format("woff2");
}
@font-face {
	font-family: "Playfair Display";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("assets/fonts/playfair-medium.woff2") format("woff2");
}
@font-face {
	font-family: "Playfair Display";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("assets/fonts/playfair-semibold.woff2") format("woff2");
}
@font-face {
	font-family: "Playfair Display";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("assets/fonts/playfair-bold.woff2") format("woff2");
}
@font-face {
	font-family: "Playfair Display";
	font-style: italic;
	font-weight: 500;
	font-display: swap;
	src: url("assets/fonts/playfair-italic.woff2") format("woff2");
}

/* 3. RESET & BASE ========================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	/* Offset for the sticky header when jumping to anchors */
	scroll-padding-top: 96px;
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: 0.001ms !important;
		transition-duration: 0.001ms !important;
	}
}

body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: var(--base-size);
	line-height: var(--lh-body);
	color: var(--ink);
	background: var(--offwhite);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

img, picture, video, svg { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }

/* 4. TYPOGRAPHY ============================================================ */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-serif);
	font-weight: 600;
	line-height: 1.15;
	color: var(--navy);
	margin: 0 0 0.5em;
	letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.35rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.2rem; }

p { margin: 0 0 1.4em; }
p:last-child { margin-bottom: 0; }

strong, b { font-weight: 600; }
small { font-size: 0.82rem; }

ul, ol { margin: 0 0 1.4em; padding-left: 1.3em; }
li { margin-bottom: 0.5em; }

blockquote { margin: 0; }

code, pre {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.9em;
}
pre {
	background: var(--navy);
	color: var(--ink-on-navy);
	padding: 1.25rem 1.5rem;
	border-radius: var(--radius);
	overflow-x: auto;
}
code { background: var(--grey); padding: 0.1em 0.35em; border-radius: var(--radius); }
pre code { background: none; padding: 0; }

::selection { background: var(--gold); color: var(--navy); }

/* 5. LAYOUT PRIMITIVES ===================================================== */
.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: 1.5rem;
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--section-y); }
.section--navy {
	background: var(--navy);
	color: var(--ink-on-navy);
}
.section--navy h1, .section--navy h2, .section--navy h3, .section--navy h4 { color: #fff; }
.section--light { background: var(--offwhite); }

.section-head { max-width: 62ch; margin-bottom: 3rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section--navy .section-head p { color: var(--muted-on-navy); }

.eyebrow {
	display: inline-block;
	font-family: var(--font-sans);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--gold-dark);
	margin-bottom: 1rem;
}
.section--navy .eyebrow { color: var(--gold); }

/* 6. LINKS, BUTTONS & ARROW-LINKS ========================================= */
a { color: var(--gold-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--navy); }
.section--navy a { color: var(--gold); }
.section--navy a:hover { color: #fff; }

/* Prose links get an underline for clarity within body copy */
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* Filled gold button — max 2 per page */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--font-sans);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1;
	padding: 1rem 1.75rem;
	background: var(--gold);
	color: var(--navy);
	border: 1px solid var(--gold);
	border-radius: var(--radius);
	cursor: pointer;
	transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.btn:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: var(--navy); }
.btn:active { transform: translateY(1px); }

.btn--ghost {
	background: transparent;
	color: var(--navy);
	border-color: var(--navy);
}
.section--navy .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.5); }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.section--navy .btn--ghost:hover { background: #fff; color: var(--navy); }

/* Text link with gold arrow — the default CTA everywhere else */
.arrow-link {
	display: inline-flex;
	align-items: baseline;
	gap: 0.4rem;
	font-family: var(--font-sans);
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--gold-dark);
}
.section--navy .arrow-link { color: var(--gold); }
.arrow-link::after {
	content: "\2192"; /* → */
	transition: transform var(--transition);
}
.arrow-link:hover { color: var(--navy); }
.section--navy .arrow-link:hover { color: #fff; }
.arrow-link:hover::after { transform: translateX(4px); }

/* 7. RULES & DIVIDERS ===================================================== */
.rule-gold {
	border: 0;
	height: 1px;
	background: var(--gold);
	width: 64px;
	margin: 0 0 1.5rem;
}
.rule-gold--center { margin-inline: auto; }
hr { border: 0; height: 1px; background: var(--grey); margin: 2.5rem 0; }

/* 8. ACCESSIBILITY ======================================================== */
.skip-link {
	position: absolute;
	left: -999px;
	top: 0;
	z-index: 1000;
	background: var(--gold);
	color: var(--navy);
	padding: 0.75rem 1.25rem;
	font-weight: 600;
	border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }
/* The skip target is a container, not an interactive control: no outline box. */
#content:focus { outline: none; }

.screen-reader-text {
	position: absolute !important;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	width: 1px; height: 1px;
	overflow: hidden;
	white-space: nowrap;
	border: 0; padding: 0; margin: -1px;
}

:focus-visible {
	outline: 3px solid var(--gold);
	outline-offset: 2px;
	border-radius: var(--radius);
}
/* Keep a visible outline for keyboard users even inside dark sections */
.section--navy :focus-visible,
.site-header :focus-visible { outline-color: var(--gold); }

/* 9. HEADER & NAVIGATION ================================================== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(250, 250, 247, 0.92);
	backdrop-filter: saturate(180%) blur(8px);
	border-bottom: 1px solid var(--grey);
}
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: 72px;
}
.site-branding { display: flex; align-items: center; gap: 0.75rem; }
.site-title {
	font-family: var(--font-serif);
	font-weight: 700;
	font-size: 1.35rem;
	color: var(--navy);
	margin: 0;
	line-height: 1.1;
}
.site-title a { color: inherit; }
.site-title a:hover { color: var(--gold-dark); }
.custom-logo { max-height: 44px; width: auto; }

.main-navigation ul {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 1.75rem;
	margin: 0; padding: 0;
}
.main-navigation a {
	font-family: var(--font-sans);
	font-size: 0.95rem;
	font-weight: 500;
	color: var(--ink);
	padding: 0.5rem 0;
	position: relative;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a {
	color: var(--navy);
}
.main-navigation a::after {
	content: "";
	position: absolute;
	left: 0; bottom: 0;
	width: 0; height: 2px;
	background: var(--gold);
	transition: width var(--transition);
}
.main-navigation a:hover::after,
.main-navigation .current-menu-item > a::after { width: 100%; }

.menu-toggle {
	display: none;
	background: none;
	border: 1px solid var(--grey);
	border-radius: var(--radius);
	padding: 0.5rem 0.6rem;
	cursor: pointer;
	color: var(--navy);
}
.menu-toggle svg { width: 22px; height: 22px; }

/* 10. HERO =============================================================== */
.hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 78vh;
	padding-block: 6rem;
	background-color: var(--navy);
	background-size: cover;
	background-position: center;
	color: #fff;
	isolation: isolate;
}
.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(13, 27, 42, 0.55);
	z-index: -1;
}
.hero__inner { max-width: 40ch; }
.hero h1 { color: #fff; margin-bottom: 1.25rem; }
.hero__text {
	font-size: 1.2rem;
	line-height: 1.6;
	color: rgba(255,255,255,0.9);
	max-width: 46ch;
	margin-bottom: 2rem;
}
.hero__note {
	display: block;
	margin-top: 1rem;
	font-size: 0.85rem;
	color: rgba(255,255,255,0.7);
}

/* 11. THEMATICS GRID (CARDS) ============================================= */
.card-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.5rem;
}
.theme-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--grey);
	border-radius: var(--radius);
	padding: 2.25rem;
	transition: border-color var(--transition), transform var(--transition);
	height: 100%;
}
.theme-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.theme-card__icon { color: var(--gold); margin-bottom: 1.25rem; }
.theme-card__icon svg { width: 40px; height: 40px; stroke: currentColor; fill: none; }
.theme-card h3 { margin-bottom: 0.6rem; }
.theme-card p { color: var(--muted); font-size: 0.98rem; flex-grow: 1; }
.theme-card .arrow-link { margin-top: 1.25rem; }
/* Make the whole card clickable while keeping the visible link accessible */
.theme-card__link::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: var(--radius);
}

/* 12. PARCOURS (STEPS) =================================================== */
.steps { max-width: 760px; }
.step {
	position: relative;
	display: grid;
	grid-template-columns: 88px 1fr;
	gap: 1.5rem;
	padding-bottom: 3rem;
}
.step:last-child { padding-bottom: 0; }
/* Vertical gold connector line */
.step:not(:last-child)::before {
	content: "";
	position: absolute;
	left: 43px;
	top: 72px;
	bottom: 0;
	width: 1px;
	background: linear-gradient(var(--gold), rgba(201,162,39,0.15));
}
.step__num {
	font-family: var(--font-serif);
	font-size: 3.2rem;
	font-weight: 600;
	line-height: 1;
	color: var(--gold);
	text-align: center;
}
.step__body h3 { color: #fff; margin-bottom: 0.5rem; }
.step__body p { color: var(--muted-on-navy); }
.step__body .arrow-link { margin-top: 1rem; }

/* 13. LATEST ARTICLES =================================================== */
.post-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
}
.article-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--grey);
	border-radius: var(--radius);
	overflow: hidden;
	transition: border-color var(--transition), transform var(--transition);
}
.article-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.article-card__media {
	aspect-ratio: 16 / 9;
	background: var(--grey);
	overflow: hidden;
}
.article-card__media img {
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform 400ms ease;
}
.article-card:hover .article-card__media img { transform: scale(1.04); }
.article-card__body { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }
.cat-label {
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--gold-dark);
	margin-bottom: 0.6rem;
}
.article-card h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.article-card h3 a { color: var(--navy); }
.article-card h3 a:hover { color: var(--gold-dark); }
.article-card__excerpt { color: var(--muted); font-size: 0.95rem; flex-grow: 1; }
.article-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
	margin-top: 1.25rem;
	font-size: 0.82rem;
	color: var(--muted);
}
.article-card__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); display: inline-block; }
.article-card__link::after {
	content: "";
	position: absolute;
	inset: 0;
}
.center-link { text-align: center; margin-top: 3rem; }

/* 14. ABOUT ============================================================= */
.about-grid {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 3rem;
	align-items: center;
}
.about-photo {
	width: 220px; height: 220px;
	border-radius: 50%;
	object-fit: cover;
	border: 1px solid var(--gold);
}
.about-photo--placeholder {
	display: flex; align-items: center; justify-content: center;
	background: var(--navy-soft);
	color: var(--gold);
	font-family: var(--font-serif);
	font-size: 3rem;
}
.about-body p { color: var(--ink-on-navy); }
.about-disclaimer {
	margin-top: 1.5rem;
	font-size: 0.85rem;
	color: var(--muted-on-navy);
	border-left: 1px solid var(--gold);
	padding-left: 1rem;
}

/* 15. NEWSLETTER ======================================================== */
.newsletter { max-width: 640px; margin-inline: auto; text-align: center; }
.newsletter h2 { margin-bottom: 1rem; }
.newsletter__intro { color: var(--muted); margin-bottom: 2rem; }
.newsletter-form {
	display: flex;
	gap: 0.75rem;
	max-width: 480px;
	margin: 0 auto 0.9rem;
}
.newsletter-form input[type="email"] {
	flex: 1;
	font-family: var(--font-sans);
	font-size: 1rem;
	padding: 0.95rem 1.1rem;
	border: 1px solid var(--grey);
	border-radius: var(--radius);
	background: #fff;
	color: var(--ink);
}
.newsletter-form input[type="email"]:focus-visible { border-color: var(--gold); outline-offset: 0; }
.newsletter__fineprint { font-size: 0.82rem; color: var(--muted); }
.form-message { margin-top: 1rem; font-size: 0.95rem; font-weight: 500; min-height: 1.4em; }
.form-message--success { color: #1f7a44; }
.form-message--error { color: #b3261e; }

/* 16. FOOTER =========================================================== */
.site-footer { background: var(--navy); color: var(--ink-on-navy); }
.site-footer a { color: var(--muted-on-navy); }
.site-footer a:hover { color: var(--gold); }
.footer-cols {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 3rem;
	padding-block: 4rem;
}
.footer-col h4 {
	color: #fff;
	font-family: var(--font-sans);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin-bottom: 1.25rem;
}
.footer-brand__name {
	font-family: var(--font-serif);
	font-size: 1.5rem;
	font-weight: 700;
	color: #fff;
	margin-bottom: 0.75rem;
}
.footer-brand__tagline { color: var(--muted-on-navy); font-size: 0.95rem; max-width: 32ch; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.75rem; }
.footer-social { display: flex; gap: 1rem; margin-top: 1.5rem; }
.footer-social a { display: inline-flex; }
.footer-social svg { width: 22px; height: 22px; stroke: currentColor; fill: none; }
.footer-bottom {
	border-top: 1px solid rgba(255,255,255,0.12);
	padding-block: 1.75rem;
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 1.5rem;
	align-items: center;
	justify-content: space-between;
	font-size: 0.82rem;
	color: var(--muted-on-navy);
}
.footer-bottom nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-disclaimer { flex-basis: 100%; color: var(--muted-on-navy); font-size: 0.8rem; opacity: 0.85; }

/* 17. SINGLE ARTICLE =================================================== */
.reading-progress {
	position: fixed;
	top: 0; left: 0;
	height: 3px;
	width: 0;
	background: var(--gold);
	z-index: 200;
	transition: width 80ms linear;
}

.article-header { padding-top: var(--section-y-m); }
.article-header .container { max-width: var(--container-narrow); }
.article-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.75rem;
	color: var(--muted);
	font-size: 0.9rem;
	margin-top: 1.25rem;
}
.article-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); display: inline-block; }
.article-featured { margin: 2.5rem 0; }
.article-featured img { width: 100%; border-radius: var(--radius); }
.article-featured figcaption { font-size: 0.82rem; color: var(--muted); margin-top: 0.6rem; text-align: center; }

.article-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
	max-width: var(--container-narrow);
	margin-inline: auto;
}
.article-layout--with-toc {
	grid-template-columns: 240px minmax(0, 1fr);
	max-width: var(--container);
}

/* Table of contents */
.toc {
	font-size: 0.9rem;
	align-self: start;
}
.toc__title {
	font-family: var(--font-sans);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 1rem;
}
.toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--grey); }
.toc li { margin: 0; }
.toc a {
	display: block;
	padding: 0.4rem 0 0.4rem 1rem;
	margin-left: -1px;
	border-left: 2px solid transparent;
	color: var(--muted);
	line-height: 1.4;
}
.toc a:hover { color: var(--navy); }
.toc a.is-active { color: var(--navy); border-left-color: var(--gold); font-weight: 500; }

/* Prose (article body) */
.prose { font-size: 1.125rem; line-height: var(--lh-body); }
.prose > * { max-width: var(--measure); }
.prose > .alignwide, .prose > .alignfull, .prose > figure, .prose > .wp-block-table { max-width: 100%; }
.prose h2 { margin-top: 2.5em; scroll-margin-top: 96px; }
.prose h3 { margin-top: 2em; }
.prose img { border-radius: var(--radius); margin-block: 2rem; }
.prose figcaption { font-size: 0.85rem; color: var(--muted); text-align: center; margin-top: 0.6rem; }
.prose ul li::marker, .prose ol li::marker { color: var(--gold-dark); }

/* Pull-quote */
.prose blockquote,
.wp-block-quote {
	margin: 2.5rem 0;
	padding: 0.5rem 0 0.5rem 1.75rem;
	border-left: 3px solid var(--gold);
	font-family: var(--font-serif);
	font-size: 1.5rem;
	font-style: italic;
	line-height: 1.4;
	color: var(--navy);
}
.wp-block-quote cite, .prose blockquote cite {
	display: block;
	margin-top: 1rem;
	font-family: var(--font-sans);
	font-size: 0.9rem;
	font-style: normal;
	color: var(--muted);
}

/* Key-takeaway box (also applied via the "Encadré À retenir" block style) */
.is-style-key-takeaway {
	background: var(--gold-tint);
	border-left: 4px solid var(--gold);
	border-radius: var(--radius);
	padding: 1.5rem 1.75rem;
	margin: 2.5rem 0;
}
.is-style-key-takeaway p:last-child { margin-bottom: 0; }
.is-style-gold-pullquote {
	border-left: 3px solid var(--gold);
	padding-left: 1.75rem;
	font-family: var(--font-serif);
	font-style: italic;
	font-size: 1.5rem;
	color: var(--navy);
}
.key-takeaway {
	background: var(--gold-tint);
	border-left: 4px solid var(--gold);
	border-radius: var(--radius);
	padding: 1.5rem 1.75rem;
	margin: 2.5rem 0;
	font-size: 1rem;
}
.key-takeaway__title {
	font-family: var(--font-sans);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--gold-dark);
	margin: 0 0 0.6rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}
.key-takeaway p:last-child { margin-bottom: 0; }

/* Comparison tables */
.prose table, .wp-block-table table {
	width: 100%;
	border-collapse: collapse;
	margin: 2.5rem 0;
	font-size: 0.95rem;
}
.prose thead th, .wp-block-table thead th {
	background: var(--navy);
	color: #fff;
	font-family: var(--font-sans);
	text-align: left;
	padding: 0.85rem 1rem;
	font-weight: 600;
}
.prose td, .prose th, .wp-block-table td, .wp-block-table th {
	padding: 0.85rem 1rem;
	border-bottom: 1px solid var(--grey);
	vertical-align: top;
}
.prose tbody tr:nth-child(even) { background: #fff; }
.table-wrap { overflow-x: auto; }

.article-tags { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.article-tags a {
	font-size: 0.8rem;
	padding: 0.35rem 0.75rem;
	border: 1px solid var(--grey);
	border-radius: var(--radius);
	color: var(--muted);
}
.article-tags a:hover { border-color: var(--gold); color: var(--navy); }

.article-disclaimer {
	max-width: var(--container-narrow);
	margin: 3rem auto 0;
	font-size: 0.85rem;
	color: var(--muted);
	border-top: 1px solid var(--grey);
	padding-top: 1.5rem;
}

/* Related posts */
.related { }
.related h2 { text-align: center; margin-bottom: 2.5rem; }

/* 18. ARCHIVES & LISTS ================================================= */
.page-hero {
	background: var(--navy);
	color: #fff;
	padding-block: var(--section-y-m);
}
.page-hero h1 { color: #fff; }
.page-hero p { color: var(--muted-on-navy); max-width: 60ch; margin-top: 0.75rem; }
.breadcrumbs {
	font-size: 0.82rem;
	color: var(--muted);
	margin-bottom: 1.5rem;
}
.page-hero .breadcrumbs, .page-hero .breadcrumbs a { color: var(--muted-on-navy); }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs .sep { margin: 0 0.5rem; opacity: 0.6; }

.pagination {
	margin-top: 3.5rem;
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}
.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 0.5rem;
	border: 1px solid var(--grey);
	border-radius: var(--radius);
	color: var(--ink);
	font-size: 0.95rem;
}
.pagination .page-numbers.current { background: var(--navy); color: #fff; border-color: var(--navy); }
.pagination a.page-numbers:hover { border-color: var(--gold); color: var(--navy); }

/* 19. COMMENTS ======================================================== */
.comments-area { max-width: var(--container-narrow); margin: 4rem auto 0; }
.comments-title { margin-bottom: 2rem; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list ul.children { list-style: none; margin: 1.5rem 0 0 1.5rem; padding-left: 1.5rem; border-left: 1px solid var(--grey); }
.comment-body { padding: 1.5rem 0; border-bottom: 1px solid var(--grey); }
.comment-meta { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; font-size: 0.9rem; }
.comment-author .fn { font-weight: 600; font-style: normal; color: var(--navy); }
.comment-metadata { color: var(--muted); font-size: 0.82rem; }
.comment-respond { margin-top: 2.5rem; }
.comment-form { display: grid; gap: 1rem; }
.comment-form label { font-size: 0.9rem; font-weight: 500; display: block; margin-bottom: 0.35rem; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	font-family: var(--font-sans);
	font-size: 1rem;
	padding: 0.75rem 0.9rem;
	border: 1px solid var(--grey);
	border-radius: var(--radius);
	background: #fff;
}
.comment-form textarea:focus-visible,
.comment-form input:focus-visible { border-color: var(--gold); outline-offset: 0; }

/* 20. PAGE / 404 / SEARCH ============================================= */
.page-content { max-width: var(--container-narrow); margin-inline: auto; }
.error-404 { text-align: center; max-width: 640px; margin-inline: auto; }
.error-404 .code { font-family: var(--font-serif); font-size: 6rem; color: var(--gold); line-height: 1; margin-bottom: 0.5rem; }
.search-form { display: flex; gap: 0.75rem; max-width: 460px; margin: 2rem auto 0; }
.search-form input[type="search"] {
	flex: 1;
	font-family: var(--font-sans);
	font-size: 1rem;
	padding: 0.85rem 1rem;
	border: 1px solid var(--grey);
	border-radius: var(--radius);
}
.search-form input[type="search"]:focus-visible { border-color: var(--gold); outline-offset: 0; }

.no-results { max-width: var(--container-narrow); margin-inline: auto; text-align: center; }

/* 22. UTILITIES ====================================================== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* 23. RESPONSIVE ===================================================== */
@media (max-width: 1200px) {
	.about-grid { gap: 2rem; }
}

@media (max-width: 900px) {
	:root { --section-y: var(--section-y-m); }
	.article-layout--with-toc { grid-template-columns: 1fr; max-width: var(--container-narrow); }
	.toc { display: none; }               /* sticky TOC on desktop only */
	.post-grid { grid-template-columns: repeat(2, 1fr); }
	.footer-cols { grid-template-columns: 1fr 1fr; }
	.footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
	:root { --base-size: 17px; }
	.hero { min-height: 70vh; padding-block: 4.5rem; }
	.card-grid { grid-template-columns: 1fr; }
	.post-grid { grid-template-columns: 1fr; }
	.about-grid { grid-template-columns: 1fr; text-align: center; justify-items: center; }
	.about-disclaimer { text-align: left; }
	.footer-cols { grid-template-columns: 1fr; gap: 2rem; }
	.step { grid-template-columns: 60px 1fr; gap: 1rem; }
	.step__num { font-size: 2.4rem; }
	.step:not(:last-child)::before { left: 29px; top: 56px; }
	.newsletter-form, .search-form { flex-direction: column; }
	.newsletter-form .btn, .search-form .btn { justify-content: center; }

	/* Mobile navigation */
	.menu-toggle { display: inline-flex; }
	.main-navigation {
		display: none;
		position: absolute;
		top: 100%;
		left: 0; right: 0;
		background: var(--offwhite);
		border-bottom: 1px solid var(--grey);
		padding: 1rem 1.5rem 1.5rem;
	}
	.main-navigation.is-open { display: block; }
	.main-navigation ul { flex-direction: column; align-items: stretch; gap: 0; }
	.main-navigation li { border-bottom: 1px solid var(--grey); }
	.main-navigation li:last-child { border-bottom: 0; }
	.main-navigation a { display: block; padding: 0.85rem 0; }
	.main-navigation a::after { display: none; }
	.footer-bottom { flex-direction: column; align-items: flex-start; }
}
