/**
 * Cleaning Tips index - Factory Fresh, editorial.
 *
 * SCOPE: every rule is nested under .cwpr-blog (the <main> on this page only).
 * Several pages in this plugin are pixel-exact copies of live, so a leaked
 * selector here would visibly break them. Tokens are declared on .cwpr-blog
 * rather than :root for the same reason.
 *
 * The one deliberate exception is the shared product-tray block (.cwpr-tray,
 * .cwpr-prod) and the shared meta/pill bits, which are ALSO used by the article
 * template - they are defined in both sheets under their own page scope rather
 * than in a third shared file, because only these two pages use them and a
 * shared file would be one more thing to keep in sync for no benefit.
 *
 * PALETTE: logo lime #80BC00 and logo grey #52575A are the brand. The dark is
 * #1A2332 - the design system's own --bg-dark / --text-heading token, whose
 * documented roles are exactly the ones used here ("Header bg / Footer / Dark
 * marketing bands" and "All H1-H5"). It replaced a near-black #16210A that read
 * as flat black on screen.
 *
 * Measured contrast, which is why the dark is used where it is: #1A2332 on lime
 * = 6.85:1 (passes AA for normal text), white on #1A2332 = 15.78:1, #1A2332 on
 * white = 15.78:1. NEVER white on lime - that is 2.3:1 and fails. And never the
 * logo grey #52575A on lime: 3.17:1, large-text only.
 *
 * NO REWARDS BLUE. #185AA6 is quarantined to rewards/money zones. Product
 * prices here are plain ink: shop pricing is not a rewards surface.
 *
 * TYPOGRAPHY: Plus Jakarta Sans throughout - the face the design system actually
 * specifies, and the first surface on this site to load it. The headline serif
 * concept B proposed was dropped by decision; display sizes were stepped DOWN one
 * notch when it went, because a sans at a serif's point size reads larger and
 * heavier than the serif it replaced.
 *
 * WP Rocket note: .is-on / .is-compact / .is-view / .is-empty are set
 * server-side per request and may be absent from a given served response. If
 * Remove Unused CSS ever starts succeeding on this site, safelist them.
 *
 * @package cw-page-rebuild
 */

