/*
Theme Name: SolarWattPro
Theme URI: https://solarwattpro.com/
Author: SolarWattPro
Author URI: https://solarwattpro.com/
Description: Lightweight, AdSense-ready calculator theme for SolarWattPro.com. Off-grid solar, battery bank and inverter sizing calculator on the front page, a clean blog for sizing guides, widget-ready sidebar and ad slots, and custom menus. No CSS framework, no icon font, no jQuery.
Version: 2.5.6
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: solarwattpro
Tags: blog, two-columns, right-sidebar, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* ==========================================================================
   1. Design tokens
   ========================================================================== */
:root {
	--slate-50: #f8fafc;
	--slate-100: #f1f5f9;
	--slate-200: #e2e8f0;
	--slate-300: #cbd5e1;
	--slate-400: #94a3b8;
	--slate-500: #64748b;
	--slate-600: #475569;
	--slate-700: #334155;
	--slate-800: #1e293b;
	--slate-900: #0f172a;

	/* Brand blue from the SolarWattPro logo (token names kept for compatibility). */
	--emerald-50: #eef5fe;
	--emerald-100: #d6e8fd;
	--emerald-400: #5aa5f0;
	--emerald-500: #1f7fe0;
	--emerald-600: #0b5fc2;
	--emerald-700: #0a4d9e;
	--emerald-800: #0b2d55;
	--brand-navy: #0b2d55;
	--brand-amber: #f5a623;

	--amber-400: #fbbf24;
	--amber-500: #f59e0b;
	--amber-600: #d97706;
	--blue-400: #60a5fa;
	--blue-600: #2563eb;
	--purple-400: #c084fc;
	--purple-600: #9333ea;

	--font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	--font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

	--radius-lg: 0.5rem;
	--radius-xl: 0.75rem;
	--radius-2xl: 1rem;
	--shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
	--shadow-md: 0 4px 10px -2px rgba(15, 23, 42, 0.1);
	--shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.1);

	--wrap: 80rem;      /* max-w-7xl */
	--wrap-tool: 64rem; /* max-w-5xl */
}

/* ==========================================================================
   2. Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: 1rem;
	line-height: 1.5;
	color: var(--slate-800);
	background: var(--slate-50);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}
img, svg, video { max-width: 100%; height: auto; }
svg { vertical-align: middle; }
a { color: var(--emerald-600); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--emerald-700); }
h1, h2, h3, h4, h5, h6 { margin: 0; color: var(--slate-900); line-height: 1.25; }
p { margin: 0; }
ul { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
code, kbd, pre { font-family: var(--font-mono); font-size: .875em; }
table { border-collapse: collapse; width: 100%; }

.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;
}
.screen-reader-text:focus, .skip-link:focus {
	background: #fff; clip: auto !important; clip-path: none; color: var(--slate-900);
	display: block; font-weight: 700; height: auto; left: .5rem; top: .5rem;
	padding: .75rem 1rem; width: auto; z-index: 100000; border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
}
:focus-visible { outline: 2px solid var(--emerald-500); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1rem; }
.wrap--tool { max-width: var(--wrap-tool); }
@media (min-width: 640px) { .wrap { padding: 0 1.5rem; } .wrap--tool { padding: 0 1rem; } }

.icon { width: 1em; height: 1em; flex-shrink: 0; fill: currentColor; }
.icon--stroke { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.text-amber { color: var(--amber-500); }
.text-emerald { color: var(--emerald-600); }

/* ==========================================================================
   3. Header
   ========================================================================== */
.site-header {
	background: #fff;
	border-bottom: 1px solid var(--slate-200);
	position: sticky;
	top: 0;
	z-index: 50;
	box-shadow: var(--shadow-sm);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

.site-header__inner {
	display: flex; align-items: center; justify-content: space-between; gap: 1rem;
	padding-top: .875rem; padding-bottom: .875rem;
}
.site-brand { display: flex; align-items: center; gap: .5rem; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.025em; color: var(--emerald-600); line-height: 1; }
.site-brand:hover { color: var(--emerald-600); }
.site-brand .icon { color: var(--amber-500); width: 1.5rem; height: 1.5rem; }
.site-brand__accent { color: var(--slate-900); }
.custom-logo-link { display: inline-flex; }
.custom-logo { max-height: 44px; width: auto; }

.primary-nav { display: none; }
.primary-nav ul { list-style: none; display: flex; align-items: center; gap: 1.5rem; }
.primary-nav a { font-size: .875rem; font-weight: 600; color: var(--slate-600); white-space: nowrap; }
@media (max-width: 1439px) { .primary-nav ul { gap: 1rem; } .primary-nav a { font-size: .8125rem; } }
.btn--primary { white-space: nowrap; }
.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a,
.primary-nav .current-menu-ancestor > a { color: var(--emerald-600); }
.primary-nav .sub-menu { display: none; }

.header-actions { display: flex; align-items: center; gap: .5rem; }
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	border: 0; border-radius: var(--radius-lg); font-weight: 700; line-height: 1.2;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--emerald-600); color: #fff; font-size: .75rem; padding: .625rem 1rem; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--emerald-700); color: #fff; }
.header-cta { display: none; }

