/*
Theme Name: Home to Search
Theme URI: https://hometosearch.com/
Description: An editorial theme for HOME TO SEARCH — home improvement, renovation, roofing and repairs, interior design, DIY and outdoor living. Forest green and warm off-white, an editorial serif for headings, and a reading-first article layout with a useful sidebar.
Version: 2.2.1
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
Author: HOME TO SEARCH
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: home-to-search
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */
:root {
	--green: #244B3C;
	--green-deep: #1A382C;
	--paper: #FAF8F3;
	--sage: #DCE6DC;
	--sage-soft: #EEF2EC;
	--ink: #252A27;
	--muted: #6B726D;
	--muted-on-sage: #566059;
	--terra: #C77B55;
	--terra-text: #9A4F2C;
	--terra-light: #EBB394;
	--white: #FFFFFF;
	--line: #E2DDD0;
	--line-strong: #CFC9B9;

	--serif: "Newsreader", Georgia, "Times New Roman", serif;
	--sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--radius: 5px;
	--wrap: 1240px;
	--gutter: clamp(18px, 4vw, 40px);
	--header-h: 72px;
	--shadow: 0 14px 34px rgba(36, 75, 60, .12);
	color-scheme: light;
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--terra-text); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--green); font-weight: 500; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; }
:focus-visible { outline: 3px solid var(--terra-text); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--sage); }

.wrap { width: min(var(--wrap), 100%); margin-inline: auto; padding-inline: var(--gutter); }
.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px;
	overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important;
}
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--green); color: var(--white); padding: 12px 18px; }
.skip-link:focus { left: 0; clip: auto; clip-path: none; width: auto; height: auto; margin: 0; }

/* Buttons and links */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 0 24px; border: 1.5px solid transparent; border-radius: var(--radius);
	font: 600 .98rem/1 var(--sans); text-decoration: none; cursor: pointer;
	transition: background-color .15s, color .15s, border-color .15s;
}
.btn--primary { background: var(--green); color: var(--white); }
.btn--primary:hover { background: var(--green-deep); color: var(--white); }
.btn--ghost { background: transparent; color: var(--green); border-color: var(--green); }
.btn--ghost:hover { background: var(--green); color: var(--white); }
.btn--light { background: var(--paper); color: var(--green); }
.btn--light:hover { background: var(--white); color: var(--green-deep); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.text-link { font-weight: 600; color: var(--green); text-decoration: none; border-bottom: 2px solid var(--terra); padding-bottom: 2px; }
.text-link:hover { color: var(--terra-text); border-bottom-color: var(--terra-text); }

/* ==========================================================================
   3. Header
   ========================================================================== */
.site-header { position: relative; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; flex: none; }
.brand__link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--green); }
.brand__mark { width: 38px; height: 38px; color: var(--green); flex: none; }
.brand__name { font: 600 1.3rem/1 var(--serif); letter-spacing: .04em; color: var(--green); text-decoration: none; text-transform: uppercase; white-space: nowrap; }
.brand .custom-logo-link { display: inline-flex; line-height: 0; }
.brand .custom-logo { width: auto; height: 40px; }

.primary-menu, .primary-menu ul { list-style: none; margin: 0; padding: 0; }
.primary-nav { min-width: 0; }
.primary-menu { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 0 4px; }
.primary-menu li { position: relative; }
.primary-menu a { display: block; padding: 10px 10px; white-space: nowrap; font-size: .92rem; font-weight: 500; color: var(--ink); text-decoration: none; border-radius: var(--radius); }
.primary-menu a:hover, .primary-menu a:focus-visible { color: var(--green); background: var(--sage-soft); }
.primary-menu .current-menu-item > a, .primary-menu .current-menu-ancestor > a, .primary-menu .current-category-ancestor > a, .primary-menu .current-cat > a { color: var(--green); box-shadow: inset 0 -3px 0 var(--terra); border-radius: 0; }
.primary-menu .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 230px; padding: 8px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); z-index: 60; }
.primary-menu li:hover > .sub-menu, .primary-menu li:focus-within > .sub-menu { display: block; }

.site-header__tools { display: flex; align-items: center; gap: 4px; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: var(--radius); background: transparent; color: var(--green); cursor: pointer; }
.icon-btn:hover { background: var(--sage-soft); }
.menu-toggle { display: none; }
.site-search { border-top: 1px solid var(--line); background: var(--white); padding: 16px 0; }
.site-search[hidden] { display: none; }

