/**
 * Homepage sections + checkout hand-off
 *
 * Replaces the inline styles that used to live in template-parts/homepage-content.php.
 *
 * WHAT WAS WRONG, and it was layout more than decoration:
 *   - six full-width centred bands at an identical 60px rhythm, which is the
 *     template feel more than any single element
 *   - a #667eea -> #764ba2 purple gradient band fighting the green brand
 *   - emoji standing in for icons
 *   - headings that were only larger body text, with no real scale
 *   - no editorial whitespace; everything crammed to the same measure
 *
 * The palette is the theme's own, from main.css. One accent, used sparingly.
 */

/* -------------------------------------------------------------------------
 * Tokens
 * ---------------------------------------------------------------------- */
:root {
	/* A real type scale rather than three sizes of body text. */
	--cp-text-display: clamp(2.25rem, 1.2rem + 4.4vw, 4rem);
	--cp-text-h2:      clamp(1.75rem, 1.15rem + 2.6vw, 2.75rem);
	--cp-text-h3:      clamp(1.125rem, 1.02rem + 0.45vw, 1.3rem);
	--cp-text-lede:    clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
	--cp-text-body:    1rem;
	--cp-text-small:   0.875rem;

	/* Section rhythm — deliberately two values, so bands differ. */
	--cp-space-band:   clamp(4rem, 2rem + 8vw, 8rem);
	--cp-space-tight:  clamp(2.5rem, 1.5rem + 4vw, 4.5rem);

	--cp-measure:      68ch;
	--cp-radius:       14px;
	--cp-border:       color-mix(in srgb, var(--cp-charcoal) 12%, transparent);
}

/* -------------------------------------------------------------------------
 * Shared shell
 *
 * There is no global box-sizing reset in this theme — main.css only sets
 * border-box on two narrow selectors — so padding on these components would
 * otherwise add to their declared width. Scoped here rather than applied
 * globally, which would reflow every existing page.
 * ---------------------------------------------------------------------- */
.cp-section, .cp-section *, .cp-section *::before, .cp-section *::after,
.cp-line-handoff, .cp-line-handoff * {
	box-sizing: border-box;
}

