/* ==========================================================================
   nelsonrp · design system
   Ported from Open Design colors_and_type.css, mapped to WordPress presets.
   ========================================================================== */

/* ─── design tokens ← WP presets ───────────────────────────────────────── */
:root {
	--bg:         var(--wp--preset--color--base, #fbfaf9);
	--surface:    var(--wp--preset--color--surface, #ffffff);
	--fg:         var(--wp--preset--color--ink, #131010);
	--muted:      var(--wp--preset--color--muted, #646464);
	--border:     var(--wp--preset--color--line, #e0e0e0);
	--accent:     var(--wp--preset--color--clay, #e74747);
	--accent-soft: var(--wp--custom--accent-soft, color-mix(in oklch, var(--accent) 14%, transparent));
	--fg-soft:    var(--wp--custom--fg-soft, color-mix(in oklch, var(--fg) 6%, transparent));

	--font-display: var(--wp--preset--font-family--display, "Source Serif 4", Georgia, serif);
	--font-body:    var(--wp--preset--font-family--sans, "Inter", -apple-system, system-ui, sans-serif);
	--font-mono:    var(--font-body);

	--container:  var(--wp--custom--container, 1120px);
	--gutter:     var(--wp--custom--gutter, 32px);
	--measure:    var(--wp--custom--measure, 760px);

	--radius:     10px;
	--radius-lg:  16px;

	--gap-xs: 8px; --gap-sm: 12px; --gap-md: 20px;
	--gap-lg: 32px; --gap-xl: 56px; --gap-2xl: 96px;
}

/* ─── reset & base ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--fg);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.55;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, select, input, textarea { font: inherit; }
button { cursor: pointer; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; }
::selection { background: var(--accent-soft); }

/* ─── layout primitives ─────────────────────────────────────────────────── */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(48px, 8vw, var(--gap-2xl)); }
.section + .section { border-top: 1px solid var(--border); }
.stack { display: flex; flex-direction: column; }
.stack > * + * { margin-top: var(--gap-md); }
.row { display: flex; align-items: center; gap: var(--gap-md); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--gap-md); flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap-lg); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-lg); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap-md); }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--gap-2xl); align-items: start; }
.measure { max-width: var(--measure); margin-inline: auto; }
@media (max-width: 920px) {
	.grid-2, .grid-3, .grid-4, .split { grid-template-columns: 1fr; }
}

/* ─── type helpers ──────────────────────────────────────────────────────── */
.lead { font-size: var(--fs-lead, 19px); line-height: 1.55; color: var(--muted); max-width: 60ch; margin: 0; }
.eyebrow { font-family: var(--font-body); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 0 0 var(--gap-md); }
.meta { font-family: var(--font-body); font-size: 13px; color: var(--muted); }
.num { font-family: var(--font-body); font-variant-numeric: tabular-nums; }
.articles-hero .wp-block-heading { margin-top: 0; margin-bottom: 16px; }
.articles-hero .lead { margin-inline: auto; }

/* ─── focus & motion ────────────────────────────────────────────────────── */
:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 3px solid color-mix(in oklch, var(--accent) 35%, transparent);
	outline-offset: 3px;
	border-radius: calc(var(--radius) * .8);
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		scroll-behavior: auto !important;
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
	}
}