/* Search form */
.search-form { display: flex; gap: 8px; width: 100%; }
.search-form__input {
	flex: 1; min-width: 0; min-height: 48px; padding: 0 16px; border: 1.5px solid var(--line-strong); border-radius: var(--radius);
	background: var(--white); color: var(--ink); font: inherit;
}
.search-form__input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(36, 75, 60, .18); }

@media (max-width: 1280px) {
	.menu-toggle { display: inline-grid; }
	.site-header__inner { flex-wrap: wrap; gap: 0 8px; }
	.primary-nav { order: 3; width: 100%; }
	.js .primary-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 18px; box-shadow: var(--shadow); }
	.js .primary-nav:not(.is-open) { display: none; }
	.primary-menu { flex-direction: column; flex-wrap: nowrap; justify-content: flex-start; align-items: stretch; gap: 0; }
	.primary-menu a { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.02rem; }
	.primary-menu .current-menu-item > a, .primary-menu .current-cat > a { box-shadow: none; color: var(--terra-text); }
	.primary-menu .sub-menu { display: block; position: static; border: 0; box-shadow: none; padding: 0 0 0 16px; background: transparent; }
	.no-js .primary-nav, .primary-nav { padding-bottom: 10px; }
}

/* ==========================================================================
   4. Homepage
   ========================================================================== */
.hero { padding: clamp(36px, 6vw, 84px) 0 clamp(40px, 6vw, 80px); }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__title { font-size: clamp(2.5rem, 5.4vw, 4.4rem); line-height: 1.03; letter-spacing: -.02em; margin-bottom: .45em; max-width: 14em; }
.hero__lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 34em; margin-bottom: 1.6em; }
.hero__search { max-width: 560px; }
.hero__links { display: flex; gap: 26px; flex-wrap: wrap; margin: 22px 0 0; }
.feature { display: block; text-decoration: none; color: inherit; }
.feature__media { display: block; overflow: hidden; border-radius: var(--radius); background: var(--sage); aspect-ratio: 4 / 3.2; }
.feature__media img, .feature__media svg { width: 100%; height: 100%; object-fit: cover; }
.feature__caption { display: block; padding: 16px 2px 0; border-top: 3px solid var(--terra); margin-top: 18px; }
.feature__cat { display: block; font-size: .88rem; font-weight: 600; color: var(--terra-text); margin-bottom: 4px; }
.feature__title { display: block; font: 500 clamp(1.3rem, 2.2vw, 1.75rem)/1.15 var(--serif); color: var(--green); }
a.feature:hover .feature__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
.feature--static .feature__media { margin: 0; }

/* Hero illustration */
.il-bg { fill: var(--sage); }
.il-ground { stroke: var(--green); stroke-width: 3; stroke-linecap: round; fill: none; }
.il-roof { fill: var(--green); }
.il-chimney { fill: var(--green-deep); }
.il-wall { fill: var(--paper); stroke: var(--green); stroke-width: 3; }
.il-door { fill: var(--terra); }
.il-knob { fill: var(--paper); }
.il-window rect { fill: var(--sage); stroke: var(--green); stroke-width: 3; }
.il-window path { stroke: var(--green); stroke-width: 3; fill: none; }
.il-lens { fill: rgba(250, 248, 243, .55); stroke: var(--terra); stroke-width: 9; }
.il-handle { stroke: var(--terra); stroke-width: 14; stroke-linecap: round; fill: none; }

/* Sections */
.section { padding: clamp(44px, 6vw, 88px) 0; }
.section--tint { background: var(--sage-soft); border-block: 1px solid var(--line); }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(24px, 3vw, 40px); }
.section__title { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin: 0; }
.section__intro { margin: 0; color: var(--muted); max-width: 30em; }

/* Topic index — the signature element: a printed-index list, not cards */
.topic-index { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 32px; }
.topic-index__link { display: flex; flex-direction: column; gap: 10px; height: 100%; padding-top: 18px; border-top: 3px solid var(--terra); text-decoration: none; color: var(--ink); }
.topic-index__name { margin: 0; font: 500 1.65rem/1.1 var(--serif); color: var(--green); letter-spacing: -.01em; }
.topic-index__desc { color: var(--muted); font-size: .98rem; line-height: 1.5; }
.topic-index__count { margin-top: auto; font-size: .9rem; font-weight: 600; color: var(--terra-text); }
.topic-index__link:hover .topic-index__name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .12em; }
.topic-index__link:hover { color: var(--ink); }