.cp-section { padding-block: var(--cp-space-band); }
.cp-section--tight { padding-block: var(--cp-space-tight); }
.cp-section--cream { background: var(--cp-cream); }
.cp-section--white { background: #fff; }

/* The brand band. This replaces the purple gradient — same job, but it belongs
   to the same site as the hero instead of arriving from another template. */
.cp-section--deep {
	background:
		radial-gradient(90% 120% at 15% 0%, #0b4a37 0%, transparent 60%),
		var(--cp-green-950);
	color: #fff;
}

.cp-wrap {
	width: min(100% - 2.5rem, 1180px);
	margin-inline: auto;
}
.cp-wrap--narrow { width: min(100% - 2.5rem, 760px); }

/* -------------------------------------------------------------------------
 * Section headers
 *
 * Asymmetric by default: the heading takes the left column and the lede sits
 * to its right, rather than both stacked and centred like every other band.
 * ---------------------------------------------------------------------- */
.cp-head {
	display: grid;
	gap: 1rem 3rem;
	margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4rem);
}
@media (min-width: 900px) {
	.cp-head {
		grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
		align-items: end;
	}
}

.cp-eyebrow {
	font-size: var(--cp-text-small);
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--cp-green-500);
	margin: 0 0 0.75rem;
}
.cp-section--deep .cp-eyebrow { color: color-mix(in srgb, var(--cp-green-500) 80%, #fff); }

.cp-title {
	font-size: var(--cp-text-h2);
	line-height: 1.08;
	letter-spacing: -0.025em;
	font-weight: 700;
	margin: 0;
	color: var(--cp-green-950);
	text-wrap: balance;
}
.cp-section--deep .cp-title { color: #fff; }

.cp-lede {
	font-size: var(--cp-text-lede);
	line-height: 1.6;
	color: color-mix(in srgb, var(--cp-charcoal) 72%, transparent);
	margin: 0;
	max-width: 46ch;
}
.cp-section--deep .cp-lede { color: rgba(255, 255, 255, 0.76); }

/* -------------------------------------------------------------------------
 * Hero — mobile fixes
 *
 * Two measured bugs on a 390px viewport (iPhone 12), both from main.css:
 *
 * 1. The CTAs overflowed the screen. main.css gives them
 *    `width:100%; max-width:300px` inside a 326px column, with
 *    `padding: 18px 40px !important` — and there is no global border-box
 *    reset, so 300px of content plus 80px of padding plus 4px of border laid
 *    out to 384px starting at x=32, i.e. a right edge of 416px on a 390px
 *    screen. Measured, not estimated.
 *
 * 2. The h1 was clipped. `.hero-section` is `height:70vh` with
 *    `overflow:hidden` and centred content; once the title, subtitle, two
 *    stacked buttons and three stacked badges exceed 70vh the block is
 *    cropped top and bottom, and the headline is what disappears.
 * ---------------------------------------------------------------------- */
.button-hero-primary,
.button-hero-secondary {
	box-sizing: border-box;
}

@media (max-width: 768px) {
	.hero-section {
		height: auto;
		max-height: none;
		padding-block: clamp(3rem, 2rem + 6vw, 5rem);
		margin-bottom: clamp(2.5rem, 1.5rem + 4vw, 5rem);
	}
	.hero-subtitle { margin-bottom: 32px; }
	.hero-cta { margin-bottom: 32px; gap: 12px; width: 100%; }
	.button-hero-primary,
	.button-hero-secondary {
		width: 100%;
		max-width: 340px;
		text-align: center;
	}
	/* Badges read better as a wrapping row than a tall stacked column. */
	.hero-badges {
		flex-direction: row;
		justify-content: center;
		gap: 8px;
	}
}

/* -------------------------------------------------------------------------
 * Hero trust badges
 *
 * main.css styles .badge as a text-only pill, so the inline SVGs added to the
 * hero had no box to size against and expanded to fill the pill. These give
 * them one and set the icon beside the label.
 * ---------------------------------------------------------------------- */
.hero-badges .badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}
.hero-badges .badge svg {
	width: 18px;
	height: 18px;
	flex: none;
	color: var(--cp-green-500);
}

/* -------------------------------------------------------------------------
 * Product cards
 *
 * `auto-fit` + `minmax` was collapsing to a row that overflowed its container
 * at some widths. `auto-fill` with an explicit min() ceiling keeps every track
 * inside the wrapper, so the first and last cards are never clipped.
 * ---------------------------------------------------------------------- */
.cp-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
	gap: clamp(1rem, 0.5rem + 1.6vw, 2rem);
}

.cp-pcard {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--cp-border);
	border-radius: var(--cp-radius);
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	height: 100%;
}

/* 🔴 The card slot takes the ARTWORK's own ratio, not a generic landscape one.
   These are portrait posters (1600x1986 = 0.806), and a 4/3 slot with
   object-fit:cover kept only the middle 60% of the height — cropping off the
   strain name printed across the top AND the THC/effects bar across the
   bottom, which is most of what the card is for. Verified by rendering the
   live page on a throttled Pixel 5 and looking at it; every automated check
   passed while the artwork was being destroyed. */
.cp-pcard__media {
	aspect-ratio: 1600 / 1986;
	overflow: hidden;
	background: color-mix(in srgb, var(--cp-charcoal) 6%, transparent);
}
/* 🔴 `contain`, NOT `cover`, AND THIS IS THE SAME BUG TWICE.
 *
 * The slot ratio above is the strain POSTER's ratio. That was correct while
 * every product was a poster — and the moment the shop carries anything else
 * (an accessory, a keychain, a tray), a square or landscape photo in a 0.806
 * portrait slot with `cover` gets its top and bottom cut off. Exactly how the
 * posters were beheaded by a 4/3 slot, in the opposite direction.
 *
 * `contain` costs the posters NOTHING — their ratio already matches the slot,
 * so contain and cover are identical for them — and it means a product of any
 * other shape is letterboxed against the card background rather than cropped.
 * The fix is free for the current catalogue and prevents the recurrence.
 *
 * ⇒ The general rule, and it is the one this theme keeps relearning: DO NOT
 * SIZE A CONTAINER TO THE ONE ASSET SHAPE YOU HAPPEN TO HAVE TODAY.
 */
.cp-pcard__media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.cp-pcard__body {
	padding: 1.25rem 1.25rem 1.4rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	flex: 1;
}

