/* Crea tu Foro by Pencil: Plaza digital */

@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/bricolage-grotesque-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/bricolage-grotesque-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/figtree-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/figtree-latin-600-normal.woff2") format("woff2"); }

:root {
	--bg: #F4F3EE;
	--surface: #FFFFFF;
	--ink: #14281F;
	--muted: #4E5E56;
	--line: #D9DCD2;
	--accent: #E8590C;
	--accent-hover: #C94A07;
	--accent-ink: #FFFFFF;
	--deep: #14281F;
	--mint: #DDEBDF;
	--font-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
	--font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
	--r-sm: 8px;
	--r-md: 14px;
	--r-lg: 28px;
	--r-pill: 999px;
	--s-xs: 8px;
	--s-sm: 16px;
	--s-md: 24px;
	--s-lg: 48px;
	--s-xl: clamp(64px, 9vw, 112px);
	--container: 1200px;
	--gutter: clamp(20px, 4vw, 40px);
	--shadow-ink: 6px 6px 0 var(--ink);
}

/* Base (safe global resets only) */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
:where(h1, h2, h3, h4, p, ul, ol, figure, blockquote) { margin: 0; }
:where(h1, h2, h3, h4) { font-family: var(--font-display); font-weight: 800; line-height: 1.08; letter-spacing: -0.015em; }
:where(img) { max-width: 100%; height: auto; }
:where(a) { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.ctf-container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.ctf-sr { position: absolute; 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: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--r-pill); text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 12px; }

/* Shared elements */
.ctf-eyebrow { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s-sm); }
.section-title { font-size: clamp(1.9rem, 3.6vw, 2.9rem); max-width: 22ch; }
.pencil-richtext p + p, .pencil-richtext p + ul, .pencil-richtext ul + p { margin-top: 0.8em; }
.pencil-richtext a { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.pencil-richtext ul, .pencil-richtext ol { padding-left: 1.2em; }
.pencil-richtext li + li { margin-top: 0.35em; }

.site-btn {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 14px 26px; border-radius: var(--r-pill);
	font-family: var(--font-body); font-weight: 600; font-size: 1rem; line-height: 1.2;
	text-decoration: none; white-space: nowrap;
	border: 2px solid transparent; cursor: pointer;
	transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.site-btn:active { transform: translateY(2px); }
.site-btn--primary { background: var(--accent); color: var(--accent-ink); }
.site-btn--primary:hover { background: var(--accent-hover); }
.site-btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.site-btn--ghost:hover { background: var(--ink); color: var(--bg); }
.site-btn--light { background: var(--bg); color: var(--ink); }
.site-btn--light:hover { background: var(--surface); }
.site-btn--sm { padding: 10px 20px; font-size: 0.95rem; }
.site-btn__icon { display: inline-flex; width: 20px; height: 20px; flex: none; }
.site-btn__icon::after { content: ""; width: 100%; height: 100%; background-color: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform 0.15s ease; }
.site-btn:hover .site-btn__icon::after, .ctf-link:hover .site-btn__icon::after { transform: translateX(3px); }

.ctf-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.ctf-link--back::before { content: "\2190"; text-decoration: none; display: inline-block; margin-right: 2px; }

.ctf-bubble { background: var(--surface); border-radius: var(--r-lg) var(--r-lg) var(--r-lg) 6px; padding: clamp(24px, 4vw, 44px); border: 1px solid var(--line); }

/* Fixed image frames: the slot never takes the source image's dimensions */
.ctf-frame { position: relative; overflow: hidden; border-radius: var(--r-md); background: var(--mint); }
.ctf-frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.ctf-frame .pencil-managed-region { height: 100%; }
.ctf-frame--hero { aspect-ratio: 5 / 4; border-radius: var(--r-lg) var(--r-lg) 6px var(--r-lg); box-shadow: var(--shadow-ink); border: 2px solid var(--ink); }
.ctf-frame--path { aspect-ratio: 4 / 3; }
.ctf-frame--dir { aspect-ratio: 1 / 1; border: 2px solid var(--ink); box-shadow: var(--shadow-ink); border-radius: var(--r-lg) 6px var(--r-lg) var(--r-lg); }
.ctf-frame--card { aspect-ratio: 3 / 2; display: block; }
.ctf-frame--wide { aspect-ratio: 16 / 9; }
.ctf-frame--page, .ctf-frame--topic { aspect-ratio: 4 / 3; border: 2px solid var(--ink); box-shadow: var(--shadow-ink); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(244, 243, 238, 0.92); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid transparent; transition: border-color 0.2s ease; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.admin-bar .site-header { top: 32px; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-md); min-height: 74px; }
.site-logo { white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; }
.site-logo__mark { width: 36px; height: 36px; flex: none; display: block; border-radius: 9px; overflow: hidden; }
.site-logo__mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.site-logo__accent { color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: var(--s-md); }
.site-nav__menu { list-style: none; padding: 0; display: flex; gap: 6px; }
.site-nav__menu a { display: block; white-space: nowrap; padding: 8px 14px; border-radius: var(--r-pill); text-decoration: none; font-weight: 600; font-size: 0.98rem; }
.site-nav__menu a:hover, .site-nav__menu .current-menu-item > a, .site-nav__menu .current_page_parent > a, .site-nav__menu .current-page-ancestor > a { background: var(--mint); }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); padding: 8px; cursor: pointer; border-radius: var(--r-sm); }
.nav-toggle__close { display: none; }

