/* ==========================================================================
   FarmLifeHub Magazine — main stylesheet
   1. Tokens  2. Base  3. Layout  4. Buttons & chips  5. Header & nav
   6. Cards  7. Homepage sections  8. Listing pages  9. Article
   10. Sidebar  11. Forms & plugins  12. Newsletter & footer  13. Utilities
   ========================================================================== */

/* 1. Tokens ------------------------------------------------------------- */
:root {
	--bg: #fbf8f1;
	--surface: #ffffff;
	--surface-2: #f6f1e6;
	--sand: #f2ead9;
	--sand-2: #e8dcc2;
	--ink: #17211a;
	--text: #3a4538;
	--muted: #6a7466;
	--line: #e7dfcd;
	--green: #2d6a3a;
	--green-600: #235630;
	--green-50: #e8f1e4;
	--forest: #163421;
	--forest-2: #0f2718;
	--sage: #8fae7e;
	--honey: #e5aa3e;
	--honey-600: #cf9226;
	--terra: #c2652b;
	--earth: #8a5a36;
	--sky: #37799a;
	--on-dark: #f4efe3;
	--on-dark-muted: rgba(244, 239, 227, .72);

	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--font-head: "Fraunces", Georgia, "Times New Roman", serif;

	--r-sm: 10px;
	--r: 16px;
	--r-lg: 24px;
	--r-pill: 999px;
	--shadow-sm: 0 1px 2px rgba(23, 33, 26, .06), 0 2px 8px rgba(23, 33, 26, .05);
	--shadow: 0 10px 30px -12px rgba(23, 33, 26, .22);
	--shadow-lg: 0 30px 60px -25px rgba(15, 39, 24, .45);
	--ease: cubic-bezier(.2, .7, .2, 1);
	--header-h: 72px;
	--gutter: clamp(16px, 4vw, 28px);
	--section: clamp(56px, 8vw, 96px);
}

@media (prefers-color-scheme: dark) {
	:root:not([data-mode="light"]) {
		--bg: #0f1511;
		--surface: #161e18;
		--surface-2: #1b251d;
		--sand: #141c16;
		--sand-2: #223025;
		--ink: #eef0e8;
		--text: #cfd6ca;
		--muted: #97a293;
		--line: #26322a;
		--green: #6fb57a;
		--green-600: #86c690;
		--green-50: #1c2c20;
		--shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
		color-scheme: dark;
	}
}
:root[data-mode="dark"] {
	--bg: #0f1511;
	--surface: #161e18;
	--surface-2: #1b251d;
	--sand: #141c16;
	--sand-2: #223025;
	--ink: #eef0e8;
	--text: #cfd6ca;
	--muted: #97a293;
	--line: #26322a;
	--green: #6fb57a;
	--green-600: #86c690;
	--green-50: #1c2c20;
	--shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
	color-scheme: dark;
}