/* ─── chrome: header ────────────────────────────────────────────────────── */
.topnav {
	position: sticky; top: 0; z-index: 100;
	background: color-mix(in oklch, var(--bg) 88%, transparent);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--border);
}
.topnav-inner { display: flex; align-items: center; justify-content: space-between; padding-block: 14px; gap: var(--gap-md); }
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand .wm { font-family: var(--font-body); font-size: 18px; font-weight: 700; color: var(--fg); }
.nav-links { display: flex; align-items: center; gap: var(--gap-lg); }
.nav-links a { font-size: 14px; color: var(--muted); }
.nav-links a:hover { color: var(--fg); }
.nav-links a.is-current:not(.wp-block-button__link),
.nav-links a[aria-current="page"]:not(.wp-block-button__link),
.wp-block-navigation a.is-current:not(.wp-block-button__link),
.wp-block-navigation a[aria-current="page"]:not(.wp-block-button__link) { color: var(--fg); box-shadow: inset 0 -2px 0 var(--accent); }
.menu-btn { display: none; }
/* Mobile/tablet nav: el bloque Navigation nativo gestiona el overlay (overlayMenu). */
.wp-block-navigation__toggle { color: var(--fg); position: relative; z-index: 110; }
.wp-block-navigation__responsive-container { z-index: 1000; }
.wp-block-navigation__responsive-container.is-menu-open {
	position: fixed;
	inset: 0;
	z-index: 1000;
	min-height: 100vh;
	height: 100vh;
	background: var(--bg);
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog {
	background: var(--bg);
	color: var(--fg);
	min-height: 100vh;
	padding: 64px var(--gutter) 32px;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog a {
	font-size: 16px; color: var(--fg);
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog .wp-block-button__link {
	color: var(--surface);
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	padding: 0;
}
.wp-block-navigation__responsive-container-close { color: var(--fg); top: 14px; right: var(--gutter); z-index: 1001; }

/* ─── chrome: footer ────────────────────────────────────────────────────── */
.pagefoot { padding-block: var(--gap-xl); color: var(--muted); font-size: 13px; border-top: 1px solid var(--border); }
.pagefoot a { color: var(--muted); }
.pagefoot a:hover { color: var(--fg); }
.pagefoot .container { gap: 16px !important; }

/* ─── buttons (map WP button block → design) ────────────────────────────── */
.btn, .wp-block-button .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 44px; gap: 8px; padding: 11px 20px;
	border-radius: var(--radius); border: 1px solid transparent;
	font-family: var(--font-body); font-size: 15px; font-weight: 500; letter-spacing: .02em; line-height: 1;
	transition: transform .05s ease, background .15s ease, border-color .15s ease, color .15s ease;
	text-decoration: none;
}
.btn:active, .wp-block-button .wp-block-button__link:active { transform: translateY(1px); }
.btn-primary, .wp-block-button:not(.is-style-outline) .wp-block-button__link {
	background: var(--accent); color: var(--surface); border-color: var(--accent);
}
.btn-primary:hover, .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
	background: color-mix(in oklch, var(--accent) 88%, black);
}
.btn-secondary, .wp-block-button.is-style-secondary .wp-block-button__link, .wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent; color: var(--fg); border-color: var(--border);
}
.btn-secondary:hover, .wp-block-button.is-style-secondary .wp-block-button__link:hover, .wp-block-button.is-style-outline .wp-block-button__link:hover {
	border-color: var(--fg);
}
.wp-block-button.is-style-secondary .wp-block-button__link:hover { color: var(--surface); }
.btn-ghost, .wp-block-button.is-style-ghost .wp-block-button__link {
	background: transparent; color: var(--fg); border-color: transparent; padding-inline: 8px;
}
.btn-ghost:hover, .wp-block-button.is-style-ghost .wp-block-button__link:hover { color: var(--surface); }
.btn-arrow::after, .wp-block-button.is-style-arrow .wp-block-button__link::after {
	content: '→'; transition: transform .15s ease; margin-left: 4px;
}
.btn-arrow:hover::after, .wp-block-button.is-style-arrow .wp-block-button__link:hover::after { transform: translateX(2px); }