/* Hero */
.hero { padding-block: clamp(40px, 7vw, 88px) var(--s-xl); }
.hero__grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__title { font-size: clamp(2.6rem, 5.6vw, 4.6rem); line-height: 1.02; letter-spacing: -0.03em; max-width: 13ch; }
.hero__title-accent { color: var(--accent); }
.hero__lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 44ch; margin-top: var(--s-md); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__visual { position: relative; margin-right: calc(var(--gutter) * -0.5); }
.hero__visual::before { content: ""; position: absolute; left: -26px; top: 18%; width: 68px; height: 56px; background: var(--accent); border-radius: 20px 20px 20px 4px; z-index: 1; }

/* Story */
.story { padding-bottom: var(--s-xl); }
.story__grid { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.story__number { font-family: var(--font-display); font-weight: 800; font-size: clamp(5rem, 14vw, 11rem); line-height: 0.9; letter-spacing: -0.05em; color: var(--ink); }
.story__bubble { max-width: 640px; background: var(--mint); border-color: transparent; }
.story__title { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-bottom: var(--s-sm); }
.story__text { color: var(--ink); }

/* Paths (bento) */
.paths { padding-block: var(--s-xl); background: var(--surface); border-block: 1px solid var(--line); }
.paths__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; margin-top: var(--s-lg); }
.path { border-radius: var(--r-md); padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; gap: 12px; }
.path__title { font-size: clamp(1.3rem, 2vw, 1.6rem); }
.path__text { color: inherit; opacity: 0.92; flex: 1; }
.path--feature { grid-column: span 6; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; background: var(--bg); }
.path--feature .path__body { display: flex; flex-direction: column; gap: 14px; }
.path--feature .path__title { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.path--mint { grid-column: span 2; background: var(--mint); }
.path--white { grid-column: span 2; background: var(--surface); border: 2px solid var(--ink); }
.path--deep { grid-column: span 2; background: var(--deep); color: var(--bg); }
.path--deep .ctf-link { color: var(--bg); }

/* Steps */
.steps { padding-block: var(--s-xl); }
.steps__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.steps__intro { position: sticky; top: 110px; display: flex; flex-direction: column; gap: var(--s-md); align-items: flex-start; }
.steps__text { color: var(--muted); max-width: 40ch; }
.steps__list { list-style: none; padding: 0; counter-reset: ctfstep; display: grid; gap: 0; }
.steps__item { counter-increment: ctfstep; display: grid; grid-template-columns: 64px 1fr; column-gap: 20px; padding-block: 26px; border-top: 1px solid var(--line); }
.steps__item:last-child { border-bottom: 1px solid var(--line); }
.steps__item::before { content: counter(ctfstep); grid-row: span 2; width: 52px; height: 46px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; background: var(--ink); color: var(--bg); border-radius: 16px 16px 16px 4px; }
.steps__item:nth-child(2)::before { background: var(--accent); }
.steps__item-title { font-size: 1.35rem; margin-bottom: 6px; }
.steps__item-text { color: var(--muted); }

/* Latest guides */
.latest { padding-block: var(--s-xl); background: var(--mint); }
.latest--related { background: var(--surface); border-top: 1px solid var(--line); }
.latest__head { display: flex; justify-content: space-between; align-items: end; gap: var(--s-md); flex-wrap: wrap; margin-bottom: var(--s-lg); }
.latest__grid { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: auto auto; gap: 22px; }
.latest__grid .guide-card--featured { grid-row: span 2; }
.latest__grid--two { grid-template-columns: 1fr 1fr; margin-top: var(--s-lg); }
.guide-card { background: var(--surface); border-radius: var(--r-md); overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); }
.latest__grid .guide-card:not(.guide-card--featured) { flex-direction: row; }
.latest__grid .guide-card:not(.guide-card--featured) .guide-card__media { flex: 0 0 42%; aspect-ratio: auto; min-height: 100%; }
.guide-card__media { border-radius: 0; }
.guide-card__media .pencil-managed-region, .guide-card__img-wrap { height: 100%; }
.guide-card__placeholder { display: block; width: 100%; height: 100%; background: var(--mint); }
.guide-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; }
.guide-card__meta { font-size: 0.86rem; color: var(--muted); }
.guide-card__title { font-size: 1.3rem; line-height: 1.15; }
.guide-card--featured .guide-card__title { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.guide-card__title a { text-decoration: none; }
.guide-card__title a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.guide-card__excerpt { color: var(--muted); font-size: 0.98rem; }

/* Directory teaser */
.dir-teaser { padding-block: var(--s-xl); }
.dir-teaser__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.dir-teaser__copy { display: flex; flex-direction: column; gap: var(--s-md); align-items: flex-start; }
.dir-teaser__text { color: var(--muted); max-width: 46ch; }
.topic-pills { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.topic-pill { display: inline-block; padding: 9px 18px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.topic-pill:hover { border-color: var(--ink); }

/* FAQ */
.faq { padding-block: var(--s-xl); background: var(--surface); border-top: 1px solid var(--line); }
.faq__grid { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: clamp(32px, 6vw, 88px); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item:first-child { border-top: 1px solid var(--line); }
.faq__q { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; line-height: 1.25; }
.faq__q::-webkit-details-marker { display: none; }
.faq__icon { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--bg); transition: transform 0.2s ease, background-color 0.2s ease; }
.faq__item[open] .faq__icon { transform: rotate(45deg); background: var(--accent); color: var(--accent-ink); }
.faq__a { padding: 0 56px 24px 0; color: var(--muted); max-width: 62ch; }

/* CTA band */
.cta-band { background: var(--deep); color: var(--bg); padding-block: clamp(56px, 8vw, 96px); }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-lg); flex-wrap: wrap; }
.cta-band__title { font-size: clamp(2rem, 4vw, 3.2rem); max-width: 18ch; }

/* Footer */
.site-footer { background: var(--deep); color: var(--bg); padding-top: var(--s-lg); border-top: 1px solid rgba(244, 243, 238, 0.14); }
.cta-band + .site-footer { padding-top: 0; }
.cta-band + .site-footer .site-footer__inner { border-top: 1px solid rgba(244, 243, 238, 0.14); padding-top: var(--s-lg); }
.site-footer__inner { display: grid; grid-template-columns: 1.3fr 0.7fr 1fr; gap: var(--s-lg); padding-bottom: var(--s-lg); }
.site-footer__logo { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; margin-bottom: 12px; }
.site-footer__about { color: rgba(244, 243, 238, 0.78); max-width: 42ch; font-size: 0.98rem; }
.site-footer__heading { font-weight: 600; margin-bottom: 14px; }
.site-footer__menu { list-style: none; padding: 0; display: grid; gap: 8px; }
.site-footer__menu a { color: rgba(244, 243, 238, 0.82); text-decoration: none; }
.site-footer__menu a:hover { color: var(--bg); text-decoration: underline; text-decoration-color: var(--accent); }
.site-footer__bubble { background: rgba(244, 243, 238, 0.08); border-radius: var(--r-lg) var(--r-lg) var(--r-lg) 6px; padding: 28px; align-self: start; }
.site-footer__bubble .site-footer__heading { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.15; }
.site-footer__legal { border-top: 1px solid rgba(244, 243, 238, 0.14); padding-block: 22px; font-size: 0.88rem; color: rgba(244, 243, 238, 0.66); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px; }
.site-footer__legal-menu { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer__legal-menu a { color: rgba(244, 243, 238, 0.75); text-decoration: none; }
.site-footer__legal-menu a:hover { color: var(--bg); text-decoration: underline; text-decoration-color: var(--accent); }

/* Page hero */
.page-hero { padding-block: clamp(40px, 6vw, 80px); }
.page-hero--compact { padding-bottom: clamp(32px, 4vw, 56px); }
.page-hero__split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.page-hero__split--solo { grid-template-columns: 1fr; }
.page-hero__title { font-size: clamp(2.3rem, 4.8vw, 3.8rem); line-height: 1.04; letter-spacing: -0.025em; max-width: 18ch; }
.page-hero__lead { font-size: 1.18rem; color: var(--muted); max-width: 52ch; margin-top: var(--s-sm); }
.article__back { margin-bottom: var(--s-sm); font-size: 0.95rem; }

/* Directory hub */
.topics { padding-bottom: var(--s-xl); }
.topics__grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.topic-tile { grid-column: span 2; }
.topic-tile:nth-child(1), .topic-tile:nth-child(2) { grid-column: span 3; }
.topic-tile__link { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-height: 180px; height: 100%; padding: 26px; border-radius: var(--r-md); text-decoration: none; position: relative; transition: transform 0.15s ease; }
.topic-tile__link:hover { transform: translateY(-3px); }
.topic-tile--0 .topic-tile__link { background: var(--deep); color: var(--bg); }
.topic-tile--1 .topic-tile__link { background: var(--accent); color: var(--accent-ink); }
.topic-tile--2 .topic-tile__link { background: var(--mint); }
.topic-tile--3 .topic-tile__link { background: var(--surface); border: 2px solid var(--ink); }
.topic-tile__name { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.05; }
.topic-tile__count { font-weight: 600; opacity: 0.85; }
.topic-tile__arrow { position: absolute; right: 22px; bottom: 22px; }
.dir-note { padding-block: var(--s-xl); background: var(--surface); border-top: 1px solid var(--line); }
.dir-note__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.dir-note__bubble { background: var(--mint); border-color: transparent; display: flex; flex-direction: column; gap: var(--s-sm); }
.dir-note__side { display: flex; flex-direction: column; gap: var(--s-sm); align-items: flex-start; padding-top: 12px; }
.dir-note__text { color: var(--muted); max-width: 48ch; }
.dir-note .section-title { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }

/* Topic page */
.forum-list { padding-bottom: var(--s-xl); }
.forum-list__grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.forum-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 26px 28px; display: flex; flex-direction: column; gap: 10px; }
.forum-card:first-child { grid-column: span 2; background: var(--deep); color: var(--bg); border-color: var(--deep); }
.forum-card:first-child .forum-card__link { color: var(--bg); }
.forum-card:first-child .forum-card__desc { color: rgba(244, 243, 238, 0.82); }
.forum-card__name { font-size: 1.5rem; }
.forum-card__desc { color: var(--muted); }
.forum-card__link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.topic-tips { padding-block: var(--s-xl); background: var(--mint); }
.topic-tips__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 72px); }
.topic-tips__text { font-size: 1.1rem; }
.topic-tips__text li::marker { color: var(--accent); }
.empty-state { display: flex; flex-direction: column; gap: var(--s-sm); align-items: flex-start; max-width: 720px; }
.empty-state__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.1; }
.empty-state__text { color: var(--muted); }