.cp-pcard__name {
	font-size: var(--cp-text-h3);
	font-weight: 650;
	line-height: 1.25;
	margin: 0;
	color: var(--cp-green-950);
}

.cp-pcard__desc {
	font-size: var(--cp-text-small);
	line-height: 1.55;
	color: color-mix(in srgb, var(--cp-charcoal) 65%, transparent);
	margin: 0;
}

.cp-pcard__foot {
	margin-top: auto;
	padding-top: 0.75rem;
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.75rem;
}

.cp-pcard__price {
	font-size: 1.0625rem;
	font-weight: 700;
	color: var(--cp-green-950);
}
.cp-pcard__price .woocommerce-Price-amount { white-space: nowrap; }
.cp-pcard__price del { opacity: 0.45; font-weight: 500; margin-right: 0.3em; }

.cp-pcard__cta {
	font-size: var(--cp-text-small);
	font-weight: 600;
	color: var(--cp-green-500);
}

/* -------------------------------------------------------------------------
 * Buttons — one accent, used sparingly.
 * ---------------------------------------------------------------------- */
.cp-action {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 52px;
	padding: 0.9rem 1.9rem;
	border: 0;
	border-radius: 10px;
	font-size: var(--cp-text-body);
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: filter 200ms ease, background 200ms ease;
}
.cp-action--primary { background: var(--cp-green-500); color: #fff; }
.cp-action--ghost {
	background: transparent;
	color: var(--cp-green-950);
	box-shadow: inset 0 0 0 1px var(--cp-border);
}
.cp-section--deep .cp-action--ghost { color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.28); }
@media (hover: hover) {
	.cp-action--primary:hover { filter: brightness(1.08); }
	.cp-action--ghost:hover { background: color-mix(in srgb, var(--cp-charcoal) 5%, transparent); }
	.cp-section--deep .cp-action--ghost:hover { background: rgba(255,255,255,0.1); }
}
.cp-action:focus-visible { outline: 3px solid var(--cp-green-500); outline-offset: 3px; }

.cp-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: clamp(2rem, 1rem + 2vw, 3rem); }
.cp-actions--center { justify-content: center; }

/* -------------------------------------------------------------------------
 * "Why CannaPeace" — sticky heading beside a scrolling list.
 *
 * This is the band that breaks the stacked-centred rhythm. The heading holds
 * while the four points pass it, which reads as considered rather than
 * templated, and costs one `position: sticky`.
 * ---------------------------------------------------------------------- */
.cp-split { display: grid; gap: 2.5rem; }
@media (min-width: 900px) {
	.cp-split { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 5rem; }
	.cp-split__aside { position: sticky; top: 7rem; align-self: start; }
}

.cp-points { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.cp-point {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 1.25rem;
	padding-block: clamp(1.5rem, 1rem + 1.4vw, 2.25rem);
	border-top: 1px solid var(--cp-border);
}
.cp-point:last-child { border-bottom: 1px solid var(--cp-border); }
.cp-point__icon {
	width: 40px;
	height: 40px;
	color: var(--cp-green-500);
	flex: none;
}
.cp-point__icon svg { width: 100%; height: 100%; display: block; }
.cp-point__title {
	font-size: var(--cp-text-h3);
	font-weight: 650;
	margin: 0 0 0.4rem;
	color: var(--cp-green-950);
}
.cp-point__copy {
	font-size: var(--cp-text-body);
	line-height: 1.65;
	color: color-mix(in srgb, var(--cp-charcoal) 68%, transparent);
	margin: 0;
	max-width: var(--cp-measure);
}

/* -------------------------------------------------------------------------
 * "Shop by Effect" tiles
 * ---------------------------------------------------------------------- */
.cp-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
	gap: clamp(0.75rem, 0.4rem + 1.2vw, 1.25rem);
}
.cp-tile {
	display: block;
	padding: clamp(1.5rem, 1rem + 1.5vw, 2rem);
	border-radius: var(--cp-radius);
	background: rgba(255, 255, 255, 0.055);
	border: 1px solid rgba(255, 255, 255, 0.13);
	text-decoration: none;
	color: inherit;
}
/* display:block matters — a bare <span> is inline, where width/height do not
   apply, and the SVG then expands to fill the tile. */
