/*
Theme Name: Way To Skinny Magazine
Theme URI: https://waytoskinny.com/
Author: WayToSkinny Editorial Team
Description: Editorial magazine theme for WayToSkinny — practical, evidence-aware weight-loss, nutrition and fitness guides with free calculators, honest product guides, responsive comparison tables and accessible Amazon CTAs. Classic-editor friendly: every component is a shortcode with an "Add component" inserter.
Version: 3.0.5
Requires at least: 6.2
Tested up to: 7.1
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: waytoskinny
*/

/* =========================================================
   1. TOKENS
   ========================================================= */
:root {
	--bg: #fbfaf6;
	--surface: #ffffff;
	--sand: #f3efe6;
	--sand-2: #ebe5d8;
	--line: #e6e1d6;
	--line-2: #d8d1c2;
	--ink: #1d2320;
	--ink-2: #47504b;
	--ink-3: #6b736e;
	--green-900: #143a2b;
	--green-800: #1b4c38;
	--green-700: #215e45;
	--green-600: #2a7655;
	--green-500: #2f8f5b;
	--green-200: #bfdcc9;
	--green-100: #e3f0e7;
	--green-50: #f1f7f2;
	--warm-700: #9c4518;
	--warm-600: #b5531e;
	--warm-500: #d26a2e;
	--warm-100: #fbe9dc;
	--warm-50: #fdf4ec;
	--blue-100: #e5eef7;
	--blue-700: #24527a;
	--amber-100: #fdf1d3;
	--amber-700: #7a5a0c;
	--red-100: #fbe6e3;
	--red-700: #9b2c20;

	--font-display: "Fraunces", Georgia, "Times New Roman", serif;
	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

	--radius-sm: 8px;
	--radius: 14px;
	--radius-lg: 20px;
	--shadow-sm: 0 1px 2px rgba(20, 30, 25, .06);
	--shadow: 0 6px 24px -10px rgba(20, 40, 30, .18);
	--shadow-lg: 0 18px 50px -20px rgba(20, 40, 30, .28);
	--container: 1240px;
	--gutter: 16px;
	--header-h: 64px;
}
@media (min-width: 768px) { :root { --gutter: 24px; } }

/* =========================================================
   2. BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
[hidden] { display: none !important; }
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--green-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-900); }
:focus-visible { outline: 3px solid var(--warm-500); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4, h5 { font-family: var(--font-display); color: var(--green-900); line-height: 1.15; margin: 0 0 .5em; font-weight: 650; letter-spacing: -0.01em; font-variation-settings: "opsz" 72; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.screen-reader-text, .visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--green-900); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 800px; }
.section { padding: 56px 0; }
.section--tight { padding: 36px 0; }
.section--sand { background: var(--sand); }
.section--green { background: var(--green-900); color: #e8f1eb; }
.section--green h2, .section--green h3 { color: #fff; }
@media (min-width: 1024px) { .section { padding: 72px 0; } }

/* =========================================================
   3. UI PRIMITIVES
   ========================================================= */