.menu-toggle {
	display: inline-flex; align-items: center; justify-content: center;
	width: 2.5rem; height: 2.5rem; border-radius: var(--radius-lg);
	background: var(--slate-100); border: 1px solid var(--slate-200); color: var(--slate-700);
}
.menu-toggle .icon { width: 1.25rem; height: 1.25rem; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-nav { border-top: 1px solid var(--slate-100); background: #fff; }
.mobile-nav[hidden] { display: none; }
.mobile-nav ul { list-style: none; padding: .5rem 0 1rem; }
.mobile-nav li a { display: block; padding: .625rem 0; font-weight: 600; font-size: .9375rem; color: var(--slate-700); border-bottom: 1px solid var(--slate-100); }
.mobile-nav li a:hover, .mobile-nav .current-menu-item > a { color: var(--emerald-600); }
.mobile-nav .sub-menu { padding: 0 0 0 1rem; }

@media (min-width: 640px) { .header-cta { display: inline-flex; } }
@media (min-width: 1280px) and (max-width: 1599px) { .header-cta { display: none; } .primary-nav ul { gap: .875rem; } }
@media (min-width: 1280px) {
	.primary-nav { display: block; }
	.menu-toggle, .mobile-nav { display: none !important; }
	.primary-nav li { position: relative; }
	.primary-nav li:hover > .sub-menu,
	.primary-nav li:focus-within > .sub-menu {
		display: block; position: absolute; top: 100%; left: -1rem; min-width: 14rem;
		background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius-xl);
		box-shadow: var(--shadow-md); padding: .5rem 0; z-index: 60;
	}
	.primary-nav .sub-menu li a { display: block; padding: .5rem 1rem; }
}

/* ==========================================================================
   4. Hero
   ========================================================================== */
.hero {
	background: linear-gradient(to bottom, rgba(238, 245, 254, .8), var(--slate-50));
	border-bottom: 1px solid rgba(226, 232, 240, .6);
	padding: 2.5rem 1rem;
}
.hero__inner { max-width: 56rem; margin: 0 auto; text-align: center; }
.pill {
	display: inline-flex; align-items: center; gap: .5rem;
	background: rgba(214, 232, 253, .8); color: var(--emerald-800);
	padding: .25rem .875rem; border-radius: 9999px;
	font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
	margin-bottom: .875rem;
}
.pill .icon { color: var(--amber-500); }
.hero__title { font-size: 1.875rem; font-weight: 900; letter-spacing: -0.025em; line-height: 1.15; }
.hero__lead { color: var(--slate-600); margin: .75rem auto 0; font-size: 1rem; line-height: 1.625; max-width: 42rem; }
@media (min-width: 640px) {
	.hero__title { font-size: 3rem; }
	.hero__lead { font-size: 1.125rem; }
}

/* ==========================================================================
   5. Calculator
   ========================================================================== */
.tool { margin-top: -1rem; margin-bottom: 2.5rem; }
.card {
	background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius-2xl);
	padding: 1.5rem;
}
@media (min-width: 640px) { .card { padding: 1.75rem; } }
.calc { box-shadow: var(--shadow-xl); border-color: rgba(226, 232, 240, .8); padding: 1.25rem; }
@media (min-width: 640px) { .calc { padding: 2rem; } }

.calc__presets {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem;
	padding-bottom: 1rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--slate-100);
}
.eyebrow { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--slate-400); }
.calc__preset-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
	background: var(--slate-100); border: 1px solid var(--slate-200); border-radius: var(--radius-lg);
	padding: .375rem .75rem; font-size: .75rem; font-weight: 600; color: var(--slate-700);
	transition: background-color .15s ease, color .15s ease;
}
.chip:hover, .chip.is-active { background: var(--emerald-50); color: var(--emerald-700); border-color: var(--emerald-100); }