/* Guides list */
.guides-list { padding-bottom: var(--s-xl); }
.guides-list__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.guides-list__grid .guide-card--featured { grid-column: span 2; display: grid; grid-template-columns: 1.2fr 1fr; }
.guides-list__grid .guide-card--featured .guide-card__media { aspect-ratio: auto; min-height: 340px; }
.guides-list__grid .guide-card--featured .guide-card__body { justify-content: center; padding: clamp(24px, 4vw, 44px); }
.ctf-pagination { margin-top: var(--s-lg); display: flex; gap: 8px; flex-wrap: wrap; }
.ctf-pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.ctf-pagination .current { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Article */
.article__head { padding-top: clamp(40px, 6vw, 72px); padding-bottom: var(--s-md); }
.article__title { font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.04; letter-spacing: -0.025em; max-width: 20ch; }
.article__meta { margin-top: var(--s-sm); color: var(--muted); font-size: 0.95rem; }
.article__cover { margin-bottom: var(--s-lg); border-radius: var(--r-lg); }
.article__layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 6vw, 80px); padding-bottom: var(--s-xl); }
.article__layout--page { grid-template-columns: minmax(0, 760px); }
.article__aside { position: relative; }
.article__note { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; background: var(--mint); border-color: transparent; }
.article__note-title { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; line-height: 1.15; }
.article__note-text { color: var(--muted); font-size: 0.98rem; }