.cp-tile__icon { display: block; width: 32px; height: 32px; color: var(--cp-green-500); margin-bottom: 1rem; }
.cp-tile__icon svg { width: 100%; height: 100%; display: block; }
.cp-tile__title { font-size: var(--cp-text-h3); font-weight: 650; margin: 0 0 0.35rem; color: #fff; }
.cp-tile__copy { font-size: var(--cp-text-small); line-height: 1.55; color: rgba(255,255,255,0.68); margin: 0; }
@media (hover: hover) {
	.cp-tile:hover { background: rgba(255, 255, 255, 0.1); }
}

/* -------------------------------------------------------------------------
 * Trust / legal — quiet, narrow measure, no card-in-a-card.
 * ---------------------------------------------------------------------- */
.cp-legal__copy {
	font-size: var(--cp-text-lede);
	line-height: 1.75;
	color: color-mix(in srgb, var(--cp-charcoal) 75%, transparent);
	margin: 0 0 2rem;
}
.cp-legal__copy strong { color: var(--cp-green-950); }

.cp-facts { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; margin: 0 0 2.5rem; padding: 0; }
.cp-fact {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.6rem 1rem;
	border-radius: 999px;
	border: 1px solid var(--cp-border);
	font-size: var(--cp-text-small);
	font-weight: 600;
	color: var(--cp-green-950);
}
.cp-fact svg { width: 16px; height: 16px; color: var(--cp-green-500); flex: none; }

.cp-finelinks { font-size: var(--cp-text-small); color: color-mix(in srgb, var(--cp-charcoal) 55%, transparent); margin: 0; }
/* inline-block + vertical padding gives these a ~44px touch area without
   changing how the line reads. */
.cp-finelinks a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
	display: inline-block;
	padding-block: 0.7rem;
}
.cp-finelinks a:hover { color: var(--cp-green-500); }

/* -------------------------------------------------------------------------
 * Checkout hand-off to LINE (order-received page)
 * ---------------------------------------------------------------------- */
.cp-line-handoff {
	margin: 0 0 2.5rem;
	padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
	border-radius: var(--cp-radius);
	background: var(--cp-cream);
	border: 1px solid var(--cp-border);
}
.cp-line-handoff__title {
	font-size: var(--cp-text-h2);
	line-height: 1.15;
	letter-spacing: -0.02em;
	margin: 0 0 0.75rem;
	color: var(--cp-green-950);
}
.cp-line-handoff__order { font-size: var(--cp-text-lede); margin: 0 0 1rem; color: var(--cp-charcoal); }
.cp-line-handoff__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 54px;
	margin-top: 0.5rem;
	padding: 0.9rem 2rem;
	border-radius: 10px;
	background: #06c755; /* LINE brand green — this button is a LINE affordance. */
	color: #fff;
	font-weight: 700;
	text-decoration: none;
}
@media (hover: hover) { .cp-line-handoff__button:hover { filter: brightness(1.06); } }

/* -------------------------------------------------------------------------
 * iOS: Safari zooms the page when a focused input is under 16px. On a checkout
 * form that reads as a broken site. Applies to the Woo block checkout too.
 * ---------------------------------------------------------------------- */
input[type="text"], input[type="email"], input[type="tel"], input[type="number"],
input[type="password"], input[type="search"], select, textarea {
	font-size: max(16px, 1rem);
}

/* -------------------------------------------------------------------------
 * Language switcher
 *
 * In the header, not the footer: a traveller who lands on Thai has to find it
 * in the first second or they leave. Names in their own script, never flags —
 * a flag is a country, and this audience is the one that distinction breaks on.
 * ---------------------------------------------------------------------- */
.cp-lang { display: flex; align-items: center; gap: .15rem; font-size: var(--cp-text-small); }
.cp-lang__item {
	padding: .45rem .6rem;
	border-radius: 6px;
	text-decoration: none;
	color: color-mix(in srgb, currentColor 62%, transparent);
	white-space: nowrap;
	line-height: 1.2;
}
.cp-lang__item--current { color: currentColor; font-weight: 600; }
@media (hover: hover) {
	.cp-lang__item:hover { color: currentColor; background: color-mix(in srgb, currentColor 10%, transparent); }
}
.cp-lang__item:focus-visible { outline: 2px solid var(--cp-green-500); outline-offset: 2px; }

