/* ==========================================================================
   Editorial homepage (template-parts/homepage/home-*.php). Classes are ch-*.
   ========================================================================== */

.cor-home {
	--ch-green: #244C3B;
	--ch-green-2: #376B50;
	--ch-green-l: #E6EEE8;
	--ch-cream: #F8F5EC;
	--ch-sand: #E9E0D0;
	--ch-white: #FFFFFF;
	--ch-ink: #252B27;
	--ch-muted: #68716A;
	--ch-line: #E4E7E1;
	--ch-gold: #C69A48;
	--ch-gold-d: #8A6420;
	--ch-radius: 16px;
	--ch-shadow: 0 1px 2px rgba(37,43,39,.05), 0 10px 30px rgba(37,43,39,.08);
	--ch-shadow-lg: 0 2px 6px rgba(37,43,39,.06), 0 24px 60px rgba(37,43,39,.14);
	color: var(--ch-ink);
	background: var(--ch-white);
}

/* ---------- Shared ---------- */
.ch-section { padding: clamp(56px, 7vw, 96px) 0; }
.ch-head { max-width: 680px; margin: 0 0 clamp(28px, 4vw, 44px); }
.ch-head-split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.ch-head-split > div { max-width: 680px; }
.ch-eyebrow {
	margin: 0 0 10px; font: 600 .78rem/1 var(--cor-sans); letter-spacing: .14em; text-transform: uppercase;
	color: var(--ch-green-2);
}
.ch-title { margin: 0; font-size: clamp(1.75rem, 2.2vw + 1rem, 2.5rem); font-weight: 600; line-height: 1.15; letter-spacing: -.015em; color: var(--ch-ink); }
.ch-sub { margin: 12px 0 0; font-size: 1.06rem; line-height: 1.65; color: var(--ch-muted); }
.ch-kicker { margin: 0 0 6px; font: 600 .74rem/1.2 var(--cor-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ch-green-2); }
.ch-meta { margin: 8px 0 0; font-size: .86rem; color: var(--ch-muted); }
.ch-icon { display: block; flex: none; }

.ch-link {
	display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .98rem;
	color: var(--ch-green); border-bottom: 1px solid transparent; padding-bottom: 2px;
}
.ch-link .ch-icon { width: 18px; height: 18px; transition: transform .2s ease; }
.ch-link:hover { color: var(--ch-green); border-bottom-color: currentColor; }
.ch-link:hover .ch-icon { transform: translateX(3px); }

.ch-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 12px 24px; border-radius: 999px;
	font: 600 1rem/1.2 var(--cor-sans); text-decoration: none; text-align: center;
	border: 1.5px solid transparent; transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.ch-btn .ch-icon { width: 18px; height: 18px; }
