/*
Theme Name: Gutter
Theme URI: https://guardiangutterguide.com/
Author: Guardian Gutter Guide
Description: A calm, fast, trustworthy classic theme for homeowner guides about gutter guards, repair and cost.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gutter
Tags: blog, one-column, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ---------- Tokens ---------- */
:root {
	--g-bg: #ffffff;
	--g-text: #1a1f2b;
	--g-muted: #4b5563;
	--g-accent: #1f4e79;
	--g-accent-dark: #163a5a;
	--g-accent-soft: #e8eff6;
	--g-cta: #d97706;
	--g-cta-dark: #b45309;
	--g-cta-soft: #fff5e6;
	--g-surface: #f5f6f8;
	--g-border: #dfe3e8;
	--g-success: #166534;
	--g-error: #b91c1c;
	--g-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--g-size: 17px;
	--g-lh: 1.65;
	--g-radius: 6px;
	--g-content: 720px;
	--g-wide: 960px;
	--g-site: 1200px;
	--g-space: 1.25rem;
	--g-space-lg: 2.5rem;
	--g-space-xl: 4rem;
}
@media (min-width: 768px) {
	:root { --g-size: 18px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: var(--g-size); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	margin: 0;
	font-family: var(--g-font);
	font-size: 1rem;
	line-height: var(--g-lh);
	color: var(--g-text);
	background: var(--g-bg);
	-webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 0.6em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.75rem, 4vw, 2.375rem); }
h2 { font-size: 1.5rem; margin-top: 2em; }
h3 { font-size: 1.2rem; margin-top: 1.6em; }
h4 { font-size: 1.05rem; margin-top: 1.4em; }
p, ul, ol, blockquote, figure, table, pre { margin: 0 0 1.25em; }
ul, ol { padding-left: 1.4em; }
li { margin-bottom: 0.35em; }
a { color: var(--g-accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--g-accent-dark); }
img { max-width: 100%; height: auto; display: block; }
iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; display: block; max-width: 100%; }
.wp-block-embed__wrapper::before { display: none; }
.wp-block-embed iframe { position: static; }
figcaption { font-size: 0.875rem; color: var(--g-muted); margin-top: 0.5em; }
blockquote { border-left: 3px solid var(--g-border); padding-left: 1em; color: var(--g-muted); }
hr { border: 0; border-top: 1px solid var(--g-border); margin: 2em 0; }
strong { font-weight: 700; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; background: var(--g-surface); }
code { padding: 0.1em 0.3em; border-radius: 3px; }
pre { padding: 1em; overflow-x: auto; border-radius: var(--g-radius); }