/* ─── cards / surfaces ──────────────────────────────────────────────────── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.tile {
	display: flex; flex-direction: column; gap: 14px;
	border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px;
	background: var(--surface); transition: border-color .18s ease, transform .18s ease; height: 100%;
	color: var(--fg);
}
.tile:hover { border-color: var(--fg); transform: translateY(-2px); }
.tile .tile-eyebrow { font-family: var(--font-body); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tile h3 { font-family: var(--font-display); font-weight: 400; font-size: 23px; letter-spacing: 0; margin: 0; }
.tile p { margin: 0; color: var(--muted); font-size: 15px; }
.tile .tile-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: auto; padding-top: 8px; }
.tile .tile-meta span { font-family: var(--font-body); font-size: 12px; color: var(--muted); }
.tag { display: inline-flex; align-items: center; padding: 3px 10px; background: transparent; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; font-size: 11px; font-family: var(--font-body); }

/* ─── feature cell ──────────────────────────────────────────────────────── */
.feature .feature-mark { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 10px; color: var(--fg); margin-bottom: var(--gap-md); }
.feature .feature-mark svg { width: 18px; height: 18px; }
.feature h3 { margin-bottom: 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

/* ─── stat ──────────────────────────────────────────────────────────────── */
.stat .stat-num { font-family: var(--font-body); font-size: clamp(52px, 7vw, 88px); line-height: .95; color: var(--fg); font-weight: 500; }
.stat .stat-label { color: var(--muted); font-size: 14px; margin-top: 8px; max-width: 26ch; }
.stat .stat-unit { font-size: .5em; opacity: .7; margin-left: 2px; }

/* ─── article rows ──────────────────────────────────────────────────────── */
.log-row, .post-card {
	display: grid; grid-template-columns: 176px 1fr 110px; gap: var(--gap-lg);
	padding: 24px 0; border-top: 1px solid var(--border); align-items: start;
}
.post-card { grid-template-columns: 180px 1fr 120px; }
.log-row:last-child, .post-card:last-child { border-bottom: 1px solid var(--border); }
.log-row .meta, .post-card .meta { color: var(--muted); }
.log-row h3, .post-card h3 { font-size: 22px; font-family: var(--font-display); font-weight: 400; letter-spacing: 0; line-height: 1.18; margin: 0; }
.post-card h3 { font-size: 22px; }
.log-row .dek, .post-card .dek { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
/* block-based post-card spacing: title → excerpt +8px, around date */
.post-card .wp-block-post-excerpt { margin: 8px 0 0; }
.post-card .wp-block-post-excerpt__excerpt { margin: 0; }
.post-card .wp-block-post-date { display: block; margin-top: 8px; }
.log-row .pull, .post-card .pull { text-align: right; }
.log-row a:hover h3, .post-card a:hover h3, .post-card:hover h3 { color: var(--accent); }

/* category pills: vertical list, smaller, overflow-safe (no borde/radio en el contenedor) */
.post-card .wp-block-post-terms,
.log-row .wp-block-post-terms { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; max-width: 100%; }
.post-card .wp-block-post-terms a,
.log-row .wp-block-post-terms a {
	display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
	font-family: var(--font-body); font-size: 10px; letter-spacing: .04em; text-transform: none;
	color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 2px 8px;
}
.post-card .wp-block-post-terms__separator,
.log-row .wp-block-post-terms__separator { display: none; }
.post-card .wp-block-post-terms a:hover,
.log-row .wp-block-post-terms a:hover { color: var(--fg); border-color: var(--fg); }
.post-thumb { aspect-ratio: 4 / 3; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; background: var(--surface); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center top; filter: saturate(.96) contrast(.98); }
.wp-block-query-pagination {
	gap: 8px;
	margin-top: 32px;
}
.wp-block-query-pagination-numbers {
	display: inline-flex;
	gap: 8px;
}
.wp-block-query-pagination .page-numbers,
.wp-block-query-pagination-previous,
.wp-block-query-pagination-next {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	min-height: 40px;
	padding: 0 12px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--bg);
	color: var(--muted);
	font-size: 14px;
	line-height: 1;
}
.wp-block-query-pagination .page-numbers.current {
	border-color: var(--accent);
	color: var(--fg);
	background: var(--surface);
}
.wp-block-query-pagination a:hover {
	border-color: var(--fg);
	color: var(--fg);
}
@media (max-width: 760px) {
	.log-row, .post-card { grid-template-columns: 104px 1fr; gap: var(--gap-md); }
	.log-row .pull, .post-card .pull { grid-column: 2; text-align: left; }
	.post-card .wp-block-post-terms, .log-row .wp-block-post-terms { flex-direction: row; flex-wrap: wrap; align-items: flex-start; justify-content: flex-start; }
}
@media (max-width: 520px) {
	.log-row, .post-card { grid-template-columns: 1fr; }
	.log-row .pull, .post-card .pull { grid-column: auto; }
}

/* ─── course modules (accordion via details) ────────────────────────────── */
.module { border-top: 1px solid var(--border); }
.module:last-child { border-bottom: 1px solid var(--border); }
.module summary { display: grid; grid-template-columns: 42px 1fr 24px; gap: 14px; align-items: start; padding: 20px 0; list-style: none; cursor: pointer; }
.module summary::-webkit-details-marker { display: none; }
.module .mnum { font-family: var(--font-body); font-size: 12px; color: var(--accent); padding-top: 5px; }
.module h3 { font-family: var(--font-display); font-weight: 400; font-size: 21px; letter-spacing: 0; margin: 0; }
.module .module-kicker { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.module .chev { font-family: var(--font-body); font-size: 18px; color: var(--muted); transition: transform .18s ease; }
.module[open] .chev { transform: rotate(45deg); color: var(--accent); }
.module-detail { padding: 0 0 22px 56px; color: var(--muted); font-size: 15px; max-width: 76ch; }
.module-detail ul { margin: 12px 0 0; padding-left: 18px; }
.module-detail li { margin: 6px 0; }
@media (max-width: 560px) {
	.module summary { grid-template-columns: 34px 1fr 22px; }
	.module-detail { padding-left: 48px; }
}

/* ─── course art / portrait ─────────────────────────────────────────────── */
.course-art, .portrait-img { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.course-art { aspect-ratio: 4 / 3; }
.portrait-img { aspect-ratio: 1 / 1; }
.course-art img, .portrait-img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; filter: saturate(.96) contrast(.98); }

/* ─── perks ─────────────────────────────────────────────────────────────── */
.perks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.perk { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.perk svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--fg); margin-top: 1px; }
@media (max-width: 520px) { .perks { grid-template-columns: 1fr; } }

/* ─── price panel ───────────────────────────────────────────────────────── */
.price { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; background: var(--surface); }
.price .amount { font-family: var(--font-body); font-size: 44px; font-weight: 500; line-height: 1; }
.price ul { list-style: none; padding: 0; margin: 18px 0; }
.price li { padding: 8px 0; border-top: 1px solid var(--border); font-size: 14px; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; }
.price li:first-child { border-top: 0; }
.price li strong { color: var(--fg); font-family: var(--font-body); font-weight: 500; }

/* ─── service split ─────────────────────────────────────────────────────── */
.svc { display: grid; grid-template-columns: .9fr 1.1fr; gap: var(--gap-xl); align-items: start; }
.svc.rev { grid-template-columns: 1.1fr .9fr; }
.svc-num { font-family: var(--font-body); font-size: 12px; color: var(--accent); letter-spacing: .1em; }
.svc h2 { margin-bottom: 10px; }
.svc ul { list-style: none; padding: 0; margin: 18px 0; display: flex; flex-direction: column; gap: 10px; }
.svc li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; color: var(--muted); font-size: 15px; }
.svc li::before { content: ''; margin-top: 9px; width: 7px; height: 7px; border: 1px solid var(--fg); border-radius: 999px; background: transparent; }
.svc-visual { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); aspect-ratio: 4 / 3; }
.svc-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center top; filter: saturate(.96) contrast(.98); }
@media (max-width: 920px) { .svc, .svc.rev { grid-template-columns: 1fr; } }