.calc__fields { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 768px) { .calc__fields { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .calc__fields { grid-template-columns: repeat(4, 1fr); } }

.field__label { display: block; font-size: .75rem; font-weight: 700; color: var(--slate-700); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .375rem; }
.field__control { position: relative; }
.field__input {
	width: 100%; background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: var(--radius-xl);
	padding: .625rem 1rem; font-size: 1rem; font-weight: 700; color: var(--slate-800);
	outline: none; transition: background-color .15s ease, box-shadow .15s ease, border-color .15s ease;
	appearance: none; -webkit-appearance: none;
}
.field__input[type="number"] { padding-right: 5rem; -moz-appearance: textfield; }
select.field__input {
	padding-right: 2.25rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2364748b'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.17l3.71-3.94a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right .75rem center; background-size: 1.1rem;
}
.field__input:focus { background-color: #fff; border-color: var(--emerald-500); box-shadow: 0 0 0 3px rgba(31, 127, 224, .25); }
.field__unit { position: absolute; right: .75rem; top: 50%; transform: translateY(-50%); font-size: .75rem; font-weight: 700; color: var(--slate-400); pointer-events: none; }
.field__hint { display: block; margin-top: .25rem; font-size: 11px; color: var(--slate-400); }

.calc__secondary {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
	margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--slate-100); font-size: .75rem;
}
.calc__autonomy { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.calc__autonomy label { font-weight: 700; color: var(--slate-700); }
.select-sm {
	background: var(--slate-100); border: 1px solid var(--slate-200); border-radius: var(--radius-lg);
	padding: .375rem .625rem; font-weight: 700; font-size: .75rem; outline: none;
}
.select-sm:focus { border-color: var(--emerald-500); }
.btn--calc { background: var(--emerald-600); color: #fff; font-size: .75rem; padding: .5rem 1.25rem; border-radius: var(--radius-xl); }
.btn--calc:hover { background: var(--emerald-700); }

/* Results panel */
.results { margin-top: 2rem; background: var(--slate-900); color: #fff; border-radius: var(--radius-2xl); padding: 1.5rem; box-shadow: var(--shadow-xl); }
@media (min-width: 640px) { .results { padding: 2rem; } }
.results__label { display: flex; align-items: center; gap: .5rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--emerald-400); margin-bottom: 1.25rem; }
.results__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; text-align: center; }
@media (min-width: 640px) { .results__grid { text-align: left; } }
@media (min-width: 768px) { .results__grid { grid-template-columns: repeat(4, 1fr); } }
.metric { border-bottom: 1px solid var(--slate-800); padding-bottom: 1rem; }
.metric:nth-child(n+3) { border-bottom: 0; padding-bottom: 0; }
@media (min-width: 768px) {
	.metric { border-bottom: 0; padding-bottom: 0; border-right: 1px solid var(--slate-800); padding-right: 1rem; }
	.metric:last-child { border-right: 0; }
}
.metric__name { font-size: .75rem; color: var(--slate-400); text-transform: uppercase; font-weight: 600; }
.metric__value { font-size: 1.875rem; font-weight: 900; margin-top: .25rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.metric__unit { font-size: 1rem; font-weight: 400; color: var(--slate-300); }
.metric__sub { display: block; margin-top: .25rem; font-size: .75rem; color: var(--slate-400); }
.metric__sub strong { color: #fff; }
.metric--solar .metric__value { color: var(--amber-400); }
.metric--battery .metric__value { color: var(--emerald-400); }
.metric--inverter .metric__value { color: var(--blue-400); }
.metric--mppt .metric__value { color: var(--purple-400); }

.results__actions {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
	margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--slate-800); font-size: .75rem;
}
.results__note { color: var(--slate-400); max-width: 36rem; }
.btn--copy { background: var(--emerald-600); color: #fff; font-size: .75rem; padding: .625rem 1rem; }
.btn--copy:hover { background: var(--emerald-500); }

/* ==========================================================================
   6. Ad slots
   ========================================================================== */
.ad-slot { margin-bottom: 2.5rem; text-align: center; }
.ad-slot--in-content { margin: 2rem 0; }
.ad-placeholder {
	background: var(--slate-100); border: 1px dashed var(--slate-300); border-radius: var(--radius-xl);
	padding: 1.5rem 1rem; font-size: .75rem; color: var(--slate-400); text-align: center;
}
.ad-placeholder--tall { padding: 3rem 1rem; }
.ad-slot .widget { margin: 0; }

/* ==========================================================================
   7. Layout: content + sidebar
   ========================================================================== */
.layout { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-bottom: 4rem; flex-grow: 1; padding-top: 0; }
.layout--page { padding-top: 2.5rem; }
@media (min-width: 1024px) {
	.layout { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
	.layout--full { grid-template-columns: minmax(0, 1fr); max-width: 56rem; }
}
.content-area { min-width: 0; display: flex; flex-direction: column; gap: 2rem; }

.section-title { font-size: 1.5rem; font-weight: 900; letter-spacing: -0.025em; margin-bottom: .75rem; }
.section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: 1.25rem; }
.section-head .section-title { margin-bottom: 0; }
.section-head__link { font-size: .75rem; font-weight: 700; color: var(--emerald-600); text-transform: uppercase; letter-spacing: .05em; }
.section-lead { color: var(--slate-600); font-size: .875rem; line-height: 1.625; margin-bottom: 1.25rem; }

/* Data tables */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { text-align: left; font-size: .875rem; }
.data-table th, .data-table td { padding: .75rem; border: 1px solid var(--slate-200); }
.data-table thead tr { background: var(--slate-100); }
.data-table th { color: var(--slate-800); font-weight: 700; }
.data-table td { color: var(--slate-600); }
.data-table td:first-child { font-weight: 600; }
.data-table .is-win { font-weight: 700; color: var(--emerald-600); }
.data-table th.is-win { color: var(--emerald-700); }

/* Formula blocks */
.formula-list { display: flex; flex-direction: column; gap: 1rem; font-size: .875rem; color: var(--slate-600); line-height: 1.625; }
.formula { padding: 1rem; background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: var(--radius-xl); }
.formula strong { display: block; margin-bottom: .25rem; color: var(--slate-900); font-size: 1rem; }
.formula code { color: var(--slate-700); white-space: normal; word-break: break-word; }
.formula p { font-size: .75rem; color: var(--slate-500); margin-top: .375rem; }

/* Post cards */
.post-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
.post-card {
	position: relative; display: flex; flex-direction: column;
	padding: 1rem; border: 1px solid var(--slate-200); border-radius: var(--radius-xl); background: #fff;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.post-card:hover { border-color: var(--emerald-500); box-shadow: var(--shadow-md); }
.post-card__thumb { display: block; margin: -1rem -1rem 1rem; border-radius: var(--radius-xl) var(--radius-xl) 0 0; overflow: hidden; aspect-ratio: 16 / 9; background: var(--slate-100); }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card__cat { position: relative; z-index: 2; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.post-card__title { font-size: 1rem; font-weight: 700; margin: .25rem 0 .5rem; }
.post-card__title a { color: var(--slate-900); }
.post-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.post-card:hover .post-card__title a { color: var(--emerald-600); }
.post-card__excerpt { font-size: .75rem; color: var(--slate-500); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-card__meta { margin-top: auto; padding-top: .75rem; font-size: 11px; color: var(--slate-400); }
.cat-color-0 { color: #059669; }
.cat-color-1 { color: var(--blue-600); }
.cat-color-2 { color: var(--purple-600); }
.cat-color-3 { color: var(--amber-600); }
.cat-color-4 { color: #e11d48; }
.empty-state { font-size: .875rem; color: var(--slate-500); padding: 1rem; background: var(--slate-50); border: 1px dashed var(--slate-300); border-radius: var(--radius-xl); }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 1rem; font-size: .875rem; color: var(--slate-600); }
.faq__item { border-bottom: 1px solid var(--slate-100); padding-bottom: .75rem; }
.faq__item:last-child { border-bottom: 0; padding-bottom: 0; }
.faq__q { display: block; margin-bottom: .25rem; color: var(--slate-900); font-size: .875rem; font-weight: 700; }

/* ==========================================================================
   8. Sidebar & widgets
   ========================================================================== */
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; min-width: 0; }
.widget { background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius-2xl); padding: 1.5rem; font-size: .875rem; color: var(--slate-600); }
.widget--ad { padding: 1rem; }
.widget-title { display: flex; align-items: center; gap: .5rem; font-size: 1rem; font-weight: 700; color: var(--slate-900); margin-bottom: .75rem; }
.widget-title .icon { color: var(--emerald-600); }
.widget ul { list-style: none; }
.widget li { padding: .5rem 0; border-top: 1px solid var(--slate-100); }
.widget li:first-child { border-top: 0; }
.widget li a { color: var(--slate-700); font-weight: 600; }
.widget li a:hover { color: var(--emerald-600); }
.widget select, .widget input[type="search"], .widget input[type="text"] { width: 100%; padding: .5rem .75rem; border: 1px solid var(--slate-200); border-radius: var(--radius-lg); background: var(--slate-50); }
.widget p + p { margin-top: .5rem; }
.widget .wp-block-heading { font-size: 1rem; margin-bottom: .75rem; }

.watt-list li { display: flex; justify-content: space-between; gap: .75rem; font-size: .75rem; }
.watt-list strong { color: var(--slate-800); text-align: right; white-space: nowrap; }
.about-widget__text { font-size: .75rem; color: var(--slate-500); line-height: 1.625; margin-bottom: .75rem; }
.badge { display: inline-block; font-size: 11px; font-weight: 700; color: var(--emerald-700); background: var(--emerald-50); padding: .25rem .625rem; border-radius: .375rem; }

@media (min-width: 1024px) { .sidebar__sticky { position: sticky; top: 5.5rem; } }

/* Search form */
.search-form { display: flex; gap: .5rem; }
.search-form label { flex: 1; }
.search-field { width: 100%; padding: .5rem .75rem; border: 1px solid var(--slate-200); border-radius: var(--radius-lg); background: var(--slate-50); }
.search-submit { background: var(--emerald-600); color: #fff; border: 0; border-radius: var(--radius-lg); padding: .5rem .875rem; font-weight: 700; font-size: .8125rem; }
.search-submit:hover { background: var(--emerald-700); }

/* ==========================================================================
   9. Archive / single / page
   ========================================================================== */
.page-header { margin-bottom: .25rem; }
.page-header__title { font-size: 1.875rem; font-weight: 900; letter-spacing: -0.025em; }
.page-header__desc { margin-top: .5rem; color: var(--slate-600); font-size: .9375rem; }

.breadcrumbs { font-size: .75rem; color: var(--slate-500); margin-bottom: 1rem; }
.breadcrumbs a { color: var(--slate-500); font-weight: 600; }
.breadcrumbs a:hover { color: var(--emerald-600); }
.breadcrumbs span[aria-hidden] { margin: 0 .375rem; color: var(--slate-300); }

.entry { padding: 1.5rem; }
@media (min-width: 640px) { .entry { padding: 2.5rem; } }
.entry-header { margin-bottom: 1.5rem; }
.entry-cat { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.entry-title { font-size: 1.875rem; font-weight: 900; letter-spacing: -0.025em; line-height: 1.2; margin-top: .5rem; }
@media (min-width: 640px) { .entry-title { font-size: 2.25rem; } }
.entry-meta { margin-top: .75rem; font-size: .8125rem; color: var(--slate-500); display: flex; flex-wrap: wrap; gap: .25rem .75rem; }
.entry-meta a { color: var(--slate-600); font-weight: 600; }
.entry-thumb { margin: 0 0 1.75rem; border-radius: var(--radius-xl); overflow: hidden; }
.entry-thumb img { display: block; width: 100%; }

/* Readable article typography */
.entry-content { font-size: 1.0625rem; line-height: 1.75; color: var(--slate-700); overflow-wrap: break-word; }
.entry-content > * + * { margin-top: 1.25em; }
.entry-content h2 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; margin-top: 2em; }
.entry-content h3 { font-size: 1.25rem; font-weight: 700; margin-top: 1.75em; }
.entry-content h4 { font-size: 1.0625rem; font-weight: 700; margin-top: 1.5em; }
.entry-content a { text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(11, 95, 194, .4); }
.entry-content a:hover { text-decoration-color: currentColor; }
.entry-content ul, .entry-content ol { padding-left: 1.5em; }
.entry-content li + li { margin-top: .375em; }
.entry-content strong { color: var(--slate-900); }
.entry-content blockquote { margin-left: 0; margin-right: 0; padding: 1rem 1.25rem; border-left: 4px solid var(--emerald-500); background: var(--emerald-50); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; color: var(--slate-700); }
.entry-content blockquote p { margin: 0; }
.entry-content table { font-size: .9375rem; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { padding: .625rem .75rem; border: 1px solid var(--slate-200); text-align: left; }
.entry-content thead, .entry-content th { background: var(--slate-100); color: var(--slate-900); }
.entry-content .wp-block-table { overflow-x: auto; }
.entry-content .wp-block-table table { display: table; }
.entry-content pre { background: var(--slate-900); color: var(--slate-100); padding: 1rem; border-radius: var(--radius-lg); overflow-x: auto; }
.entry-content :not(pre) > code { background: var(--slate-100); padding: .1em .35em; border-radius: .25rem; color: var(--slate-800); }
.entry-content img { border-radius: var(--radius-lg); }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content figcaption, .wp-caption-text { font-size: .8125rem; color: var(--slate-500); text-align: center; margin-top: .5rem; }
.entry-content hr { border: 0; border-top: 1px solid var(--slate-200); margin: 2rem 0; }
.entry-content .swp-tool { margin: 2rem 0; }
.alignleft { float: left; margin: .25rem 1.5rem 1rem 0; }
.alignright { float: right; margin: .25rem 0 1rem 1.5rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide, .alignfull { max-width: 100%; }
.wp-block-button__link { background: var(--emerald-600); color: #fff !important; text-decoration: none !important; border-radius: var(--radius-lg); padding: .625rem 1.25rem; font-weight: 700; }
.sticky, .gallery-caption, .bypostauthor { /* WP required classes */ }

.page-links { margin-top: 2rem; font-weight: 700; font-size: .875rem; }

.entry-footer { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--slate-100); }
.tag-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag-list a { font-size: .75rem; font-weight: 600; color: var(--slate-600); background: var(--slate-100); padding: .25rem .625rem; border-radius: 9999px; }
.tag-list a:hover { background: var(--emerald-50); color: var(--emerald-700); }

.cta-box {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
	margin-top: 2rem; padding: 1.25rem 1.5rem; border-radius: var(--radius-xl);
	background: var(--slate-900); color: var(--slate-300);
}
.cta-box strong { display: block; color: #fff; font-size: 1rem; }
.cta-box p { font-size: .8125rem; }

.post-nav { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .post-nav { grid-template-columns: 1fr 1fr; } }
.post-nav a { display: block; height: 100%; background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius-xl); padding: 1rem 1.25rem; color: var(--slate-900); font-weight: 700; font-size: .9375rem; transition: border-color .15s ease; }
.post-nav a:hover { border-color: var(--emerald-500); color: var(--emerald-700); }
.post-nav__label { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--slate-400); margin-bottom: .25rem; }
.post-nav__next { text-align: right; }

/* Pagination */
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 2.5rem; height: 2.5rem; padding: 0 .75rem;
	border: 1px solid var(--slate-200); border-radius: var(--radius-lg); background: #fff;
	font-size: .875rem; font-weight: 700; color: var(--slate-700);
}
.pagination .page-numbers:hover { border-color: var(--emerald-500); color: var(--emerald-700); }
.pagination .page-numbers.current { background: var(--emerald-600); border-color: var(--emerald-600); color: #fff; }
.pagination .page-numbers.dots { border: 0; background: transparent; }

/* Comments */
.comments-area { margin-top: 0; }
.comment-list { list-style: none; }
.comment-list .children { list-style: none; padding-left: 1.5rem; }
.comment-body { padding: 1rem 0; border-top: 1px solid var(--slate-100); font-size: .9375rem; }
.comment-meta { font-size: .8125rem; color: var(--slate-500); margin-bottom: .5rem; }
.comment-author .avatar { border-radius: 9999px; vertical-align: middle; margin-right: .5rem; }
.comment-author .fn { font-style: normal; font-weight: 700; color: var(--slate-900); }
.comment-metadata a { color: var(--slate-500); }
.reply a { font-size: .8125rem; font-weight: 700; }
.comment-respond { margin-top: 1.5rem; }
.comment-reply-title { font-size: 1.125rem; font-weight: 800; margin-bottom: .75rem; }
.comment-form p { margin-bottom: 1rem; }
.comment-form label { display: block; font-size: .8125rem; font-weight: 700; color: var(--slate-700); margin-bottom: .25rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: .625rem .75rem; border: 1px solid var(--slate-200); border-radius: var(--radius-lg); background: var(--slate-50);
}
.comment-form .comment-form-cookies-consent { display: flex; gap: .5rem; align-items: flex-start; }
.comment-form .comment-form-cookies-consent label { font-weight: 400; }
.comment-form .submit { background: var(--emerald-600); color: #fff; border: 0; border-radius: var(--radius-lg); padding: .625rem 1.25rem; font-weight: 700; }
.comment-form .submit:hover { background: var(--emerald-700); }

/* ==========================================================================
   10. Footer
   ========================================================================== */
.site-footer { background: var(--slate-900); color: var(--slate-400); padding: 3rem 0; border-top: 1px solid var(--slate-800); font-size: .875rem; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-bottom: 2rem; }
@media (min-width: 768px) {
	.footer-grid { grid-template-columns: repeat(4, 1fr); }
	.footer-brand { grid-column: span 2; }
}
.footer-brand .site-brand { color: #fff; font-size: 1.25rem; margin-bottom: .75rem; }
.footer-brand .site-brand:hover { color: #fff; }
.footer-brand .site-brand__accent { color: var(--emerald-400); }
.footer-brand p { font-size: .75rem; line-height: 1.625; max-width: 24rem; }
.footer-col__title { font-size: .75rem; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .75rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; font-size: .75rem; }
.footer-col a { color: var(--slate-400); }
.footer-col a:hover { color: #fff; }
.footer-col .widget { background: transparent; border: 0; padding: 0; color: var(--slate-400); font-size: .75rem; }
.footer-col .widget li { border: 0; padding: 0; }
.footer-col .widget li a { color: var(--slate-400); font-weight: 400; }
.footer-bottom {
	padding-top: 2rem; border-top: 1px solid var(--slate-800);
	display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 1rem;
	font-size: .75rem; color: var(--slate-500); text-align: center;
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; text-align: left; } }

/* ==========================================================================
   11. 404 / no results
   ========================================================================== */
.not-found { text-align: center; padding: 3rem 1.5rem; }
.not-found .page-header__title { font-size: 2.25rem; }
.not-found p { color: var(--slate-600); margin: .75rem auto 1.5rem; max-width: 32rem; }
.not-found .search-form { max-width: 28rem; margin: 0 auto 1.5rem; }

/* ==========================================================================
   12. Print & motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; }
}
@media print {
	.site-header, .site-footer, .sidebar, .ad-slot, .calc__presets, .results__actions, .comments-area, .post-nav { display: none !important; }
	body { background: #fff; }
	.results { background: #fff; color: #000; box-shadow: none; border: 1px solid #ccc; }
}

/* Core block widgets (search etc.) */
.wp-block-search__label { display: block; font-weight: 700; color: var(--slate-900); margin-bottom: .5rem; }
.wp-block-search__inside-wrapper { display: flex; gap: .5rem; }
.wp-block-search__input { flex: 1; min-width: 0; padding: .5rem .75rem; border: 1px solid var(--slate-200); border-radius: var(--radius-lg); background: var(--slate-50); }
.wp-block-search__button { margin: 0; background: var(--emerald-600); color: #fff; border: 0; border-radius: var(--radius-lg); padding: .5rem .875rem; font-weight: 700; font-size: .8125rem; }
.wp-block-search__button:hover { background: var(--emerald-700); }

/* Author box & byline */
.byline-avatar { width: 28px; height: 28px; border-radius: 9999px; vertical-align: middle; margin-right: .375rem; }
.author-box { display: flex; gap: 1.25rem; align-items: flex-start; margin-top: 2rem; padding: 1.25rem; border: 1px solid var(--slate-200); border-radius: var(--radius-xl); background: var(--slate-50); }
.author-box__photo { width: 80px; height: 80px; border-radius: 9999px; flex-shrink: 0; object-fit: cover; border: 3px solid #fff; box-shadow: var(--shadow-md); }
.author-box__label { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--slate-400); }
.author-box__name { font-size: 1.125rem; font-weight: 800; color: var(--slate-900); }
.author-box__bio { font-size: .875rem; color: var(--slate-600); margin-top: .375rem; line-height: 1.6; }
.author-box__links { display: flex; gap: 1rem; margin-top: .5rem; font-size: .8125rem; font-weight: 700; }
@media (max-width: 480px) { .author-box { flex-direction: column; } }
.author-header { display: flex; gap: 1.25rem; align-items: center; }
.author-header img { width: 96px; height: 96px; border-radius: 9999px; object-fit: cover; flex-shrink: 0; }
.author-card { display: flex; gap: 1.5rem; align-items: center; padding: 1.25rem; background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: var(--radius-xl); }
.entry-content .author-card img { width: 140px; height: 140px; border-radius: 9999px; object-fit: cover; flex-shrink: 0; }
.author-card p { margin: 0; }
@media (max-width: 560px) { .author-card { flex-direction: column; text-align: center; } }

/* Editor-only reminder box (hidden from visitors by functions.php) */
.swp-experience-todo { margin: 2rem 0; padding: 1rem 1.25rem; border: 2px dashed var(--amber-500); border-radius: var(--radius-xl); background: #fffbeb; color: #78350f; font-size: .9375rem; line-height: 1.6; }
.swp-experience-todo strong { display: block; color: #78350f; margin-bottom: .25rem; }

/* ==========================================================================
   13. Calculators: topic tools ([swp_tool]) and all-in-one (home page)
   ========================================================================== */
.swp-tool { margin: 2rem 0; border: 1px solid var(--slate-200); border-radius: var(--radius-2xl); background: #fff; box-shadow: var(--shadow-md); overflow: hidden; }
.entry-content .swp-tool { font-size: 1rem; line-height: 1.5; }
.swp-tool__head { display: flex; align-items: center; gap: .625rem; padding: .875rem 1.25rem; background: var(--slate-900); color: #fff; }
.swp-tool__head .icon { color: var(--amber-400); width: 1.25rem; height: 1.25rem; }
.swp-tool__title { margin: 0 !important; font-size: 1rem !important; font-weight: 800; color: #fff !important; }
.swp-tool__body { display: grid; grid-template-columns: 1fr; gap: 1rem; padding: 1.25rem; }
@media (min-width: 720px) { .swp-tool__body { grid-template-columns: 1.15fr 1fr; } }
.swp-tool__fields { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; align-content: start; }
.swp-tool__field { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.swp-tool__label { font-size: .75rem; font-weight: 700; color: var(--slate-600); line-height: 1.3; }
.swp-tool__control { display: flex; align-items: center; gap: .375rem; }
.swp-tool__input { width: 100%; min-width: 0; padding: .5rem .625rem; border: 1px solid var(--slate-200); border-radius: var(--radius-lg); background: var(--slate-50); font-weight: 700; font-size: .9375rem; color: var(--slate-800); }
.swp-tool__input:focus { outline: none; border-color: var(--emerald-500); box-shadow: 0 0 0 3px rgba(31, 127, 224, .2); background: #fff; }
.swp-tool__unit { font-size: .6875rem; font-weight: 700; color: var(--slate-400); white-space: nowrap; }
.swp-tool__results { background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: var(--radius-xl); padding: .5rem 1rem; align-self: start; }
.swp-tool__res { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--slate-200); font-size: .875rem; color: var(--slate-600); }
.swp-tool__res:last-child { border-bottom: 0; }
.swp-tool__res strong { color: var(--slate-900); text-align: right; font-variant-numeric: tabular-nums; }
.swp-tool__res small { font-weight: 600; color: var(--slate-500); }
.swp-tool__res.is-key strong { color: var(--emerald-700); font-size: 1.0625rem; }
.swp-tool__foot { padding: 0 1.25rem 1rem; font-size: .75rem; color: var(--slate-500); }
.swp-tool__foot a { font-weight: 700; }
@media (max-width: 420px) { .swp-tool__fields { grid-template-columns: 1fr; } }

.swp-load__head, .swp-load__row { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)) minmax(0, 1fr) 1.75rem; gap: .375rem; align-items: center; }
.swp-load__head { font-size: .6875rem; font-weight: 700; text-transform: uppercase; color: var(--slate-500); margin-bottom: .25rem; }
.swp-load__row { margin-bottom: .375rem; }
.swp-load__row input { width: 100%; min-width: 0; padding: .4rem .5rem; border: 1px solid var(--slate-200); border-radius: .375rem; font-size: .8125rem; }
.swp-load__row output { font-size: .8125rem; font-weight: 700; text-align: right; }
.swp-load__row button, .aio-del { border: 0; background: var(--slate-100); border-radius: .375rem; color: var(--slate-500); height: 1.75rem; }
.swp-load__add { margin-top: .25rem; border: 1px dashed var(--slate-300); background: #fff; border-radius: var(--radius-lg); padding: .4rem .75rem; font-weight: 700; font-size: .8125rem; color: var(--emerald-700); }

/* All-in-one */
.aio-step { padding-bottom: 1.5rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--slate-100); }
.aio-step__title { display: flex; align-items: center; gap: .625rem; font-size: 1.125rem; font-weight: 800; margin-bottom: 1rem; }
.aio-num { display: inline-flex; align-items: center; justify-content: center; width: 1.75rem; height: 1.75rem; border-radius: 9999px; background: var(--emerald-600); color: #fff; font-size: .875rem; }
.aio-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.aio-tab { border: 1px solid var(--slate-200); background: var(--slate-50); border-radius: 9999px; padding: .5rem 1rem; font-weight: 700; font-size: .8125rem; color: var(--slate-600); }
.aio-tab[aria-selected="true"] { background: var(--emerald-600); border-color: var(--emerald-600); color: #fff; }
.aio-presets { margin-bottom: 1rem; }
.aio-table { overflow-x: auto; }
.aio-head, .aio-row { display: grid; grid-template-columns: minmax(10rem, 2.4fr) minmax(4rem, .8fr) minmax(4rem, .8fr) minmax(3.5rem, .6fr) minmax(4rem, .8fr) 2rem; gap: .5rem; align-items: center; min-width: 34rem; }
.aio-head { font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--slate-500); padding: 0 0 .375rem; }
.aio-row { padding: .25rem 0; }
.aio-row select, .aio-row input { width: 100%; padding: .5rem .5rem; border: 1px solid var(--slate-200); border-radius: var(--radius-lg); background: var(--slate-50); font-size: .875rem; font-weight: 600; }
.aio-row output { text-align: right; font-weight: 800; font-size: .875rem; font-variant-numeric: tabular-nums; }
.aio-add { margin-top: .75rem; background: var(--emerald-50); color: var(--emerald-700); }
.aio-add:hover { background: var(--emerald-100); color: var(--emerald-800); }
.aio-narrow { max-width: 22rem; }
.aio-sub { margin-top: .625rem; }
.aio-money { margin-top: 1rem; border: 1px dashed var(--slate-300); border-radius: var(--radius-xl); padding: .75rem 1rem; }
.aio-money summary { cursor: pointer; font-weight: 700; font-size: .875rem; color: var(--slate-700); }
.aio-money .calc__fields { margin-top: 1rem; }
.aio-out { margin-top: 0; }
.aio-where { margin-left: auto; color: var(--slate-300); font-weight: 600; letter-spacing: 0; text-transform: none; }
.aio-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--slate-800); border-radius: var(--radius-xl); overflow: hidden; }
@media (min-width: 900px) { .aio-results { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.aio-res { background: var(--slate-900); padding: .875rem 1rem; display: flex; flex-direction: column; gap: .125rem; }
.aio-res__label { font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--slate-400); }
.aio-res__value { font-size: 1.375rem; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; }
.aio-res.is-key .aio-res__value { color: var(--amber-400); }
.aio-res__sub { font-size: .75rem; color: var(--slate-400); }
@media (max-width: 480px) { .aio-results { grid-template-columns: 1fr; } }

/* Featured images */
.post-card__thumb img, .entry-thumb img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; background: var(--slate-100); }
.tools-strip { margin-bottom: 2.5rem; }
.tools-strip__title { font-size: 1.125rem; font-weight: 800; margin-bottom: .75rem; }
.tools-strip__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .625rem; }
@media (min-width: 640px) { .tools-strip__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .tools-strip__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.tools-strip__item { display: flex; align-items: center; gap: .5rem; padding: .75rem; background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius-xl); font-weight: 700; font-size: .8125rem; color: var(--slate-800); }
.tools-strip__item:hover { border-color: var(--emerald-500); color: var(--emerald-700); }
.tools-strip__item .icon { color: var(--emerald-600); width: 1.125rem; height: 1.125rem; }

/* Table of contents (guides) */
.swp-toc { margin: 1.75rem 0; border: 1px solid var(--slate-200); border-radius: var(--radius-xl); background: var(--slate-50); }
.swp-toc summary { cursor: pointer; padding: .875rem 1.25rem; font-weight: 800; color: var(--slate-900); list-style-position: inside; }
.swp-toc ol { margin: 0; padding: 0 1.25rem 1rem 2.5rem; display: grid; gap: .375rem; font-size: .9375rem; }
.swp-toc a { color: var(--slate-700); text-decoration: none; }
.swp-toc a:hover { color: var(--emerald-600); text-decoration: underline; }
.entry-content h2[id] { scroll-margin-top: 90px; }

/* Contact form */
.swp-contact__form { display: grid; gap: 1rem; margin-top: 1rem; }
.swp-contact__form label { display: grid; gap: .375rem; font-size: .8125rem; font-weight: 700; color: var(--slate-700); }
.swp-contact__form input, .swp-contact__form select, .swp-contact__form textarea { width: 100%; padding: .625rem .75rem; border: 1px solid var(--slate-300); border-radius: var(--radius-lg); background: #fff; font: inherit; font-weight: 400; color: var(--slate-900); }
.swp-contact__form input:focus, .swp-contact__form select:focus, .swp-contact__form textarea:focus { outline: 2px solid var(--emerald-600); outline-offset: 1px; border-color: transparent; }
.swp-contact__row { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .swp-contact__row { grid-template-columns: 1fr; } }
.swp-contact__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.swp-contact__note { font-size: .8125rem; color: var(--slate-500); margin: 0; }
.swp-contact__form button { justify-self: start; }
.swp-contact__ok, .swp-contact__err { padding: .875rem 1rem; border-radius: var(--radius-lg); font-weight: 600; }
.swp-contact__ok { background: #eef5fe; color: #0b2d55; border: 1px solid #b9d7fb; }
.swp-contact__err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* Print: calculator plans print cleanly in black on white */
@media print {
	.tools-strip, .swp-toc, .aio-add, .aio-presets, #aio-copy, .swp-load__add, .author-box, .related, .entry-cta, .breadcrumbs, .swp-contact { display: none !important; }
	.aio-results, .aio-results *, .results, .results * { background: #fff !important; color: #000 !important; }
	.swp-tool, .card { box-shadow: none !important; border: 1px solid #ccc !important; break-inside: avoid; }
	a[href^="http"]::after { content: ""; }
}

/* "What will my solar system run?" calculator */
.kw-home { margin-top: 2rem; }
.kw-home__title { font-size: clamp(1.25rem, 2.6vw, 1.6rem); font-weight: 800; color: var(--slate-900); line-height: 1.3; }
.kw-home__lead { color: var(--slate-600); margin: .5rem 0 1rem; max-width: 60rem; }
.kw__sizes { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.kw__chip { padding: .45rem .9rem; border-radius: 9999px; border: 1px solid var(--slate-300); background: #fff; font-weight: 700; font-size: .875rem; color: var(--slate-700); cursor: pointer; }
.kw__chip:hover { border-color: var(--emerald-600); color: var(--emerald-600); }
.kw__chip[aria-pressed="true"] { background: var(--emerald-600); border-color: var(--emerald-600); color: #fff; }
.kw__fields { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.kw__kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; margin: 1.25rem 0; }
.kw__kpi { padding: .875rem 1rem; border-radius: var(--radius-xl); background: var(--slate-50); border: 1px solid var(--slate-200); display: grid; gap: .125rem; }
.kw__kpi span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--slate-500); }
.kw__kpi strong { font-size: 1.35rem; font-weight: 800; color: var(--slate-900); line-height: 1.2; }
.kw__kpi small { font-size: .75rem; color: var(--slate-500); }
.kw__kpi.is-key { background: #0f172a; border-color: #0f172a; }
.kw__kpi.is-key span, .kw__kpi.is-key small { color: #94a3b8; }
.kw__kpi.is-key strong { color: #fbbf24; }
.kw__h { font-size: 1rem; font-weight: 800; color: var(--slate-900); margin: 1.5rem 0 .25rem; }
.kw__sub { font-size: .8125rem; color: var(--slate-500); margin: 0 0 .75rem; }
.kw__mixhead, .kw__row { display: grid; grid-template-columns: minmax(0, 1fr) 70px 80px 76px 28px; gap: .5rem; align-items: center; }
.kw__mixhead { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--slate-500); padding: 0 0 .375rem; }
.kw__mixhead span:nth-child(4) { grid-column: 4 / span 2; }
.kw__row { padding: .3rem 0; border-top: 1px solid var(--slate-100); }
.kw__name { font-size: .875rem; font-weight: 600; color: var(--slate-800); }
.kw__row input { width: 100%; padding: .35rem .5rem; border: 1px solid var(--slate-300); border-radius: var(--radius-lg); font: inherit; font-size: .875rem; }
.kw__row output { font-weight: 700; font-size: .875rem; text-align: right; color: var(--slate-900); }
.kw__row button { border: 0; background: var(--slate-100); color: var(--slate-500); border-radius: 6px; width: 28px; height: 28px; cursor: pointer; }
.kw__addrow { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.kw__addrow select { flex: 1 1 220px; max-width: 340px; }
.kw__add, .kw__reset { padding: .45rem .9rem; border-radius: var(--radius-lg); border: 1px solid var(--emerald-600); background: #eef5fe; color: #0b2d55; font-weight: 700; font-size: .8125rem; cursor: pointer; }
.kw__reset { border-color: var(--slate-300); background: #fff; color: var(--slate-600); }
.kw__bar { height: 10px; border-radius: 9999px; background: var(--slate-200); overflow: hidden; margin-top: 1rem; }
.kw__barfill { height: 100%; background: var(--emerald-600); border-radius: 9999px; transition: width .2s; }
.kw__barfill.is-over { background: #dc2626; }
.kw__barlabel { font-size: .875rem; color: var(--slate-600); margin: .5rem 0 0; }
.kw__warn { display: block; color: #b45309; margin-top: .25rem; }
.kw__alone { width: 100%; border-collapse: collapse; font-size: .875rem; }
.kw__alone th, .kw__alone td { padding: .45rem .6rem; border-bottom: 1px solid var(--slate-100); text-align: left; }
.kw__alone th { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--slate-500); background: var(--slate-50); }
.kw__alone td:nth-child(n+2), .kw__alone th:nth-child(n+2) { text-align: right; white-space: nowrap; }
.kw__notes { font-size: .8125rem; color: var(--slate-500); margin-top: 1rem; line-height: 1.6; }
@media (max-width: 560px) {
	.kw__mixhead, .kw__row { grid-template-columns: minmax(0, 1fr) 56px 60px 52px 26px; gap: .375rem; }
	.kw__name { font-size: .8125rem; }
}

.swp-tool__body.kw-body { display: block; }
.kw__bat[hidden] { display: none !important; }
@media (max-width: 560px) { .kw__alone { font-size: .8125rem; } .kw__alone th, .kw__alone td { padding: .4rem .35rem; } }
.kw__kpi.is-long strong { font-size: 1.05rem; }
.cat-color-5 { color: #0d9488; }

/* Mega calculator: three modes in one */
.mega__tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-bottom: .75rem; }
.mega__tab { display: grid; gap: .125rem; text-align: left; padding: .875rem 1rem; border-radius: var(--radius-xl); border: 2px solid var(--slate-200); background: #fff; cursor: pointer; color: var(--slate-700); transition: border-color .15s, background-color .15s; }
.mega__tab strong { font-size: .9375rem; font-weight: 800; color: var(--slate-900); }
.mega__tab span { font-size: .75rem; color: var(--slate-500); }
.mega__tab:hover { border-color: var(--emerald-600); }
.mega__tab[aria-selected="true"] { border-color: var(--emerald-600); background: #eef5fe; box-shadow: var(--shadow-sm); }
.mega__tab[aria-selected="true"] strong { color: #0b2d55; }
.mega__tab:focus-visible { outline: 3px solid var(--emerald-600); outline-offset: 2px; }
.mega__panel[hidden] { display: none; }
.mega .swp-tool { margin: 0; }
.mega .swp-tool__foot { display: none; }
@media (max-width: 640px) {
	.mega__tabs { grid-template-columns: 1fr; }
	.mega__tab { padding: .625rem .875rem; }
}

/* Home page notes */
.notes p { color: var(--slate-700); line-height: 1.7; margin: 0 0 1rem; }
.notes .section-title { margin-top: 2rem; }
.notes .section-title:first-child { margin-top: 0; }
.notes__modes { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 1rem 0; }
.notes__mode { padding: 1rem 1.125rem; border: 1px solid var(--slate-200); border-radius: var(--radius-xl); background: var(--slate-50); }
.notes__mode h3 { font-size: 1rem; font-weight: 800; margin: 0 0 .5rem; }
.notes__mode h3 a { color: var(--slate-900); }
.notes__mode h3 a:hover { color: var(--emerald-600); }
.notes__mode p { font-size: .875rem; margin: 0 0 .5rem; }
.notes__list { margin: 0 0 1rem 1.25rem; display: grid; gap: .5rem; color: var(--slate-700); line-height: 1.6; }
.notes__grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.notes__grid h3 { font-size: .8125rem; text-transform: uppercase; letter-spacing: .05em; color: var(--slate-500); margin: 0 0 .5rem; }
.notes__links { list-style: none; margin: 0; padding: 0; display: grid; gap: .375rem; }
.notes__links a { font-weight: 600; }
.notes__count { color: var(--slate-400); font-size: .8125rem; }
.notes__author { display: flex; gap: 1rem; align-items: flex-start; }
.notes__avatar { width: 72px; height: 72px; border-radius: 9999px; object-fit: cover; flex-shrink: 0; }
.notes__trust { font-size: .875rem; }
@media (max-width: 480px) { .notes__author { flex-direction: column; } }

/* Calculator directory page */
.swp-dir h2 { margin-top: 2rem; }
.swp-dir__main { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 1rem 0; }
.swp-dir__card { display: grid; gap: .375rem; padding: 1rem 1.125rem; border: 1px solid var(--slate-200); border-radius: var(--radius-xl); background: var(--slate-50); text-decoration: none; }
.swp-dir__card strong { color: var(--slate-900); font-size: 1rem; }
.swp-dir__card span { color: var(--slate-600); font-size: .875rem; line-height: 1.5; }
.swp-dir__card:hover { border-color: var(--emerald-600); }
.entry-content .swp-dir__list { list-style: none; margin: .75rem 0; padding: 0; display: grid; gap: .625rem; }
.swp-dir__list > li { padding: .625rem .875rem; border: 1px solid var(--slate-100); border-radius: var(--radius-lg); margin: 0; }
.swp-dir__list > li > a { font-weight: 700; }
.swp-dir__also { display: block; font-size: .8125rem; color: var(--slate-500); margin-top: .25rem; }

/* Brand logo */
.site-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.site-logo img { display: block; height: 44px; width: auto; }
.site-logo--footer img { height: 40px; }
@media (max-width: 480px) { .site-header .site-logo img { height: 36px; } }
.footer-social { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.footer-social a { color: #cbd5e1; font-size: .875rem; font-weight: 600; }
.footer-social a:hover { color: var(--brand-amber); }

/* External source links in articles */
.entry-content a[target="_blank"]::after { content: "\2197"; font-size: .75em; margin-left: .15em; text-decoration: none; display: inline-block; }

/* Article tables: columns size to content, numbers right-aligned, scroll on small screens */
.entry-content .wp-block-table { margin: 1.5rem 0; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--slate-200); border-radius: var(--radius-lg); }
.entry-content .wp-block-table table { display: table; table-layout: auto; width: 100%; border-collapse: collapse; margin: 0; font-size: .9375rem; line-height: 1.45; }
.entry-content .wp-block-table thead { border-bottom: 0; }
.entry-content .wp-block-table th,
.entry-content .wp-block-table td { padding: .625rem .875rem; border: 0; border-bottom: 1px solid var(--slate-200); text-align: left; vertical-align: middle; word-break: normal; overflow-wrap: normal; hyphens: none; }
.entry-content .wp-block-table th { background: var(--slate-100); color: var(--slate-900); font-weight: 700; font-size: .8125rem; line-height: 1.35; vertical-align: bottom; border-bottom: 2px solid var(--slate-300); }
.entry-content .wp-block-table th + th,
.entry-content .wp-block-table td + td { border-left: 1px solid var(--slate-100); }
.entry-content .wp-block-table tbody tr:nth-child(even) td { background: var(--slate-50); }
.entry-content .wp-block-table tbody tr:last-child td { border-bottom: 0; }
.entry-content .wp-block-table td:first-child { min-width: 9rem; color: var(--slate-900); font-weight: 600; }
.entry-content .wp-block-table th:first-child { min-width: 9rem; }
.entry-content .wp-block-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.entry-content .wp-block-table td.num { white-space: nowrap; }
.entry-content .wp-block-table th.num { min-width: 6rem; }
.entry-content .wp-block-table tr.is-total td { background: var(--emerald-50); font-weight: 700; color: var(--slate-900); border-top: 2px solid var(--slate-300); }
/* Beat core's .has-fixed-layout td { word-break: break-word } so words never split letter by letter */
.entry-content .wp-block-table table.has-fixed-layout { table-layout: auto; }
.entry-content .wp-block-table table th,
.entry-content .wp-block-table table td { word-break: normal; overflow-wrap: normal; }
.entry-content .wp-block-table th { min-width: 5.5rem; }
.entry-content .wp-block-table .wide { min-width: 15rem; }
@media (max-width: 640px) {
	.entry-content .wp-block-table .wide { min-width: 12.5rem; }
	.entry-content .wp-block-table table { font-size: .8125rem; }
	.entry-content .wp-block-table th, .entry-content .wp-block-table td { padding: .5rem .625rem; }
	.entry-content .wp-block-table td:first-child, .entry-content .wp-block-table th:first-child { min-width: 7.5rem; }
	.entry-content .wp-block-table th.num { min-width: 5.75rem; }
}