/* Bands */
.band { padding: clamp(40px, 5vw, 72px) 0; }
.band--green { background: var(--green); color: var(--sage); }
.band--sage { background: var(--sage); color: var(--ink); }
.band--inline { margin-top: clamp(36px, 5vw, 64px); padding-inline: clamp(22px, 4vw, 48px); border-radius: var(--radius); }
.band__inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.band--inline .band__inner { padding: 0; }
.band__title { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 0; }
.band--green .band__title { color: var(--white); }
.band__text p { margin-bottom: 1.2em; font-size: 1.08rem; }
.band--green .band__text p { color: var(--sage); }
.band--sage .band__text p { color: var(--ink); }

/* ==========================================================================
   5. Cards and grids
   ========================================================================== */
.card-grid { display: grid; gap: clamp(28px, 3vw, 44px) clamp(20px, 2.4vw, 32px); }
.card-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card { display: flex; flex-direction: column; min-width: 0; }
.card__media { display: block; overflow: hidden; aspect-ratio: 3 / 2; border-radius: var(--radius); background: var(--sage); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card__media img { transform: scale(1.03); }
.card__placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: var(--green); background: var(--sage); }
.card__mark { width: 52px; height: 52px; opacity: .85; }
.card__body { display: flex; flex-direction: column; gap: 6px; padding-top: 16px; flex: 1; }
.card__cat { align-self: flex-start; font-size: .88rem; font-weight: 600; color: var(--terra-text); text-decoration: none; }
.card__cat:hover { text-decoration: underline; }
.card__title { font-size: 1.42rem; line-height: 1.17; margin: 0; }
.card__title a { color: var(--green); text-decoration: none; }
.card__title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
.card__excerpt { margin: 2px 0 0; color: var(--muted); font-size: .98rem; line-height: 1.55; }
.card__meta { display: flex; gap: 8px; align-items: center; margin: auto 0 0; padding-top: 10px; font-size: .85rem; color: var(--muted); }
.card--lead { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); align-items: center; margin-bottom: clamp(32px, 4vw, 52px); padding-bottom: clamp(32px, 4vw, 52px); border-bottom: 1px solid var(--line); }
.card--lead .card__media { aspect-ratio: 4 / 3; }
.card--lead .card__body { padding-top: 0; }
.card--lead .card__title { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.card--lead .card__excerpt { font-size: 1.05rem; }

/* ==========================================================================
   6. Archive / listing layout
   ========================================================================== */
.archive-header { padding: clamp(28px, 4vw, 56px) 0 clamp(24px, 3vw, 40px); max-width: 52rem; }
.archive-header__title { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: .3em; }
.archive-header__desc, .archive-header__desc p { color: var(--muted); font-size: 1.15rem; margin-bottom: .6em; }
.archive-header__count { color: var(--terra-text); font-weight: 600; font-size: .95rem; margin: 0; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(36px, 5vw, 72px); padding-bottom: clamp(48px, 6vw, 88px); align-items: start; }
.layout__main { min-width: 0; }

.pagination { margin-top: clamp(36px, 4vw, 56px); }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--line-strong); border-radius: var(--radius); background: var(--white); color: var(--green); font-weight: 600; font-size: .95rem; text-decoration: none; }
.pagination a.page-numbers:hover { border-color: var(--green); background: var(--sage-soft); }
.pagination .page-numbers.current { background: var(--green); border-color: var(--green); color: var(--white); }
.pagination .dots { border-color: transparent; background: transparent; }