/* 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); }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 400 1rem/1.65 var(--font-body);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--green); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--green-600); }
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-head);
	color: var(--ink);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -.01em;
	margin: 0 0 .5em;
	font-variation-settings: "opsz" 72;
}
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--honey); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--honey); color: #1b1b1b; }
.icon { flex: none; vertical-align: middle; }

/* 3. Layout -------------------------------------------------------------- */
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 860px; }
.container--wide { max-width: 1200px; }
.section { padding: var(--section) 0; }
.section--tight { padding: clamp(40px, 6vw, 64px) 0; }
.section--sand { background: var(--sand); }
.section--forest { background: var(--forest); color: var(--on-dark); position: relative; overflow: hidden; }
.section--ink { background: #111a13; color: var(--on-dark); }
.section--forest h2, .section--forest h3, .section--ink h2, .section--ink h3 { color: #fff; }
.grid { display: grid; gap: clamp(20px, 2.4vw, 32px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.layout-split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.stack-lg > * + * { margin-top: 24px; }

.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: clamp(24px, 3vw, 36px); }
.sec-head__title { font-size: clamp(1.6rem, 3.2vw, 2.4rem); margin: 0; max-width: 22ch; }
.eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	margin: 0 0 10px;
	font: 600 .75rem/1 var(--font-body);
	letter-spacing: .14em; text-transform: uppercase; color: var(--terra);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow--light { color: var(--honey); }
.section--ink .sec-head__title, .section--forest .sec-head__title { color: #fff; }
.section--ink .eyebrow { color: var(--honey); }
.link-arrow {
	display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
	font-weight: 600; font-size: .95rem; color: var(--green);
}
.link-arrow .icon { transition: transform .25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-arrow--light, .section--ink .link-arrow { color: var(--honey); }
.link-arrow--light:hover, .section--ink .link-arrow:hover { color: #fff; }

/* 4. Buttons & chips ----------------------------------------------------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 12px 22px; border: 2px solid transparent; border-radius: var(--r-pill);
	font: 600 .95rem/1.2 var(--font-body); text-decoration: none; white-space: nowrap;
	transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--green); color: #fff; box-shadow: 0 8px 20px -10px rgba(45, 106, 58, .8); }
.btn--primary:hover { background: var(--green-600); color: #fff; }
:root[data-mode="dark"] .btn--primary { color: #0f1511; }
.btn--honey { background: var(--honey); color: #1f1a0e; box-shadow: 0 10px 24px -10px rgba(229, 170, 62, .9); }
.btn--honey:hover { background: #f0bb54; color: #1f1a0e; }
.btn--ghost { border-color: rgba(255, 255, 255, .6); color: #fff; background: rgba(255, 255, 255, .06); backdrop-filter: blur(4px); }
.btn--ghost:hover { background: #fff; color: var(--forest); }
.btn--outline { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn--outline:hover { border-color: var(--green); color: var(--green); }
.btn--light { background: #fff; color: var(--forest); }
.btn--sm { padding: 9px 16px; font-size: .88rem; }
.btn--lg { padding: 15px 28px; font-size: 1rem; }
.btn--block { width: 100%; }

.icon-btn {
	display: inline-grid; place-items: center; width: 42px; height: 42px;
	border: 0; border-radius: 12px; background: transparent; color: var(--ink);
	transition: background .2s var(--ease), color .2s var(--ease);
}
.icon-btn:hover { background: var(--green-50); color: var(--green); }
.icon-btn--round { border-radius: 50%; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }

.chip {
	display: inline-flex; align-items: center; gap: 8px; flex: none;
	padding: 9px 16px; border-radius: var(--r-pill);
	background: var(--surface); border: 1px solid var(--line); color: var(--ink);
	font-weight: 600; font-size: .9rem; white-space: nowrap;
	transition: all .2s var(--ease);
}
.chip:hover { border-color: var(--green); color: var(--green); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.chip .icon { color: var(--green); }
.chip--honey .icon { color: var(--honey-600); }
.chip--earth .icon { color: var(--earth); }
.chip--terra .icon { color: var(--terra); }
.chip--sky .icon { color: var(--sky); }
.chip--sm { padding: 6px 12px; font-size: .8rem; }
.chips-wrap { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 28px 0; }

.badge {
	position: relative; z-index: 2;
	display: inline-block; padding: 5px 11px; border-radius: var(--r-pill);
	background: var(--green-50); color: var(--green);
	font: 700 .7rem/1.2 var(--font-body); letter-spacing: .08em; text-transform: uppercase;
	transition: background .2s, color .2s;
}
.badge:hover { background: var(--green); color: #fff; }
.badge--honey { background: #fbf0d8; color: #9a6a0e; }
.badge--earth { background: #f3e7dc; color: var(--earth); }
.badge--terra { background: #f8e5d9; color: #a4501d; }
.badge--sky { background: #e1eef4; color: var(--sky); }
.badge--sage { background: #eaf1e4; color: #56744a; }
.badge--forest { background: #dfe9e1; color: var(--forest); }
:root[data-mode="dark"] .badge { background: rgba(255, 255, 255, .08); color: var(--honey); }

/* 5. Header & navigation ------------------------------------------------- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	border-bottom: 1px solid transparent;
	transition: box-shadow .25s var(--ease), border-color .25s var(--ease);
}
/* Blur lives on a pseudo-element: backdrop-filter on the header itself would make it
   the containing block of the fixed mobile drawer. */
.site-header::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: var(--bg);
	background: color-mix(in srgb, var(--bg) 88%, transparent);
	backdrop-filter: saturate(1.4) blur(14px);
	-webkit-backdrop-filter: saturate(1.4) blur(14px);
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(0, 0, 0, .35); }
.admin-bar .site-header { top: 32px; }
.site-header__inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; color: var(--ink); }
.brand__logo { height: 50px; width: auto; }
.brand__text { font: 700 1.4rem/1 var(--font-head); }
.brand__text b { color: var(--green); }
.brand__mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--green); color: #fff; }
:root[data-mode="dark"] .site-header .brand__logo { filter: brightness(1.15); }

.nav { flex: 1; display: flex; justify-content: center; }
.nav__head, .nav__search, .nav__foot { display: none; }
.nav__list { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav__list > li { position: relative; display: flex; align-items: center; }
.nav__list a {
	display: block; padding: 10px 14px; border-radius: 10px;
	color: var(--ink); font-weight: 600; font-size: .94rem;
}
.nav__list > li > a:hover, .nav__list > .current-menu-item > a, .nav__list > .current-menu-ancestor > a { color: var(--green); background: var(--green-50); }
.sub-toggle { display: grid; place-items: center; width: 26px; height: 26px; margin-left: -10px; border: 0; background: none; color: var(--muted); border-radius: 6px; }
.sub-toggle .icon { transition: transform .2s var(--ease); }
.nav__list .sub-menu {
	position: absolute; top: calc(100% + 8px); left: 0; min-width: 250px;
	margin: 0; padding: 8px; list-style: none;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
	box-shadow: var(--shadow);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.nav__list .sub-menu::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; }
.nav__list .sub-menu a { font-weight: 500; padding: 10px 12px; }
.nav__list .sub-menu a:hover { background: var(--surface-2); color: var(--green); }
@media (hover: hover) and (min-width: 1025px) {
	.nav__list > li:hover > .sub-menu, .nav__list > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
	.nav__list > li:hover > .sub-toggle .icon { transform: rotate(180deg); }
}
.nav__list > li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav__list > li.is-open > .sub-toggle .icon { transform: rotate(180deg); }


.site-header__actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.mode-toggle__sun { display: none; }
:root[data-mode="dark"] .mode-toggle__sun { display: block; }
:root[data-mode="dark"] .mode-toggle__moon { display: none; }
@media (prefers-color-scheme: dark) {
	:root:not([data-mode="light"]) .mode-toggle__sun { display: block; }
	:root:not([data-mode="light"]) .mode-toggle__moon { display: none; }
}
.nav-burger { display: none; }
.site-header__cta { margin-left: 6px; }

.search-panel { border-top: 1px solid var(--line); background: var(--surface); padding: 22px 0; box-shadow: var(--shadow); animation: drop .25s var(--ease); }
.search-panel__form { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 18px; border: 2px solid var(--line); border-radius: var(--r-pill); background: var(--bg); }
.search-panel__form:focus-within { border-color: var(--green); }
.search-panel__form input { flex: 1; min-width: 0; border: 0; background: none; font-size: 1.05rem; color: var(--ink); outline: none; padding: 8px 0; }
.search-panel__topics { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; font-size: .85rem; color: var(--muted); }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.topic-strip { border-bottom: 1px solid var(--line); background: var(--surface); }
.topic-strip__inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-top: 6px; padding-bottom: 6px; }
.topic-strip__inner::-webkit-scrollbar { display: none; }
.topic-strip__link { display: inline-flex; align-items: center; gap: 7px; flex: none; padding: 8px 14px; border-radius: var(--r-pill); color: var(--muted); font-size: .86rem; font-weight: 600; }
.topic-strip__link:hover { color: var(--green); background: var(--green-50); }
.topic-strip__link.is-current { color: #fff; background: var(--green); }
:root[data-mode="dark"] .topic-strip__link.is-current { color: #0f1511; }

.nav-overlay { position: fixed; inset: 0; z-index: 140; background: rgba(10, 20, 12, .55); backdrop-filter: blur(2px); }

@media (max-width: 1024px) {
	.nav-burger { display: inline-grid; }
	.site-header__cta { display: none; }
	.nav {
		position: fixed; top: 0; right: 0; bottom: 0; z-index: 150;
		width: min(380px, 90vw); flex-direction: column; justify-content: flex-start;
		padding: 18px 20px 28px; overflow-y: auto; overscroll-behavior: contain;
		background: var(--surface); box-shadow: var(--shadow-lg);
		transform: translateX(105%); visibility: hidden;
		transition: transform .35s var(--ease), visibility .35s;
	}
	.nav-open .nav { transform: none; visibility: visible; }
	.nav-open { overflow: hidden; }
	/* The drawer lives inside the sticky header (its own stacking context): lift the whole
	   header above the dimming overlay while the menu is open, otherwise the overlay
	   covers the drawer and swallows every tap. */
	.nav-open .site-header { z-index: 160; }
	.nav__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
	.nav__head .brand__logo { height: 42px; }
	.nav__search { display: flex; align-items: center; gap: 10px; padding: 11px 16px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--bg); color: var(--muted); }
	.nav__search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; color: var(--ink); font-size: 1rem; }
	.nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.nav__list > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
	.nav__list > li > a { flex: 1; padding: 14px 4px; font-size: 1.02rem; background: none !important; }
	.sub-toggle { width: 40px; height: 40px; margin: 0; }
	.nav__list .sub-menu {
		position: static; flex-basis: 100%; min-width: 0; padding: 0 0 10px 10px;
		border: 0; box-shadow: none; background: none; border-radius: 0;
		opacity: 1; visibility: visible; transform: none; display: none;
	}
	.nav__list > li.is-open > .sub-menu { display: block; }
	.nav__list .sub-menu a { padding: 9px 10px; color: var(--muted); }
	.nav__foot { display: grid; gap: 16px; margin-top: 24px; }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) {
	:root { --header-h: 64px; }
	.brand__logo { height: 42px; }
	.site-header__inner { gap: 8px; }
	.icon-btn { width: 40px; height: 40px; }
}

/* 6. Cards --------------------------------------------------------------- */
.card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.thumb {
	position: relative; display: block; overflow: hidden;
	border-radius: var(--r); background: var(--sand-2);
	aspect-ratio: 3 / 2;
}
.thumb__img, .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .thumb img, .slide:hover .thumb img { transform: scale(1.05); }
.thumb__ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--sage); background: linear-gradient(135deg, var(--sand), var(--sand-2)); }
.thumb__play {
	position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
	display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
	background: rgba(255, 255, 255, .92); color: var(--terra); box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
	transition: transform .3s var(--ease);
}
.card:hover .thumb__play { transform: translate(-50%, -50%) scale(1.1); }
.card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding-top: 16px; flex: 1; }
.card__title { margin: 0; font-size: 1.2rem; line-height: 1.3; }
.card__title a { color: var(--ink); background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .35s var(--ease), color .2s; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card:hover .card__title a { color: var(--green); background-size: 100% 2px; }
.card__excerpt { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.6; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: var(--muted); font-size: .8rem; }
.meta__item { display: inline-flex; align-items: center; gap: 6px; }
.meta__avatar { width: 24px; height: 24px; border-radius: 50%; }
.meta__author { font-weight: 600; color: var(--text); }
.card__more, .tip__more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; color: var(--green); }