.ctf-prose { font-size: 1.12rem; line-height: 1.7; max-width: 68ch; }
.ctf-prose > * + * { margin-top: 1.1em; }
.ctf-prose h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-top: 1.8em; }
.ctf-prose h3 { font-size: 1.35rem; margin-top: 1.5em; }
.ctf-prose a { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.ctf-prose ul, .ctf-prose ol { padding-left: 1.3em; }
.ctf-prose li + li { margin-top: 0.4em; }
.ctf-prose li::marker { color: var(--accent); font-weight: 700; }
.ctf-prose blockquote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg) var(--r-lg) var(--r-lg) 6px; padding: 24px 28px; font-size: 1.15rem; }
.ctf-prose table { width: 100%; border-collapse: collapse; font-size: 0.98rem; background: var(--surface); border-radius: var(--r-md); overflow: hidden; }
.ctf-prose th, .ctf-prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ctf-prose th { background: var(--ink); color: var(--bg); font-weight: 600; }
.ctf-prose .ctf-callout { background: var(--mint); border-radius: var(--r-lg) var(--r-lg) var(--r-lg) 6px; padding: 22px 26px; }

/* 404 / 410 */
.not-found__inner { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; min-height: 52vh; }
.not-found__code { font-family: var(--font-display); font-weight: 800; font-size: clamp(6rem, 18vw, 13rem); line-height: 0.9; color: var(--accent); letter-spacing: -0.05em; }
.not-found__bubble { display: flex; flex-direction: column; gap: var(--s-sm); }