.topic-pills { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.topic-pills a, .topic-pills span { display: inline-block; padding: 8px 14px; border: 1.5px solid var(--line-strong); border-radius: 999px; background: var(--white); color: var(--green); font-size: .93rem; font-weight: 500; text-decoration: none; line-height: 1.2; }
.topic-pills a:hover { border-color: var(--green); background: var(--sage-soft); color: var(--green); }
.topic-pills--large a, .topic-pills--large span { padding: 11px 18px; font-size: 1rem; }
.topic-pills--static span { background: var(--sage-soft); border-color: var(--sage); }

.empty-state { max-width: 36rem; padding: 12px 0 8px; }
.empty-state__title { font: 500 1.6rem/1.2 var(--serif); color: var(--green); }
.not-found { max-width: 40rem; padding-bottom: 80px; }

/* ==========================================================================
   7. Sidebar
   ========================================================================== */
.sidebar { display: flex; flex-direction: column; gap: 34px; }
.widget { padding-top: 16px; border-top: 3px solid var(--green); }
.widget__title { font: 600 1.15rem/1.2 var(--serif); color: var(--green); margin: 0 0 14px; letter-spacing: 0; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget--search .search-form { flex-direction: column; }
.widget--search .btn { width: 100%; }
.topic-list li + li { border-top: 1px solid var(--line); }
.topic-list a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; text-decoration: none; color: var(--ink); font-weight: 500; }
.topic-list a:hover { color: var(--terra-text); }
.topic-list__count { color: var(--muted); font-size: .88rem; font-weight: 400; font-variant-numeric: tabular-nums; }
.recent-list__item { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px 0; }
.recent-list__item + .recent-list__item { border-top: 1px solid var(--line); }
.recent-list__thumb { display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); background: var(--sage); color: var(--green); }
.recent-list__thumb img { width: 100%; height: 100%; object-fit: cover; }
.recent-list__thumb .recent-list__mark { width: 100%; height: 100%; padding: 22%; }
.recent-list__title { display: block; font: 500 1.02rem/1.25 var(--serif); color: var(--green); text-decoration: none; }
.recent-list__title:hover { text-decoration: underline; }
.recent-list__date { display: block; margin-top: 4px; font-size: .82rem; color: var(--muted); }
.widget--cta { background: var(--green); border-top-color: var(--terra); padding: 22px; border-radius: var(--radius); color: var(--sage); }
.widget--cta .widget__title { color: var(--white); }
.widget--cta p { font-size: .98rem; }

/* ==========================================================================
   8. Single article
   ========================================================================== */
.breadcrumbs { padding: 20px 0 0; font-size: .88rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; margin: 0; padding: 0; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin: 0 9px; color: var(--line-strong); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--green); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--ink); }

.layout--single { padding-top: clamp(20px, 3vw, 36px); }
.entry { min-width: 0; max-width: 820px; }
.entry-header__cats { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 14px; }
.entry-header__cats a { font-weight: 600; font-size: .95rem; color: var(--terra-text); text-decoration: none; }
.entry-header__cats a:hover { text-decoration: underline; }
.entry-header__title { font-size: clamp(2.2rem, 4.8vw, 3.5rem); line-height: 1.07; letter-spacing: -.02em; margin-bottom: .4em; text-wrap: balance; }
.entry-header__lede { font-size: 1.28rem; line-height: 1.5; color: var(--muted); margin-bottom: 1.1em; }
.entry-meta { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0 0 28px; padding: 14px 0; border-block: 1px solid var(--line); font-size: .93rem; color: var(--muted); }
.entry-meta span + span { position: relative; }
.entry-figure { margin: 0 0 32px; }
.entry-figure img { width: 100%; border-radius: var(--radius); }
.entry-figure figcaption { margin-top: 10px; font-size: .88rem; color: var(--muted); }

.toc { margin: 0 0 34px; padding: 22px 24px; background: var(--sage-soft); border-left: 3px solid var(--terra); border-radius: 0 var(--radius) var(--radius) 0; }
.toc__title { font: 600 1.1rem/1.2 var(--serif); margin: 0 0 12px; color: var(--green); }
.toc__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: .98rem; line-height: 1.4; }
.toc__item--l3 { padding-left: 18px; font-size: .93rem; }
.toc__list a { color: var(--ink); text-decoration: none; }
.toc__list a:hover { color: var(--terra-text); text-decoration: underline; }