.cwpr-blog {
	--cwpr-b-lime: var(--cw-lime, #80bc00);
	--cwpr-b-lime-deep: var(--cw-lime-deep, #5f8c00);
	--cwpr-b-lime-dark: var(--cw-lime-dark, #4c7000);
	--cwpr-b-lime-wash: var(--cw-lime-wash, #f3f9e4);
	--cwpr-b-lime-row: var(--cw-lime-row, #f9fcf0);
	--cwpr-b-dark: var(--cw-ink, #263238);
	--cwpr-b-ink: var(--cw-ink, #263238);
	--cwpr-b-ink-2: var(--cw-ink-2, #52575a);
	--cwpr-b-grey: var(--cw-grey, #6b6b6b);
	--cwpr-b-faint: var(--cw-faint, #9a9a94);
	--cwpr-b-ground: var(--cw-ground, #f7f7f5);
	--cwpr-b-card: #fff;
	--cwpr-b-line: var(--cw-line, #e7e5df);
	--cwpr-b-line-2: var(--cw-line-2, #d6d3ca);
	/*
	 * ONE TYPEFACE: Plus Jakarta Sans, the face CW_Design_System_v1.0 actually
	 * specifies (--font-primary). Loaded as a single variable font by
	 * cwpr_blog_enqueue_font(). The headline serif that concept B proposed was
	 * dropped by decision - there is no --cwpr-b-serif any more, and headings
	 * use this same stack at a heavier weight.
	 */
	--cwpr-b-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

	background: var(--cwpr-b-ground);
	color: var(--cwpr-b-ink);
	font-family: var(--cwpr-b-sans);
	font-size: 15px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

.cwpr-blog *,
.cwpr-blog *::before,
.cwpr-blog *::after {
	box-sizing: border-box;
}

/*
 * ZERO-SPECIFICITY BASELINES - LOAD-BEARING.
 *
 * These are wrapped in :where() so they sit at specificity (0,0,1) instead of
 * (0,1,1). Written the obvious way, `.cwpr-blog a { color: inherit }` OUT-RANKS every
 * single-class component rule like `.cwpr-tray-addall { color: ... }` (0,1,0) - and
 * it did: the "Add all" button rendered its dark text on its own dark background,
 * about 1.2:1 contrast and unreadable. Same class of bug as the footer's
 * `#cwpr-footer a { color: inherit }`. Do not unwrap the :where().
 */
:where(.cwpr-blog h1, .cwpr-blog h2, .cwpr-blog h3) {
	margin: 0;
	line-height: 1.18;
	text-wrap: balance;
}

:where(.cwpr-blog a) {
	color: inherit;
	text-decoration: none;
}

:where(.cwpr-blog img) {
	max-width: 100%;
	height: auto;
	display: block;
}

.cwpr-blog :focus-visible {
	outline: 3px solid rgba(128, 188, 0, 0.5);
	outline-offset: 2px;
	border-radius: 4px;
}

.cwpr-blog-wrap {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 20px;
}

/* ---------------------------------------------------------------- masthead */

.cwpr-blog-mast {
	background: var(--cwpr-b-card);
	/* Owner feedback 2026-09-02: no heavy rule under the masthead - the white
	   mast against the warm-grey page already draws the line. */
	padding: 32px 0 0;
}

.cwpr-blog-eyebrow {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 11.5px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.13em;
	color: var(--cwpr-b-lime-dark);
	margin-bottom: 12px;
}

.cwpr-blog-eyebrow::after {
	content: "";
	flex: 1 1 auto;
	height: 1px;
	background: var(--cwpr-b-line-2);
}

.cwpr-blog-mast h1 {
	font-family: var(--cwpr-b-sans);
	font-size: 42px;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--cwpr-b-dark);
}

.cwpr-blog-lede {
	font-family: var(--cwpr-b-sans);
	font-size: 18px;
	line-height: 1.5;
	color: var(--cwpr-b-ink-2);
	max-width: 56ch;
	margin: 12px 0 0;
	font-weight: 400;
}

/* ------------------------------------------------- human-language search */

.cwpr-blog-hunt {
	margin: 26px 0 0;
	max-width: 720px;
}

.cwpr-blog-huntbox {
	display: flex;
	align-items: center;
	gap: 12px;
	background: var(--cwpr-b-ground);
	border: 1.5px solid var(--cwpr-b-line-2);
	border-radius: 999px;
	padding: 9px 10px 9px 22px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.cwpr-blog-huntbox:focus-within {
	border-color: var(--cwpr-b-lime);
	background: var(--cwpr-b-card);
	box-shadow: 0 0 0 4px rgba(128, 188, 0, 0.14);
}

.cwpr-blog-huntbox svg {
	width: 20px;
	height: 20px;
	color: var(--cwpr-b-grey);
	flex: 0 0 auto;
}

/*
 * LOAD-BEARING, and it is a fix not a flourish. A site-wide theme rule styles
 * every input[type="search"] with its own border, background, radius, padding
 * and box-shadow. Inside the lime pill that renders as a SECOND rounded box
 * around the text - visible in review. Beating it needs the same specificity or
 * better, hence the attribute selector, and `all: unset`-style resets are spelled
 * out rather than shorthanded so nothing unexpected is cleared.
 */
.cwpr-blog-huntbox input,
.cwpr-blog-huntbox input[type="search"] {
	border: 0;
	border-radius: 0;
	outline: 0;
	box-shadow: none;
	background: transparent;
	background-color: transparent;
	padding: 0;
	margin: 0;
	height: auto;
	min-height: 0;
	line-height: 1.4;
	flex: 1 1 auto;
	font-family: inherit;
	font-size: 16px;
	color: var(--cwpr-b-ink);
	min-width: 0;
	-webkit-appearance: none;
	appearance: none;
}

.cwpr-blog-huntbox input[type="search"]:focus {
	border: 0;
	box-shadow: none;
	outline: 0;
	background: transparent;
}

/* Chrome's own clear button sits awkwardly against the lime submit button. */
.cwpr-blog-huntbox input[type="search"]::-webkit-search-cancel-button {
	-webkit-appearance: none;
	appearance: none;
}

.cwpr-blog-huntbox input::placeholder {
	color: var(--cwpr-b-faint);
}

.cwpr-blog-go {
	flex: 0 0 auto;
	background: var(--cwpr-b-lime);
	color: var(--cwpr-b-dark);
	border: 0;
	border-radius: 999px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 800;
	padding: 12px 22px;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.08s ease;
}

.cwpr-blog-go:hover {
	background: var(--cw-lime-deep, #5f8c00);
}

.cwpr-blog-go:active {
	transform: translateY(1px);
}

/* ------------------------------------------- instant search suggestions ----
 * The panel is positioned by a zero-height wrapper directly after the pill, so
 * it overlays the page instead of pushing the ribbon and grid down as you type -
 * a list that reflows the page under the cursor reads as slower than it is.
 */

.cwpr-blog-hunt {
	position: relative;
}

.cwpr-sug-wrap {
	position: relative;
	height: 0;
}

.cwpr-sug {
	position: absolute;
	top: 6px;
	left: 0;
	right: 0;
	z-index: 60;
	background: var(--cwpr-b-card);
	border: 1px solid var(--cwpr-b-line-2);
	border-radius: 14px;
	box-shadow: 0 14px 40px rgba(38, 50, 56, 0.14);
	overflow: hidden;
	max-height: 70vh;
	overflow-y: auto;
}

.cwpr-sug[hidden] {
	display: none;
}

.cwpr-sug-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	text-decoration: none;
	color: var(--cwpr-b-ink);
}

.cwpr-sug-item + .cwpr-sug-item {
	border-top: 1px solid var(--cwpr-b-line);
}

.cwpr-sug-item:hover,
.cwpr-sug-item.is-active {
	background: var(--cwpr-b-lime-row);
}

.cwpr-sug-item.is-active {
	box-shadow: inset 3px 0 0 var(--cwpr-b-lime);
}

.cwpr-sug-img {
	width: 40px;
	height: 40px;
	flex: 0 0 auto;
	border-radius: 7px;
	object-fit: cover;
	background: var(--cwpr-b-ground);
	border: 1px solid var(--cwpr-b-line);
}

.cwpr-sug-txt {
	min-width: 0;
	display: block;
}

.cwpr-sug-title {
	display: block;
	font-size: 14.5px;
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.3;
	color: var(--cwpr-b-dark);
}

.cwpr-sug-title mark {
	background: var(--cwpr-b-lime-wash);
	color: var(--cwpr-b-lime-dark);
	padding: 0 1px;
	border-radius: 2px;
}

.cwpr-sug-meta {
	display: block;
	font-size: 12px;
	color: var(--cwpr-b-grey);
	margin-top: 2px;
}

.cwpr-sug-all {
	display: block;
	width: 100%;
	text-align: left;
	background: var(--cwpr-b-lime-wash);
	border: 0;
	border-top: 1px solid var(--cw-lime-line, #dcecb8);
	font-family: inherit;
	font-size: 13px;
	font-weight: 800;
	color: var(--cwpr-b-lime-dark);
	padding: 12px 14px;
	cursor: pointer;
}

.cwpr-sug-all:hover {
	background: var(--cw-lime-wash, #f3f9e4);
}

.cwpr-sug-none {
	padding: 16px 14px;
	font-size: 14px;
	color: var(--cwpr-b-ink-2);
}

.cwpr-sug-none span {
	display: block;
	font-size: 12.5px;
	color: var(--cwpr-b-grey);
	margin-top: 4px;
}

.cwpr-blog-egs {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin: 13px 0 0;
}

.cwpr-blog-egs-lab {
	font-size: 12.5px;
	color: var(--cwpr-b-grey);
}

.cwpr-blog-eg {
	font-size: 12.5px;
	font-weight: 700;
	color: var(--cwpr-b-ink-2);
	background: var(--cwpr-b-card);
	border: 1px solid var(--cwpr-b-line-2);
	border-radius: 999px;
	padding: 6px 13px;
	transition: border-color 0.14s ease, color 0.14s ease;
}

.cwpr-blog-eg:hover {
	border-color: var(--cwpr-b-lime);
	color: var(--cwpr-b-lime-dark);
}

/* --------------------------------------------------------- topic ribbon */

.cwpr-blog-ribbon {
	border-top: 1px solid var(--cwpr-b-line);
	margin-top: 24px;
	padding: 12px 0 14px;
	display: flex;
	gap: 8px;
	overflow-x: auto;
	scrollbar-width: none;
}

.cwpr-blog-ribbon::-webkit-scrollbar {
	display: none;
}

.cwpr-blog-rib {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
	font-size: 13px;
	font-weight: 700;
	color: var(--cwpr-b-ink-2);
	padding: 7px 14px;
	border-radius: 999px;
	border: 1.5px solid transparent;
	white-space: nowrap;
	transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

.cwpr-blog-rib s {
	text-decoration: none;
	font-size: 11.5px;
	color: var(--cwpr-b-faint);
	font-variant-numeric: tabular-nums;
}

.cwpr-blog-rib:hover {
	background: var(--cwpr-b-lime-row);
	color: var(--cwpr-b-dark);
	border-color: var(--cwpr-b-lime);
}

.cwpr-blog-rib.is-on {
	/* CW grey (the logo grey, --cw-ink-2), the same fill the header's active
	   Delivery/Pickup segment uses - owner feedback 2026-09-02, replacing the
	   near-black ink fill. */
	background: var(--cw-ink-2, #52575a);
	color: #fff;
	border-color: var(--cw-ink-2, #52575a);
}

.cwpr-blog-rib.is-on s {
	color: var(--cw-lime-bright, #b5e048);
}

/* ------------------------------------------------------------ shared meta */

.cwpr-blog-meta {
	display: flex;
	align-items: center;
	gap: 9px;
	flex-wrap: wrap;
	font-size: 12px;
	color: var(--cwpr-b-grey);
}

.cwpr-blog-pill {
	font-size: 10.5px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 3px 9px;
	border-radius: 999px;
	background: var(--cw-ground, #f7f7f5);
	color: var(--cwpr-b-ink-2);
}

.cwpr-blog-pill.is-howto,
.cwpr-blog-pill.is-checklist {
	background: var(--cwpr-b-lime-wash);
	color: var(--cwpr-b-lime-dark);
}

.cwpr-blog-dot {
	color: var(--cwpr-b-line-2);
}

/* ------------------------------------------------------------------- hero */

.cwpr-blog-hero {
	padding: 34px 0 8px;
}

.cwpr-blog-herocard {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	background: var(--cwpr-b-card);
	border: 1px solid var(--cwpr-b-line);
	border-radius: 14px;
	overflow: hidden;
}

/* Grid items default to min-width:auto, so any nowrap descendant (the tray's
   product names) inflates the column. Measured: without this the single-column
   mobile layout overflows the viewport and the page scrolls sideways. */
.cwpr-blog-herocard > * {
	min-width: 0;
}

/*
 * The image column FILLS the card (owner feedback 2026-09-02). It used to be a
 * fixed 16:10 box, so whenever the text column ran taller - three products in
 * the tray, a long title - a band of white opened up beneath the photo. Now the
 * anchor contributes no height of its own (the img is absolutely positioned),
 * the row is sized by the text column, and the photo is centre-cropped to fill
 * whatever that is. min-height keeps a short text column from squashing it.
 */
.cwpr-blog-heroimg {
	position: relative;
	display: block;
	min-height: 340px;
	overflow: hidden;
	background: var(--cwpr-b-line);
}

.cwpr-blog-heroimg img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.cwpr-blog-herocard:hover .cwpr-blog-heroimg img {
	transform: scale(1.03);
}

.cwpr-blog-flag {
	position: absolute;
	top: 16px;
	left: 16px;
	z-index: 1;
	background: var(--cwpr-b-lime);
	color: var(--cwpr-b-dark);
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.09em;
	padding: 6px 13px;
	border-radius: 999px;
}

.cwpr-blog-herobody {
	padding: 30px 34px 26px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.cwpr-blog-herobody h2 {
	font-family: var(--cwpr-b-sans);
	font-size: 28px;
	font-weight: 700;
	letter-spacing: -0.015em;
	margin: 12px 0 0;
	color: var(--cwpr-b-dark);
	transition: color 0.15s ease;
}

.cwpr-blog-herocard:hover .cwpr-blog-herobody h2 {
	color: var(--cwpr-b-lime-dark);
}

.cwpr-blog-herobody p {
	font-size: 15.5px;
	color: var(--cwpr-b-ink-2);
	margin: 12px 0 0;
}

.cwpr-blog-more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 17px;
	font-size: 14px;
	font-weight: 800;
	color: var(--cwpr-b-lime-dark);
	align-self: flex-start;
}

.cwpr-blog-more span {
	transition: transform 0.18s ease;
}

.cwpr-blog-more:hover span {
	transform: translateX(4px);
}

/* --------------------------------------------------- product tray (shared) */

.cwpr-tray {
	border-top: 1px dashed var(--cwpr-b-line-2);
	background: var(--cwpr-b-lime-row);
	padding: 13px 18px 14px;
}

.cwpr-tray-lab {
	display: flex;
	align-items: baseline;
	gap: 8px;
	flex-wrap: wrap;
	font-size: 10.5px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--cwpr-b-lime-dark);
	margin-bottom: 8px;
}

.cwpr-tray-lab s {
	text-decoration: none;
	font-weight: 700;
	color: var(--cwpr-b-faint);
	letter-spacing: 0;
	text-transform: none;
	font-size: 11.5px;
}

.cwpr-prod {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 7px 0;
}

.cwpr-prod + .cwpr-prod {
	border-top: 1px solid var(--cw-lime-wash, #f3f9e4);
}

.cwpr-prod-img {
	width: 34px;
	height: 34px;
	border-radius: 7px;
	background: var(--cwpr-b-card);
	border: 1px solid var(--cwpr-b-line);
	flex: 0 0 auto;
	object-fit: cover;
}

.cwpr-prod-name {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 13.5px;
	font-weight: 700;
	letter-spacing: -0.005em;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cwpr-prod-name:hover {
	color: var(--cwpr-b-lime-dark);
}

.cwpr-prod-price {
	font-size: 13.5px;
	font-weight: 800;
	flex: 0 0 auto;
	font-variant-numeric: tabular-nums;
}

/* WooCommerce wraps prices in its own markup; keep it inert inside the tray. */
.cwpr-prod-price .amount,
.cwpr-prod-price bdi {
	color: inherit;
	font-size: inherit;
	font-weight: inherit;
}

.cwpr-prod-price del {
	display: none;
}

.cwpr-prod-add {
	flex: 0 0 auto;
	background: var(--cwpr-b-card);
	border: 1.5px solid var(--cwpr-b-line-2);
	border-radius: 999px;
	width: 30px;
	height: 30px;
	font-size: 17px;
	font-weight: 800;
	color: var(--cwpr-b-lime-dark);
	line-height: 1;
	display: grid;
	place-items: center;
	transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.cwpr-prod-add:hover {
	background: var(--cwpr-b-lime);
	border-color: var(--cwpr-b-lime);
	color: var(--cwpr-b-dark);
}

.cwpr-tray-foot {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 10px;
	padding-top: 11px;
	border-top: 1px solid var(--cw-lime-wash, #f3f9e4);
}

.cwpr-tray-rest {
	font-size: 12px;
	color: var(--cwpr-b-grey);
}

.cwpr-tray-addall {
	margin-left: auto;
	/* CW grey, matching the header's Delivery segment (owner feedback
	   2026-09-02). Hover still darkens to ink. */
	background: var(--cw-ink-2, #52575a);
	color: #fff;
	border: 0;
	border-radius: 999px;
	font-size: 12.5px;
	font-weight: 800;
	padding: 9px 16px;
	transition: background 0.15s ease;
}

.cwpr-tray-addall:hover {
	background: var(--cw-ink, #263238);
	color: #fff;
}

/* --------------------------------------------------------- section heads */

.cwpr-blog-secthead {
	display: flex;
	align-items: baseline;
	gap: 14px;
	margin: 46px 0 20px;
	/* Hairline, not the 2px ink rule: the masthead lost its black line on
	   owner feedback 2026-09-02 and a heavy rule here would be the odd one out. */
	border-bottom: 1px solid var(--cwpr-b-line-2);
	padding-bottom: 11px;
	flex-wrap: wrap;
}

.cwpr-blog-secthead h2 {
	font-family: var(--cwpr-b-sans);
	font-size: 22px;
	font-weight: 700;
	color: var(--cwpr-b-dark);
}

.cwpr-blog-c {
	font-size: 13px;
	color: var(--cwpr-b-grey);
}

.cwpr-blog-all {
	margin-left: auto;
	font-size: 13.5px;
	font-weight: 800;
	color: var(--cwpr-b-lime-dark);
}

.cwpr-blog-all:hover {
	text-decoration: underline;
}

/* ------------------------------------------------------------ card grid */

.cwpr-blog-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 26px;
	/* stretch, so every card in a row shares the tallest card's height and
	   the trays sit on one common bottom edge (owner feedback 2026-09-02). */
	align-items: stretch;
}

.cwpr-blog-card {
	background: var(--cwpr-b-card);
	border: 1px solid var(--cwpr-b-line);
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	min-width: 0;
	transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.cwpr-blog-card:hover {
	border-color: var(--cwpr-b-line-2);
	box-shadow: 0 8px 22px rgba(38, 50, 56, 0.07);
	transform: translateY(-2px);
}

.cwpr-blog-cimg {
	aspect-ratio: 5 / 3;
	overflow: hidden;
	background: var(--cwpr-b-line);
	display: block;
}

.cwpr-blog-cimg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.cwpr-blog-card:hover .cwpr-blog-cimg img {
	transform: scale(1.04);
}

.cwpr-blog-cbody {
	padding: 18px 19px;
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
}

.cwpr-blog-cbody h3 {
	font-family: var(--cwpr-b-sans);
	font-size: 18.5px;
	font-weight: 700;
	letter-spacing: -0.01em;
	margin: 11px 0 0;
	color: var(--cwpr-b-dark);
	transition: color 0.15s ease;
	/*
	 * Exactly two lines, always (owner feedback 2026-09-02): the excerpt is gone
	 * from the card, so the title is the only variable-height text left, and
	 * pinning it to two lines - clamped when longer, held open when shorter -
	 * puts every card's tray on the same baseline across a row.
	 */
	line-height: 1.25;
	min-height: calc(2 * 1.25em);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

.cwpr-blog-card:hover .cwpr-blog-cbody h3 {
	color: var(--cwpr-b-lime-dark);
}

.cwpr-blog-cbody p {
	font-size: 14px;
	color: var(--cwpr-b-ink-2);
	margin: 9px 0 0;
}

.cwpr-blog-cfoot {
	margin-top: auto;
	padding-top: 14px;
	font-size: 12.5px;
	font-weight: 700;
	color: var(--cwpr-b-lime-dark);
}

/* -------------------------------------------------------------- dark band */

.cwpr-blog-band {
	background: var(--cwpr-b-dark);
	border-radius: 14px;
	padding: 34px 38px;
	margin: 48px 0 0;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 30px;
	align-items: center;
}

.cwpr-blog-band h2 {
	font-family: var(--cwpr-b-sans);
	font-size: 25px;
	font-weight: 700;
	color: #fff;
}

.cwpr-blog-band p {
	font-size: 15px;
	color: var(--cw-line-2, #d6d3ca);
	margin: 10px 0 0;
	max-width: 62ch;
}

.cwpr-blog-bandgo {
	display: inline-block;
	background: var(--cwpr-b-lime);
	color: var(--cwpr-b-dark);
	border-radius: 999px;
	font-size: 14.5px;
	font-weight: 800;
	padding: 14px 28px;
	white-space: nowrap;
	transition: background 0.15s ease;
}

.cwpr-blog-bandgo:hover {
	background: var(--cw-lime, #80bc00);
}

/* -------------------------------------------------------------- pagination */

.cwpr-blog-pager {
	display: flex;
	align-items: center;
	gap: 7px;
	margin-top: 34px;
	flex-wrap: wrap;
}

.cwpr-blog-pager .page-numbers {
	min-width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1.5px solid var(--cwpr-b-line-2);
	border-radius: 8px;
	font-size: 14px;
	font-weight: 800;
	color: var(--cwpr-b-ink-2);
	background: var(--cwpr-b-card);
	padding: 0 11px;
	transition: border-color 0.14s ease, color 0.14s ease;
}

.cwpr-blog-pager a.page-numbers:hover {
	border-color: var(--cwpr-b-lime);
	color: var(--cwpr-b-dark);
}

.cwpr-blog-pager .page-numbers.current {
	background: var(--cwpr-b-dark);
	border-color: var(--cwpr-b-dark);
	color: var(--cw-ground, #f7f7f5);
}

.cwpr-blog-pager .page-numbers.dots {
	border-color: transparent;
	background: transparent;
	color: var(--cwpr-b-faint);
	min-width: 22px;
	padding: 0;
}

.cwpr-blog-pgnote {
	margin-left: auto;
	font-size: 12.5px;
	color: var(--cwpr-b-grey);
}

/* ------------------------------------------------------------ empty state */

.cwpr-blog-empty {
	background: var(--cwpr-b-card);
	border: 1px solid var(--cwpr-b-line);
	border-radius: 12px;
	padding: 40px 32px;
	text-align: center;
}

.cwpr-blog-empty h3 {
	font-family: var(--cwpr-b-sans);
	font-size: 22px;
	font-weight: 700;
	color: var(--cwpr-b-dark);
}

.cwpr-blog-empty p {
	font-size: 15px;
	color: var(--cwpr-b-ink-2);
	margin: 12px auto 20px;
	max-width: 56ch;
}

.cwpr-blog-empty .cwpr-blog-go {
	display: inline-block;
}

/* ---------------------------------------------------------------- archive */

.cwpr-blog-archive {
	border-top: 1px solid var(--cwpr-b-line);
	margin-top: 46px;
	padding: 26px 0 60px;
	display: flex;
	align-items: baseline;
	gap: 10px;
	flex-wrap: wrap;
}

.cwpr-blog-archive-lab {
	font-size: 11.5px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.085em;
	color: var(--cwpr-b-grey);
}

.cwpr-blog-archive a {
	font-size: 13.5px;
	font-weight: 700;
	color: var(--cwpr-b-ink-2);
	border-bottom: 1px solid var(--cwpr-b-line-2);
}

.cwpr-blog-archive a:hover {
	color: var(--cwpr-b-lime-dark);
	border-color: var(--cwpr-b-lime);
}

.cwpr-blog-archive a s {
	text-decoration: none;
	color: var(--cwpr-b-faint);
	font-size: 11.5px;
}

/* --------------------------------------------------------------- responsive */

@media (max-width: 1000px) {
	.cwpr-blog-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.cwpr-blog-herocard {
		grid-template-columns: 1fr;
	}

	/* Stacked: the photo is back to a fixed-ratio box above the text. */
	.cwpr-blog-heroimg {
		aspect-ratio: 16 / 10;
		min-height: 0;
	}

	.cwpr-blog-herobody {
		padding: 24px 22px 22px;
	}

	.cwpr-blog-mast h1 {
		font-size: 32px;
	}

	.cwpr-blog-band {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 620px) {
	.cwpr-blog-grid {
		grid-template-columns: 1fr;
	}

	.cwpr-blog-mast h1 {
		font-size: 25px;
	}

	.cwpr-blog-lede {
		font-size: 16px;
	}

	.cwpr-blog-herobody h2 {
		font-size: 23px;
	}

	/* Two tidy rows: magnifier + input share the first, the button takes the
	 * second. The old rules gave the input flex-basis:100%, which pushed it
	 * onto its OWN row below a lone magnifier - three stacked rows inside a
	 * border-radius:999px pill rendered as a tall broken-looking oval (seen
	 * live 2026-08-27). A card radius replaces the pill radius because 999px
	 * only reads as a pill on a single-line box. */
	.cwpr-blog-huntbox {
		flex-wrap: wrap;
		padding: 13px 16px;
		border-radius: 22px;
	}

	/* Both selector forms, matching the base rule's specificity - the
	 * attribute variant there ("input[type=search]", part of the site-wide
	 * input-reset fix) otherwise beats a bare ".cwpr-blog-huntbox input"
	 * override regardless of source order. */
	.cwpr-blog-huntbox input,
	.cwpr-blog-huntbox input[type="search"] {
		flex: 1 1 0;
		min-width: 0;
	}

	.cwpr-blog-go {
		width: 100%;
	}

	.cwpr-blog-band {
		padding: 26px 22px;
	}

	/* A truncated product name is useless to someone deciding whether to buy it. */
	.cwpr-prod-name {
		white-space: normal;
		overflow: visible;
		text-overflow: clip;
	}

	.cwpr-prod {
		align-items: flex-start;
	}
}

/*
 * The tray button. Kept as a two-class selector and with min-width pinned, both
 * defensively: this site carries an inline `.add_to_cart_button { min-width:90px;
 * color:#fff !important; background:linear-gradient(#28a745,#218838) }` rule that
 * used to capture these buttons and render them as wide green slabs. The
 * WooCommerce classes are gone from the markup (see blog.php) so that rule no
 * longer matches - these declarations make sure a future site-wide button rule
 * cannot reach in either.
 */
.cwpr-tray .cwpr-prod-add,
.cwpr-article-panel .cwpr-prod-add {
	box-sizing: border-box;
	width: 30px;
	min-width: 30px;
	max-width: 30px;
	height: 30px;
	min-height: 0;
	padding: 0;
	margin: 0;
	background: var(--cwpr-b-card);
	background-image: none;
	border: 1.5px solid var(--cwpr-b-line-2);
	border-radius: 999px;
	box-shadow: none;
	color: var(--cwpr-b-lime-dark);
	font-size: 17px;
	font-weight: 800;
	line-height: 1;
	text-align: center;
	text-transform: none;
	letter-spacing: 0;
}

.cwpr-tray .cwpr-prod-add:hover,
.cwpr-article-panel .cwpr-prod-add:hover {
	background: var(--cwpr-b-lime);
	background-image: none;
	border-color: var(--cwpr-b-lime);
	color: var(--cwpr-b-dark);
}

/* States driven by assets/blog-cart.js. */
.cwpr-prod-add.is-busy {
	opacity: 0.55;
	pointer-events: none;
}

.cwpr-tray .cwpr-prod-add.is-added,
.cwpr-article-panel .cwpr-prod-add.is-added {
	background: var(--cwpr-b-lime);
	border-color: var(--cwpr-b-lime);
	color: var(--cwpr-b-dark);
}