/* Reveal (only when JS runs, and never with reduced motion) */
.ctf-js .ctf-reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.ctf-js .ctf-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.ctf-js .ctf-reveal { opacity: 1; transform: none; transition: none; }
	.site-btn, .topic-tile__link, .faq__icon { transition: none; }
}

/* Responsive */
@media (max-width: 1024px) {
	.site-footer__inner { grid-template-columns: 1fr 1fr; }
	.site-footer__bubble { grid-column: span 2; }
	.article__layout { grid-template-columns: 1fr; }
	.article__note { position: static; }
}

@media (max-width: 1080px) {
	.nav-toggle { display: inline-flex; }
	.site-nav { position: fixed; inset: 74px 0 auto 0; background: var(--bg); flex-direction: column; align-items: stretch; gap: var(--s-sm); padding: var(--s-md) var(--gutter) var(--s-lg); border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s; }
	.admin-bar .site-nav { inset: 120px 0 auto 0; }
	.site-nav.is-open { opacity: 1; transform: none; visibility: visible; }
	.site-nav__menu { flex-direction: column; gap: 2px; }
	.site-nav__menu a { padding: 12px 14px; font-size: 1.1rem; }
	.site-nav .site-btn { justify-content: center; }
	.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
	.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: inline; }

}

@media (max-width: 900px) {
	.hero__grid, .page-hero__split, .steps__grid, .dir-teaser__grid, .faq__grid, .dir-note__grid, .topic-tips__grid { grid-template-columns: 1fr; }
	.hero__visual { margin-right: 0; max-width: 560px; }
	.hero__visual::before { left: -10px; width: 52px; height: 44px; }
	.steps__intro { position: static; }
	.story__grid { grid-template-columns: 1fr; }
	.path--feature { grid-template-columns: 1fr; }
	.path--mint, .path--white, .path--deep { grid-column: span 6; }
	.latest__grid, .latest__grid--two { grid-template-columns: 1fr; }
	.latest__grid .guide-card--featured { grid-row: auto; }
	.latest__grid .guide-card:not(.guide-card--featured) { flex-direction: column; }
	.latest__grid .guide-card:not(.guide-card--featured) .guide-card__media { flex: none; aspect-ratio: 3 / 2; }
	.dir-teaser__grid .ctf-frame--dir { max-width: 420px; }
	.topics__grid { grid-template-columns: 1fr 1fr; }
	.topic-tile, .topic-tile:nth-child(1), .topic-tile:nth-child(2) { grid-column: span 1; }
	.topic-tile:nth-child(1) { grid-column: span 2; }
	.guides-list__grid { grid-template-columns: 1fr; }
	.guides-list__grid .guide-card--featured { grid-column: auto; grid-template-columns: 1fr; }
	.guides-list__grid .guide-card--featured .guide-card__media { aspect-ratio: 3 / 2; min-height: 0; }
	.forum-list__grid { grid-template-columns: 1fr; }
	.forum-card:first-child { grid-column: auto; }
	.not-found__inner { grid-template-columns: 1fr; }
	.faq__a { padding-right: 0; }
}