/* Prose */
.entry-content { font-size: 1.125rem; line-height: 1.78; overflow-wrap: break-word; }
.entry-content > * { max-width: 100%; }
.entry-content > :first-child { margin-top: 0; }
.entry-content h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin: 1.7em 0 .55em; scroll-margin-top: 24px; }
.entry-content h3 { font-size: clamp(1.35rem, 2.2vw, 1.6rem); margin: 1.5em 0 .5em; scroll-margin-top: 24px; }
.entry-content h4 { font-family: var(--sans); font-size: 1.05rem; font-weight: 700; margin: 1.4em 0 .4em; }
.entry-content a { color: var(--green); text-decoration-color: var(--terra); text-decoration-thickness: 2px; }
.entry-content a:hover { color: var(--terra-text); }
.entry-content ul { margin: 0 0 1.3em; padding-left: 1.3em; }
.entry-content li { margin-bottom: .45em; }
.entry-content ol { list-style: none; counter-reset: step; margin: 0 0 1.5em; padding: 0; }
.entry-content ol > li { counter-increment: step; position: relative; padding-left: 3rem; margin-bottom: 1.1em; }
.entry-content ol > li::before { content: counter(step); position: absolute; left: 0; top: .12em; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--green); color: var(--white); font: 600 .95rem/1 var(--sans); }
.entry-content ol ol, .entry-content ul ul { margin-top: .6em; }
.entry-content blockquote, .entry-content .wp-block-quote { margin: 1.8em 0; padding: .2em 0 .2em 1.4em; border-left: 3px solid var(--terra); font: italic 400 1.35rem/1.5 var(--serif); color: var(--green); }
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content cite { display: block; margin-top: .7em; font: 500 .9rem var(--sans); font-style: normal; color: var(--muted); }
.entry-content img { border-radius: var(--radius); }
.entry-content figure { margin: 1.8em 0; }
.entry-content figcaption, .entry-content .wp-element-caption { margin-top: 10px; font-size: .88rem; line-height: 1.5; color: var(--muted); }
.entry-content table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 1.6em 0; font-size: .98rem; line-height: 1.5; }
.entry-content th, .entry-content td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.entry-content thead th { background: var(--sage-soft); color: var(--green); font-weight: 700; border-bottom: 2px solid var(--green); white-space: nowrap; }
.entry-content hr { border: 0; border-top: 1px solid var(--line-strong); margin: 2.4em 0; }
.entry-content pre { overflow-x: auto; padding: 16px; background: var(--ink); color: var(--paper); border-radius: var(--radius); font-size: .9rem; }
.entry-content code { font-size: .92em; background: var(--sage-soft); padding: .1em .35em; border-radius: 3px; }
.entry-content pre code { background: none; padding: 0; }
.entry-content iframe, .entry-content video, .entry-content .wp-block-embed__wrapper { max-width: 100%; }
.entry-content .wp-block-embed.is-type-video .wp-block-embed__wrapper { position: relative; }
.entry-content .alignleft { float: left; margin: .3em 1.5em 1em 0; }
.entry-content .alignright { float: right; margin: .3em 0 1em 1.5em; }
.entry-content .aligncenter { margin-inline: auto; }
.entry-content .wp-block-image img { height: auto; }
.entry-content::after { content: ""; display: block; clear: both; }

/* Callouts (Group block styles "Callout" and "Safety note") */
.entry-content .is-style-callout, .entry-content .callout { margin: 1.8em 0; padding: 20px 24px; background: var(--sage-soft); border-left: 4px solid var(--green); border-radius: 0 var(--radius) var(--radius) 0; }
.entry-content .is-style-safety-note { margin: 1.8em 0; padding: 20px 24px; background: #FBF0E8; border-left: 4px solid var(--terra); border-radius: 0 var(--radius) var(--radius) 0; }
.entry-content .is-style-callout > :last-child, .entry-content .is-style-safety-note > :last-child { margin-bottom: 0; }

.page-links { display: flex; gap: 8px; flex-wrap: wrap; margin: 28px 0; font-weight: 600; }
.page-links a, .page-links > span:not(:first-child) { padding: 4px 12px; border: 1.5px solid var(--line-strong); border-radius: var(--radius); }

/* Article footer */
.entry-footer { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); display: grid; gap: 30px; }
.entry-footer .topic-pills { margin: 0; }
.share__title { font: 600 1.05rem/1.2 var(--serif); margin: 0 0 10px; }
.share__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.share__list a, .copy-link { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1.5px solid var(--green); border-radius: var(--radius); background: transparent; color: var(--green); font: 600 .92rem/1 var(--sans); text-decoration: none; cursor: pointer; }
.share__list a:hover, .copy-link:hover { background: var(--green); color: var(--white); }
.copy-link[hidden] { display: none; }
.author-box { display: flex; gap: 18px; align-items: flex-start; padding: 22px; background: var(--sage-soft); border-radius: var(--radius); }
.author-box__avatar { border-radius: 50%; flex: none; }
.author-box__name { font: 600 1.15rem var(--serif); color: var(--green); margin: 0 0 4px; }
.author-box__bio { margin: 0; color: var(--muted); font-size: .98rem; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 40px; }
.post-nav__link { display: block; padding: 18px 20px; border: 1.5px solid var(--line-strong); border-radius: var(--radius); background: var(--white); text-decoration: none; color: var(--ink); }
.post-nav__link--next { grid-column: 2; text-align: right; }
.post-nav__link:hover { border-color: var(--green); }
.post-nav__label { display: block; font-size: .83rem; color: var(--muted); margin-bottom: 4px; }
.post-nav__title { display: block; font: 500 1.12rem/1.25 var(--serif); color: var(--green); }