:focus-visible { outline: 3px solid var(--g-cta); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); word-wrap: normal !important; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 1000; padding: 0.75em 1em; background: var(--g-accent); color: #fff; }
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- Buttons ---------- */
.btn, .wp-block-button__link, button.wp-block-search__button {
	display: inline-block;
	padding: 0.8em 1.4em;
	border: 2px solid var(--g-accent);
	border-radius: var(--g-radius);
	background: var(--g-accent);
	color: #fff;
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	text-align: center;
}
.btn:hover, .wp-block-button__link:hover { background: var(--g-accent-dark); border-color: var(--g-accent-dark); color: #fff; }
.btn-cta { background: var(--g-cta); border-color: var(--g-cta); }
.btn-cta:hover { background: var(--g-cta-dark); border-color: var(--g-cta-dark); }
.btn-outline { background: transparent; color: var(--g-accent); }
.btn-outline:hover { background: var(--g-accent-soft); color: var(--g-accent-dark); }
.btn-block { display: block; width: 100%; }

/* ---------- Layout ---------- */
.site-container { width: min(100% - 2.5rem, var(--g-site)); margin: 0 auto; }
.content-width { width: min(100% - 2.5rem, var(--g-content)); margin-left: auto; margin-right: auto; }
.site-main { padding: var(--g-space-lg) 0 var(--g-space-xl); }
.has-sticky-cta .site-main { padding-bottom: 6rem; }
@media (min-width: 768px) { .has-sticky-cta .site-main { padding-bottom: var(--g-space-xl); } }
.layout-with-sidebar { display: block; }
.layout-with-sidebar > .content-width { width: 100%; max-width: var(--g-content); }
@media (min-width: 1024px) {
	.has-sidebar .layout-with-sidebar { display: grid; grid-template-columns: minmax(0, var(--g-content)) 280px; gap: var(--g-space-xl); justify-content: center; }
	.has-sidebar .layout-with-sidebar > .content-width { width: 100%; margin: 0; }
}
.widget-area { display: none; }
@media (min-width: 1024px) { .widget-area { display: block; font-size: 0.9375rem; } }
.widget { margin-bottom: var(--g-space-lg); }
.widget-title { font-size: 1rem; margin-top: 0; }

/* ---------- Header ---------- */
.site-header { position: relative; border-bottom: 1px solid var(--g-border); background: var(--g-bg); z-index: 95; }
.header-panel { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--g-bg); border-bottom: 1px solid var(--g-border); box-shadow: 0 1px 0 var(--g-border); padding: 0.75rem 0 1rem; }
.header-panel.is-open { display: block; }
.site-header .header-panel > .site-container { display: block; min-height: 0; flex-wrap: nowrap; }
.site-header .site-container { display: flex; align-items: center; gap: 1rem; min-height: 64px; flex-wrap: wrap; }
.site-branding { margin-right: auto; display: flex; align-items: center; }
.site-title { font-size: 1.25rem; font-weight: 700; margin: 0; line-height: 1.2; }
.site-title a { color: var(--g-text); text-decoration: none; white-space: nowrap; }
.site-title .brand-short { display: none; }
@media (max-width: 479px) { .site-header .site-title .brand-full { display: none; } .site-header .site-title .brand-short { display: inline; } }
.custom-logo-link { display: flex; align-items: center; }
.custom-logo-link img { max-height: 34px; width: auto; }
@media (min-width: 900px) { .custom-logo-link img { max-height: 38px; } }
.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid transparent; border-radius: var(--g-radius); background: none; color: var(--g-text); cursor: pointer; }
.icon-btn:hover { background: var(--g-surface); }
.icon-btn svg { width: 22px; height: 22px; }
.menu-toggle { display: inline-flex; }
.primary-nav.header-panel { padding-top: 0.25rem; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; }
.primary-nav li { margin: 0; }
.primary-nav a { display: block; padding: 0.7em 0.25em; color: var(--g-text); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--g-border); }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--g-accent); }
@media (min-width: 900px) {
	.menu-toggle { display: none; }
	.primary-nav, .primary-nav.header-panel { display: block; position: static; width: auto; padding: 0; order: 0; border: 0; box-shadow: none; }
	.primary-nav.header-panel > .site-container { width: auto; margin: 0; }
	.primary-nav ul { display: flex; gap: 0.25rem; }
	.primary-nav a { border: 0; padding: 0.6em 0.8em; border-radius: var(--g-radius); }
	.primary-nav a:hover { background: var(--g-surface); }
	.header-actions { order: 1; }
}
.header-search .search-form { max-width: 640px; }

/* ---------- Search form ---------- */
.search-form { display: flex; gap: 0.5rem; max-width: 560px; }
.search-form label { flex: 1; }
.search-form .search-field { width: 100%; }
input, select, textarea {
	font: inherit;
	color: var(--g-text);
	background: #fff;
	border: 1px solid #9aa3ad;
	border-radius: var(--g-radius);
	padding: 0.7em 0.8em;
	width: 100%;
	min-height: 48px;
}
input:focus, select:focus, textarea:focus { border-color: var(--g-accent); outline: 3px solid var(--g-accent-soft); outline-offset: 0; }
input[type="checkbox"] { width: 1.25rem; height: 1.25rem; min-height: 0; margin: 0.15em 0.6em 0 0; flex: none; accent-color: var(--g-accent); }
label { font-weight: 600; display: block; margin-bottom: 0.3em; }
fieldset { border: 0; padding: 0; margin: 0 0 1rem; min-width: 0; }
legend { padding: 0; margin: 0; }