/* -------------------------------------------------------------------------
 * THE FIXED HEADER AND THE CONTENT UNDERNEATH IT
 *
 * Below 922px the header is `position: fixed`, so it is out of flow and
 * nothing below it reserves its space. main.css compensates with
 * `body { padding-top: 75px }` — but the header measures 90px at every width
 * from 360 to 921 (measured, not assumed), so every inner page was running
 * its top 15px underneath the header. And on the homepage the compensation
 * never applied at all: `body.home { padding: 0 !important }` clears it to
 * keep the hero full-bleed, which left the h1 starting at y=80 under a header
 * whose bottom edge is at y=90. The headline was clipped on every phone.
 *
 * This is the same bug class as the rest of today: a number written in one
 * place (75px) and never read back against the thing it describes (90px).
 * The number now lives in one variable, and tests/header-clearance.js asserts
 * the relationship instead of trusting the constant — so if the logo or the
 * bar padding ever changes, the test fails rather than the layout.
 *
 * The homepage keeps its full-bleed hero: rather than pad the body, the hero
 * absorbs the header height into its own top padding. Applied across the whole
 * fixed range (not just the 768px block above) because 769–921px is fixed too,
 * and `height:auto` comes with it so the taller content grows the section
 * instead of being cropped by `overflow: hidden`.
 * ---------------------------------------------------------------------- */
@media (max-width: 921px) {
	:root { --cp-header-h: 90px; }

	body { padding-top: var(--cp-header-h); }

	.hero-section {
		height: auto;
		max-height: none;
		padding-top: calc(var(--cp-header-h) + clamp(3rem, 2rem + 6vw, 5rem));
		padding-bottom: clamp(3rem, 2rem + 6vw, 5rem);
	}
}

/* -------------------------------------------------------------------------
 * HEADER CART
 *
 * The icon was Material's filled `photo_camera` path — a camera, lens and
 * all — sitting where the cart belongs, on every page. Nothing styled
 * `.cart-icon`, so its `fill="currentColor"` resolved to the user agent's
 * default link blue: a blue camera on a dark green header. It is now
 * cannapeace_icon('cart'), from the same 1.6-stroke set as the rest of the
 * site, and it inherits a colour that was actually chosen.
 *
 * `.cart-count` had no styles either — the number rendered as bare text
 * beside the icon. It is a badge now, and 44px on the anchor gives the tap
 * target the icon never had.
 * ---------------------------------------------------------------------- */
.cart-icon {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	color: var(--cp-cream);
	text-decoration: none;
	transition: color 0.2s ease;
}

.cart-icon svg {
	display: block;
	width: 24px;
	height: 24px;
}

@media (hover: hover) {
	.cart-icon:hover { color: var(--cp-green-500); }
}

.cart-icon:focus-visible {
	outline: 2px solid var(--cp-green-500);
	outline-offset: 2px;
	border-radius: 8px;
}

/*
 * box-sizing is not optional here. This theme has no global border-box reset —
 * the same omission that laid the hero buttons out 26px wider than the screen.
 * Without it `min-width:18px` plus `padding:0 5px` produced a 28px badge that
 * covered 20 of the icon's 24px: the bag's handle and its whole top edge were
 * behind the number. Measured on the deployed page, not assumed.
 *
 * The ring is the header's own background, so the badge reads as a chip
 * sitting ON the bag rather than a shape merging into it.
 */
.cart-count {
	box-sizing: border-box;
	position: absolute;
	top: 2px;
	right: 1px;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: 9px;
	background: var(--cp-green-500);
	color: var(--cp-green-950);
	font-size: 11px;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
	font-variant-numeric: tabular-nums;
	box-shadow: 0 0 0 2px var(--cp-green-950);
}

/* -------------------------------------------------------------------------
 * The message the checkout block does not print.
 *
 * Leaving the postcode empty makes WooCommerce Blocks refuse the order with
 * no error element anywhere in the DOM — no spinner, no request, nothing, for
 * as long as you wait. assets/js/checkout-errors.js finds the empty required
 * field and appends this; it is styled to match the block's own validation
 * errors so it does not read as a different kind of thing.
 * ---------------------------------------------------------------------- */