.related { margin-top: 56px; padding-top: 32px; border-top: 3px solid var(--green); }
.related__title { font-size: 1.7rem; margin-bottom: 22px; }
.related .card__title { font-size: 1.2rem; }

/* Comments */
.comments { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.comments__title, .comment-reply-title { font-size: 1.5rem; }
.comment-list, .comment-list ol { list-style: none; margin: 0; padding: 0; }
.comment-list .children { padding-left: 28px; }
.comment-body { padding: 18px 0; border-bottom: 1px solid var(--line); font-size: .98rem; }
.comment-author .avatar { border-radius: 50%; float: left; margin-right: 12px; }
.comment-meta { font-size: .85rem; margin-bottom: 8px; }
.comment-form label { display: block; font-weight: 600; margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--radius); background: var(--white); font: inherit; }
.comment-form .submit { min-height: 48px; padding: 0 24px; border: 0; border-radius: var(--radius); background: var(--green); color: var(--white); font: 600 .98rem var(--sans); cursor: pointer; }

/* ==========================================================================
   9. Pages (about, contact, FAQ, write for us, legal)
   ========================================================================== */
.page-header { padding: clamp(28px, 4vw, 56px) 0 clamp(20px, 3vw, 36px); max-width: 52rem; }
.page-header__title { font-size: clamp(2.3rem, 5vw, 3.8rem); letter-spacing: -.02em; margin-bottom: .3em; }
.page-header__lede { font-size: clamp(1.12rem, 1.8vw, 1.32rem); color: var(--muted); margin: 0; max-width: 40rem; }
.page-header__meta { margin: .6em 0 0; color: var(--muted); font-size: .95rem; }
.page-plain, .page-legal, .page-about, .page-contact, .page-faq, .page-wfu { padding-bottom: clamp(48px, 6vw, 88px); }
.entry-content--page { max-width: 46rem; }
.page-plain .entry-content { max-width: 46rem; }