/* ─── hero ──────────────────────────────────────────────────────────────── */
.hero { padding-block: clamp(60px, 8vw, 110px); }
.hero-home { padding-block: clamp(72px, 11vw, 150px); }
.hero-center { text-align: center; max-width: 920px; margin-inline: auto; }
.hero h1, .hero-home h1 { margin-bottom: var(--gap-md); }
.hero .lead, .hero-home .lead { margin-bottom: var(--gap-lg); margin-inline: auto; }
.hero-cta { display: inline-flex; gap: var(--gap-sm); flex-wrap: wrap; justify-content: center; }
.hero .wp-block-buttons, .hero-home .wp-block-buttons { gap: 12px; }

/* ─── cta strip: 12px entre elementos ───────────────────────────────────── */
.cta-section .container { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cta-section .container > * { margin: 0; max-width: 620px; }

/* ─── contact grid ──────────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--gap-xl); align-items: start; }
@media (max-width: 920px) { .contact-grid { grid-template-columns: 1fr; } }

/* ─── detail list (course sessions) ─────────────────────────────────────── */
.svc-list-detail { list-style: none; padding: 0; margin: 0 0 var(--gap-lg); display: flex; flex-direction: column; gap: 14px; }
.svc-list-detail li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.svc-list-detail li:last-child { border-bottom: 0; }
.svc-list-detail strong { font-family: var(--font-body); font-weight: 500; text-align: right; }

/* ─── image placeholder ─────────────────────────────────────────────────── */
.ph-img { background: linear-gradient(135deg, var(--accent-soft), var(--fg-soft)), var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); aspect-ratio: 16 / 10; display: grid; place-items: center; color: var(--muted); font-family: var(--font-body); font-size: 11px; letter-spacing: .06em; text-align: center; padding: 16px; }
.ph-img.square { aspect-ratio: 1 / 1; }
.ph-img.portrait { aspect-ratio: 3 / 4; }