/* ---------- Breadcrumbs, meta, disclosure ---------- */
.breadcrumbs { font-size: 0.875rem; color: var(--g-muted); margin-bottom: 1rem; }
.breadcrumbs a { color: var(--g-muted); }
.entry-header { margin-bottom: var(--g-space); }
.entry-title { margin-bottom: 0.5em; }
.meta-line { font-size: 0.9375rem; color: var(--g-muted); margin: 0 0 0.6em; }
.meta-line a { color: var(--g-text); font-weight: 600; }
.meta-line .sep { margin: 0 0.4em; color: var(--g-border); }
.disclosure-note { font-size: 0.875rem; color: var(--g-muted); margin: 0; padding: 0.6em 0.9em; background: var(--g-surface); border-radius: var(--g-radius); }
.post-thumbnail { margin: var(--g-space) 0; }
.post-thumbnail img { border-radius: var(--g-radius); width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* ---------- Content ---------- */
.entry-content { padding: 0 1.25rem; }
@media (min-width: 1024px) { .entry-content { padding: 0; } }
.entry-content > * { max-width: var(--g-content); margin-left: auto; margin-right: auto; }
.entry-content > .alignwide, .entry-content > .wp-block-table, .entry-content > .table-wrap, .entry-content > .wp-block-image.size-large, .entry-content > figure.alignwide { max-width: var(--g-wide); }
.entry-content > .alignfull { max-width: none; margin-left: -1.25rem; margin-right: -1.25rem; }
@media (min-width: 1024px) { .entry-content > .alignfull { margin-left: auto; margin-right: auto; } }
.entry-content h2 { padding-top: 0.25em; }
.entry-content h2:first-child { margin-top: 0; }
.entry-content img { border-radius: var(--g-radius); }
.entry-content .wp-block-image figcaption, .entry-content figcaption { text-align: center; }
.entry-content .wp-block-separator { border-color: var(--g-border); }

/* Short answer box */
.short-answer, .entry-content .is-style-key-takeaway {
	background: var(--g-accent-soft);
	border-left: 4px solid var(--g-accent);
	border-radius: var(--g-radius);
	padding: 1em 1.2em;
	font-size: 1.05em;
	margin-bottom: 1.5em;
}
.short-answer strong:first-child, .is-style-key-takeaway strong:first-child { color: var(--g-accent); }
.short-answer p:last-child { margin-bottom: 0; }

/* Table of contents */
.toc { background: var(--g-surface); border: 1px solid var(--g-border); border-radius: var(--g-radius); padding: 0.25rem 1rem; margin-bottom: 1.75em; font-size: 0.9375rem; }
.toc summary { font-weight: 700; padding: 0.6em 0; cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "+"; font-size: 1.3em; color: var(--g-muted); }
.toc[open] summary::after { content: "–"; }
.toc ol { margin: 0 0 0.8em; padding-left: 1.4em; }
.toc li { margin-bottom: 0.3em; }
.toc a { color: var(--g-text); }

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 1.5em; border: 1px solid var(--g-border); border-radius: var(--g-radius); }
.table-wrap table { margin: 0; border: 0; }
figure.table-wrap { margin-left: auto; margin-right: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
th, td, .wp-block-table th, .wp-block-table td { padding: 0.7em 0.9em; text-align: left; border: 0; border-bottom: 1px solid var(--g-border); vertical-align: top; }
thead, .wp-block-table thead { border-bottom: 0; }
tfoot, .wp-block-table tfoot { border-top: 0; }
.wp-block-table table { border-collapse: collapse; }
thead th { background: var(--g-accent-soft); color: var(--g-text); font-weight: 700; white-space: nowrap; }
tbody tr:nth-child(even) td { background: var(--g-surface); }
tbody tr:last-child td { border-bottom: 0; }
caption, .wp-block-table figcaption { caption-side: top; text-align: left; font-weight: 600; font-size: 0.9375rem; padding: 0 0 0.5em; color: var(--g-text); }
.wp-block-table figcaption { padding: 0.6em 0.9em 0.7em; margin: 0; font-size: 0.875rem; color: var(--g-muted); font-weight: 500; text-align: left; border-top: 1px solid var(--g-border); }
.wp-block-table tbody tr:last-child td { border-bottom: 0; }
tr.is-national-average td, tr.is-national-average th { background: var(--g-cta-soft) !important; font-weight: 700; }
tr.is-national-average td:first-child, tr.is-national-average th:first-child { box-shadow: inset 3px 0 0 var(--g-cta); }
@media (max-width: 767px) {
	th:first-child, td:first-child { position: sticky; left: 0; z-index: 1; background: #fff; box-shadow: 1px 0 0 var(--g-border); min-width: 8.5rem; }
	thead th:first-child { background: var(--g-accent-soft); }
	tbody tr:nth-child(even) td:first-child { background: var(--g-surface); }
	tr.is-national-average td:first-child { background: var(--g-cta-soft) !important; }
}

/* FAQ (Yoast block) */
.schema-faq, .gutter-faq { border-top: 1px solid var(--g-border); margin-top: 2em; }
.schema-faq-section, .gutter-faq details { border-bottom: 1px solid var(--g-border); padding: 0; }
.schema-faq-question, .gutter-faq summary { display: block; font-weight: 700; padding: 0.9em 2rem 0.9em 0; cursor: pointer; position: relative; list-style: none; }
.gutter-faq summary::-webkit-details-marker { display: none; }
.gutter-faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 0.7em; font-size: 1.3em; color: var(--g-muted); }
.gutter-faq details[open] summary::after { content: "–"; }
.schema-faq-answer, .gutter-faq .faq-answer { padding: 0 0 1em; }
.gutter-faq .faq-answer p:last-child { margin-bottom: 0; }

/* Estimator box */
.gutter-cta { background: var(--g-surface); border: 1px solid var(--g-border); border-top: 4px solid var(--g-cta); border-radius: var(--g-radius); padding: 1.5rem; margin: 2.5em auto; max-width: var(--g-content); scroll-margin-top: 1rem; }
.gutter-cta h2, .gutter-cta .cta-title { margin: 0 0 0.5em; font-size: 1.35rem; padding: 0; }


/* Shared form bits used by the estimator */
.form-row { margin-bottom: 1rem; }
.form-grid { display: grid; gap: 1rem; }
@media (min-width: 600px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.form-note { font-size: 0.8125rem; color: var(--g-muted); margin: 0.75rem 0 0; }

/* Sticky mobile CTA */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; padding: 0.6rem 1rem calc(0.6rem + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--g-border); display: flex; align-items: center; gap: 1rem; }
.sticky-cta span { font-size: 0.875rem; color: var(--g-muted); flex: 1; }
.sticky-cta .btn { flex: none; }
@media (min-width: 768px) { .sticky-cta { display: none; } }

/* Author box */
.author-box { display: flex; gap: 1.25rem; align-items: flex-start; border: 1px solid var(--g-border); border-radius: var(--g-radius); padding: 1.25rem; margin: 2.5em auto 0; max-width: var(--g-content); background: #fff; }
.author-box .avatar { border-radius: 50%; flex: none; width: 64px; height: 64px; }
.author-box h2, .author-box h3 { font-size: 1.05rem; margin: 0 0 0.1em; padding: 0; }
.author-box .author-title { color: var(--g-muted); font-size: 0.9375rem; margin: 0 0 0.5em; }
.author-box p { font-size: 0.9375rem; margin-bottom: 0.5em; }
.author-box .reviewed-by { border-top: 1px solid var(--g-border); margin-top: 0.75em; padding-top: 0.75em; }

/* Cards */
.card-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.post-card { border: 1px solid var(--g-border); border-radius: var(--g-radius); overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.post-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.post-card .card-body { padding: 1rem 1.1rem 1.2rem; }
.post-card h2, .post-card h3 { font-size: 1.1rem; margin: 0 0 0.4em; padding: 0; }
.post-card h2 a, .post-card h3 a { color: var(--g-text); text-decoration: none; }
.post-card h2 a:hover, .post-card h3 a:hover { color: var(--g-accent); text-decoration: underline; }
.post-card p { font-size: 0.9375rem; color: var(--g-muted); margin: 0; }
.card-meta { font-size: 0.8125rem; color: var(--g-muted); margin-bottom: 0.4em; }
.category-card { display: block; border: 1px solid var(--g-border); border-radius: var(--g-radius); padding: 1.25rem; text-decoration: none; color: var(--g-text); background: #fff; }
.category-card:hover { border-color: var(--g-accent); color: var(--g-text); }
.category-card h2, .category-card h3 { font-size: 1.15rem; margin: 0 0 0.3em; padding: 0; color: var(--g-accent); }
.category-card p { font-size: 0.9375rem; color: var(--g-muted); margin: 0; }

/* Related */
.related-posts { margin: 2.5em auto 0; max-width: var(--g-wide); }
.related-posts h2 { font-size: 1.25rem; margin-top: 0; padding: 0; }
.section-title { font-size: 1.5rem; margin: 0 0 1rem; padding: 0; }
.section { padding: var(--g-space-lg) 0; }
.section-alt { background: var(--g-surface); border-top: 1px solid var(--g-border); border-bottom: 1px solid var(--g-border); }

/* Front page */
.hero { padding: var(--g-space-lg) 0; }
.hero h1 { max-width: 22ch; }
.hero .hero-lead { font-size: 1.15rem; color: var(--g-muted); max-width: 60ch; margin-bottom: 1.5rem; }
.hero .hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.trust-strip { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.trust-person { display: flex; gap: 0.9rem; align-items: center; flex: 1 1 280px; }
.trust-person img { border-radius: 50%; width: 56px; height: 56px; }
.trust-person strong { display: block; }
.trust-person span { font-size: 0.875rem; color: var(--g-muted); }

/* Archives */
.page-header { margin-bottom: var(--g-space-lg); }
.page-header .page-title { margin-bottom: 0.4em; }
.archive-description { color: var(--g-muted); max-width: var(--g-content); }
.archive-description p:last-child { margin-bottom: 0; }
.author-header { display: flex; gap: 1.25rem; align-items: flex-start; }
.author-header img { border-radius: 50%; flex: none; }
.pagination { margin-top: var(--g-space-lg); }
.pagination .nav-links { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.pagination .page-numbers { display: inline-block; min-width: 44px; padding: 0.6em 0.8em; text-align: center; border: 1px solid var(--g-border); border-radius: var(--g-radius); text-decoration: none; color: var(--g-text); }
.pagination .page-numbers.current { background: var(--g-accent); border-color: var(--g-accent); color: #fff; }
.pagination .page-numbers:hover { border-color: var(--g-accent); }
.error-404 .search-form { margin-top: 1.5rem; }
.error-404 .section-title { margin-top: 2.5rem; }

/* Footer */
.site-footer { background: var(--g-surface); border-top: 1px solid var(--g-border); padding: var(--g-space-lg) 0 var(--g-space); margin-top: var(--g-space-lg); font-size: 0.9375rem; color: var(--g-muted); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; } }
.footer-about .site-title { margin-bottom: 0.5em; }
.footer-col h2 { font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.04em; margin: 0 0 0.75em; color: var(--g-text); }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.4em; }
.footer-col a { color: var(--g-muted); text-decoration: none; }
.footer-col a:hover { color: var(--g-accent); text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--g-border); margin-top: 2rem; padding-top: 1.25rem; font-size: 0.875rem; }
.footer-bottom p { margin: 0 0 0.5em; }
.has-sticky-cta .site-footer { padding-bottom: 5rem; }
@media (min-width: 768px) { .has-sticky-cta .site-footer { padding-bottom: var(--g-space); } }

/* Comments off, entry footer */
.entry-footer { font-size: 0.875rem; color: var(--g-muted); margin-top: 2em; }
.tags-links a { display: inline-block; padding: 0.2em 0.6em; background: var(--g-surface); border-radius: var(--g-radius); text-decoration: none; margin: 0 0.3em 0.3em 0; }

/* Editor */
.editor-styles-wrapper { font-family: var(--g-font); font-size: var(--g-size); line-height: var(--g-lh); color: var(--g-text); }

/* ---------- Header CTA ---------- */
.header-cta { display: none; padding: 0.6em 1em; font-size: 0.9375rem; }
@media (min-width: 768px) { .header-cta { display: inline-block; } }

/* ---------- Short answer link ---------- */
.short-answer-link { display: block; margin-top: 0.6em; font-size: 0.9375rem; font-weight: 600; }

/* ---------- Landing pages ---------- */
.landing-header { margin-bottom: 1rem; }
.landing-header .entry-title { margin-bottom: 0.4em; }
.landing-subline { font-size: 1.15rem; color: var(--g-muted); margin: 0 0 1rem; }
.landing-form-top .gutter-cta { margin-top: 0; }
.landing-form-top .gutter-cta, .landing-form-bottom .gutter-cta { padding: 1.25rem; }
@media (max-width: 767px) {
	.landing-form-top 	.landing-form-top .gutter-cta h2 { font-size: 1.15rem; }
	.landing-header .breadcrumbs { display: none; }
}
.landing-section { padding: var(--g-space-lg) 0 0; }
.landing-section .section-title { margin-bottom: 1rem; }
.landing-section > .section-title.content-width { margin-left: auto; margin-right: auto; }
.how-it-works .site-container { max-width: var(--g-wide); }
.landing-content > * { max-width: var(--g-content); }
.landing-content > .wp-block-table, .landing-content > .table-wrap { max-width: var(--g-wide); }
.how-it-works { padding: var(--g-space-lg) 0; margin-top: var(--g-space-lg); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; counter-reset: step; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { display: flex; gap: 0.9rem; align-items: flex-start; margin: 0; font-weight: 500; }
.step-num { flex: none; width: 2rem; height: 2rem; border-radius: 50%; background: var(--g-accent); color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-size: 0.9375rem; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
@media (min-width: 640px) { .checklist { grid-template-columns: 1fr 1fr; } }
.checklist li { margin: 0; padding: 0.75rem 1rem 0.75rem 2.4rem; position: relative; background: var(--g-surface); border-radius: var(--g-radius); }
.checklist li::before { content: ""; position: absolute; left: 1rem; top: 1.1rem; width: 0.8em; height: 0.45em; border-left: 2px solid var(--g-success); border-bottom: 2px solid var(--g-success); transform: rotate(-45deg); }
.landing-faq .wp-block-heading, .landing-faq h2 { display: none; }
.landing-page .related-posts { margin-top: 0; }
.pill-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pill-list li { margin: 0; }
.pill { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.1em; border: 1px solid var(--g-border); border-radius: var(--g-radius); background: #fff; color: var(--g-accent); text-decoration: none; font-weight: 600; }
.pill:hover { border-color: var(--g-accent); background: var(--g-accent-soft); }
.landing-back-to-estimator { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin: var(--g-space-lg) 0 0; padding: 1.25rem; background: var(--g-surface); border: 1px solid var(--g-border); border-radius: var(--g-radius); }
.landing-back-to-estimator p { margin: 0; font-weight: 600; flex: 1 1 200px; }

/* ---------- Estimator ---------- */
.cta-subline { color: var(--g-muted); margin: -0.25em 0 1em; font-size: 0.9375rem; }
.estimator .form-row { margin-bottom: 1rem; }
.estimator legend { font-weight: 600; margin-bottom: 0.3em; }
.radio-group { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.radio-pill { position: relative; margin: 0; font-weight: 500; }
.radio-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.radio-pill span { display: inline-flex; align-items: center; min-height: 48px; padding: 0 1.1em; border: 1px solid #9aa3ad; border-radius: var(--g-radius); background: #fff; cursor: pointer; }
.radio-pill input:checked + span { border-color: var(--g-accent); background: var(--g-accent-soft); color: var(--g-accent-dark); font-weight: 600; box-shadow: inset 0 0 0 1px var(--g-accent); }
.radio-pill input:focus-visible + span { outline: 3px solid var(--g-cta); outline-offset: 2px; }
.est-result { min-height: 5.5rem; margin-top: 0.5rem; padding-top: 1rem; border-top: 1px solid var(--g-border); opacity: 1; }
.est-result.is-visible { animation: est-fade 0.35s ease-out; }
@keyframes est-fade { from { opacity: 0.2; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .est-result.is-visible { animation: none; } }
.est-hint { color: var(--g-muted); margin: 0; font-size: 0.9375rem; }
.est-range { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin-bottom: 0.75rem; }
.est-cell { background: #fff; border: 1px solid var(--g-border); border-radius: var(--g-radius); padding: 0.6rem 0.5rem; text-align: center; }
.est-cell span { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--g-muted); }
.est-cell strong { display: block; font-size: clamp(1.15rem, 5vw, 1.6rem); line-height: 1.2; }
.est-cell.is-typical { border-color: var(--g-accent); background: var(--g-accent-soft); }
.est-perfoot { color: var(--g-muted); margin: 0 0 0.6em; font-size: 0.9375rem; }
.est-verdict { font-weight: 600; margin-bottom: 1em; }
.est-sub { font-size: 1rem; margin: 0 0 0.5em; }
.est-checklist { font-size: 0.9375rem; margin-bottom: 1em; }
.est-checklist li { padding: 0.5rem 0.8rem 0.5rem 2.2rem; background: #fff; }
.est-checklist li::before { top: 0.85rem; left: 0.8rem; }
.est-links { font-size: 0.9375rem; margin-bottom: 0.5em; }
.est-next { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--g-border); }
.est-next h3 { margin: 0 0 0.4em; font-size: 1.1rem; }
.est-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 0.5rem; }
.est-nojs { margin: 0; }