.split { display: grid; grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); gap: clamp(20px, 5vw, 72px); padding: clamp(28px, 4vw, 48px) 0; border-top: 1px solid var(--line-strong); }
.split__title { font-size: 1.55rem; margin: 0; }
.split__body { max-width: 44rem; }
.split__body--full { grid-column: 1 / -1; max-width: 46rem; }
.split__body > :last-child { margin-bottom: 0; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 7px; border-left: 3px solid var(--terra); border-bottom: 3px solid var(--terra); transform: rotate(-45deg); }
.rules { margin: 0; display: grid; gap: 0; }
.rules__item { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 8px 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.rules__item:first-child { padding-top: 0; }
.rules dt { font-weight: 700; color: var(--green); }
.rules dd { margin: 0; }
.notice-editor { padding: 12px 14px; background: #FBF0E8; border-left: 4px solid var(--terra); border-radius: 0 var(--radius) var(--radius) 0; font-size: .95rem; }

/* Contact */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 6vw, 80px); align-items: start; border-top: 1px solid var(--line-strong); padding-top: clamp(28px, 4vw, 48px); }
.contact-layout__form { max-width: 640px; }
.side-title { font: 600 1.1rem/1.2 var(--serif); margin: 0 0 8px; }
.contact-layout__side p, .plain-list { margin: 0 0 26px; }
.plain-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.form__row { margin-bottom: 20px; }
.form label { display: block; margin-bottom: 6px; font-weight: 600; font-size: .96rem; }
.form input[type="text"], .form input[type="email"], .form textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--radius); background: var(--white); color: var(--ink); font: inherit; }
.form textarea { resize: vertical; min-height: 160px; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(36, 75, 60, .18); }
.form__hint { display: block; margin: 0 0 18px; font-size: .88rem; color: var(--muted); }
.form__row .form__hint { margin: 6px 0 0; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-notice { margin-bottom: 24px; padding: 14px 18px; border-radius: var(--radius); border-left: 4px solid; font-weight: 500; }
.form-notice--success { background: var(--sage); border-color: var(--green); color: var(--green-deep); }
.form-notice--error { background: #FBEDE6; border-color: #B23A1E; color: #7A2410; }

/* FAQ */
.faq { max-width: 52rem; }
.faq__group { margin-bottom: 40px; }
.faq__group-title { font-size: 1.5rem; margin-bottom: 8px; }
.faq__item { border-bottom: 1px solid var(--line-strong); }
.faq__group-title + .faq__item { border-top: 1px solid var(--line-strong); }
.faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 0; cursor: pointer; list-style: none; font: 500 1.2rem/1.3 var(--serif); color: var(--green); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: ""; flex: none; width: 11px; height: 11px; border-right: 2.5px solid var(--terra); border-bottom: 2.5px solid var(--terra); transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.faq__item[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq__item summary:hover { color: var(--terra-text); }
.faq__answer { padding: 0 2.5rem 8px 0; color: var(--ink); }

/* Legal */
.legal-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; border-top: 1px solid var(--line-strong); padding-top: clamp(24px, 3vw, 40px); }
.legal-layout:not(:has(.legal-layout__toc)) { grid-template-columns: minmax(0, 46rem); }
.legal-layout__toc { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; }
.legal-layout .toc { margin: 0; padding: 18px 20px; }
.legal-layout .entry-content { max-width: 46rem; font-size: 1.05rem; line-height: 1.75; }

/* ==========================================================================
   10. Footer
   ========================================================================== */
.site-footer { margin-top: 0; background: var(--green-deep); color: var(--sage); padding: clamp(44px, 6vw, 80px) 0 28px; }
.site-footer a { color: var(--sage); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); }
.footer-brand__name { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font: 600 1.3rem/1 var(--serif); letter-spacing: .04em; text-transform: uppercase; color: var(--white); }
.footer-mark { width: 38px; height: 38px; color: var(--sage); flex: none; }
.footer-brand__text { max-width: 28rem; color: var(--sage); opacity: .92; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.social-icon { display: grid; place-items: center; width: 40px; height: 40px; border: 1.5px solid rgba(220, 230, 220, .4); border-radius: 50%; }
.social-icon svg { width: 17px; height: 17px; fill: currentColor; }
.social-icon:hover { border-color: var(--white); text-decoration: none !important; }
.footer-col__title { font: 600 1.1rem/1.2 var(--serif); color: var(--white); margin: 0 0 16px; padding-bottom: 10px; border-bottom: 2px solid var(--terra); display: inline-block; letter-spacing: 0; }
.footer-links, .legal-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; flex-wrap: wrap; margin-top: clamp(36px, 5vw, 56px); padding-top: 22px; border-top: 1px solid rgba(220, 230, 220, .22); font-size: .9rem; }
.copyright { margin: 0; color: var(--sage); opacity: .9; }
.legal-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* ==========================================================================
   11. Responsive
   ========================================================================== */
@media (max-width: 1100px) {
	.topic-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.layout { grid-template-columns: minmax(0, 1fr); }
	.entry { max-width: none; }
	.sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; border-top: 1px solid var(--line-strong); padding-top: 40px; }
	.sidebar .widget--search, .sidebar .widget--cta { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
	.hero__inner, .band__inner { grid-template-columns: 1fr; }
	.hero__feature { max-width: 640px; }
	.card-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.card--lead { grid-template-columns: 1fr; }
	.split { grid-template-columns: 1fr; gap: 14px; }
	.contact-layout { grid-template-columns: 1fr; }
	.legal-layout { grid-template-columns: 1fr; }
	.legal-layout__toc { position: static; max-height: none; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
	body { font-size: 1rem; }
	.card-grid--2, .card-grid--3 { grid-template-columns: 1fr; }
	.topic-index { grid-template-columns: 1fr; gap: 26px; }
	.sidebar { grid-template-columns: 1fr; }
	.search-form { flex-direction: column; }
	.hero__search .btn, .site-search .btn { width: 100%; }
	.entry-content { font-size: 1.06rem; }
	.entry-content .alignleft, .entry-content .alignright { float: none; margin: 1.4em auto; }
	.post-nav { grid-template-columns: 1fr; }
	.post-nav__link--next { grid-column: auto; text-align: left; }
	.rules__item { grid-template-columns: 1fr; }
	.site-footer__grid { grid-template-columns: 1fr; }
	.brand__name { font-size: 1.05rem; }
	.brand__mark { width: 32px; height: 32px; }
	.author-box { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
	.site-header, .site-footer, .sidebar, .share, .post-nav, .related, .comments { display: none !important; }
	body { background: #fff; }
}

/* Core widgets placed in the sidebar widget area */
.widget li { padding: 0; }
.widget:not(.widget--topics):not(.widget--recent) li + li { border-top: 1px solid var(--line); }
.widget:not(.widget--cta) li > a { display: block; padding: 9px 0; color: var(--ink); text-decoration: none; font-weight: 500; }
.widget:not(.widget--cta) li > a:hover { color: var(--terra-text); }
.widget .search-form { flex-direction: column; }
.widget .search-form .btn, .widget .wp-block-search__button { width: 100%; }
.widget .wp-block-search__inside-wrapper { display: flex; flex-direction: column; gap: 8px; }
.widget .wp-block-search__input { min-height: 48px; padding: 0 14px; border: 1.5px solid var(--line-strong); border-radius: var(--radius); }
.widget .wp-block-search__button { min-height: 48px; border: 0; border-radius: var(--radius); background: var(--green); color: var(--white); font: 600 .98rem var(--sans); cursor: pointer; }
.widget .wp-block-latest-posts__list, .widget .wp-block-categories-list, .widget .wp-block-archives-list, .widget .wp-block-latest-comments { list-style: none; padding: 0; margin: 0; }
.widget .wp-block-latest-comments__comment, .widget .wp-block-latest-posts li, .widget .wp-block-categories-list li, .widget .wp-block-archives-list li { padding: 9px 0; font-size: .98rem; }
.widget .wp-block-latest-posts li + li, .widget .wp-block-categories-list li + li, .widget .wp-block-archives-list li + li { border-top: 1px solid var(--line); }
.widget .wp-block-latest-posts a, .widget .wp-block-categories-list a, .widget .wp-block-archives-list a { color: var(--ink); text-decoration: none; font-weight: 500; }
.widget .wp-block-latest-posts a:hover, .widget .wp-block-categories-list a:hover, .widget .wp-block-archives-list a:hover { color: var(--terra-text); }
.widget h2.wp-block-heading { font: 600 1.15rem/1.2 var(--serif); color: var(--green); }

/* Homepage additions */
.section__head--stack { display: block; max-width: 52rem; }
.section__intro--wide { max-width: 46rem; margin-top: .8em; }
.empty-note { margin: 0; padding: 20px 0; color: var(--muted); }
.project-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); }
.project-list--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.project-list__item { display: flex; flex-direction: column; gap: 6px; padding: 20px 0; border-top: 1px solid var(--line-strong); }
.project-list__name { font: 500 1.35rem/1.2 var(--serif); color: var(--green); }
.project-list__desc { color: var(--muted); font-size: .98rem; line-height: 1.5; }
.insight-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px clamp(24px, 4vw, 56px); margin-top: clamp(24px, 3vw, 36px); }
.insight { padding-top: 16px; border-top: 3px solid var(--terra); }
.insight__title { font-size: 1.4rem; margin-bottom: .4em; }
.insight p { margin: 0; color: var(--ink); }
.section__cta { margin: clamp(24px, 3vw, 36px) 0 0; }
.trust { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.trust .section__title { grid-column: 1; grid-row: 1 / span 2; margin: 0; }
.trust { row-gap: 18px; }
.trust .check-list, .trust p { grid-column: 2; margin: 0; }
.final-cta { text-align: center; padding-bottom: clamp(56px, 7vw, 104px); }
.final-cta__inner p { color: var(--muted); font-size: 1.15rem; margin-bottom: 0; }
.final-cta__actions { justify-content: center; }
@media (max-width: 900px) {
	.project-list, .project-list--3 { grid-template-columns: 1fr; }
	.insight-grid { grid-template-columns: 1fr; }
	.trust { grid-template-columns: 1fr; }
	.trust .section__title, .trust .check-list, .trust p { grid-column: 1; }
}