.ch-btn:hover { transform: translateY(-1px); }
.ch-btn-primary { background: var(--ch-green); color: #fff; box-shadow: 0 6px 18px rgba(36,76,59,.22); }
.ch-btn-primary:hover { background: #1B3A2D; color: #fff; }
.ch-btn-ghost { background: transparent; color: var(--ch-green); border-color: rgba(36,76,59,.35); }
.ch-btn-ghost:hover { background: var(--ch-green-l); color: var(--ch-green); border-color: var(--ch-green); }
.ch-btn-amazon { background: var(--ch-green); color: #fff; width: 100%; }
.ch-btn-amazon:hover { background: #1B3A2D; color: #fff; }
.ch-btn-sm { min-height: 40px; padding: 9px 18px; font-size: .92rem; width: auto; }

.cor-home a:focus-visible,
.cor-home summary:focus-visible { outline: 3px solid var(--ch-gold); outline-offset: 3px; border-radius: 6px; }

.ch-disclosure { margin: 24px 0 0; font-size: .86rem; color: var(--ch-muted); }
.ch-disclosure a { color: var(--ch-green); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Hero ---------- */
.ch-hero {
	position: relative; overflow: hidden;
	padding: clamp(40px, 6vw, 88px) 0 clamp(48px, 6vw, 96px);
	background:
		radial-gradient(900px 500px at 85% 20%, rgba(198,154,72,.10), transparent 60%),
		linear-gradient(180deg, var(--ch-cream) 0%, #FBF9F3 100%);
}
.ch-hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.ch-hero-title {
	margin: 0; font-size: clamp(2.3rem, 3.3vw + 1rem, 3.6rem); font-weight: 600; line-height: 1.06; letter-spacing: -.025em;
	color: var(--ch-ink); text-wrap: balance;
}
.ch-hero-sub { margin: 20px 0 0; max-width: 34em; font-size: clamp(1.05rem, .3vw + 1rem, 1.18rem); line-height: 1.65; color: var(--ch-muted); }
.ch-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.ch-popular { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 26px; font-size: .86rem; }
.ch-popular span { color: var(--ch-muted); margin-right: 4px; }
.ch-popular a {
	padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.75); border: 1px solid var(--ch-line);
	color: var(--ch-ink); font-weight: 500;
}
.ch-popular a:hover { border-color: var(--ch-green); color: var(--ch-green); background: #fff; }

.ch-hero-media { position: relative; margin-bottom: 32px; }
.ch-hero-img {
	display: block; width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 28px;
	box-shadow: var(--ch-shadow-lg);
}
.ch-hero-pick {
	position: absolute; left: clamp(-48px, -3.5vw, -16px); bottom: -32px; width: min(290px, 74%);
	padding: 18px 20px; border-radius: var(--ch-radius); background: rgba(255,255,255,.97);
	box-shadow: var(--ch-shadow-lg); border: 1px solid var(--ch-line);
}
.ch-hero-pick-label { margin: 0 0 6px; font: 700 .7rem/1.3 var(--cor-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ch-gold-d); }
.ch-hero-pick-name { margin: 0; font: 600 1.08rem/1.3 var(--cor-serif); color: var(--ch-ink); }
.ch-hero-pick-type { margin: 4px 0 14px; font-size: .86rem; color: var(--ch-muted); }
.ch-hero-pick-note { margin: 8px 0 0; font-size: .74rem; color: var(--ch-muted); }

/* ---------- Trust strip ---------- */
.ch-trust { background: var(--ch-white); border-bottom: 1px solid var(--ch-line); }
.ch-trust-list { list-style: none; margin: 0; padding: 22px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ch-trust-list li { display: flex; align-items: center; gap: 12px; }
.ch-trust-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--ch-green-l); color: var(--ch-green); flex: none; }
.ch-trust-icon .ch-icon { width: 22px; height: 22px; }
.ch-trust-list strong { display: block; font-size: .95rem; color: var(--ch-ink); }
.ch-trust-list small { display: block; font-size: .82rem; color: var(--ch-muted); line-height: 1.4; }

/* ---------- Picks ---------- */
.ch-picks { background: var(--ch-white); }
.ch-picks-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ch-pick {
	display: flex; flex-direction: column; overflow: hidden;
	background: var(--ch-white); border: 1px solid var(--ch-line); border-radius: 20px;
	transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.ch-pick:hover { box-shadow: var(--ch-shadow); transform: translateY(-2px); border-color: #D5DBD3; }
.ch-pick-visual {
	position: relative; display: grid; place-items: center; height: 150px;
	background: linear-gradient(160deg, var(--ch-cream), var(--ch-sand));
}
.ch-pick-visual.is-refined { background: linear-gradient(160deg, #F7F6F2, #E9E7E0); }
.ch-pick-visual.is-liquid { background: linear-gradient(160deg, #EEF4EF, #D9E6DC); }
.ch-pick-rank { position: absolute; top: 14px; left: 18px; font: 600 1.5rem/1 var(--cor-serif); color: rgba(36,76,59,.35); }
.ch-jar { width: 70px; height: auto; filter: drop-shadow(0 8px 14px rgba(37,43,39,.12)); }
.ch-jar-lid { fill: var(--ch-green); }
.ch-jar-body { fill: rgba(255,255,255,.85); stroke: rgba(37,43,39,.12); stroke-width: 1.5; }
.ch-jar-fill { fill: #FFFDF6; }
.is-refined .ch-jar-fill { fill: #FFFFFF; }
.is-liquid .ch-jar-fill { fill: rgba(232,214,160,.55); }
.ch-jar-label { fill: var(--ch-gold); opacity: .85; }
.is-liquid .ch-jar-lid { fill: var(--ch-green-2); }

.ch-pick-body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 24px; }
.ch-pick-best {
	align-self: flex-start; margin: 0 0 12px; padding: 5px 10px; border-radius: 6px;
	background: #F6EEDC; color: var(--ch-gold-d); font: 700 .72rem/1.2 var(--cor-sans); letter-spacing: .06em; text-transform: uppercase;
}
.ch-pick-name { margin: 0; font-size: 1.2rem; line-height: 1.3; font-weight: 600; }
.ch-pick-type { margin: 6px 0 0; font-size: .88rem; font-weight: 600; color: var(--ch-green-2); }
.ch-pick-why { margin: 12px 0 20px; font-size: .96rem; line-height: 1.6; color: var(--ch-muted); }
.ch-pick-actions { margin-top: auto; display: grid; gap: 10px; justify-items: center; }
.ch-pick-more { font-size: .9rem; font-weight: 600; color: var(--ch-green); }
.ch-pick-more:hover { color: var(--ch-green); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Needs ---------- */
.ch-needs { background: var(--ch-cream); }
.ch-needs-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ch-need {
	position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5; border-radius: 18px;
	background: var(--ch-green); color: #fff; isolation: isolate;
}
.ch-need-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; z-index: -2; }
.ch-need::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,34,27,0) 30%, rgba(20,34,27,.82) 100%); }
.ch-need:hover .ch-need-img { transform: scale(1.05); }
.ch-need-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px; display: grid; gap: 4px; }
.ch-need-count { font: 600 .72rem/1.2 var(--cor-sans); letter-spacing: .1em; text-transform: uppercase; color: #F1DDB4; }
.ch-need-title { font: 600 1.28rem/1.2 var(--cor-serif); color: #fff; }
.ch-need-desc { font-size: .88rem; line-height: 1.45; color: rgba(255,255,255,.85); }
.ch-need:hover, .ch-need:focus-visible { color: #fff; }

/* ---------- Guide ---------- */
.ch-guide { background: var(--ch-white); }
.ch-guide-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.ch-guide-media { margin: 0; }
.ch-guide-img { display: block; width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: 24px; box-shadow: var(--ch-shadow); }
.ch-criteria { list-style: none; counter-reset: ch; margin: 28px 0 0; padding: 0; display: grid; gap: 18px; }
.ch-criteria li { counter-increment: ch; position: relative; padding-left: 56px; }
.ch-criteria li::before {
	content: counter(ch); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%;
	display: grid; place-items: center; background: var(--ch-green-l); color: var(--ch-green); font: 600 1.05rem/1 var(--cor-serif);
}
.ch-criteria strong { display: block; font-size: 1.05rem; margin-bottom: 4px; color: var(--ch-ink); }
.ch-criteria span { display: block; font-size: .96rem; line-height: 1.6; color: var(--ch-muted); }
.ch-guide-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- Featured ---------- */
.ch-featured { background: var(--ch-cream); }
.ch-featured-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; grid-template-rows: auto auto; gap: 24px; }
.ch-story { display: flex; flex-direction: column; background: var(--ch-white); border-radius: 18px; overflow: hidden; border: 1px solid var(--ch-line); }
.ch-story.is-lead { grid-row: span 2; }
.ch-story-media { display: block; overflow: hidden; }
.ch-story-img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .5s ease; }
.ch-story.is-lead .ch-story-img { aspect-ratio: 4 / 3; }
.ch-story:hover .ch-story-img { transform: scale(1.04); }
.ch-story-body { padding: 18px 20px 22px; }
.ch-story.is-lead .ch-story-body { padding: 24px 28px 30px; }
.ch-story-title { margin: 0; font-size: 1.08rem; line-height: 1.32; font-weight: 600; }
.ch-story.is-lead .ch-story-title { font-size: clamp(1.4rem, 1vw + 1rem, 1.85rem); line-height: 1.2; }
.ch-story-title a, .ch-card-title a, .ch-row-title a { color: var(--ch-ink); }
.ch-story-title a:hover, .ch-card-title a:hover, .ch-row-title a:hover { color: var(--ch-green); }
.ch-story-excerpt { margin: 12px 0 0; font-size: 1rem; line-height: 1.6; color: var(--ch-muted); }

/* ---------- Tools ---------- */
.ch-tools { padding: clamp(56px, 7vw, 88px) 0; background: var(--ch-green); color: #fff; }
.ch-tools .ch-eyebrow { color: #E8CF9A; }
.ch-tools .ch-title { color: #fff; }
.ch-tools .ch-sub { color: rgba(255,255,255,.78); }
.ch-tools-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.ch-tool {
	display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 22px 20px;
	border-radius: 16px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); color: #fff;
	transition: background-color .2s ease, transform .2s ease;
}
.ch-tool:hover { background: rgba(255,255,255,.13); transform: translateY(-2px); color: #fff; }
.ch-tool-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(232,207,154,.16); color: #E8CF9A; margin-bottom: 6px; }
.ch-tool-title { font: 600 1.05rem/1.25 var(--cor-serif); }
.ch-tool-desc { font-size: .88rem; line-height: 1.5; color: rgba(255,255,255,.78); }

/* ---------- Recipes ---------- */
.ch-recipes { background: var(--ch-white); }
.ch-cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.ch-card-media { display: block; overflow: hidden; border-radius: 16px; margin-bottom: 14px; }
.ch-card-img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s ease; }
.ch-card:hover .ch-card-img { transform: scale(1.04); }
.ch-card-title { margin: 0; font-size: 1.05rem; line-height: 1.35; font-weight: 600; }

/* ---------- Latest ---------- */
.ch-latest { background: var(--ch-cream); }
.ch-latest-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 28px; }
.ch-row { display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: center; padding: 14px; border-radius: 16px; background: var(--ch-white); border: 1px solid var(--ch-line); }
.ch-row-media { display: block; overflow: hidden; border-radius: 12px; }
.ch-row-img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.ch-row-title { margin: 0; font-size: 1rem; line-height: 1.35; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ch-row .ch-meta { font-size: .8rem; }

/* ---------- FAQ ---------- */
.ch-faq { background: var(--ch-white); }
.ch-faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.ch-faq-grid header .ch-btn { margin-top: 24px; }
.ch-faq-list { border-top: 1px solid var(--ch-line); }
.ch-qa { border-bottom: 1px solid var(--ch-line); }
.ch-qa summary {
	position: relative; list-style: none; cursor: pointer; padding: 20px 44px 20px 0;
	font: 600 1.1rem/1.4 var(--cor-serif); color: var(--ch-ink);
}
.ch-qa summary::-webkit-details-marker { display: none; }
.ch-qa summary::after {
	content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
	width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
	background: var(--ch-green-l); color: var(--ch-green); font: 500 1.2rem/1 var(--cor-sans);
}
.ch-qa[open] summary::after { content: '−'; }
.ch-qa p { margin: 0 0 20px; font-size: 1rem; line-height: 1.65; color: var(--ch-muted); max-width: 60ch; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.ch-tools-grid { grid-template-columns: repeat(3, 1fr); }
	.ch-latest-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
	.ch-hero-grid, .ch-guide-grid, .ch-faq-grid { grid-template-columns: 1fr; }
	.ch-hero-media { max-width: 640px; }
	.ch-hero-pick { left: 16px; bottom: -24px; }
	.ch-trust-list { grid-template-columns: repeat(2, 1fr); }
	.ch-picks-grid { grid-template-columns: repeat(2, 1fr); }
	.ch-needs-grid, .ch-cards-4 { grid-template-columns: repeat(2, 1fr); }
	.ch-featured-grid { grid-template-columns: 1fr 1fr; }
	.ch-story.is-lead { grid-column: 1 / -1; grid-row: auto; }
	.ch-guide-media { order: 2; }
}
@media (max-width: 640px) {
	.ch-hero { padding-top: 28px; }
	.ch-hero-ctas .ch-btn { flex: 1 1 100%; }
	.ch-hero-img { aspect-ratio: 4 / 3; border-radius: 20px; }
	.ch-hero-pick { position: relative; left: auto; bottom: auto; width: auto; margin: -40px 14px 0; }
	.ch-trust-list { grid-template-columns: 1fr; gap: 14px; padding: 20px 0; }
	.ch-picks-grid, .ch-latest-list, .ch-tools-grid { grid-template-columns: 1fr; }
	.ch-needs-grid { gap: 12px; }
	.ch-need { aspect-ratio: 3 / 4; border-radius: 14px; }
	.ch-need-text { padding: 14px; }
	.ch-need-title { font-size: 1.05rem; }
	.ch-need-desc { display: none; }
	.ch-featured-grid { grid-template-columns: 1fr; }
	.ch-cards-4 { grid-template-columns: 1fr 1fr; gap: 16px; }
	.ch-card-title { font-size: .95rem; }
	.ch-row { grid-template-columns: 88px 1fr; }

	/* Compact rows on phones: picks, secondary stories, tools. */
	.ch-picks-grid { gap: 14px; }
	.ch-pick { display: grid; grid-template-columns: 84px 1fr; border-radius: 16px; }
	.ch-pick-visual { height: auto; min-height: 100%; }
	.ch-pick-rank { top: 10px; left: 10px; font-size: 1.05rem; }
	.ch-jar { width: 40px; }
	.ch-pick-body { padding: 16px 16px 18px; }
	.ch-pick-best { margin-bottom: 8px; font-size: .66rem; }
	.ch-pick-name { font-size: 1.04rem; }
	.ch-pick-why { margin: 8px 0 14px; font-size: .9rem; }
	.ch-pick-actions { justify-items: start; }
	.ch-pick .ch-btn-amazon { min-height: 42px; font-size: .92rem; }
	.ch-story:not(.is-lead) { display: grid; grid-template-columns: 112px 1fr; align-items: center; }
	.ch-story:not(.is-lead) .ch-story-img { aspect-ratio: 1; height: 100%; }
	.ch-story:not(.is-lead) .ch-story-body { padding: 12px 14px; }
	.ch-story:not(.is-lead) .ch-story-title { font-size: .98rem; }
	.ch-tools-grid { gap: 10px; }
	.ch-tool { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; row-gap: 2px; padding: 14px 16px; }
	.ch-tool-icon { grid-row: span 2; margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.cor-home *, .cor-home *::before, .cor-home *::after { transition: none !important; }
	.ch-btn:hover, .ch-pick:hover, .ch-tool:hover { transform: none; }
	.ch-need:hover .ch-need-img, .ch-story:hover .ch-story-img, .ch-card:hover .ch-card-img { transform: none; }
}