/* ─── section eyebrow heading row ───────────────────────────────────────── */
.section-head { display: flex; align-items: center; justify-content: space-between; gap: var(--gap-md); flex-wrap: wrap; margin-bottom: 36px; }
.section-head .eyebrow { margin: 0; }

/* ─── approach / bio grid ───────────────────────────────────────────────── */
.approach-grid { display: grid; grid-template-columns: minmax(220px, .85fr) minmax(0, 2fr); column-gap: var(--gap-xl); row-gap: 20px; align-items: start; }
.approach-grid > :not(.portrait-img) { grid-column: 2; }
.approach-grid .portrait-img { grid-column: 1; grid-row: 1 / span 6; width: 100%; max-width: 360px; margin: 0; }
.approach-grid .eyebrow { margin: 0; }
.approach-grid .lead { margin-top: 0; }
.about-copy { display: flex; flex-direction: column; gap: 16px; }
.about-copy > * { margin: 0; }
.about-copy .wp-block-buttons { gap: 12px; margin-top: 0 !important; }
@media (max-width: 680px) {
	.approach-grid { grid-template-columns: 1fr; gap: 20px; }
	.approach-grid > :not(.portrait-img), .approach-grid .portrait-img { grid-column: 1; grid-row: auto; }
}

/* ─── contact form ──────────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field-hint { font-size: 13px; color: var(--muted); }
.input, .textarea {
	width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius);
	background: var(--surface); color: var(--fg); font: inherit; font-size: 15px;
}
.input:focus, .textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.input:invalid:not(:placeholder-shown), .textarea:invalid:not(:placeholder-shown) { border-color: var(--accent); }
.textarea { min-height: 120px; resize: vertical; line-height: 1.55; }

/* ─── prose (article body) ──────────────────────────────────────────────── */
.prose, .wp-block-post-content.is-style-measure {
	font-family: var(--font-body); font-size: clamp(17px, 1.35vw, 19px); line-height: 1.74; color: var(--fg);
	max-width: var(--measure); margin-inline: auto;
}
.prose > * + * { margin-top: 1.3em; }
.prose h2 { font-size: clamp(26px, 2.6vw, 34px); margin-top: 1.8em; font-family: var(--font-display); font-weight: 400; }
.prose h3 { font-family: var(--font-display); font-weight: 400; font-size: 22px; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: .4em 0; }
.prose li { margin: .5em 0; }
.prose strong { font-weight: 600; }
.prose a { color: var(--fg); border-bottom: 1px solid var(--accent); }
.prose a:hover { color: var(--accent); }
.prose blockquote { margin: 1.6em 0; padding: 0 0 0 22px; border-left: 2px solid var(--accent); font-style: italic; color: var(--muted); }
.prose img { border-radius: var(--radius-lg); border: 1px solid var(--border); }

/* ─── Gutenberg block styles ────────────────────────────────────────────── */
.wp-block-group.is-style-container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.wp-block-group.is-style-section { padding-block: clamp(48px, 8vw, var(--gap-2xl)); }
.wp-block-group.is-style-section + .wp-block-group.is-style-section { border-top: 1px solid var(--border); }
.alignfull .alignwide, .alignwide { max-width: var(--container); }
.has-clay-background-color { color: var(--surface); }

/* Eyebrow utility via paragraph + className */
.is-style-eyebrow, p.eyebrow { font-family: var(--font-body); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 0 0 var(--gap-md); }

/* ─── link arrow utility ────────────────────────────────────────────────── */
.link-more { font-size: 14px; color: var(--fg); border-bottom: 1px solid var(--border); padding-bottom: 1px; }
.link-more:hover { color: var(--accent); border-color: var(--accent); }