/* list (horizontal) */
.card--list { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: center; }
.card--list .thumb { aspect-ratio: 1; border-radius: 14px; }
.card--list .card__body { padding: 0; gap: 6px; }
.card--list .card__title { font-size: 1.02rem; }
.card--list .badge { display: none; }
.card--list .thumb__play { width: 36px; height: 36px; }
.card--list .thumb__play .icon { width: 20px; height: 20px; }

/* overlay */
.card--overlay { border-radius: var(--r-lg); overflow: hidden; min-height: 420px; justify-content: flex-end; color: #fff; isolation: isolate; }
.card--overlay .thumb { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; z-index: -1; }
.card--overlay .thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 22, 13, 0) 25%, rgba(10, 22, 13, .55) 55%, rgba(10, 22, 13, .92)); }
.card--overlay .card__body { padding: clamp(22px, 3vw, 36px); gap: 12px; flex: none; }
.card--overlay .card__title { font-size: clamp(1.4rem, 2.6vw, 2.1rem); }
.card--overlay .card__title a, .card--overlay:hover .card__title a { color: #fff; }
.card--overlay .card__excerpt { color: rgba(255, 255, 255, .85); font-size: 1rem; max-width: 60ch; }
.card--overlay .meta, .card--overlay .meta__author { color: rgba(255, 255, 255, .85); }
.card--overlay .badge { background: var(--honey); color: #1f1a0e; }
.card--overlay .thumb__play { top: 40%; width: 76px; height: 76px; }

/* mini (ranked list) */
.ranked { counter-reset: rank; }
.card--mini { display: grid; grid-template-columns: 34px 72px minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.card--mini:first-child { border-top: 0; padding-top: 4px; }
.card__num { font: 700 1.5rem/1 var(--font-head); color: var(--sage); }
.card--mini .thumb { aspect-ratio: 1; border-radius: 12px; }
.card--mini .card__body { padding: 0; gap: 4px; }
.card--mini .card__title { font-size: .98rem; }
.card--mini .thumb__play { display: none; }

/* lead (first item on archives) */
.card--lead { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: center; padding: clamp(14px, 2vw, 20px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.card--lead .thumb { aspect-ratio: 16 / 10; border-radius: var(--r); }
.card--lead .card__body { padding: 8px 12px 8px 0; gap: 14px; }
.card--lead .card__title { font-size: clamp(1.5rem, 2.8vw, 2.2rem); }
.card--lead .card__excerpt { font-size: 1.02rem; }

/* product */
.card--product { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.card--product:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.card--product .thumb { aspect-ratio: 1; background: #fff; border-radius: var(--r); }
.card--product .thumb img { object-fit: contain; padding: 14px; }
.card--product .card__body { padding: 16px 6px 6px; }
.card--product .card__title { font-size: 1.05rem; }
.card__buy { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); }
.card__price { font: 700 1.1rem/1 var(--font-body); color: var(--terra); }
.card__cta { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .85rem; }

/* 7. Homepage ------------------------------------------------------------ */
.hero { position: relative; isolation: isolate; color: #fff; padding: clamp(70px, 10vw, 130px) 0 0; overflow: hidden; background: var(--forest); }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
	content: ""; position: absolute; inset: 0;
	background:
		linear-gradient(90deg, rgba(12, 30, 17, .92) 0%, rgba(12, 30, 17, .72) 45%, rgba(12, 30, 17, .25) 100%),
		linear-gradient(0deg, rgba(12, 30, 17, .85) 0%, rgba(12, 30, 17, 0) 40%);
}
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.hero__eyebrow {
	display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px;
	padding: 8px 14px; border-radius: var(--r-pill);
	background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(6px);
	font-size: .82rem; font-weight: 600; letter-spacing: .04em; color: #fff;
}
.hero__eyebrow .icon { color: var(--honey); }
.hero__title { color: #fff; font-size: clamp(2.3rem, 5.6vw, 4.3rem); line-height: 1.04; letter-spacing: -.02em; margin-bottom: 22px; max-width: 16ch; font-variation-settings: "opsz" 144; }
.hero__text { font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: rgba(255, 255, 255, .86); max-width: 56ch; margin-bottom: 30px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.hero__search {
	display: flex; align-items: center; gap: 10px; max-width: 560px;
	padding: 6px 6px 6px 18px; border-radius: var(--r-pill);
	background: #fff; color: #6a7466; box-shadow: var(--shadow-lg);
}
.hero__search input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font-size: 1rem; color: #17211a; padding: 10px 0; }
.hero__search .btn { padding: 11px 20px; }
.hero__search--inline { margin-top: 20px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }

.hero__feature {
	display: flex; flex-direction: column; gap: 10px; padding: 14px 14px 20px;
	border-radius: var(--r-lg); color: #fff;
	background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2);
	backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
	box-shadow: var(--shadow-lg); transition: transform .35s var(--ease), background .35s;
}
.hero__feature:hover { color: #fff; transform: translateY(-6px); background: rgba(255, 255, 255, .16); }
.hero__feature-label { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 6px 12px; border-radius: var(--r-pill); background: var(--honey); color: #1f1a0e; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.hero__feature-img { position: relative; display: block; overflow: hidden; border-radius: var(--r); aspect-ratio: 16 / 10; }
.hero__feature-img img { width: 100%; height: 100%; object-fit: cover; }
.hero__feature-cat { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--honey); padding: 4px 6px 0; }
.hero__feature-title { font: 700 1.25rem/1.3 var(--font-head); padding: 0 6px; }
.hero__feature-more { display: inline-flex; align-items: center; gap: 6px; padding: 0 6px; font-weight: 600; font-size: .9rem; color: rgba(255, 255, 255, .85); }

.hero__stats {
	display: grid; grid-template-columns: repeat(4, 1fr); margin: clamp(48px, 7vw, 90px) 0 0; padding: 0; list-style: none;
	border-top: 1px solid rgba(255, 255, 255, .18);
}
.hero__stats li { padding: 24px 20px 28px; border-left: 1px solid rgba(255, 255, 255, .12); }
.hero__stats li:first-child { border-left: 0; padding-left: 0; }
.hero__stats strong { display: block; font: 700 clamp(1.5rem, 2.6vw, 2.1rem)/1.1 var(--font-head); color: var(--honey); }
.hero__stats span { font-size: .88rem; color: rgba(255, 255, 255, .75); }

.chips-bar { background: var(--surface); border-bottom: 1px solid var(--line); }
.chips-bar__inner { display: flex; align-items: center; gap: 10px; overflow-x: auto; padding-top: 16px; padding-bottom: 16px; scrollbar-width: none; }
.chips-bar__inner::-webkit-scrollbar { display: none; }
.chips-bar__label { flex: none; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }

/* slider */
.section--picks { padding-bottom: calc(var(--section) - 20px); }
.slider { position: relative; }
.slider__track {
	position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 100%;
	overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
	border-radius: var(--r-lg); outline-offset: 4px;
}
.slider__track::-webkit-scrollbar { display: none; }
.slide {
	scroll-snap-align: start; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; min-height: 440px;
}
.slide__media { position: relative; display: block; overflow: hidden; border-radius: 0; aspect-ratio: auto; }
.slide__media .thumb__img, .slide__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.slide:hover .slide__media img { transform: scale(1.04); }
.slide__body { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 16px; padding: clamp(24px, 4vw, 56px); }
.slide__title { font-size: clamp(1.5rem, 2.8vw, 2.3rem); margin: 0; }
.slide__title a { color: var(--ink); }
.slide__title a:hover { color: var(--green); }
.slide__excerpt { color: var(--muted); margin: 0; font-size: 1.02rem; }
.slide .btn { margin-top: 6px; }
.slider__controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 22px; }
.slider__dots { display: flex; gap: 8px; }
.slider__dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 10px; background: var(--sand-2); transition: width .3s var(--ease), background .3s; }
.slider__dot[aria-selected="true"] { width: 30px; background: var(--green); }

/* bento */
.bento { display: grid; grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto; gap: clamp(20px, 2.4vw, 30px); }
.bento__main { grid-row: span 2; min-height: 560px; }
.bento .card--grid .card__title { font-size: 1.08rem; }

/* topics */
.topics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.topic {
	position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
	min-height: 250px; padding: 22px; border-radius: var(--r-lg); color: #fff;
	background: var(--forest); box-shadow: var(--shadow-sm);
	transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.topic:hover { color: #fff; transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.topic--wide { grid-column: span 2; }
.topic__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.topic:hover .topic__img { transform: scale(1.07); }
.topic::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14, 32, 18, .25), rgba(14, 32, 18, .88) 75%); }
.topic--honey::before { background: linear-gradient(180deg, rgba(70, 45, 5, .2), rgba(60, 38, 6, .88) 75%); }
.topic--earth::before, .topic--terra::before { background: linear-gradient(180deg, rgba(60, 30, 12, .2), rgba(58, 29, 12, .9) 75%); }
.topic--sky::before { background: linear-gradient(180deg, rgba(10, 35, 48, .2), rgba(10, 35, 48, .9) 75%); }
.topic__icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(6px); }
.topic__body { display: grid; gap: 6px; }
.topic__name { font: 700 1.35rem/1.2 var(--font-head); }
.topic__pitch { font-size: .9rem; color: rgba(255, 255, 255, .82); line-height: 1.5; }
.topic__count { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--honey); }

/* side boxes & promo */
.side-box { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.side-box__title { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; margin: 0 0 16px; }
.side-box__title .icon { color: var(--terra); }
.promo-card {
	position: relative; overflow: hidden; display: grid; gap: 10px; padding: 26px;
	border-radius: var(--r-lg); color: #fff;
	background: radial-gradient(circle at 100% 0, rgba(229, 170, 62, .35), transparent 50%), linear-gradient(135deg, #1f4d2b, #163421);
	box-shadow: var(--shadow); transition: transform .3s var(--ease);
}
.promo-card:hover { color: #fff; transform: translateY(-4px); }
.promo-card__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--honey); color: #1f1a0e; }
.promo-card__title { font: 700 1.3rem/1.25 var(--font-head); }
.promo-card__text { color: rgba(255, 255, 255, .8); font-size: .92rem; }
.promo-card__cta { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--honey); }

/* tips */
.tips { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: clamp(32px, 5vw, 72px); align-items: start; position: relative; }
.section--forest::before {
	content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
	background: radial-gradient(circle at 10% 10%, rgba(143, 174, 126, .25), transparent 40%), radial-gradient(circle at 90% 90%, rgba(229, 170, 62, .18), transparent 40%);
}
.tips__title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); color: #fff; margin-bottom: 28px; }
.checklist { padding: 24px; border-radius: var(--r-lg); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); }
.checklist__head { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--honey); margin-bottom: 14px; }
.checklist ul { margin: 0 0 18px; padding: 0; list-style: none; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--on-dark); }
.checklist li .icon { margin-top: 3px; padding: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--sage); color: var(--forest); }
.tips__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.tip {
	position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px;
	border-radius: var(--r-lg); background: rgba(255, 255, 255, .96); color: #3a4538;
	transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.tip:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.tip__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: #e8f1e4; color: #2d6a3a; }
.tip:nth-child(2) .tip__icon { background: #e1eef4; color: var(--sky); }
.tip:nth-child(3) .tip__icon { background: #fbf0d8; color: #9a6a0e; }
.tip:nth-child(4) .tip__icon { background: #f8e5d9; color: var(--terra); }
.tip__cat { margin: 4px 0 0; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #8a5a36; }
.section--forest .tip__title { margin: 0; font-size: 1.15rem; line-height: 1.3; color: #17211a; }
.tip__title a { color: #17211a; }
.tip__title a::after { content: ""; position: absolute; inset: 0; }
.tip__text { margin: 0; font-size: .92rem; color: #6a7466; }
.tip__more { margin-top: auto; color: #2d6a3a; }

/* videos */
.videos { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); }
.videos__main { grid-row: span 3; min-height: 460px; }
.section--ink .card--list { padding: 14px; border-radius: var(--r); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); grid-template-columns: 150px minmax(0, 1fr); transition: background .25s; }
.section--ink .card--list:hover { background: rgba(255, 255, 255, .08); }
.section--ink .card--list .thumb { aspect-ratio: 16 / 10; }
.section--ink .card__title a { color: #fff; }
.section--ink .card:hover .card__title a { color: var(--honey); }
.section--ink .meta { color: rgba(255, 255, 255, .6); }

/* spotlights */
.spotlights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
.spotlight { display: grid; gap: 20px; align-content: start; padding: clamp(20px, 3vw, 32px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.spotlight__head { display: flex; gap: 16px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.spotlight__icon { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 16px; background: var(--green-50); color: var(--green); }
.spotlight--earth .spotlight__icon { background: #f3e7dc; color: var(--earth); }
.spotlight--terra .spotlight__icon { background: #f8e5d9; color: var(--terra); }
.spotlight__title { margin: 0 0 4px; font-size: 1.5rem; }
.spotlight__pitch { margin: 0; color: var(--muted); font-size: .92rem; }
.spotlight__lead .thumb { aspect-ratio: 16 / 9; }
.spotlight__lead .card__title { font-size: 1.35rem; }

/* AI band */
.ai-band {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center;
	padding: clamp(24px, 5vw, 56px); border-radius: var(--r-lg);
	background: radial-gradient(circle at 0 0, rgba(55, 121, 154, .14), transparent 45%), radial-gradient(circle at 100% 100%, rgba(143, 174, 126, .25), transparent 50%), var(--surface-2);
	border: 1px solid var(--line);
}
.ai-band__icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 18px; border-radius: 16px; background: var(--sky); color: #fff; }
.ai-band__intro p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; margin: 16px 0 24px; }
.ai-band__list { display: grid; gap: 14px; }
.ai-band__list .card--list { padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); transition: box-shadow .25s, transform .25s; }
.ai-band__list .card--list:hover { box-shadow: var(--shadow); transform: translateX(4px); }
.ai-band__list .thumb { background: #eaf3f7; }
.ai-band__list .thumb img { object-fit: contain; }

/* 8. Listing pages ------------------------------------------------------- */
.page-hero { position: relative; padding: clamp(32px, 5vw, 56px) 0; background: var(--sand); border-bottom: 1px solid var(--line); overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(143, 174, 126, .35), transparent 70%); pointer-events: none; }
.page-hero__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; position: relative; z-index: 1; }
.page-hero.has-image .page-hero__inner { grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr); }
.page-hero__eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 18px 0 12px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--terra); }
.page-hero__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--surface); color: var(--green); box-shadow: var(--shadow-sm); }
.page-hero__title { font-size: clamp(2rem, 4.6vw, 3.4rem); margin: 0 0 12px; letter-spacing: -.02em; }
.page-hero__desc { font-size: 1.1rem; color: var(--muted); max-width: 60ch; margin: 0 0 16px; }
.page-hero__facts { display: flex; flex-wrap: wrap; gap: 10px; }
.page-hero__facts span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); font-size: .85rem; font-weight: 600; color: var(--text); }
.page-hero__media { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow-lg); transform: rotate(1.2deg); }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero--compact { padding: clamp(28px, 4vw, 48px) 0; }
.page-hero--compact .page-hero__title { margin-top: 12px; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .84rem; color: var(--muted); }
.crumbs a { color: var(--muted); font-weight: 500; }
.crumbs a:hover { color: var(--green); }
.crumbs__sep { opacity: .5; }
.crumbs span[aria-current] { color: var(--ink); font-weight: 600; }

.listing { row-gap: clamp(32px, 4vw, 48px); }
.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: clamp(40px, 5vw, 64px); }
.pager .page-numbers {
	display: inline-grid; place-items: center; min-width: 46px; height: 46px; padding: 0 14px;
	border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600;
	transition: all .2s var(--ease);
}
.pager a.page-numbers:hover { border-color: var(--green); color: var(--green); transform: translateY(-2px); }
.pager .page-numbers.current { background: var(--green); border-color: var(--green); color: #fff; }
.pager .dots { border: 0; background: none; }

.topic-pills { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.topic-pill { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); color: var(--ink); transition: all .25s var(--ease); }
.topic-pill:hover { color: var(--ink); border-color: var(--green); transform: translateY(-3px); box-shadow: var(--shadow); }
.topic-pill__icon { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 13px; background: var(--green-50); color: var(--green); }
.topic-pill--honey .topic-pill__icon { background: #fbf0d8; color: #9a6a0e; }
.topic-pill--earth .topic-pill__icon, .topic-pill--terra .topic-pill__icon { background: #f8e5d9; color: var(--terra); }
.topic-pill--sky .topic-pill__icon { background: #e1eef4; color: var(--sky); }
.topic-pill strong { display: block; font-size: .98rem; }
.topic-pill small { color: var(--muted); font-size: .82rem; }

.empty { max-width: 560px; margin: 0 auto; text-align: center; padding: 40px 0; }
.empty__icon { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--green-50); color: var(--green); margin-bottom: 16px; }
.notfound__inner { text-align: center; }
.notfound__code { display: block; font: 700 clamp(5rem, 16vw, 9rem)/1 var(--font-head); color: var(--sand-2); letter-spacing: -.04em; margin-bottom: 6px; }
.notfound .page-hero__desc { margin: 0 auto 24px; }
.notfound .search-form { max-width: 520px; margin: 0 auto; }

/* 9. Article ------------------------------------------------------------- */
.progress { position: fixed; top: 0; left: 0; right: 0; z-index: 200; height: 4px; pointer-events: none; }
.progress__bar { display: block; height: 100%; background: linear-gradient(90deg, var(--green), var(--honey)); transform: scaleX(0); transform-origin: 0 50%; }
.article-hero { padding: clamp(32px, 5vw, 60px) 0 clamp(24px, 3vw, 36px); text-align: center; }
.article-hero .crumbs { justify-content: center; margin-bottom: 22px; }
.article-hero__title { font-size: clamp(2rem, 4.8vw, 3.4rem); line-height: 1.1; letter-spacing: -.02em; margin: 16px auto 18px; max-width: 22ch; font-variation-settings: "opsz" 144; }
.article-hero__dek { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 62ch; margin: 0 auto 26px; }
.article-hero__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 28px; }
.byline { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.byline__img { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: var(--shadow-sm); }
.byline__label { color: var(--muted); }
.byline strong { color: var(--ink); }
.article-hero__facts { display: inline-flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .9rem; }
.article-hero__facts > * { display: inline-flex; align-items: center; gap: 6px; }
.article-cover { margin: 0 auto clamp(32px, 5vw, 56px); }
.article-cover__img { width: 100%; max-height: 640px; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow); }
.article-cover figcaption { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 10px; }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 64px); align-items: start; max-width: 1200px; padding-bottom: var(--section); }
.article-main { min-width: 0; max-width: 760px; }
.article-side__sticky { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 22px; }

.entry-content { font-size: 1.1rem; line-height: 1.8; color: var(--text); }
.entry-content > * { margin-top: 0; margin-bottom: 1.35em; }
.entry-content h2 { font-size: clamp(1.55rem, 2.6vw, 2rem); margin: 2em 0 .7em; padding-top: .2em; }
.entry-content h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); margin: 1.7em 0 .6em; }
.entry-content h4 { font-size: 1.15rem; margin: 1.5em 0 .5em; }
.entry-content a { color: var(--green); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--green) 40%, transparent); }
.entry-content a:hover { text-decoration-color: currentColor; }
.entry-content strong { color: var(--ink); }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .5em; }
.entry-content li::marker { color: var(--green); font-weight: 700; }
.entry-content img { border-radius: var(--r); }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content figcaption, .entry-content .wp-caption-text { font-size: .88rem; color: var(--muted); text-align: center; margin-top: 8px; }
.entry-content blockquote {
	margin: 2em 0; padding: 24px 28px; border-left: 4px solid var(--honey); border-radius: 0 var(--r) var(--r) 0;
	background: var(--surface-2); font: 600 1.2rem/1.6 var(--font-head); color: var(--ink);
}
.entry-content blockquote p:last-child { margin: 0; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.entry-content th { background: var(--surface-2); color: var(--ink); }
.entry-content hr { border: 0; height: 1px; background: var(--line); margin: 2.5em 0; }
.entry-content pre, .entry-content code { font-size: .9em; background: var(--surface-2); border-radius: 6px; }
.entry-content code { padding: 2px 6px; }
.entry-content pre { padding: 18px; overflow-x: auto; }
.entry-content .alignwide { margin-left: calc(-1 * min(80px, 5vw)); margin-right: calc(-1 * min(80px, 5vw)); max-width: none; }
.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 > p:first-of-type::first-letter { float: left; font: 700 3.6em/.85 var(--font-head); padding: .08em .1em 0 0; color: var(--green); }
.entry-content--page > p:first-of-type::first-letter, .entry-content--video > p:first-of-type::first-letter { all: unset; }
.entry-content--page { padding: clamp(32px, 5vw, 56px) 0 var(--section); }
.flh-embed, .wp-block-embed__wrapper { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: #000; box-shadow: var(--shadow); }
.flh-embed iframe, .wp-block-embed__wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.entry-content .wp-block-button__link { border-radius: var(--r-pill); background: var(--green); color: #fff; text-decoration: none; padding: 12px 24px; font-weight: 600; }
.entry-content .wp-block-image img { border-radius: var(--r); }

.tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 36px 0 0; color: var(--muted); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 32px 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.share__label { font-weight: 700; color: var(--ink); margin-right: 8px; font-size: .92rem; }
.share__btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); transition: all .2s var(--ease); }
.share__btn:hover { background: var(--green); border-color: var(--green); color: #fff; transform: translateY(-2px); }
.share__btn.is-done { background: var(--honey); border-color: var(--honey); color: #1f1a0e; }

.author-box { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 22px; padding: 28px; border-radius: var(--r-lg); background: var(--sand); border: 1px solid var(--line); }
.author-box__img { width: 88px; height: 88px; border-radius: 50%; border: 3px solid var(--surface); }
.author-box__name { font-size: 1.35rem; margin: 0 0 8px; }
.author-box__name a { color: var(--ink); }
.author-box__bio { color: var(--muted); font-size: .96rem; margin-bottom: 10px; }

.post-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.post-nav__link { display: grid; gap: 6px; padding: 20px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); transition: all .25s var(--ease); }
.post-nav__link:hover { border-color: var(--green); box-shadow: var(--shadow); transform: translateY(-3px); }
.post-nav__link--next { text-align: right; grid-column: 2; }
.post-nav__link--next .post-nav__dir { justify-content: flex-end; }
.post-nav__dir { display: flex; align-items: center; gap: 4px; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--terra); }
.post-nav__title { font: 700 1.02rem/1.35 var(--font-head); color: var(--ink); }

/* 10. Sidebar ------------------------------------------------------------ */
.toc__list { margin: 0; padding: 0; list-style: none; counter-reset: toc; display: grid; gap: 2px; max-height: 50vh; overflow-y: auto; }
.toc__list li { counter-increment: toc; }
.toc__list a { display: flex; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--text); font-size: .9rem; line-height: 1.4; border-left: 2px solid transparent; }
.toc__list a::before { content: counter(toc, decimal-leading-zero); font-weight: 700; color: var(--sage); font-size: .8rem; padding-top: 1px; }
.toc__list a:hover { background: var(--surface-2); color: var(--green); }
.toc__list a.is-active { background: var(--green-50); color: var(--green); border-left-color: var(--green); font-weight: 600; }
.side-topics { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.side-topics a { display: flex; align-items: center; gap: 12px; padding: 9px 8px; border-radius: 12px; color: var(--ink); font-weight: 500; font-size: .94rem; }
.side-topics a:hover { background: var(--surface-2); color: var(--green); }
.side-topics__icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--green-50); color: var(--green); }
.side-topics__icon--honey { background: #fbf0d8; color: #9a6a0e; }
.side-topics__icon--earth, .side-topics__icon--terra { background: #f8e5d9; color: var(--terra); }
.side-topics__icon--sky { background: #e1eef4; color: var(--sky); }
.side-topics__count { margin-left: auto; font-size: .78rem; color: var(--muted); background: var(--surface-2); padding: 2px 9px; border-radius: var(--r-pill); }
.widget ul { margin: 0; padding-left: 1.1em; }

/* 11. Forms & plugins ---------------------------------------------------- */
input[type="text"], input[type="email"], input[type="url"], input[type="tel"], input[type="number"], input[type="search"], input[type="password"], textarea, select {
	width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 12px;
	background: var(--surface); color: var(--ink); font: inherit; font-size: 1rem;
	transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 18%, transparent); }
.hero__search input, .search-panel__form input, .nav__search input, .search-form input { width: auto; padding: 10px 0; border: 0; box-shadow: none !important; background: none; }
textarea { min-height: 160px; resize: vertical; }
label { font-weight: 600; color: var(--ink); font-size: .92rem; }
input[type="submit"], button[type="submit"]:not(.btn), .wpcf7-submit {
	display: inline-flex; align-items: center; justify-content: center; padding: 13px 26px; border: 0; border-radius: var(--r-pill);
	background: var(--green); color: #fff; font-weight: 600; cursor: pointer; transition: background .2s, transform .2s;
}
input[type="submit"]:hover, .wpcf7-submit:hover { background: var(--green-600); transform: translateY(-2px); }
.search-form { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 16px; border: 1.5px solid var(--line); border-radius: var(--r-pill); background: var(--surface); color: var(--muted); }
.search-form:focus-within { border-color: var(--green); }
.search-form input { flex: 1; min-width: 0; color: var(--ink); outline: none; }
.wpcf7 form { display: grid; gap: 6px; padding: clamp(22px, 4vw, 36px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.wpcf7 p { margin-bottom: 12px; }
.wpcf7-not-valid-tip { font-size: .85rem; color: #b3261e; }
.wpcf7-response-output { border-radius: 12px; }
.comments { margin-top: 48px; }
.comments__list { list-style: none; padding: 0; }
.comment-body { padding: 18px; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 14px; background: var(--surface); }

/* 12. Newsletter & footer ------------------------------------------------ */
.newsletter { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 88px) 0; color: var(--on-dark); background: linear-gradient(120deg, #1e4a2a, #13301c 60%); }
.newsletter::before {
	content: ""; position: absolute; inset: 0; opacity: .6; pointer-events: none;
	background:
		radial-gradient(circle at 85% 20%, rgba(229, 170, 62, .28), transparent 35%),
		radial-gradient(circle at 10% 90%, rgba(143, 174, 126, .3), transparent 40%),
		repeating-linear-gradient(115deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 22px);
}
.newsletter__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.newsletter__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--honey); color: #1f1a0e; margin-bottom: 18px; }
.newsletter h2 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.7rem); margin-bottom: 14px; }
.newsletter p { color: var(--on-dark-muted); font-size: 1.05rem; }
.newsletter__perks { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 18px 0 0; padding: 0; list-style: none; }
.newsletter__perks li { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem; }
.newsletter__perks .icon { color: var(--honey); }
.newsletter__form { padding: clamp(22px, 3vw, 32px); border-radius: var(--r-lg); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(10px); }
/* MailPoet form: neutralise its inline look, use ours */
.newsletter .mailpoet_form { padding: 0 !important; background: transparent !important; width: 100% !important; }
.newsletter .mailpoet_form h1, .newsletter .mailpoet_form h2, .newsletter .mailpoet_form .mailpoet-heading, .newsletter .mailpoet_form .mailpoet_form_image, .newsletter .mailpoet_form figure { display: none !important; }
.newsletter .mailpoet_form .mailpoet_paragraph { margin-bottom: 12px !important; color: var(--on-dark) !important; }
.newsletter .mailpoet_form p.mailpoet_form_paragraph, .newsletter .mailpoet_form .mailpoet_form_paragraph { color: var(--on-dark-muted) !important; font-size: .9rem !important; }
.newsletter .mailpoet_form input.mailpoet_text, .newsletter .mailpoet_form input[type="email"], .newsletter .mailpoet_form input[type="text"] {
	width: 100% !important; padding: 15px 18px !important; border: 1.5px solid rgba(255, 255, 255, .25) !important; border-radius: 14px !important;
	background: rgba(255, 255, 255, .95) !important; color: #17211a !important; font-size: 1rem !important;
}
.newsletter .mailpoet_form input.mailpoet_submit, .newsletter .mailpoet_form input[type="submit"] {
	width: 100% !important; padding: 15px 22px !important; border: 0 !important; border-radius: 14px !important;
	background: var(--honey) !important; color: #1f1a0e !important; font: 700 1rem var(--font-body) !important; cursor: pointer;
}
.newsletter .mailpoet_form input.mailpoet_submit:hover { background: #f0bb54 !important; }
.newsletter .mailpoet_form label { color: var(--on-dark) !important; }
.newsletter .mailpoet_validate_success { color: #bfe5b5 !important; }
.newsletter .mailpoet_validate_error { color: #ffc2b5 !important; }
.newsletter .mailpoet_form .mailpoet_form_column, .newsletter .mailpoet_form .mailpoet_form_columns { display: block !important; width: 100% !important; margin: 0 !important; padding: 0 !important; }

.site-footer { background: var(--forest-2); color: var(--on-dark-muted); font-size: .95rem; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); padding-top: clamp(56px, 7vw, 80px); padding-bottom: clamp(40px, 5vw, 56px); }
.site-footer__logo .brand { padding: 10px 16px; border-radius: 16px; background: #fbf8f1; margin-bottom: 20px; }
.site-footer__logo .brand__logo { height: 48px; }
.site-footer__brand p { line-height: 1.75; margin-bottom: 20px; }
.site-footer__title { font: 700 .8rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--honey); margin: 8px 0 20px; }
.site-footer__links, .site-footer ul.menu, .site-footer .menu ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.site-footer a { color: var(--on-dark-muted); }
.site-footer a:hover { color: #fff; }
.site-footer__links a { display: inline-flex; align-items: center; gap: 8px; }
.site-footer__links a span { font-size: .72rem; padding: 1px 8px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .08); }
.foot-post { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 12px; align-items: center; margin-bottom: 14px; }
.foot-post__img { display: block; width: 60px; height: 60px; border-radius: 12px; overflow: hidden; background: rgba(255, 255, 255, .06); }
.foot-post__img img { width: 100%; height: 100%; object-fit: cover; }
.foot-post__title { display: block; font-weight: 600; color: var(--on-dark); line-height: 1.35; font-size: .9rem; }
.foot-post:hover .foot-post__title { color: var(--honey); }
.foot-post__date { font-size: .78rem; }
.social { display: flex; gap: 10px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .08); color: var(--on-dark); transition: all .2s; }
.social a:hover { background: var(--honey); color: #1f1a0e; transform: translateY(-2px); }
.social--dark a { background: var(--surface-2); color: var(--ink); }
.site-footer__bar { border-top: 1px solid rgba(255, 255, 255, .1); }
.site-footer__bar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-top: 22px; padding-bottom: 22px; font-size: .85rem; }
.site-footer__bar p { margin: 0; }
.site-footer__note { opacity: .7; }
.to-top { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(255, 255, 255, .08); }
.to-top:hover { background: var(--honey); color: #1f1a0e !important; }

/* 13. Utilities & responsive -------------------------------------------- */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed !important; top: 12px; left: 12px; z-index: 999; width: auto; height: auto; clip: auto; padding: 12px 18px; background: var(--green); color: #fff; border-radius: 10px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }

@media (max-width: 1180px) {
	.grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.topics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.topic--wide { grid-column: span 1; }
	.site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
	.layout-split, .article-layout { grid-template-columns: minmax(0, 1fr); }
	.article-main { max-width: 760px; margin: 0 auto; width: 100%; }
	.article-side { max-width: 760px; margin: 0 auto; width: 100%; }
	.article-side__sticky { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.toc { display: none; }
	.layout-split > aside { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
	.layout-split > aside > * + * { margin-top: 0; }
	.hero__inner { grid-template-columns: minmax(0, 1fr); }
	.hero__feature { display: none; }
	.bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bento__main { grid-column: 1 / -1; grid-row: auto; min-height: 460px; }
	.tips, .newsletter__inner, .ai-band { grid-template-columns: minmax(0, 1fr); }
	.videos { grid-template-columns: minmax(0, 1fr); }
	.videos__main { grid-row: auto; }
	.spotlights { grid-template-columns: minmax(0, 1fr); }
	.grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.card--lead { grid-template-columns: minmax(0, 1fr); }
	.card--lead .card__body { padding: 0 8px 8px; }
	.page-hero.has-image .page-hero__inner { grid-template-columns: minmax(0, 1fr); }
	.page-hero__media { display: none; }
}
@media (max-width: 760px) {
	.slide { grid-template-columns: minmax(0, 1fr); min-height: 0; }
	.slide__media { aspect-ratio: 16 / 10; }
	.slide__excerpt { display: none; }
	.hero__stats { grid-template-columns: repeat(2, 1fr); }
	.hero__stats li { padding: 18px 14px 18px 0; border-left: 0; }
	.hero__stats li:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .12); }
	.topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.topic { min-height: 210px; padding: 18px; }
	.topic__pitch { display: none; }
	.layout-split > aside, .article-side__sticky { grid-template-columns: minmax(0, 1fr); }
	.post-nav { grid-template-columns: minmax(0, 1fr); }
	.post-nav__link--next { grid-column: auto; }
	.sec-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
	.grid--2, .grid--3, .grid--4, .tips__grid { grid-template-columns: minmax(0, 1fr); }
	.bento { grid-template-columns: minmax(0, 1fr); }
	.bento__main, .videos__main { min-height: 400px; }
	.card--overlay { min-height: 380px; }
	.hero { padding-top: 56px; }
	.hero__ctas .btn { flex: 1; }
	.hero__search { padding-left: 14px; }
	.hero__search .btn { padding: 10px 14px; }
	.topics { grid-template-columns: minmax(0, 1fr); }
	.site-footer__grid { grid-template-columns: minmax(0, 1fr); }
	.author-box { grid-template-columns: minmax(0, 1fr); text-align: center; justify-items: center; }
	.entry-content { font-size: 1.04rem; }
	.section--ink .card--list { grid-template-columns: 110px minmax(0, 1fr); }
	.card--list { grid-template-columns: 96px minmax(0, 1fr); }
	.entry-content .alignleft, .entry-content .alignright { float: none; margin: 0 auto 1em; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
	.site-header, .topic-strip, .article-side, .share, .newsletter, .site-footer, .progress, .post-nav, .section--sand { display: none !important; }
	body { background: #fff; color: #000; }
}

/* MailPoet popup: keep it inside small screens */
.mailpoet_form_popup { max-width: calc(100vw - 32px) !important; box-sizing: border-box !important; }
.mailpoet_form_popup .mailpoet_form { max-width: 100% !important; }

/* GTranslate switcher in the primary menu: turn its bottom-left "float" widget into a clean dropdown */
.nav__list .menu-item-gtranslate { margin-left: 6px; }
.nav__list .menu-item-gtranslate > div { position: relative !important; }
.nav__list .gt_float_switcher {
	position: relative; display: flex !important; flex-direction: column-reverse;
	overflow: visible !important; background: transparent !important; box-shadow: none !important;
	font: 600 .88rem/1 var(--font-body) !important; color: var(--ink) !important;
}
.nav__list .gt_float_switcher .gt-selected { float: none !important; background: var(--surface-2) !important; border: 1px solid var(--line); border-radius: 10px !important; }
.nav__list .gt_float_switcher .gt-selected .gt-current-lang { display: flex; align-items: center; gap: 6px; padding: 8px 12px !important; color: var(--ink) !important; font-weight: 600 !important; }
.nav__list .gt_float_switcher img { width: 20px !important; height: auto; border-radius: 3px; }
.nav__list .gt_float_switcher .gt_options {
	position: absolute !important; top: calc(100% + 8px); right: 0; z-index: 120 !important;
	min-width: 190px; max-height: min(460px, 70vh) !important; overflow-x: hidden !important; overflow-y: auto !important; padding: 6px;
	background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
	visibility: hidden; opacity: 0; transform: translateY(6px) !important; transition: opacity .2s, transform .2s, visibility .2s !important;
}
.nav__list .gt_float_switcher .gt_options.gt-open { visibility: visible; opacity: 1; transform: none !important; }
.nav__list .gt_float_switcher .gt_options a { display: flex !important; align-items: center; gap: 10px; padding: 9px 10px !important; border-radius: 9px; color: var(--text) !important; font-size: .9rem; font-weight: 500; }
.nav__list .gt_float_switcher .gt_options a:hover { background: var(--green-50) !important; color: var(--green) !important; }
@media (max-width: 1024px) {
	.nav__list .menu-item-gtranslate { margin: 0; padding: 12px 0; border-bottom: 0; }
	.nav__list .gt_float_switcher { flex-direction: column; align-items: flex-start; }
	.nav__list .gt_float_switcher .gt_options { position: static !important; display: none; min-width: 0; width: 100%; margin-top: 8px; box-shadow: none; }
	.nav__list .gt_float_switcher .gt_options.gt-open { display: block; }
}

/* Topic chips: wrap on wide screens, swipe on small ones */
@media (min-width: 1025px) {
	.chips-bar__inner { flex-wrap: wrap; overflow: visible; justify-content: center; }
}
@media (max-width: 1024px) {
	.chips-bar__inner, .topic-strip__inner {
		-webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
		mask-image: linear-gradient(90deg, #000 88%, transparent);
		padding-right: 48px;
	}
}

/* Amazon product price (WP Automatic posts) */
.entry-content .flh-price { font-weight: 700; font-size: 1.15em; color: var(--terra); }
.entry-content .flh-price del { font-weight: 400; font-size: .85em; color: var(--muted); margin-right: 4px; }