.eyebrow { display: inline-block; font: 600 .75rem/1.2 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--green-600); margin-bottom: .75rem; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; }
.section-head h2 { margin: 0; }
.section-head p { margin: .4rem 0 0; color: var(--ink-2); max-width: 640px; }
.section-head__link { font-weight: 600; text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.section-head__link:hover { text-decoration: underline; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: .98rem; line-height: 1.2; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s; text-align: center; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--green-800); color: #fff; }
.btn--primary:hover { background: var(--green-900); color: #fff; }
.btn--ghost { background: transparent; color: var(--green-800); border-color: var(--green-200); }
.btn--ghost:hover { border-color: var(--green-700); color: var(--green-900); background: var(--green-50); }
.btn--light { background: #fff; color: var(--green-900); }
.btn--light:hover { background: var(--green-50); color: var(--green-900); }
.btn--amazon { background: var(--warm-600); color: #fff; }
.btn--amazon:hover { background: var(--warm-700); color: #fff; }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: .9rem; }
.btn--lg { min-height: 54px; padding: 14px 28px; font-size: 1.05rem; }
.btn--block { display: flex; width: 100%; }
.btn svg { flex: none; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font: 600 .74rem/1.3 var(--font-body); letter-spacing: .02em; background: var(--green-100); color: var(--green-800); }
.badge--warm { background: var(--warm-100); color: var(--warm-700); }
.badge--blue { background: var(--blue-100); color: var(--blue-700); }
.badge--sand { background: var(--sand-2); color: var(--ink-2); }
.badge--dark { background: var(--green-900); color: #fff; }
.cat-label { font: 600 .72rem/1.2 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--green-600); text-decoration: none; }
a.cat-label:hover { color: var(--green-900); text-decoration: underline; }
.meta { font-size: .82rem; color: var(--ink-3); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.meta > * + *::before { content: "·"; margin-right: 10px; color: var(--line-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-size: .9rem; font-weight: 500; text-decoration: none; }
.chip:hover, .chip.is-active { border-color: var(--green-600); color: var(--green-800); background: var(--green-50); }

/* =========================================================
   4. HEADER & NAV
   ========================================================= */
.disclosure-bar { background: var(--green-900); color: #cfe2d6; font-size: .78rem; text-align: center; padding: 6px var(--gutter); }
.disclosure-bar a { color: #fff; }
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(251, 250, 246, .94); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.site-header__inner { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--green-900); flex: none; }
.brand__mark { width: 34px; height: 34px; border-radius: 10px; background: var(--green-800); color: #fff; display: grid; place-items: center; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.32rem; letter-spacing: -0.02em; line-height: 1; }
.brand__name span { color: var(--green-500); }
.brand img.custom-logo { max-height: 40px; width: auto; }

.primary-nav { margin-left: auto; display: none; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; }
.primary-nav > ul { display: flex; align-items: center; gap: 2px; }
.primary-nav li { position: relative; }
.primary-nav > ul > li > a { display: flex; align-items: center; gap: 4px; padding: 10px 11px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 550; font-size: .93rem; white-space: nowrap; }
.primary-nav > ul > li > a:hover, .primary-nav > ul > li:focus-within > a, .primary-nav .current-menu-item > a, .primary-nav .current-menu-ancestor > a { color: var(--green-800); background: var(--green-50); }
.primary-nav .menu-item-has-children > a::after { content: ""; width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translateY(-2px); margin-left: 4px; opacity: .6; }
.primary-nav .sub-menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 240px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; z-index: 20; }
.primary-nav .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.primary-nav .sub-menu a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: .92rem; }
.primary-nav .sub-menu a:hover { background: var(--green-50); color: var(--green-800); }
.primary-nav > ul > li:last-child .sub-menu, .primary-nav > ul > li:nth-last-child(2) .sub-menu { left: auto; right: 0; }

.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.primary-nav + .header-actions { margin-left: 8px; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.icon-btn:hover { background: var(--green-50); color: var(--green-800); }
.header-cta { display: none; }
@media (min-width: 1100px) {
	.primary-nav { display: block; }
	.header-actions { margin-left: 0; }
	.menu-toggle { display: none; }
	.header-cta { display: inline-flex; }
}

/* Mobile drawer */
.nav-drawer { position: fixed; inset: 0; z-index: 200; visibility: hidden; }
.nav-drawer.is-open { visibility: visible; }
.nav-drawer__scrim { position: absolute; inset: 0; background: rgba(15, 25, 20, .45); opacity: 0; transition: opacity .2s; }
.nav-drawer.is-open .nav-drawer__scrim { opacity: 1; }
.nav-drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 88vw); background: var(--bg); box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .25s ease; display: flex; flex-direction: column; overflow-y: auto; }
.nav-drawer.is-open .nav-drawer__panel { transform: none; }
.nav-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 10px 20px; border-bottom: 1px solid var(--line); }
.nav-drawer nav ul { list-style: none; margin: 0; padding: 0; }
.nav-drawer nav > ul { padding: 8px 12px 24px; }
.nav-drawer nav li { border-bottom: 1px solid var(--line); position: relative; }
.nav-drawer nav a { display: block; padding: 14px 52px 14px 8px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.02rem; }
.nav-drawer .sub-menu { display: none; padding: 0 0 10px 8px !important; }
.nav-drawer .sub-menu li { border: 0; }
.nav-drawer .sub-menu a { padding: 9px 8px; font-weight: 450; font-size: .95rem; color: var(--ink-2); }
.nav-drawer li.is-expanded > .sub-menu { display: block; }
.submenu-toggle { position: absolute; right: 0; top: 4px; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 8px; cursor: pointer; display: grid; place-items: center; color: var(--ink-2); }
.submenu-toggle svg { transition: transform .2s; }
li.is-expanded > .submenu-toggle svg { transform: rotate(180deg); }
.nav-drawer__foot { margin-top: auto; padding: 20px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
body.drawer-open { overflow: hidden; }
.admin-bar .nav-drawer__panel { top: 32px; }
@media (max-width: 782px) { .admin-bar .nav-drawer__panel { top: 46px; } }

/* Search panel */
.search-panel { position: fixed; inset: 0; z-index: 210; display: none; background: rgba(15, 25, 20, .5); padding: 10vh var(--gutter) 0; }
.search-panel.is-open { display: block; }
.search-panel__box { max-width: 720px; margin: 0 auto; background: var(--surface); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-lg); }
.search-panel__hint { margin: 14px 0 6px; font-size: .8rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.search-form { display: flex; gap: 8px; }
.search-form input[type="search"] { flex: 1; min-width: 0; min-height: 52px; padding: 12px 18px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--bg); font-size: 1.02rem; }
.search-form input[type="search"]:focus { outline: none; border-color: var(--green-600); box-shadow: 0 0 0 4px var(--green-100); }
.search-form button { min-height: 52px; }

/* Reading progress */
.reading-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--green-500); z-index: 300; }

/* =========================================================
   5. CARDS & GRIDS
   ========================================================= */
.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s, border-color .2s; height: 100%; }
.card:hover { box-shadow: var(--shadow); border-color: var(--line-2); transform: translateY(-2px); }
.card__media { position: relative; aspect-ratio: 16 / 10; background: var(--green-100); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card__media img { transform: scale(1.03); }
.card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__title { font-size: 1.16rem; margin: 0; line-height: 1.25; }
.card__title a { color: var(--green-900); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__title a:hover { text-decoration: underline; text-decoration-thickness: 1.5px; }
.card__excerpt { color: var(--ink-2); font-size: .94rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .cat-label, .card .meta a { position: relative; z-index: 2; }
.card .meta { margin-top: auto; padding-top: 4px; }
.card__type { position: absolute; top: 12px; left: 12px; z-index: 2; }

.card--lg .card__media { aspect-ratio: 16 / 9; }
.card--lg .card__title { font-size: clamp(1.45rem, 2.6vw, 2rem); }
.card--lg .card__body { padding: 22px 24px 26px; }
.card--lg .card__excerpt { font-size: 1.02rem; -webkit-line-clamp: 4; }

.card--row { flex-direction: row; align-items: stretch; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; padding: 14px 0; gap: 14px; }
.card--row:hover { box-shadow: none; transform: none; }
.card--row .card__media { width: 112px; flex: none; aspect-ratio: 1; border-radius: var(--radius-sm); }
.card--row .card__body { padding: 0; gap: 4px; }
.card--row .card__title { font-size: 1.02rem; }
.card--row .card__excerpt { display: none; }

.thumb-fallback { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, var(--green-100), var(--sand)); color: var(--green-700); }
.thumb-fallback svg { width: 38%; max-width: 96px; height: auto; opacity: .75; }

.grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }

/* Featured stories: 1 large + 2 medium + 3 small */
.feature-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
.feature-grid__small { display: grid; gap: 0; }
@media (min-width: 768px) {
	.feature-grid { grid-template-columns: repeat(2, 1fr); }
	.feature-grid__lead { grid-column: 1 / -1; }
	.feature-grid__small { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); gap: 0 24px; }
}
@media (min-width: 1100px) {
	.feature-grid { grid-template-columns: 1.55fr 1fr 1fr; grid-template-rows: auto auto; }
	.feature-grid__lead { grid-column: 1; grid-row: 1 / span 2; }
	.feature-grid__small { grid-column: 2 / span 2; grid-template-columns: 1fr; }
	.feature-grid__lead .card { height: 100%; }
	.feature-grid__lead .card__media { aspect-ratio: auto; flex: 1 1 auto; min-height: 320px; }
	.feature-grid__lead .card__body { flex: 0 0 auto; }
}

/* =========================================================
   6. HOMEPAGE
   ========================================================= */
.hero { padding: 36px 0 48px; background: radial-gradient(1200px 500px at 90% -10%, var(--green-100), transparent 60%), var(--bg); }
.hero__grid { display: grid; gap: 32px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5.6vw, 3.9rem); line-height: 1.04; letter-spacing: -0.025em; margin-bottom: 18px; }
.hero h1 em { font-style: italic; color: var(--green-600); font-weight: 600; }
.hero__lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-2); max-width: 560px; margin-bottom: 26px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__points { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--ink-2); font-size: .9rem; }
.hero__points li { display: inline-flex; align-items: center; gap: 7px; }
.hero__points svg { color: var(--green-500); }
.hero__visual { position: relative; }
.hero__img { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3.4; background: var(--green-100); box-shadow: var(--shadow-lg); }
.hero__img img { width: 100%; height: 100%; object-fit: cover; }
.hero__credit { font-size: .7rem; color: var(--ink-3); margin-top: 8px; text-align: right; }
.hero__credit a { color: inherit; }
.hero__card { position: relative; margin: -56px 16px 0; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 18px 20px; border: 1px solid var(--line); }
.hero__card h2 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 700; color: var(--ink); margin: 0 0 10px; }
.hero__card ol { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 8px; }
.hero__card li { counter-increment: s; display: flex; gap: 10px; align-items: baseline; font-size: .93rem; }
.hero__card li::before { content: counter(s); flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--green-100); color: var(--green-800); font-weight: 700; font-size: .75rem; display: grid; place-items: center; }
.hero__card a { color: var(--ink); text-decoration: none; font-weight: 550; }
.hero__card a:hover { color: var(--green-700); text-decoration: underline; }
@media (min-width: 960px) {
	.hero { padding: 56px 0 72px; }
	.hero__grid { grid-template-columns: 1.08fr 1fr; gap: 56px; }
	.hero__card { position: absolute; left: -48px; bottom: 32px; margin: 0; width: 290px; }
}