/* ─── chips filter (category nav) ───────────────────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 40px; }
.chip { min-height: 44px; padding: 7px 14px; border: 1px solid var(--border); border-radius: 999px; background: transparent; color: var(--muted); font-size: 13px; letter-spacing: .02em; display: inline-flex; align-items: center; transition: all .15s ease; text-decoration: none; }
.chip:hover { border-color: var(--fg); color: var(--fg); }
.chip.active { background: var(--fg); color: var(--surface); border-color: var(--fg); }

/* ─── article head (single) ─────────────────────────────────────────────── */
.article-head { text-align: center; padding-top: clamp(40px, 6vw, 72px); }
.article-head .eyebrow { display: inline-block; }
.article-head h1 { margin: 6px auto 22px; max-width: 24ch; }
.article-head .lead { margin-inline: auto; max-width: 54ch; }
.article-head .wp-block-post-terms { font-family: var(--font-body); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 0 0 var(--gap-md); }
.article-head .wp-block-post-terms a { color: var(--accent); }
.byline { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 28px; flex-wrap: wrap; color: var(--muted); font-family: var(--font-body); font-size: 13px; }
.byline .wp-block-post-author__avatar img { border-radius: 999px; border: 1px solid var(--border); width: 34px; height: 34px; object-fit: cover; }
.byline .sep { opacity: .5; }
.cover { margin-top: clamp(32px, 5vw, 56px); }
.cover .wp-block-post-featured-image img { border: 1px solid var(--border); border-radius: var(--radius-lg); }

/* ─── author card ───────────────────────────────────────────────────────── */
.author-card { display: flex; gap: 20px; align-items: flex-start; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; background: var(--surface); }
.author-card .avatar { width: 56px; height: 56px; border-radius: 999px; border: 1px solid var(--border); flex: 0 0 auto; overflow: hidden; }
.author-card .avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.author-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 18px; margin: 0 0 6px; }
.author-card p { margin: 0; color: var(--muted); font-size: 14px; }

/* ─── related rows ──────────────────────────────────────────────────────── */
.related-row { display: grid; grid-template-columns: 118px 1fr 92px; gap: var(--gap-lg); padding: 22px 0; border-top: 1px solid var(--border); align-items: baseline; text-decoration: none; color: var(--fg); }
.related-list .related-row:last-child { border-bottom: 1px solid var(--border); }
.related-row h3 { font-family: var(--font-display); font-weight: 400; font-size: 19px; letter-spacing: 0; margin: 0; }
.related-row:hover h3 { color: var(--accent); }
.related-row .related-meta { font-family: var(--font-body); font-size: 13px; color: var(--muted); }
.related-row .related-tag { font-family: var(--font-body); font-size: 11px; color: var(--muted); text-align: right; }
@media (max-width: 620px) {
	.related-row { grid-template-columns: 1fr; gap: 6px; }
	.related-row .related-tag { text-align: left; }
}

/* ─── wide content override for article rows ────────────────────────────── */
.wp-block-post-content .alignwide { max-width: var(--container); }

/* ─── dark mode (warm editorial, prefers-color-scheme) ──────────────────── */
@media (prefers-color-scheme: dark) {
	:root {
		--bg:         #1a1714;
		--surface:    #242019;
		--fg:         #f1ece3;
		--muted:      #a39c91;
		--border:     #38322a;
		--accent:     #ec5a48;
		--accent-soft: color-mix(in oklch, var(--accent) 18%, transparent);
		--fg-soft:    color-mix(in oklch, var(--fg) 8%, transparent);
	}
	img { opacity: .98; }
	.post-thumb img, .course-art img, .svc-visual img, .portrait-img img {
		filter: saturate(.85) contrast(.92) brightness(.92);
	}
	.wpcf7-form input[type="text"], .wpcf7-form input[type="email"],
	.wpcf7-form select, .wpcf7-form textarea { color-scheme: dark; }
}

/* ─── skip link ─────────────────────────────────────────────────────────── */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; padding: 12px 20px; background: var(--fg); color: var(--bg); border-radius: 0 0 10px 0; font-family: var(--font-body); font-size: 14px; }
.skip-link:focus { left: 0; outline: 3px solid var(--accent); outline-offset: 0; }