@media (max-width: 600px) {
	body { font-size: 1rem; }
	.site-footer__inner { grid-template-columns: 1fr; }
	.site-footer__bubble { grid-column: auto; }
	.topics__grid { grid-template-columns: 1fr; }
	.topic-tile:nth-child(1) { grid-column: auto; }
	.hero__actions .site-btn { width: 100%; justify-content: center; }
	.cta-band__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
}
@media (max-width: 600px) {
	.admin-bar .site-header { top: 0; }
}

/* Answer box, table of contents, editorial box (AEO / GEO) */
.article__main { min-width: 0; }
.answer-box { background: var(--mint); border-radius: var(--r-lg) var(--r-lg) var(--r-lg) 6px; padding: 22px 26px; margin-bottom: 28px; max-width: 68ch; }
.answer-box__title { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-hover); margin-bottom: 6px; }
.answer-box__text p { font-size: 1.12rem; line-height: 1.6; margin: 0; }
.ctf-toc { max-width: 68ch; }
.ctf-toc--inline { margin-bottom: 32px; }
.ctf-toc__box { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.ctf-toc__box > summary { list-style: none; cursor: pointer; padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; }
.ctf-toc__box > summary::-webkit-details-marker { display: none; }
.ctf-toc__box > summary::after { content: "+"; font-family: var(--font-display); font-size: 1.4rem; line-height: 1; color: var(--accent); }
.ctf-toc__box[open] > summary::after { content: "\2212"; }
.ctf-toc__box .ctf-toc__region { padding: 0 20px 18px; }
.ctf-toc__title { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; line-height: 1.2; margin: 0; }
.ctf-toc--aside .ctf-toc__title { margin-bottom: 12px; }
.ctf-toc__list { list-style: none; counter-reset: ctftoc; padding: 0; margin: 0; display: grid; gap: 2px; }
.ctf-toc__list li { counter-increment: ctftoc; }
.ctf-toc__list a { display: grid; grid-template-columns: 26px 1fr; gap: 4px; padding: 6px 8px; border-radius: var(--r-sm); text-decoration: none; color: var(--muted); font-size: 0.95rem; line-height: 1.35; }
.ctf-toc__list a::before { content: counter(ctftoc) "."; font-weight: 600; color: var(--ink); }
.ctf-toc__list a:hover, .ctf-toc__list a.is-active { background: var(--mint); color: var(--ink); }
.ctf-toc--aside { border-left: 2px solid var(--line); padding-left: 14px; }
.article__aside-inner { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 24px; }
.article__aside-inner .article__note { position: static; }
.ctf-prose h2[id], .ctf-prose h3[id] { scroll-margin-top: 100px; }
.editorial-box { margin-top: 48px; padding: 24px 26px; border-top: 3px solid var(--ink); background: var(--surface); border-radius: 0 0 var(--r-md) var(--r-md); max-width: 68ch; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.editorial-box__title { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; margin: 0; }
.editorial-box__text { color: var(--muted); }
.editorial-box__meta { font-size: 0.9rem; color: var(--muted); margin: 0; }
@media (min-width: 1025px) {
	.article__layout:not(.article__layout--page) .ctf-toc--inline { display: none; }
}
@media (max-width: 1024px) {
	.ctf-toc--aside { display: none; }
	.article__aside-inner { position: static; }
}

/* Gravity Forms */
.gform_wrapper.gravity-theme { margin: 1.5rem 0 2.5rem; font-family: inherit; }
.entry-content .gform_wrapper, .dir-suggest__form .gform_wrapper { background: #fff; border: 1px solid #D9DCD2; border-radius: 22px; padding: clamp(1.25rem, 3vw, 2rem); }
.gform_wrapper.gravity-theme .gfield_label, .gform_wrapper.gravity-theme legend.gfield_label { font-family: 'Figtree', sans-serif; font-weight: 600; font-size: 0.95rem; color: #14281F; margin-bottom: 0.4rem; }
.gform_wrapper.gravity-theme .gfield_required { color: #E8590C; }
.gform_wrapper.gravity-theme input[type=text], .gform_wrapper.gravity-theme input[type=email], .gform_wrapper.gravity-theme input[type=url], .gform_wrapper.gravity-theme select, .gform_wrapper.gravity-theme textarea { width: 100%; font: inherit; font-size: 1rem; color: #14281F; background: #F4F3EE; border: 1.5px solid #D9DCD2; border-radius: 12px; padding: 0.75rem 0.9rem; transition: border-color .2s, background .2s; }
.gform_wrapper.gravity-theme input:focus, .gform_wrapper.gravity-theme select:focus, .gform_wrapper.gravity-theme textarea:focus { outline: none; border-color: #E8590C; background: #fff; box-shadow: 0 0 0 3px rgba(232,89,12,.15); }
.gform_wrapper.gravity-theme .gfield_description { color: #4E5E56; font-size: 0.88rem; padding-top: 0.4rem; }
.gform_wrapper.gravity-theme .gfield_description a { color: #C94A07; }
.gform_wrapper.gravity-theme .ginput_container_consent { display: flex; gap: 0.6rem; align-items: flex-start; }
.gform_wrapper.gravity-theme .ginput_container_consent input { accent-color: #E8590C; width: 1.1rem; height: 1.1rem; margin-top: 0.15rem; }
.gform_wrapper.gravity-theme .gform_footer { padding-top: 1rem; margin: 0; }
.gform_wrapper.gravity-theme .gform_footer input[type=submit], .gform_wrapper.gravity-theme .gform_button { font-family: 'Figtree', sans-serif; font-weight: 600; font-size: 1rem; color: #fff; background: #E8590C; border: 0; border-radius: 999px; padding: 0.85rem 1.6rem; cursor: pointer; transition: background .2s, transform .2s; }
.gform_wrapper.gravity-theme .gform_footer input[type=submit]:hover { background: #C94A07; transform: translateY(-1px); }
.gform_wrapper.gravity-theme .gfield_error input, .gform_wrapper.gravity-theme .gfield_error textarea, .gform_wrapper.gravity-theme .gfield_error select { border-color: #B42318; }
.gform_wrapper.gravity-theme .validation_message, .gform_wrapper.gravity-theme .gform_validation_errors { color: #B42318; background: #FEF3F2; border: 1px solid #FECDCA; border-radius: 12px; box-shadow: none; }
.gform_confirmation_message { background: #DDEBDF; color: #14281F; border-radius: 16px; padding: 1.25rem 1.5rem; font-weight: 600; }
.dir-suggest { padding: clamp(3rem, 7vw, 5.5rem) 0; border-top: 1px solid #D9DCD2; }
.dir-suggest__grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .dir-suggest__grid { grid-template-columns: 5fr 7fr; align-items: start; } }
/* Language switcher */
.lang-switch { display: flex; gap: 2px; list-style: none; margin: 0; padding: 3px; border: 1px solid #D9DCD2; border-radius: 999px; background: #fff; }
.lang-switch a { display: block; font-family: 'Figtree', sans-serif; font-weight: 600; font-size: 0.8rem; letter-spacing: .04em; color: #4E5E56; text-decoration: none; padding: 0.3rem 0.6rem; border-radius: 999px; line-height: 1; }
.lang-switch a:hover { color: #14281F; background: #F4F3EE; }
.lang-switch a.is-current { background: #14281F; color: #fff; }
@media (max-width: 1080px) { .site-nav .lang-switch { align-self: flex-start; margin: 0.5rem 0; } }
