/*
Theme Name: Verdance
Description: Supplement directory and affiliate theme with a bold, modern look (variant 2). Reviews and articles live on this site; each supplement's buying page can live on its own subdomain.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: verdance
*/

:root {
	--ink: #0f2d2c;
	--ink-2: #163b39;
	--paper: #f5f8f4;
	--panel: #ffffff;
	--mint: #dcebe2;
	--signal: #f0a81b;
	--muted: #4f6663;
	--on-dark: #eaf3ee;
	--on-dark-muted: #9fbab2;
	--max: 1160px;
	--head: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
	--body: "Public Sans", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.65 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
h1, h2, h3 { overflow-wrap: break-word; font-family: var(--head); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5.5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.sr, .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 0; }
.crumb { color: var(--muted); font-weight: 500; font-size: .95rem; margin: 0 0 .4rem; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 56ch; }

/* Header */
.site-header { border-bottom: 3px solid var(--ink); background: var(--paper); }
.bar { display: flex; flex-wrap: wrap; gap: .75rem 2rem; align-items: center; justify-content: space-between; padding-top: .95rem; padding-bottom: .95rem; }
.brand-name { font: 700 1.4rem/1 var(--head); text-decoration: none; }
.primary ul, .menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.primary a { text-decoration: none; font-weight: 500; }
.nav-toggle { display: none; font: 600 1rem/1 var(--body); color: var(--ink); background: transparent; border: 2px solid var(--ink); border-radius: 4px; padding: .6rem 1rem; min-height: 44px; cursor: pointer; }
.entry table { display: block; overflow-x: auto; max-width: 100%; }
.entry iframe, .entry video { max-width: 100%; }
.primary a:hover { text-decoration: underline; }

/* Buttons and fields */
.btn { display: inline-block; min-height: 44px; background: var(--signal); color: var(--ink); border: 2px solid var(--ink); border-radius: 4px; padding: .65rem 1.2rem; font: 600 1rem/1.2 var(--body); text-decoration: none; cursor: pointer; }
.btn:hover { background: #ffc24a; }
.btn-small { padding: .4rem .85rem; font-size: .9rem; min-height: 38px; }
input[type="search"], input[type="text"], select { width: 100%; font: inherit; color: var(--ink); background: var(--panel); border: 2px solid var(--ink); border-radius: 4px; padding: .7rem .85rem; }

/* Hero */
.hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 4vw, 2.5rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.hero-copy h1 { max-width: 13ch; }
.hero-search { display: flex; gap: .5rem; max-width: 600px; margin-top: 1.5rem; }
.pills { list-style: none; margin: 1.25rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.pills a { display: inline-block; padding: .4rem .95rem; border: 2px solid var(--ink); border-radius: 999px; text-decoration: none; font-weight: 500; font-size: .95rem; }
.pills a:hover { background: var(--ink); color: #fff; }
.hero-feature { background: var(--mint); border: 3px solid var(--ink); }
.hf-img { display: block; border-bottom: 3px solid var(--ink); aspect-ratio: 3 / 2; overflow: hidden; background: var(--ink-2); }
.hf-img img { width: 100%; height: 100%; object-fit: cover; }
.hf-body { padding: 1.25rem 1.4rem 1.5rem; }
.hf-body h2 { font-size: 1.6rem; }
.hf-body h2 a { text-decoration: none; }
.hf-body h2 a:hover { text-decoration: underline; }

.ph { display: flex; width: 100%; height: 100%; min-height: 160px; align-items: center; justify-content: center; font: 700 4rem/1 var(--head); color: var(--mint); background: var(--ink-2); }

/* Sections */
.block { padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-bottom: 3px solid var(--ink); padding-bottom: .5rem; margin-bottom: 1.25rem; }
.sec-head h2 { margin: 0; }
.sec-head .all { font-weight: 600; }

.topics { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .75rem; }
.topics a { display: block; padding: .85rem 1rem; background: var(--mint); border-left: 6px solid var(--ink); text-decoration: none; }
.topics a:hover { border-left-color: var(--signal); background: #cfe3d7; }
.topics .tn { display: block; font: 700 1.1rem/1.2 var(--head); }
.topics .tc { display: block; color: var(--muted); font-size: .9rem; }

.items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 1.75rem; }
.item-img { display: block; aspect-ratio: 3 / 2; overflow: hidden; border: 2px solid var(--ink); background: var(--ink-2); margin-bottom: .9rem; }
.item-img img { width: 100%; height: 100%; object-fit: cover; }
.item h3 { margin-bottom: .3rem; }
.item h3 a { text-decoration: none; }
.item h3 a:hover { text-decoration: underline; }
.item p { color: var(--muted); }

/* Directory: full-width dark section with a name grid */
.dir { background: var(--ink); color: var(--on-dark); padding-bottom: clamp(2.5rem, 6vw, 4rem); margin-top: clamp(2.5rem, 6vw, 4.5rem); padding-top: clamp(2.5rem, 6vw, 4rem); }
.dir h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.dir-lede { color: var(--on-dark-muted); max-width: 60ch; }
.dir-filter { display: grid; grid-template-columns: 2fr 1fr; gap: 1rem; margin: 1.5rem 0 1rem; }
.dir-filter label { display: block; font-weight: 600; margin-bottom: .3rem; }
.dir-count { color: var(--on-dark-muted); margin-bottom: .75rem; }
.dir-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: rgba(234, 243, 238, .22); border: 1px solid rgba(234, 243, 238, .22); }
.dir-grid li { background: var(--ink); }
.dir-grid a, .dir-grid .dl { display: block; height: 100%; padding: 1rem 1.1rem; text-decoration: none; color: var(--on-dark); }
.dir-grid a:hover, .dir-grid a:focus-visible { background: var(--ink-2); }
.dir-grid a:hover .dn { text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 2px; }
.dn { display: block; font: 700 1.05rem/1.25 var(--head); color: #fff; }
.dt { display: block; margin-top: .15rem; font-size: .85rem; color: var(--on-dark-muted); }
.dir-empty { margin-top: 1rem; font-weight: 500; }

.chips { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips a { display: inline-block; padding: .45rem 1rem; background: var(--mint); border-radius: 999px; text-decoration: none; font-weight: 500; }
.chips a:hover { background: var(--ink); color: #fff; }

.art-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 3rem; }
.art-grid article { padding: 1.1rem 0; border-top: 1px solid var(--ink); }
.art-grid h3 { margin-bottom: .3rem; }
.art-grid h3 a { text-decoration: none; }
.art-grid h3 a:hover { text-decoration: underline; }
.art-grid p:last-child { color: var(--muted); margin: 0; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.steps > div { border-top: 6px solid var(--signal); padding-top: 1rem; }
.steps p { color: var(--muted); margin: 0; }

/* Inner pages */
.page { padding-top: clamp(2rem, 5vw, 3.5rem); padding-bottom: 3rem; }
.page-head { max-width: 760px; margin-bottom: 1.75rem; }
.page-head h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.entry { max-width: 72ch; }
.entry h2, .entry h3 { margin-top: 1.6em; }
.entry ul, .entry ol { padding-left: 1.3rem; }
.hero-img { margin: 0 0 1.5rem; border: 2px solid var(--ink); }
.single .side { max-width: 420px; margin-top: 2rem; background: var(--panel); border: 3px solid var(--ink); padding: 1rem 1.25rem; }
.side-head { border-bottom: 8px solid var(--ink); margin-bottom: .5rem; }
.side-head h2 { font-size: 1.4rem; margin: 0 0 .3rem; }
.side ul { list-style: none; margin: 0; padding: 0; }
.side li { padding: .55rem 0; border-top: 1px solid var(--ink); }
.side a { font-weight: 600; }
.note { margin-top: 2rem; max-width: 72ch; color: var(--muted); font-size: .95rem; border-left: 4px solid var(--signal); padding-left: .9rem; }
.pagination { margin-top: 2rem; }
.pagination .nav-links { display: flex; gap: .5rem; flex-wrap: wrap; }
.pagination .page-numbers { padding: .3rem .75rem; border: 2px solid var(--ink); text-decoration: none; }
.pagination .current { background: var(--ink); color: #fff; }

/* Footer */
.site-footer { margin-top: clamp(3rem, 7vw, 5rem); background: var(--ink); color: var(--on-dark); padding: clamp(2.5rem, 6vw, 4rem) 0 2rem; border-top: 8px solid var(--signal); }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--signal); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem 2.5rem; }
.foot-brand { font: 700 1.6rem/1.1 var(--head); color: #fff; display: inline-block; margin-bottom: .75rem; }
.foot-about p { color: var(--on-dark-muted); max-width: 36ch; }
.site-footer h2 { font: 700 1rem/1.2 var(--head); color: #fff; margin: 0 0 .8rem; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: block; }
.site-footer li { margin: 0 0 .5rem; }
.foot-legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(234, 243, 238, .22); }
.disclosure { max-width: 80ch; font-weight: 500; }
.small { margin: 0; font-size: .9rem; color: var(--on-dark-muted); max-width: 80ch; }

@media (max-width: 1000px) {
	.dir-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
	.nav-toggle { display: inline-block; }
	.primary { display: none; width: 100%; order: 3; }
	.primary.open { display: block; }
	.primary ul { flex-direction: column; gap: 0; }
	.primary a { display: block; padding: .8rem 0; border-top: 1px solid var(--ink); }
	.hero-grid { grid-template-columns: 1fr; }
	.dir-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.dir-filter { grid-template-columns: 1fr; }
	.art-grid, .steps { grid-template-columns: 1fr; }
	.hero-search { flex-direction: column; }
}
@media (max-width: 520px) {
	.items { grid-template-columns: 1fr; }
	.foot-grid { grid-template-columns: 1fr; }
	.dir-grid a, .dir-grid .dl { padding: .85rem .9rem; }
	.dn { font-size: 1rem; }
}

.more { display: inline-block; font-weight: 600; padding: .5rem 0; min-height: 44px; }
.empty-note { padding: 1rem 1.25rem; background: var(--mint); border-left: 6px solid var(--ink); max-width: 60ch; }

/* Article layout: left content column + right sticky product box (v1.2.3)
   Use inside post/page content:
   <div class="lw-article-layout">
     <div class="lw-article-main"> ...article... </div>
     <aside class="lw-product-box"> <img> <a class="btn"> </aside>
   </div> */

/* .entry is capped at 72ch, which is too narrow for two columns.
   Lift the cap only for entries that contain the layout; all other pages are unchanged. */
.entry:has(.lw-article-layout) { max-width: none; }

.lw-article-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 2.5rem;
	align-items: start; /* do not stretch the box to the full row height, or sticky has no room to move */
}
.lw-article-main { min-width: 0; max-width: 72ch; } /* same reading width as before */
.lw-article-main > :first-child { margin-top: 0; }

.lw-product-box {
	position: sticky;
	top: 1.25rem;
	align-self: start;
	background: var(--panel);
	border: 3px solid var(--ink);
	padding: 1rem 1.25rem;
}
.admin-bar .lw-product-box { top: calc(32px + 1.25rem); }
.lw-product-box img { width: 100%; height: auto; margin: 0 0 1rem; }
.lw-product-box h2, .lw-product-box h3 { margin-top: 0; font-size: 1.25rem; }
.lw-product-box p { color: var(--muted); }
.lw-product-box .btn { display: block; text-align: center; }

@media (max-width: 900px) {
	.lw-article-layout { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
	.lw-product-box { position: static; max-width: 420px; }
}

/* ==========================================================================
   Article sidebar system (v1.3.0)
   Printed by template-parts/entry.php when a post has an "Article Sidebar" block.
   The theme only provides the two-column frame; what goes inside is up to each post.
   ========================================================================== */

.lw-layout {
	--lw-side-w: 320px;
	display: grid;
	grid-template-columns: minmax(0, 46rem) var(--lw-side-w);
	justify-content: space-between;
	column-gap: clamp(2rem, 4vw, 3.5rem);
	align-items: stretch; /* the column is as tall as the article; the inner box sticks inside it */
}
.lw-layout > .entry { max-width: none; min-width: 0; }
.lw-layout-side { min-width: 0; }

/* Neutral by design: no border or background. Content brings its own styling. */
.lw-side-inner { min-width: 0; font-size: .96rem; line-height: 1.55; overflow-wrap: break-word; }
.lw-side-inner > :first-child { margin-top: 0; }
.lw-side-inner > :last-child { margin-bottom: 0; }
.lw-side-inner h2, .lw-side-inner h3, .lw-side-inner h4 { margin: 1.4em 0 .5em; font-size: 1.2rem; }
.lw-side-inner h2 { font-size: 1.35rem; }
.lw-side-inner ul, .lw-side-inner ol { padding-left: 1.3rem; }
.lw-side-inner figure { margin: 0 0 1rem; }
.lw-side-inner img, .lw-side-inner video, .lw-side-inner iframe, .lw-side-inner svg { max-width: 100%; }
.lw-side-inner table { display: block; max-width: 100%; overflow-x: auto; font-size: .92rem; }
.lw-side-inner pre { max-width: 100%; overflow-x: auto; }
.lw-side-inner .lw-product-box { position: static; } /* old manual box: never nest sticky inside the sticky column */

/* Sticky (desktop only). Nothing between here and <body> sets overflow, so sticky is not blocked. */
@media (min-width: 901px) {
	.lw-sticky .lw-side-inner {
		position: sticky;
		top: 1.25rem;
		max-height: calc(100vh - 2.5rem);
		max-height: calc(100dvh - 2.5rem); /* a tall sidebar scrolls inside itself instead of being cut off */
		overflow-y: auto;
		overscroll-behavior: contain;
		scrollbar-width: thin;
		padding: 6px; /* room so focus outlines are not clipped by the scroll area */
		margin: -6px;
	}
	.admin-bar .lw-sticky .lw-side-inner {
		top: calc(32px + 1.25rem);
		max-height: calc(100vh - 32px - 2.5rem);
		max-height: calc(100dvh - 32px - 2.5rem);
	}
}

/* Tablets and phones: one column, sidebar after (or, if chosen, before) the article. */
@media (max-width: 900px) {
	.lw-layout { grid-template-columns: minmax(0, 1fr); row-gap: 2.5rem; }
	.lw-layout-side { max-width: 40rem; }
	.lw-mobile-above .lw-layout-side { order: -1; }
}

/* ==========================================================================
   v1.3.1: hand-written two-column layouts work without any CSS inside the post
   1) The 72ch cap on .entry is lifted automatically when a post contains a sidebar-style layout
      (a sticky box, a 2-column grid with a narrow right column, or <div> ... <aside> markup).
      Plain text posts keep the 72ch reading width. assets/article-layout.js adds .lw-wide.
   2) Default two-column styling for <div class="anything"> <div>main</div> <aside>box</aside> </div>.
      Written with :where() so it has zero specificity: a post's own CSS always wins when present.
   ========================================================================== */
.entry.lw-wide,
.entry:has(> div > aside) { max-width: none; }
.entry.lw-wide > :is(p, ul, ol, h1, h2, h3, h4, h5, h6, blockquote, pre),
.entry:has(> div > aside) > :is(p, ul, ol, h1, h2, h3, h4, h5, h6, blockquote, pre) { max-width: 72ch; }

:where(.entry > div:has(> aside)) {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 2.5rem;
	align-items: start;
	width: 100%;
}
:where(.entry > div:has(> aside) > :not(aside)) { min-width: 0; max-width: 72ch; }
:where(.entry > div > aside) { position: sticky; top: 1.25rem; align-self: start; }
:where(.admin-bar .entry > div > aside) { top: calc(32px + 1.25rem); }
@media (max-width: 900px) {
	:where(.entry > div:has(> aside)) { grid-template-columns: minmax(0, 1fr); }
	:where(.entry > div:has(> aside) > :not(aside)) { max-width: none; }
	:where(.entry > div > aside) { position: static; max-width: 420px; }
}

/* v1.3.2: sticky buy button on phones/tablets. Created by assets/article-layout.js from the post's own button. */
.lw-sticky-cta { display: none; }
@media (max-width: 900px) {
	.lw-sticky-cta {
		display: block;
		position: fixed;
		left: 0; right: 0; bottom: 0;
		z-index: 50;
		padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom, 0px));
		background: var(--paper);
		border-top: 2px solid var(--ink);
		transform: translateY(110%);
		visibility: hidden;
		transition: transform .2s ease, visibility 0s linear .2s;
	}
	.lw-sticky-cta.is-on { transform: none; visibility: visible; transition: transform .2s ease; }
	.lw-sticky-cta .btn { display: block; width: 100%; text-align: center; }
	body.lw-has-sticky-cta { padding-bottom: 4.5rem; }
}
@media (prefers-reduced-motion: reduce) { .lw-sticky-cta, .lw-sticky-cta.is-on { transition: none; } }

/* Related posts (1.4.0): hand-picked per post, shown at the end of the page */
.related { margin-top: 3rem; padding-top: 1.5rem; border-top: 3px solid var(--ink); }
.related > h2 { margin-bottom: 1.25rem; }

/* Product box from the editor panel (1.4.1) */
.lw-product-box .lw-box-title { font: 700 1.25rem/1.2 var(--head); color: var(--ink); margin: 0 0 .5rem; }
.lw-side-inner .lw-product-box { margin: 0; }

/* Featured image (1.4.2): printed once by template-parts/entry.php, centred above the article text,
   inside the text column. 250px wide; on small screens never wider than 80% of the column, height automatic. */
.lw-hero { margin: 0 0 1.5rem; text-align: center; }
.lw-hero .hero-img { display: block; width: 250px; max-width: 80%; height: auto; margin: 0 auto; }
/* Hand-written two-column posts: the image sits over the text column only, not over the sidebar column. */
.entry.lw-wide > .lw-hero,
.entry:has(> div > aside) > .lw-hero,
.entry:has(.lw-article-layout) > .lw-hero { max-width: min(72ch, calc(100% - 320px - 2.5rem)); }
/* Block or panel sidebar: the entry already is the text column. */
.lw-layout .entry.lw-layout-main > .lw-hero { max-width: none; }
@media (max-width: 900px) {
	.entry.lw-wide > .lw-hero,
	.entry:has(> div > aside) > .lw-hero,
	.entry:has(.lw-article-layout) > .lw-hero { max-width: none; }
}

/* ==========================================================================
   Verdance, variant 2: new header and spotlight home page (header.php, front-page.php).
   Header classes: brand-*, vh-search. Home classes start with vh-. The header is not sticky on purpose,
   so the sticky sidebars and boxes inside posts keep their exact positions.
   ========================================================================== */

/* ---- Header ---- */
.site-header { position: relative; z-index: 20; background: rgba(255, 255, 255, .86); border-bottom: 1px solid rgba(15, 45, 44, .14); box-shadow: 0 8px 26px -20px rgba(15, 45, 44, .55); }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: linear-gradient(90deg, var(--ink) 0 38%, var(--signal) 38% 52%, var(--mint) 52% 100%); }
.bar { gap: .75rem 1.5rem; padding-top: .8rem; padding-bottom: .8rem; justify-content: flex-start; }
.brand-link { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: linear-gradient(145deg, var(--ink-2), var(--ink)); color: var(--signal); box-shadow: 0 8px 16px -8px rgba(15, 45, 44, .7); }
.brand-name { font: 700 1.35rem/1 var(--head); letter-spacing: -.02em; color: var(--ink); }
.primary { margin-left: auto; }
.primary ul, .primary .menu { gap: .2rem; padding: .3rem; background: rgba(15, 45, 44, .06); border-radius: 999px; }
.primary a { display: block; padding: .5rem 1.05rem; border-radius: 999px; font-weight: 600; font-size: .96rem; text-decoration: none; color: var(--ink); transition: background .2s, color .2s; }
.primary a:hover { background: #fff; text-decoration: none; }
.primary .is-current > a, .primary .current-menu-item > a { background: var(--ink); color: #fff; }

.vh-search { position: relative; }
.vh-search > summary { list-style: none; display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .45rem 1.05rem; background: var(--panel); border: 2px solid var(--ink); border-radius: 999px; font-weight: 600; cursor: pointer; }
.vh-search > summary::-webkit-details-marker { display: none; }
.vh-search > summary:hover, .vh-search[open] > summary { background: var(--ink); color: #fff; }
.vh-search form { position: absolute; right: 0; top: calc(100% + .6rem); z-index: 30; display: flex; gap: .5rem; width: min(360px, 86vw); padding: .7rem; background: #fff; border: 2px solid var(--ink); border-radius: 18px; box-shadow: 0 24px 44px -22px rgba(15, 45, 44, .6); }
.vh-search form input[type="search"] { border-radius: 12px; min-width: 0; }
.vh-search form .btn { border-radius: 12px; }
.nav-toggle { border-radius: 999px; }

/* ---- Home: hero ---- */
.vh-hero { position: relative; overflow: hidden; color: var(--on-dark); padding: clamp(3rem, 8vw, 6rem) 0 clamp(5.5rem, 11vw, 8.5rem); background: radial-gradient(1100px 520px at 88% -8%, rgba(240, 168, 27, .22), transparent 60%), radial-gradient(900px 520px at -8% 110%, rgba(220, 235, 226, .16), transparent 60%), linear-gradient(160deg, #0b2423 0%, var(--ink) 45%, var(--ink-2) 100%); }
.vh-hero::before, .vh-hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.vh-hero::before { width: 420px; height: 420px; right: -130px; top: 30px; background: radial-gradient(circle at 30% 30%, rgba(240, 168, 27, .34), rgba(240, 168, 27, 0) 66%); animation: vh-float 14s ease-in-out infinite; }
.vh-hero::after { width: 520px; height: 520px; left: -190px; bottom: -230px; background: radial-gradient(circle at 60% 40%, rgba(220, 235, 226, .22), rgba(220, 235, 226, 0) 68%); animation: vh-float 18s ease-in-out infinite reverse; }
@keyframes vh-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-22px); } }
.vh-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.vh-eyebrow { display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 1.25rem; padding: .4rem .95rem; background: rgba(234, 243, 238, .08); border: 1px solid rgba(234, 243, 238, .35); border-radius: 999px; font: 600 .82rem/1 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--on-dark); }
.vh-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); }
.vh-hero h1 { max-width: 14ch; color: #fff; font-size: clamp(2.5rem, 6vw, 4.6rem); }
.vh-lede { max-width: 50ch; margin-bottom: 1.75rem; font-size: 1.2rem; color: var(--on-dark-muted); }
.vh-hsearch { display: flex; gap: .5rem; max-width: 600px; padding: .45rem; background: rgba(255, 255, 255, .97); border-radius: 999px; box-shadow: 0 26px 50px -26px rgba(0, 0, 0, .65); }
.vh-hsearch input[type="search"] { flex: 1 1 auto; min-width: 0; padding-left: 1.1rem; background: transparent; border: 0; border-radius: 999px; }
.vh-hsearch .btn { border: 0; border-radius: 999px; padding-left: 1.5rem; padding-right: 1.5rem; }
.vh-tags { list-style: none; margin: 1.25rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.vh-tags a { display: inline-block; padding: .4rem .95rem; background: rgba(234, 243, 238, .07); border: 1px solid rgba(234, 243, 238, .35); border-radius: 999px; font-size: .95rem; text-decoration: none; color: var(--on-dark); }
.vh-tags a:hover { background: var(--signal); border-color: var(--signal); color: var(--ink); }

.vh-stack { display: grid; gap: 1rem; }
.vh-fcard { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 1rem; align-items: center; padding: .9rem; background: rgba(255, 255, 255, .96); color: var(--ink); border-radius: 18px; box-shadow: 0 26px 42px -26px rgba(0, 0, 0, .7); text-decoration: none; transition: transform .25s ease; }
.vh-fcard:nth-child(1) { transform: rotate(-2deg) translateX(-14px); }
.vh-fcard:nth-child(2) { transform: translateX(18px); }
.vh-fcard:nth-child(3) { transform: rotate(1.5deg) translateX(-6px); }
.vh-fcard:hover, .vh-fcard:focus-visible { transform: translateY(-4px) rotate(0); }
.vh-fcard-img { display: block; width: 76px; aspect-ratio: 1; overflow: hidden; border-radius: 12px; background: var(--ink-2); }
.vh-fcard-img img { width: 100%; height: 100%; object-fit: cover; }
.vh-fcard-img .ph { min-height: 0; font-size: 2rem; }
.vh-fcard-label { display: block; margin-bottom: .2rem; font: 700 .72rem/1.2 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.vh-fcard strong { display: block; font: 700 1.02rem/1.25 var(--head); }

/* ---- Home: stats bar ---- */
.vh-stats { position: relative; z-index: 2; margin-top: calc(-1 * clamp(2.5rem, 5vw, 3.5rem)); }
.vh-stats ul { list-style: none; margin: 0; padding: 1.1rem 1.25rem; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 1rem; background: #fff; border: 1px solid rgba(15, 45, 44, .12); border-radius: 22px; box-shadow: 0 30px 60px -34px rgba(15, 45, 44, .55); }
.vh-stats li { padding: .35rem .5rem; text-align: center; }
.vh-stats li + li { border-left: 1px solid rgba(15, 45, 44, .12); }
.vh-stats b { display: block; font: 700 clamp(1.6rem, 3vw, 2.3rem)/1 var(--head); }
.vh-stats span { color: var(--muted); font-size: .92rem; }

/* ---- Home: section heads ---- */
.vh-sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.5rem; }
.vh-sec-head h2 { margin: 0; }
.vh-sec-head .all { font-weight: 700; white-space: nowrap; }
.vh-kicker { margin: 0 0 .35rem; font: 700 .8rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ---- Home: topic tiles ---- */
.vh-topics { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.vh-topic a { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; min-height: 132px; padding: 1.1rem 1.25rem; background: var(--mint); border-radius: 20px; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.vh-topic a::after { content: "\2192"; position: absolute; right: 1.1rem; top: 1rem; font-size: 1.2rem; opacity: .55; }
.vh-topic:nth-child(4n+2) a { background: #fff1cc; }
.vh-topic:nth-child(4n+3) a { background: var(--ink); color: #fff; }
.vh-topic:nth-child(4n) a { background: #fff; border: 1px solid rgba(15, 45, 44, .16); }
.vh-topic a:hover { transform: translateY(-4px); box-shadow: 0 22px 34px -24px rgba(15, 45, 44, .65); }
.vt-name { font: 700 1.15rem/1.2 var(--head); padding-right: 1.6rem; }
.vt-count { font-size: .9rem; color: var(--muted); }
.vh-topic:nth-child(4n+3) .vt-count { color: var(--on-dark-muted); }

/* ---- Home: product cards ---- */
.vh-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.vh-card { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid rgba(15, 45, 44, .12); border-radius: 22px; box-shadow: 0 18px 40px -32px rgba(15, 45, 44, .55); transition: transform .25s ease, box-shadow .25s ease; }
.vh-card:hover { transform: translateY(-5px); box-shadow: 0 30px 50px -30px rgba(15, 45, 44, .6); }
.vh-card-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink-2); }
.vh-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.vh-card:hover .vh-card-img img { transform: scale(1.04); }
.vh-card-body { display: flex; flex: 1; flex-direction: column; gap: .2rem; padding: 1.2rem 1.3rem 1.4rem; }
.vh-chip { align-self: flex-start; padding: .2rem .75rem; background: var(--mint); border-radius: 999px; font: 600 .78rem/1.5 var(--body); }
.vh-card h3 { margin: .5rem 0 .3rem; font-size: 1.2rem; }
.vh-card h3 a, .vh-art h3 a { text-decoration: none; }
.vh-card h3 a:hover, .vh-art h3 a:hover { text-decoration: underline; }
.vh-card p { color: var(--muted); font-size: .96rem; }
.vh-go { margin-top: auto; font-weight: 700; text-decoration: none; }
.vh-go:hover { text-decoration: underline; }
.vh-card:first-child { grid-column: span 2; flex-direction: row; }
.vh-card:first-child .vh-card-img { flex: 0 0 48%; aspect-ratio: auto; min-height: 260px; }
.vh-card:first-child h3 { font-size: 1.6rem; }

/* ---- Home: how it works ---- */
.vh-band { margin-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: clamp(2.5rem, 6vw, 4rem); background: var(--mint); }
.vh-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.vh-step { padding: 1.5rem 1.4rem; background: #fff; border-radius: 20px; }
.vh-step h3 { margin-bottom: .4rem; }
.vh-step p { margin: 0; color: var(--muted); }
.vh-n { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: .9rem; background: var(--ink); color: var(--signal); border-radius: 14px; font: 700 1.2rem/1 var(--head); }

/* ---- Home: directory (same filter as before) ---- */
.vh-dir-box { padding: clamp(1.5rem, 4vw, 2.75rem); background: var(--ink); color: var(--on-dark); border-radius: 30px; }
.vh-dir-box h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.vh-dir-box .vh-kicker { color: var(--on-dark-muted); }
.vh-dir-lede { margin: 0; max-width: 60ch; color: var(--on-dark-muted); }
.vh-filter { display: grid; grid-template-columns: 2fr 1fr auto; gap: .75rem; align-items: end; margin: 1.5rem 0 1rem; padding: .85rem; background: #fff; border-radius: 20px; color: var(--ink); }
.vh-filter label { display: block; margin-bottom: .25rem; font-size: .85rem; font-weight: 600; }
.vh-filter input[type="search"], .vh-filter select { border-width: 1px; border-radius: 12px; }
.vh-count { margin: 0; padding: 0 .5rem .65rem; color: var(--muted); font-weight: 600; white-space: nowrap; }
.vh-dir-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.vh-dir-list a, .vh-dir-list .dl { position: relative; display: block; height: 100%; padding: .9rem 2.2rem .9rem 1rem; background: rgba(255, 255, 255, .08); border: 1px solid rgba(234, 243, 238, .22); border-radius: 14px; text-decoration: none; color: var(--on-dark); transition: transform .15s ease, background .15s ease; }
.vh-dir-list a::after { content: "\2192"; position: absolute; right: .95rem; top: .85rem; opacity: .6; }
.vh-dir-list a:hover, .vh-dir-list a:focus-visible { background: rgba(255, 255, 255, .16); transform: translateY(-3px); }
.vh-dir-list .dn { color: #fff; }
.vh-dir-list .dt { color: var(--on-dark-muted); }

/* ---- Home: ingredient marquee ---- */
.vh-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.vh-track { display: flex; width: max-content; padding: .25rem 0; animation: vh-scroll 50s linear infinite; }
.vh-marquee:hover .vh-track, .vh-marquee:focus-within .vh-track { animation-play-state: paused; }
.vh-track ul { list-style: none; margin: 0; padding: 0 .6rem 0 0; display: flex; gap: .6rem; }
.vh-track a { display: block; white-space: nowrap; padding: .55rem 1.1rem; background: #fff; border: 1px solid rgba(15, 45, 44, .18); border-radius: 999px; font-weight: 500; text-decoration: none; }
.vh-track a:hover { background: var(--ink); color: #fff; }
@keyframes vh-scroll { to { transform: translateX(-50%); } }

/* ---- Home: article cards ---- */
.vh-arts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.vh-art { display: flex; flex-direction: column; padding: 1.4rem 1.4rem 1.5rem; background: #fff; border: 1px solid rgba(15, 45, 44, .12); border-top: 6px solid var(--signal); border-radius: 20px; transition: transform .2s ease, box-shadow .2s ease; }
.vh-art:nth-child(3n+2) { border-top-color: var(--ink); }
.vh-art:nth-child(3n) { border-top-color: #9cc3ad; }
.vh-art:hover { transform: translateY(-4px); box-shadow: 0 24px 38px -28px rgba(15, 45, 44, .6); }
.vh-art p:not(.crumb) { color: var(--muted); }

/* ---- Home: closing call to action ---- */
.vh-cta { margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.vh-cta-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; padding: clamp(1.75rem, 4vw, 3rem); color: var(--on-dark); border-radius: 30px; background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 60%, #1f5b52 100%); }
.vh-cta h2 { margin: 0 0 .4rem; color: #fff; }
.vh-cta p { margin: 0; color: var(--on-dark-muted); max-width: 52ch; }
.vh-cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.vh-cta .btn { border-radius: 999px; }
.vh-btn-ghost { background: transparent; color: #fff; border-color: rgba(234, 243, 238, .65); }
.vh-btn-ghost:hover { background: rgba(255, 255, 255, .14); }

/* ---- Motion preferences ---- */
@media (prefers-reduced-motion: reduce) {
	.vh-hero::before, .vh-hero::after, .vh-track { animation: none; }
	.vh-fcard, .vh-card, .vh-card-img img, .vh-topic a, .vh-art, .vh-dir-list a { transition: none; }
	.vh-marquee { -webkit-mask-image: none; mask-image: none; }
	.vh-track { width: auto; }
	.vh-track ul { flex-wrap: wrap; }
	.vh-track ul:nth-child(2) { display: none; }
}

/* ---- Responsive ---- */
@media (max-width: 1000px) {
	.vh-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.vh-dir-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.vh-arts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	.vh-hero-grid { grid-template-columns: minmax(0, 1fr); }
	.vh-stack .vh-fcard:nth-child(n+2) { display: none; }
	.vh-fcard:nth-child(1) { transform: none; }
	.vh-steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
	.bar { justify-content: space-between; }
	.vh-search { order: 2; margin-left: auto; }
	.nav-toggle { order: 3; }
	.primary { order: 4; width: 100%; margin-left: 0; }
	.primary ul, .primary .menu { flex-direction: column; gap: .35rem; padding: 0; background: none; border-radius: 0; }
	.primary a { padding: .8rem 1rem; border-top: 0; background: rgba(15, 45, 44, .06); border-radius: 14px; }
	.vh-search form { right: -4.5rem; }
	.vh-stats ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.vh-stats li + li { border-left: 0; }
	.vh-cards, .vh-arts { grid-template-columns: minmax(0, 1fr); }
	.vh-card:first-child { grid-column: auto; flex-direction: column; }
	.vh-card:first-child .vh-card-img { flex: none; aspect-ratio: 16 / 10; min-height: 0; }
	.vh-filter { grid-template-columns: minmax(0, 1fr); }
	.vh-count { padding: 0; }
	.vh-dir-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.vh-sec-head { flex-wrap: wrap; }
}
@media (max-width: 520px) {
	.vh-dir-list { grid-template-columns: minmax(0, 1fr); }
	.brand-name { font-size: 1.15rem; }
}