.cp-required-hint {
	margin: 6px 0 0;
	font-size: 0.875em;
	line-height: 1.4;
	color: #cc1818;
}

/* -------------------------------------------------------------------------
 * Guides — /guide/ and /guide/<slug>/
 *
 * Long-form reading, so the constraints are different from the shop: a real
 * measure (~68ch), generous line-height, and headings that separate sections
 * rather than decorate them. The fixed header is 90px below 922px, so the top
 * padding clears it — the same trap as the h1 and the checkout errors.
 * ---------------------------------------------------------------------- */
.cp-guide { background: var(--cp-cream); }

.cp-guide__wrap {
	box-sizing: border-box;
	width: min(100% - 2.5rem, 720px);
	margin-inline: auto;
	padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem);
}

.cp-guide__eyebrow {
	font-size: var(--cp-text-small);
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--cp-green-500);
	margin: 0 0 0.75rem;
}
.cp-guide__eyebrow a { color: inherit; text-decoration: none; }
.cp-guide__eyebrow a:hover { text-decoration: underline; }

.cp-guide__h1 {
	font-size: var(--cp-text-h2);
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--cp-green-950);
	margin: 0 0 1rem;
	text-wrap: balance;
}

.cp-guide__lede {
	font-size: var(--cp-text-lede);
	line-height: 1.65;
	color: color-mix(in srgb, var(--cp-charcoal) 75%, transparent);
	margin: 0 0 2.5rem;
}

.cp-guide__body { font-size: 1.0625rem; line-height: 1.85; color: var(--cp-charcoal); }
.cp-guide__body h2 {
	font-size: var(--cp-text-h3);
	line-height: 1.3;
	color: var(--cp-green-950);
	margin: 2.5rem 0 0.75rem;
}
.cp-guide__body p { margin: 0 0 1.25rem; }
.cp-guide__body ul { margin: 0 0 1.5rem; padding-left: 1.25rem; }
.cp-guide__body li { margin-bottom: 0.5rem; }

/* The index */
.cp-guide__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.cp-guide__item a {
	display: block;
	background: #fff;
	border: 1px solid var(--cp-border);
	border-radius: var(--cp-radius);
	padding: 1.25rem 1.5rem;
	text-decoration: none;
	color: inherit;
}
.cp-guide__item h2 {
	font-size: var(--cp-text-h3);
	margin: 0 0 0.4rem;
	color: var(--cp-green-950);
	line-height: 1.3;
}
.cp-guide__item p {
	margin: 0;
	font-size: var(--cp-text-small);
	line-height: 1.6;
	color: color-mix(in srgb, var(--cp-charcoal) 70%, transparent);
}
@media (hover: hover) {
	.cp-guide__item a:hover { border-color: var(--cp-green-500); }
}

/* The route to the shop. Quiet on purpose — it is a link, not an offer. */
.cp-guide__next {
	margin: 3rem 0 0;
	padding: 1.5rem;
	background: #fff;
	border: 1px solid var(--cp-border);
	border-radius: var(--cp-radius);
}
.cp-guide__next p { margin: 0 0 0.85rem; font-size: var(--cp-text-body); color: var(--cp-charcoal); }
.cp-guide__link {
	display: inline-block;
	background: var(--cp-green-500);
	color: #fff;
	padding: 0.7rem 1.4rem;
	border-radius: 999px;
	text-decoration: none;
	font-weight: 600;
}

.cp-guide__more { margin-top: 3rem; border-top: 1px solid var(--cp-border); padding-top: 1.5rem; }
.cp-guide__more h2 { font-size: var(--cp-text-small); text-transform: uppercase; letter-spacing: 0.1em; color: var(--cp-charcoal); margin: 0 0 0.75rem; }
.cp-guide__more ul { list-style: none; margin: 0; padding: 0; }
.cp-guide__more li { margin-bottom: 0.5rem; }
.cp-guide__more a { color: var(--cp-green-950); }

@media (max-width: 921px) {
	.cp-guide__wrap { padding-top: calc(var(--cp-header-h) + 1.5rem); }
}

.footer-guides { padding: 0 0 0.75rem; text-align: center; }
.footer-guides a {
	color: var(--cp-green-500);
	font-size: var(--cp-text-small);
	text-decoration: none;
}
.footer-guides a:hover { text-decoration: underline; }