.goal-tiles { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .goal-tiles { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.goal-tile { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); min-height: 168px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.goal-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--green-200); color: var(--ink); }
.goal-tile__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--green-100); color: var(--green-800); margin-bottom: 6px; }
.goal-tile:nth-child(2) .goal-tile__icon { background: var(--warm-100); color: var(--warm-700); }
.goal-tile:nth-child(3) .goal-tile__icon { background: var(--blue-100); color: var(--blue-700); }
.goal-tile:nth-child(4) .goal-tile__icon { background: var(--amber-100); color: var(--amber-700); }
.goal-tile strong { font-family: var(--font-display); font-size: 1.22rem; color: var(--green-900); font-weight: 650; }
.goal-tile span { font-size: .88rem; color: var(--ink-2); }
.goal-tile__go { margin-top: auto; font-size: .85rem; font-weight: 600; color: var(--green-700); display: inline-flex; align-items: center; gap: 6px; }

.trust-strip { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .trust-strip { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .trust-strip { grid-template-columns: repeat(6, 1fr); } }
.trust-item { display: flex; flex-direction: column; gap: 6px; }
.trust-item svg { color: var(--green-500); }
.trust-item strong { font-size: .96rem; color: var(--green-900); }
.trust-item span { font-size: .84rem; color: var(--ink-2); line-height: 1.45; }

.cat-block { display: grid; gap: 24px; }
@media (min-width: 960px) { .cat-block { grid-template-columns: 1.2fr 1fr; gap: 36px; } }
.cat-block__list { display: flex; flex-direction: column; }
.cat-block__list .card--row:first-child { padding-top: 0; }

.tool-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .tool-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .tool-grid { grid-template-columns: repeat(4, 1fr); } }
.tool-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.tool-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.tool-card__icon { width: 42px; height: 42px; border-radius: 11px; background: var(--green-900); color: #fff; display: grid; place-items: center; margin-bottom: 6px; }
.tool-card strong { font-size: 1.02rem; color: var(--green-900); }
.tool-card span { font-size: .86rem; color: var(--ink-2); line-height: 1.45; }
.section--green .tool-card { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #e8f1eb; }
.section--green .tool-card strong { color: #fff; }
.section--green .tool-card span { color: #bcd3c4; }
.section--green .tool-card__icon { background: var(--green-500); }
.section--green .tool-card:hover { background: rgba(255,255,255,.1); }
.section--green .section-head p { color: #bcd3c4; }
.section--green .section-head__link { color: #fff; }

.cta-band { display: grid; gap: 20px; align-items: center; padding: 32px; border-radius: var(--radius-lg); background: linear-gradient(120deg, var(--green-800), var(--green-600)); color: #e8f1eb; }
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { margin: 0; color: #d3e6da; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1fr auto; padding: 44px 48px; } }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* =========================================================
   7. PRODUCTS, CTA, COMPARISON
   ========================================================= */
.aff-note { display: flex; gap: 10px; align-items: flex-start; font-size: .84rem; color: var(--ink-2); background: var(--sand); border-radius: var(--radius-sm); padding: 10px 14px; margin: 0 0 22px; line-height: 1.5; }
.aff-note svg { flex: none; margin-top: 2px; color: var(--green-600); }
.aff-note a { color: var(--green-800); }

.product-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
.product-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 100%; }
.product-card__top { position: relative; aspect-ratio: 16 / 9; background: var(--green-50); }
.product-card__top img { width: 100%; height: 100%; object-fit: cover; }
.product-card__top--contain img { object-fit: contain; padding: 16px; background: #fff; }
.product-card__badge { position: absolute; top: 12px; left: 12px; }
.product-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-card__type { font-size: .76rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.product-card__name { font-size: 1.22rem; margin: 0; }
.product-card__reason { color: var(--ink-2); font-size: .94rem; margin: 0; }
.product-card__lists { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; font-size: .86rem; }
.product-card__lists h4 { font-family: var(--font-body); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 6px; color: var(--ink-3); font-weight: 700; }
.product-card__lists ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.product-card__lists li { display: flex; gap: 6px; line-height: 1.4; }
.product-card__lists li svg { flex: none; margin-top: 2px; }
.is-pro svg { color: var(--green-500); }
.is-con svg { color: var(--warm-600); }
.product-card__verdict { margin: 0; padding: 12px 14px; background: var(--green-50); border-radius: var(--radius-sm); font-size: .9rem; color: var(--ink); }
.product-card__verdict strong { color: var(--green-800); }
.product-card__actions { margin-top: auto; display: grid; gap: 8px; padding-top: 4px; }
.product-card__guide { font-size: .88rem; font-weight: 600; text-align: center; }

.product-box { border: 1.5px solid var(--green-200); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; margin: 2rem 0; }
.product-box__head { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 14px 22px; background: var(--green-50); border-bottom: 1px solid var(--green-100); }
.product-box__head h3 { margin: 0; font-size: 1.3rem; }
.product-box__main { display: grid; gap: 22px; padding: 22px; }
@media (min-width: 760px) { .product-box__main { grid-template-columns: 220px 1fr; } }
.product-box__img { border-radius: var(--radius); overflow: hidden; background: var(--green-50); aspect-ratio: 1; }
.product-box__img img { width: 100%; height: 100%; object-fit: cover; }
.product-box dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0 0 14px; font-size: .92rem; }
.product-box dt { font-weight: 700; color: var(--ink-2); }
.product-box dd { margin: 0; }
.score { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--green-800); }
.score__bar { width: 90px; height: 8px; border-radius: 99px; background: var(--green-100); overflow: hidden; }
.score__bar i { display: block; height: 100%; background: var(--green-500); }

.cta-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 1.4rem 0; }
.cta-row__note { font-size: .78rem; color: var(--ink-3); flex-basis: 100%; }

.compare-wrap { position: relative; margin: 1.8rem 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.compare-wrap__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }
.compare-wrap__hint { display: none; font-size: .78rem; color: var(--ink-3); padding: 8px 14px 0; }
@media (max-width: 760px) { .compare-wrap__hint { display: block; } }
table.compare { width: 100%; min-width: 680px; border-collapse: separate; border-spacing: 0; font-size: .92rem; }
table.compare th, table.compare td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
table.compare thead th { background: var(--green-900); color: #fff; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; position: sticky; top: 0; }
table.compare thead th:first-child { border-top-left-radius: var(--radius); }
table.compare thead th:last-child { border-top-right-radius: var(--radius); }
table.compare tbody tr:last-child td, table.compare tbody tr:last-child th { border-bottom: 0; }
table.compare tbody tr:nth-child(even) { background: var(--bg); }
table.compare tbody th { position: sticky; left: 0; background: inherit; background-color: var(--surface); z-index: 1; min-width: 170px; box-shadow: 1px 0 0 var(--line); }
table.compare tbody tr:nth-child(even) th { background-color: var(--bg); }
table.compare .compare__name { font-weight: 700; color: var(--green-900); display: block; margin-top: 6px; }

/* =========================================================
   8. ARTICLE
   ========================================================= */
.breadcrumbs { font-size: .82rem; color: var(--ink-3); margin-bottom: 14px; }
.breadcrumbs a { color: var(--ink-2); text-decoration: none; }
.breadcrumbs a:hover { color: var(--green-700); text-decoration: underline; }
.breadcrumbs .sep, .breadcrumbs .breadcrumb_last { margin: 0 4px; }
.breadcrumbs span span { }
.article-header { padding: 28px 0 8px; }
.article-header h1 { font-size: clamp(2rem, 4.6vw, 3rem); line-height: 1.08; letter-spacing: -0.02em; margin: 10px 0 14px; max-width: 900px; }
.article-dek { font-size: clamp(1.08rem, 1.8vw, 1.28rem); color: var(--ink-2); max-width: 760px; margin: 0 0 18px; line-height: 1.5; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .88rem; color: var(--ink-2); }
.byline__who { display: flex; align-items: center; gap: 10px; }
.byline__avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--green-800); color: #fff; display: grid; place-items: center; flex: none; }
.byline strong { color: var(--ink); }
.byline a { color: var(--ink); }
.byline__dates { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.byline__type { margin-left: auto; }
@media (max-width: 640px) { .byline__type { margin-left: 0; } }

.article-hero { margin: 24px 0 8px; }
.article-hero img { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 16 / 9; object-fit: cover; background: var(--green-100); }
.article-hero figcaption { font-size: .76rem; color: var(--ink-3); margin-top: 8px; }
.article-hero figcaption a { color: inherit; }

.article-layout { display: grid; gap: 40px; padding: 24px 0 64px; }
@media (min-width: 1080px) { .article-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; } .article-layout--full { grid-template-columns: minmax(0, 1fr); } }
.article-main { min-width: 0; max-width: 760px; }
.article-layout--full .article-main { margin: 0 auto; }

.takeaways { background: var(--green-50); border: 1px solid var(--green-100); border-left: 5px solid var(--green-500); border-radius: var(--radius); padding: 20px 24px; margin: 0 0 26px; }
.takeaways h2 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--green-800); margin: 0 0 12px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.takeaways ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.takeaways li { position: relative; padding-left: 28px; font-size: 1rem; line-height: 1.55; }
.takeaways li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--green-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat; }

.toc { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin: 0 0 30px; }
.toc summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; font-weight: 700; font-size: .95rem; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary svg { transition: transform .2s; }
.toc[open] summary svg { transform: rotate(180deg); }
.toc ol { margin: 0; padding: 0 20px 18px 40px; display: grid; gap: 6px; font-size: .94rem; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover, .toc a.is-active { color: var(--green-700); text-decoration: underline; }

.entry-content { font-size: 1.0625rem; line-height: 1.75; color: var(--ink); }
@media (min-width: 768px) { .entry-content { font-size: 1.125rem; } }
.entry-content > * { max-width: 100%; }
.entry-content h2 { font-size: clamp(1.5rem, 2.8vw, 1.95rem); margin: 2.2em 0 .6em; padding-top: .2em; }
.entry-content h3 { font-size: clamp(1.22rem, 2.2vw, 1.4rem); margin: 1.8em 0 .5em; }
.entry-content h4 { margin: 1.5em 0 .5em; }
.entry-content p, .entry-content ul, .entry-content ol { margin: 0 0 1.15em; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li { margin-bottom: .45em; }
.entry-content li::marker { color: var(--green-600); }
.entry-content a { color: var(--green-700); font-weight: 500; text-decoration: underline; text-decoration-color: var(--green-200); text-decoration-thickness: 2px; }
.entry-content a:hover { text-decoration-color: var(--green-600); }
.entry-content a.btn { text-decoration: none; }
.entry-content a.btn--amazon, .entry-content a.btn--primary { color: #fff; }
.entry-content strong { font-weight: 650; }
.entry-content blockquote { margin: 1.8em 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--warm-500); font-family: var(--font-display); font-size: 1.3em; line-height: 1.45; color: var(--green-900); font-style: italic; }
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content blockquote cite { display: block; font: normal .8rem var(--font-body); color: var(--ink-3); margin-top: 8px; }
.entry-content img { border-radius: var(--radius); height: auto; }
.entry-content figure { margin: 1.8em 0; }
.entry-content figcaption, .entry-content .wp-caption-text { font-size: .8rem; color: var(--ink-3); margin-top: 8px; }
.entry-content .wp-caption { max-width: 100%; }
.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-left: auto; margin-right: auto; }
.entry-content hr { margin: 2.4em 0; }
.entry-content code { background: var(--sand); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.6em 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .92rem; line-height: 1.5; margin: 0; }
.table-wrap table { min-width: 560px; }
.entry-content th, .entry-content td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.entry-content table:not(.compare) thead th, .entry-content table:not(.compare) tr:first-child th { background: var(--green-900); color: #fff; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; }
.entry-content table:not(.compare) tbody tr:nth-child(even) { background: var(--bg); }
.entry-content tbody tr:last-child td { border-bottom: 0; }

.callout { display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--radius); margin: 1.8em 0; font-size: .98rem; line-height: 1.6; background: var(--blue-100); color: var(--ink); }
.callout > svg { flex: none; margin-top: 3px; color: var(--blue-700); }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout__title { display: block; font-weight: 700; margin-bottom: 4px; color: var(--blue-700); }
.callout--tip { background: var(--green-50); }
.callout--tip > svg, .callout--tip .callout__title { color: var(--green-700); }
.callout--warning { background: var(--amber-100); }
.callout--warning > svg, .callout--warning .callout__title { color: var(--amber-700); }
.callout--safety { background: var(--red-100); }
.callout--safety > svg, .callout--safety .callout__title { color: var(--red-700); }
.callout--evidence { background: var(--sand); }
.callout--evidence > svg, .callout--evidence .callout__title { color: var(--green-800); }

.pros-cons { display: grid; gap: 14px; margin: 1.8em 0; }
@media (min-width: 640px) { .pros-cons { grid-template-columns: 1fr 1fr; } }
.pros-cons > div { border-radius: var(--radius); padding: 18px 20px; border: 1px solid var(--line); background: var(--surface); }
.pros-cons h4 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 10px; }
.pros-cons .pros h4 { color: var(--green-700); }
.pros-cons .cons h4 { color: var(--warm-700); }
.pros-cons ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .95rem; }
.pros-cons li { display: flex; gap: 8px; margin: 0; }
.pros-cons li svg { flex: none; margin-top: 4px; }
.pros-cons .pros svg { color: var(--green-500); }
.pros-cons .cons svg { color: var(--warm-600); }

.verdict { border-radius: var(--radius-lg); padding: 24px 26px; margin: 2em 0; background: var(--green-900); color: #e3eee7; }
.verdict h3, .verdict .verdict__title { color: #fff; margin: 0 0 8px; font-family: var(--font-display); font-size: 1.35rem; }
.verdict p { margin: 0 0 12px; }
.verdict p:last-child { margin-bottom: 0; }
.verdict .btn { margin-top: 6px; }

.pick-label { margin: 2.2em 0 -.4em; }
.pick-label + h3 { margin-top: .5em; }
.related-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin: 1.8em 0; background: var(--surface); }
.related-box__label { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; display: block; }
.related-box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.related-box li { margin: 0; }
.related-box a { font-weight: 600; text-decoration: none; }

.faq { margin: 2.6em 0 0; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font-weight: 650; font-size: 1.04rem; color: var(--green-900); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 1.6rem; font-weight: 400; color: var(--green-600); transition: transform .2s; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__answer { padding: 0 0 18px; color: var(--ink-2); font-size: 1rem; line-height: 1.7; }
.faq__answer p:last-child { margin-bottom: 0; }

.sources { margin: 2.6em 0 0; padding: 20px 22px; border-radius: var(--radius); background: var(--sand); font-size: .88rem; }
.sources h2 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 10px; color: var(--ink-2); font-weight: 700; }
.sources ol { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; }
.sources a { word-break: break-word; }

.update-log { margin-top: 14px; font-size: .84rem; }
.update-log summary { cursor: pointer; font-weight: 600; color: var(--ink-2); }
.update-log ul { margin: 8px 0 0; padding-left: 1.2em; color: var(--ink-2); }

.med-note { margin: 2.2em 0 0; padding: 14px 18px; border-left: 3px solid var(--line-2); font-size: .84rem; color: var(--ink-3); line-height: 1.55; }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 2.4em 0 0; padding-top: 22px; border-top: 1px solid var(--line); }
.share__label { font-size: .84rem; font-weight: 600; color: var(--ink-2); margin-right: 4px; }
.share a, .share button { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; text-decoration: none; }
.share a:hover, .share button:hover { border-color: var(--green-600); color: var(--green-700); }
.share .is-copied { background: var(--green-100); color: var(--green-800); }

.author-box { display: flex; gap: 16px; align-items: flex-start; margin: 2.4em 0 0; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.author-box__avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--green-800); color: #fff; display: grid; place-items: center; flex: none; }
.author-box h2 { font-size: 1.1rem; margin: 0 0 4px; }
.author-box p { margin: 0 0 8px; font-size: .92rem; color: var(--ink-2); }
.author-box__links { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .86rem; font-weight: 600; }

.next-read { display: flex; gap: 18px; align-items: center; margin: 2.4em 0 0; padding: 18px; border-radius: var(--radius); background: var(--green-900); color: #dbe9e0; text-decoration: none; position: relative; }
.next-read:hover { color: #fff; background: var(--green-800); }
.next-read img { width: 96px; height: 96px; border-radius: var(--radius-sm); object-fit: cover; flex: none; }
.next-read small { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--green-200); margin-bottom: 4px; font-weight: 700; }
.next-read strong { font-family: var(--font-display); font-size: 1.22rem; color: #fff; line-height: 1.25; display: block; }

.tool-cta { display: flex; gap: 16px; align-items: center; padding: 18px 20px; border-radius: var(--radius); border: 1.5px dashed var(--green-200); background: var(--green-50); margin: 2em 0; }
.tool-cta__icon { width: 48px; height: 48px; border-radius: 12px; background: var(--green-800); color: #fff; display: grid; place-items: center; flex: none; }
.tool-cta strong { display: block; color: var(--green-900); }
.tool-cta span { font-size: .9rem; color: var(--ink-2); }
.tool-cta .btn { margin-left: auto; flex: none; }
@media (max-width: 600px) { .tool-cta { flex-wrap: wrap; } .tool-cta .btn { margin-left: 0; width: 100%; } }

.related-posts { padding: 56px 0; background: var(--sand); }

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 22px; }
@media (min-width: 1080px) { .sidebar__sticky { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 22px; } }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.side-card h2, .side-card .widget-title { font-family: var(--font-body); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 12px; font-weight: 700; }
.side-card--green { background: var(--green-900); border-color: var(--green-900); color: #d6e6dc; }
.side-card--green h2 { color: var(--green-200); }
.side-card--green strong { color: #fff; font-family: var(--font-display); font-size: 1.25rem; display: block; margin-bottom: 6px; line-height: 1.25; }
.side-card--green p { font-size: .9rem; margin: 0 0 14px; }
.side-list { list-style: none; margin: 0; padding: 0; counter-reset: n; }
.side-list li { counter-increment: n; display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .93rem; line-height: 1.4; }
.side-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.side-list li::before { content: counter(n); font-family: var(--font-display); font-weight: 700; color: var(--green-500); font-size: 1.2rem; line-height: 1; min-width: 16px; }
.side-list a { color: var(--ink); text-decoration: none; font-weight: 550; }
.side-list a:hover { color: var(--green-700); text-decoration: underline; }
.side-tools { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.side-tools a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin: 0 -10px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: .93rem; font-weight: 550; }
.side-tools a:hover { background: var(--green-50); color: var(--green-800); }
.side-tools svg { color: var(--green-600); }
.side-picks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.side-picks li { display: grid; gap: 2px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: .9rem; }
.side-picks li:last-child { border: 0; padding-bottom: 0; }
.side-picks small { color: var(--warm-700); font-weight: 700; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.side-picks a { font-weight: 600; color: var(--ink); text-decoration: none; }
.side-picks a:hover { color: var(--green-700); }

/* =========================================================
   9. ARCHIVE / HUB / SEARCH / PAGE
   ========================================================= */
.hub-header { padding: 40px 0 34px; background: linear-gradient(180deg, var(--green-50), var(--bg)); border-bottom: 1px solid var(--line); }
.hub-header h1 { margin: 6px 0 12px; }
.hub-header__intro { font-size: 1.12rem; color: var(--ink-2); max-width: 760px; }
.hub-header__intro p:last-child { margin-bottom: 0; }
.hub-header .chips { margin-top: 20px; }
.hub-section { padding: 44px 0 8px; }
.hub-section + .hub-section { border-top: 1px solid var(--line); margin-top: 36px; }
.hub-start { display: grid; gap: 24px; }
@media (min-width: 960px) { .hub-start { grid-template-columns: 1.4fr 1fr; } }
.hub-path { counter-reset: p; list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hub-path li { counter-increment: p; display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.hub-path li::before { content: counter(p); flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--green-800); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.hub-path a { font-weight: 650; color: var(--green-900); text-decoration: none; }
.hub-path a:hover { text-decoration: underline; }
.hub-path span { display: block; font-size: .86rem; color: var(--ink-3); }
.pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 40px 0 0; }
.pagination .page-numbers { min-width: 44px; height: 44px; padding: 0 14px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); font-weight: 600; }
.pagination .page-numbers.current { background: var(--green-800); border-color: var(--green-800); color: #fff; }
.pagination a.page-numbers:hover { border-color: var(--green-600); }

.page-header { padding: 40px 0 10px; }
.page-header h1 { margin-bottom: 10px; }
.page-header p { color: var(--ink-2); font-size: 1.1rem; max-width: 720px; }
.page-content { padding: 16px 0 64px; }
.page-content.is-landing { padding-top: 0; }

.result-group { margin: 0 0 44px; }
.result-group h2 { font-size: 1.3rem; display: flex; align-items: center; gap: 10px; }
.result-group h2 .badge { font-family: var(--font-body); }
.empty-state { text-align: center; padding: 48px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.empty-state h2 { margin-bottom: 8px; }
.empty-state .chips { justify-content: center; margin: 18px 0 0; }
.empty-state .search-form { max-width: 520px; margin: 20px auto 0; }

/* Landing-page helpers (Start Here, hubs) */
.start-paths { display: grid; gap: 20px; }
@media (min-width: 800px) { .start-paths { grid-template-columns: repeat(2, 1fr); } }
.start-path { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.start-path__num { font-family: var(--font-display); font-size: .9rem; color: var(--green-600); font-weight: 700; }
.start-path h2 { font-size: 1.45rem; margin: 0; }
.start-path p { color: var(--ink-2); margin: 0; }
.start-path ul { margin: 6px 0 0; padding-left: 1.2em; }
.start-path li { margin: 4px 0; }
.start-path .btn { align-self: flex-start; margin-top: auto; }

/* =========================================================
   10. TOOLS & QUIZ
   ========================================================= */
.calc { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; margin: 1.6rem 0 2.2rem; font-size: 1rem; line-height: 1.5; }
.calc__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 22px; background: var(--green-900); color: #fff; }
.calc__head h2, .calc__head strong { color: #fff; font: 700 1.05rem var(--font-body); margin: 0; }
.unit-toggle { display: inline-flex; background: rgba(255,255,255,.12); border-radius: 999px; padding: 3px; }
.unit-toggle button { border: 0; background: transparent; color: #cfe2d6; padding: 7px 14px; border-radius: 999px; font-size: .84rem; font-weight: 600; cursor: pointer; min-height: 36px; }
.unit-toggle button[aria-pressed="true"] { background: #fff; color: var(--green-900); }
.calc__body { display: grid; gap: 0; }
@media (min-width: 760px) { .calc__body { grid-template-columns: 1fr 1fr; } }
.calc__form { padding: 22px; display: grid; gap: 16px; align-content: start; }
.calc__row { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-size: .85rem; font-weight: 650; color: var(--ink-2); padding: 0; }
.field input, .field select { width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line-2); border-radius: 10px; background: var(--bg); font-size: 1rem; }
.field input:focus, .field select:focus { outline: none; border-color: var(--green-600); box-shadow: 0 0 0 4px var(--green-100); background: #fff; }
.field__suffix { position: relative; }
.field__suffix input { padding-right: 52px; }
.field__suffix span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: .85rem; color: var(--ink-3); pointer-events: none; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; flex: 1 1 auto; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 14px; border: 1.5px solid var(--line-2); border-radius: 10px; font-size: .9rem; font-weight: 600; cursor: pointer; background: var(--bg); text-align: center; }
.seg input:checked + span { border-color: var(--green-700); background: var(--green-50); color: var(--green-900); }
.seg input:focus-visible + span { outline: 3px solid var(--warm-500); outline-offset: 2px; }
.calc__error { color: var(--red-700); font-size: .88rem; margin: 0; min-height: 1.2em; }
.calc__result { padding: 22px; background: var(--green-50); border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 760px) { .calc__result { border-top: 0; border-left: 1px solid var(--line); } }
.calc__placeholder { color: var(--ink-3); font-size: .95rem; margin: auto 0; text-align: center; padding: 24px 0; }
.calc__big { font-family: var(--font-display); font-size: clamp(2.4rem, 6vw, 3.4rem); font-weight: 700; color: var(--green-900); line-height: 1; }
.calc__big small { font-family: var(--font-body); font-size: .95rem; font-weight: 600; color: var(--ink-2); margin-left: 6px; }
.calc__label { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.calc__stats { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.calc__stat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.calc__stat b { display: block; font-size: 1.25rem; color: var(--green-900); }
.calc__stat span { font-size: .8rem; color: var(--ink-3); }
.calc__note { font-size: .84rem; color: var(--ink-2); margin: 0; line-height: 1.55; }
.calc__scale { position: relative; height: 10px; border-radius: 99px; background: linear-gradient(90deg, #8fb8d8 0 18.5%, #6fbf86 18.5% 50%, #e8c15a 50% 70%, #e08a5a 70%); margin: 6px 0 4px; }
.calc__scale i { position: absolute; top: -5px; width: 4px; height: 20px; background: var(--ink); border-radius: 2px; transform: translateX(-50%); }
.calc__scale-labels { display: flex; justify-content: space-between; font-size: .7rem; color: var(--ink-3); }
.calc__next { display: flex; flex-wrap: wrap; gap: 8px; }
.calc__disclaimer { padding: 12px 22px; font-size: .78rem; color: var(--ink-3); border-top: 1px solid var(--line); background: var(--surface); margin: 0; }
.macro-bars { display: grid; gap: 8px; }
.macro-bar { display: grid; grid-template-columns: 70px 1fr 64px; gap: 10px; align-items: center; font-size: .86rem; }
.macro-bar__track { height: 10px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.macro-bar__track i { display: block; height: 100%; background: var(--green-500); }
.macro-bar--c i { background: var(--warm-500); }
.macro-bar--f i { background: #c9a227; }

.quiz { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.quiz__grid { display: grid; }
@media (min-width: 960px) { .quiz__grid { grid-template-columns: 340px 1fr; } }
.quiz__intro { padding: 28px; background: var(--green-900); color: #d6e6dc; display: flex; flex-direction: column; gap: 12px; }
.quiz__intro h2 { color: #fff; margin: 0; }
.quiz__intro p { margin: 0; font-size: .95rem; }
.quiz__intro small { font-size: .78rem; color: #a9c4b4; margin-top: auto; }
.quiz__stage { padding: 28px; min-height: 360px; display: flex; flex-direction: column; }
.quiz__progress { height: 6px; border-radius: 99px; background: var(--green-100); overflow: hidden; margin-bottom: 18px; }
.quiz__progress i { display: block; height: 100%; width: 0; background: var(--green-500); transition: width .25s; }
.quiz__step-label { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.quiz__q { font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.65rem); color: var(--green-900); margin: 6px 0 18px; line-height: 1.25; }
.quiz__options { display: grid; gap: 10px; }
@media (min-width: 640px) { .quiz__options { grid-template-columns: 1fr 1fr; } }
.quiz__opt { text-align: left; min-height: 56px; padding: 12px 16px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--bg); cursor: pointer; font-weight: 600; font-size: .96rem; display: flex; align-items: center; gap: 10px; }
.quiz__opt:hover { border-color: var(--green-600); background: var(--green-50); }
.quiz__opt small { display: block; font-weight: 400; color: var(--ink-3); font-size: .82rem; }
.quiz__nav { margin-top: auto; padding-top: 18px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.quiz__back { background: none; border: 0; color: var(--ink-2); font-weight: 600; cursor: pointer; padding: 10px 0; min-height: 44px; }
.quiz__back[hidden] { display: none; }
.quiz__result h3 { font-size: 1.55rem; margin: 6px 0 8px; }
.quiz__result p { color: var(--ink-2); }
.quiz__result-links { display: grid; gap: 10px; margin: 16px 0; }
.quiz__result-links a { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 600; background: var(--bg); }
.quiz__result-links a:hover { border-color: var(--green-600); background: var(--green-50); }
.quiz__result-links small { display: block; font-weight: 500; color: var(--ink-3); font-size: .8rem; }
.quiz__result-alt { font-size: .9rem; }
.quiz__fine { font-size: .78rem; color: var(--ink-3); margin-top: 12px; }

/* Contact form */
.wts-form { display: grid; gap: 16px; max-width: 640px; }
.wts-form textarea { width: 100%; min-height: 160px; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: 10px; background: var(--bg); font-size: 1rem; }
.wts-form .hp { position: absolute; left: -9999px; }
.form-notice { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 18px; }
.form-notice--ok { background: var(--green-100); color: var(--green-900); }
.form-notice--err { background: var(--red-100); color: var(--red-700); }

/* =========================================================
   11. FOOTER
   ========================================================= */
.site-footer { background: #10261d; color: #b9cdc1; padding: 56px 0 28px; font-size: .92rem; }
.site-footer a { color: #e5efe9; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; } }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer-brand { grid-column: auto; } }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand .brand__mark { background: var(--green-500); }
.footer-brand p { max-width: 380px; margin: 0 0 12px; }
.footer-col h2 { font: 700 .76rem/1.2 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: #8fb09d; margin: 0 0 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); display: grid; gap: 10px; font-size: .82rem; color: #8fa99a; }
.footer-bottom p { margin: 0; }
@media (min-width: 900px) { .footer-bottom { grid-template-columns: 1fr auto; align-items: start; } }

/* =========================================================
   12. MISC
   ========================================================= */
.not-found { text-align: center; padding: 72px 0; }
.not-found h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.comments-area { margin-top: 40px; }
.comment-list { list-style: none; padding: 0; }
.comment-body { padding: 16px 0; border-bottom: 1px solid var(--line); }
.comment-respond input[type="text"], .comment-respond input[type="email"], .comment-respond input[type="url"], .comment-respond textarea { width: 100%; padding: 10px 12px; border: 1.5px solid var(--line-2); border-radius: 10px; background: #fff; }
.comment-respond .submit { background: var(--green-800); color: #fff; border: 0; border-radius: 999px; padding: 12px 22px; font-weight: 600; cursor: pointer; }

@media print {
	.site-header, .site-footer, .sidebar, .share, .related-posts, .next-read, .reading-progress, .disclosure-bar, .toc, .nav-drawer, .search-panel, .tool-cta, .btn { display: none !important; }
	body { background: #fff; font-size: 12pt; }
	.article-layout { display: block; padding: 0; }
	.entry-content a::after { content: " (" attr(href) ")"; font-size: .8em; color: #555; word-break: break-all; }
	.takeaways, .callout, .verdict { break-inside: avoid; }
	.verdict { background: #fff; color: #000; border: 2px solid #000; }
	.verdict h3, .verdict .verdict__title { color: #000; }
}
