/**
 * MOW Built by Community — v3 site-native impact page.
 * ~85% clean site UI / ~15% landscaping, and the landscaping lives ONLY inside
 * defined sections: the hero walkway art, the gravel band that holds the paver
 * cards, and the paver cards themselves. Page background stays white.
 *
 * Native theme tokens (audited from themes/iwtmyl 2026-07-11):
 *   container 1140px + 24px inline padding (header/footer .hp-ctr convention)
 *   sans  var(--iw-sans)  = 'DM Sans', system stack   (body/UI)
 *   serif var(--iw-serif) = 'Source Serif 4', Georgia (display headings)
 *   greens --iw-green-700 #2d6a4f (primary) / 800 #1c3a2a / 900 #0f2418
 *          --iw-green-300 #95d5b2 / 100 #d8f3dc / 50 #f0faf3
 *   text  #1a1a18 primary / #4a4a42 secondary
 *   radii 6/10/16 · shadows --iw-shadow-sm/md/lg · buttons .iw-btn-* pattern
 *   (css/iwtmyl-tokens.css is loaded globally via header.php, so the --iw-*
 *   custom properties resolve here; literal fallbacks are supplied anyway)
 *
 * HOUSE RULE (2026-07-11): server-rendered content is ALWAYS visible by
 * default. There are NO opacity:0 initial states on content anywhere in this
 * file — motion only decorates (hover lift, drawer slide), never gates.
 *
 * WCAG 2.2 AA contrast math (relative-luminance ratios, verified 2026-07-11):
 *   ink      #1a1a18 on white    #ffffff = 17.4:1  body text
 *   muted    #4a4a42 on white    #ffffff =  8.9:1  secondary text
 *   green    #2d6a4f on white    #ffffff =  6.4:1  subhead/links/icons
 *   green-d  #1c3a2a on white    #ffffff = 12.4:1  outlined-button text
 *   green-x  #0f2418 on white    #ffffff = 16.3:1  display headings
 *   white    #ffffff on green    #2d6a4f =  6.4:1  primary buttons
 *   white    #ffffff on green-d  #1c3a2a = 12.4:1  active filter chip
 *   green-d  #1c3a2a on stone    #f3efe6 = 10.8:1  paver title
 *   ink      #1a1a18 on stone    #f3efe6 = 15.2:1  paver name
 *   muted    #4a4a42 on stone    #f3efe6 =  7.8:1  paver path line/date
 *   green    #2d6a4f on stone    #f3efe6 =  5.6:1  paver arrow/path arrow
 *   green-d  #1c3a2a on chip     #d8f3dc = 10.5:1  category chip
 *   ink      #1a1a18 on stone-hi #faf7f0 = 16.3:1  next-step title
 *   muted    #4a4a42 on stone-hi #faf7f0 =  8.4:1  next-step sub
 *   green    #2d6a4f on stone-hi #faf7f0 =  6.0:1  next-step sprout
 *   green-d  #1c3a2a on wash     #f0faf3 = 11.7:1  impact-bar numbers
 *   muted    #4a4a42 on wash     #f0faf3 =  8.4:1  impact-bar labels
 *   ink      #1a1a18 on gray     #d8d0bc = 11.3:1  medallion initial
 *   muted    #4a4a42 on bed      #ece7da =  7.2:1  (worst-case text over bed)
 *   error    #a4281c on          #fdf3f1 =  6.7:1  form errors (kept from v2)
 * Texture speckles sit at <=12% alpha behind text — no pair above drops below
 * its listed ratio (worst-case blended background stays lighter than #e9e4d8).
 */

.bbc-main {
	/* brand greens (theme tokens w/ literal fallbacks) */
	--bbc-green: var(--iw-green-700, #2d6a4f);
	--bbc-green-deep: var(--iw-green-800, #1c3a2a);
	--bbc-green-dark: var(--iw-green-900, #0f2418);
	--bbc-green-line: var(--iw-green-300, #95d5b2);
	--bbc-green-chip: var(--iw-green-100, #d8f3dc);
	--bbc-green-wash: var(--iw-green-50, #f0faf3);
	/* text */
	--bbc-ink: var(--iw-text-primary, #1a1a18);
	--bbc-muted: var(--iw-text-secondary, #4a4a42);
	/* landscaping (section-scoped only) */
	--bbc-stone: #f3efe6;      /* limestone paver surface */
	--bbc-stone-hi: #faf7f0;   /* lighter, unfinished stone */
	--bbc-stone-deep: #ebe5d6;
	--bbc-stone-edge: #d8d0bc;
	--bbc-bed: #ece7da;        /* gravel path bed inside the band */
	/* ui */
	--bbc-hairline: var(--iw-warm-100, #e8e8e0);
	--bbc-error: #a4281c;
	--bbc-error-bg: #fdf3f1;
	--bbc-focus: #1d4ed8;
	--bbc-sans: var(--iw-sans, 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
	--bbc-serif: var(--iw-serif, 'Source Serif 4', Georgia, serif);
	--bbc-radius-sm: var(--iw-radius-sm, 6px);
	--bbc-radius-md: var(--iw-radius-md, 10px);
	--bbc-radius-lg: var(--iw-radius-lg, 16px);
	--bbc-shadow-sm: var(--iw-shadow-sm, 0 1px 3px rgba(0, 0, 0, .08));
	--bbc-shadow-md: var(--iw-shadow-md, 0 4px 12px rgba(0, 0, 0, .10));
	/* ONE shared speckle texture (tiny inline SVG data-URI) — reused by the
	   band bed and every paver; no image assets, no per-record textures. */
	--bbc-speckle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cg fill='%23847a5e' fill-opacity='0.11'%3E%3Ccircle cx='6' cy='9' r='1'/%3E%3Ccircle cx='23' cy='4' r='1.4'/%3E%3Ccircle cx='41' cy='12' r='1'/%3E%3Ccircle cx='56' cy='7' r='1.2'/%3E%3Ccircle cx='12' cy='27' r='1.3'/%3E%3Ccircle cx='33' cy='23' r='1'/%3E%3Ccircle cx='50' cy='30' r='1.4'/%3E%3Ccircle cx='4' cy='44' r='1.1'/%3E%3Ccircle cx='20' cy='50' r='1'/%3E%3Ccircle cx='38' cy='44' r='1.3'/%3E%3Ccircle cx='58' cy='49' r='1'/%3E%3Ccircle cx='10' cy='60' r='1.2'/%3E%3Ccircle cx='29' cy='61' r='1'/%3E%3Ccircle cx='47' cy='58' r='1.2'/%3E%3C/g%3E%3C/svg%3E");
	/* small grass tuft — band-perimeter accent only */
	--bbc-tuft: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='14' viewBox='0 0 34 14'%3E%3Cpath d='M4 14 q 2 -10 -1 -13 M11 14 q 1 -9 3 -12 M18 14 q -2 -10 0 -14 M25 14 q 3 -8 -1 -12 M31 14 q 1 -7 3 -10' fill='none' stroke='%232d6a4f' stroke-width='2.2' stroke-linecap='round' opacity='0.65'/%3E%3C/svg%3E");
	/* small pebble row — mobile between-card divider inside the band */
	--bbc-gravel-row: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='12' viewBox='0 0 96 12'%3E%3Cg fill='%23d8d0bc' stroke='%23c4b998' stroke-width='0.8'%3E%3Cellipse cx='12' cy='7' rx='7' ry='3.6'/%3E%3Cellipse cx='34' cy='5.6' rx='6' ry='3.2'/%3E%3Cellipse cx='55' cy='7.2' rx='7.4' ry='3.4'/%3E%3Cellipse cx='79' cy='5.8' rx='6.4' ry='3.2'/%3E%3C/g%3E%3C/svg%3E");

	/* site-native container: 1140px + 24px gutters */
	width: min(1140px, 100%);
	max-width: 1140px;
	margin-inline: auto;
	box-sizing: border-box;
	padding: 0 24px 72px;
	background: transparent; /* the page stays white/site-neutral */
	color: var(--bbc-ink);
	font-family: var(--bbc-sans);
	font-size: 16.5px;
	line-height: 1.6;
}
.bbc-main *,
.bbc-main *::before,
.bbc-main *::after { box-sizing: border-box; }

.bbc-main a { color: var(--bbc-green-deep); }
.bbc-main a:hover { color: var(--bbc-green); }

/* Highly visible keyboard focus everywhere in the feature */
.bbc-main a:focus-visible,
.bbc-main button:focus-visible,
.bbc-main summary:focus-visible,
.bbc-main input:focus-visible,
.bbc-main select:focus-visible,
.bbc-main textarea:focus-visible,
.bbc-drawer a:focus-visible,
.bbc-drawer button:focus-visible,
.bbc-drawer input:focus-visible,
.bbc-drawer select:focus-visible,
.bbc-drawer textarea:focus-visible {
	outline: 3px solid var(--bbc-focus);
	outline-offset: 2px;
	border-radius: 4px;
}

.bbc-visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0; border: 0;
	clip: rect(0 0 0 0); clip-path: inset(50%);
	overflow: hidden; white-space: nowrap;
}

/* Skip link: hidden until focused (position trick — never opacity) */
.bbc-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100;
	background: var(--bbc-green-deep);
	color: #fff;
	padding: 10px 16px;
	border-radius: 0 0 8px 0;
	text-decoration: none;
}
.bbc-skip-link:focus {
	left: 0;
	color: #fff;
}

/* shared inline line icons (stroke = currentColor in the markup) */
.bbc-icon { display: inline-block; vertical-align: middle; flex: none; }

/* ============ Buttons — .iw-btn-* pattern (site-native) ============ */
.bbc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 12px 24px;
	border: 1.5px solid transparent;
	border-radius: var(--bbc-radius-sm);
	font-family: var(--bbc-sans);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
	cursor: pointer;
}
.bbc-btn-primary {
	background: var(--bbc-green);
	border-color: var(--bbc-green);
	color: #fff !important;
}
.bbc-btn-primary:hover,
.bbc-btn-primary:focus {
	background: var(--bbc-green-deep);
	border-color: var(--bbc-green-deep);
	color: #fff;
	text-decoration: none;
}
.bbc-btn-secondary {
	background: #fff;
	border-color: var(--bbc-green-line);
	color: var(--bbc-green-deep) !important;
}
.bbc-btn-secondary:hover,
.bbc-btn-secondary:focus {
	background: var(--bbc-green-wash);
	border-color: var(--iw-green-500, #52b788);
	color: var(--bbc-green-deep);
	text-decoration: none;
}
.bbc-btn-small { padding: 9px 16px; font-size: 14.5px; }

/* ============ Hero — two columns 58/42, site container, white bg ============ */
.bbc-hero {
	display: grid;
	grid-template-columns: 58fr 42fr;
	gap: 12px 32px;
	align-items: center;
	min-height: 330px;
	padding: 34px 0 26px;
}
.bbc-hero-title {
	margin: 0 0 6px;
	font-family: var(--bbc-serif);
	font-size: clamp(32px, 4.4vw, 44px);
	font-weight: 700;
	line-height: 1.12;
	color: var(--bbc-green-dark);
}
.bbc-hero-sub {
	margin: 0 0 10px;
	font-size: clamp(17px, 2.2vw, 20px);
	font-weight: 600;
	color: var(--bbc-green);
}
.bbc-hero-copy {
	max-width: 48ch;
	margin: 0 0 20px;
	color: var(--bbc-muted);
}
.bbc-hero-ctas {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin: 0 0 16px;
}
.bbc-hero-privacy {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	max-width: 52ch;
	margin: 0;
	font-size: 14px;
	color: var(--bbc-muted);
}
.bbc-hero-privacy .bbc-icon { width: 17px; height: 17px; margin-top: 2px; color: var(--bbc-green); }
.bbc-hero-artwrap { min-width: 0; }
.bbc-hero-art { display: block; width: 100%; max-width: 440px; height: auto; margin-left: auto; }
.bbc-art-bed { stroke: var(--bbc-bed); opacity: 0.85; }
.bbc-art-gravel circle { fill: #b9af94; opacity: 0.55; }
.bbc-art-stone { fill: var(--bbc-stone-deep); stroke: var(--bbc-stone-edge); stroke-width: 1.2; }
.bbc-art-grass path { stroke: var(--bbc-green); opacity: 0.55; }

/* ============ Audience benefit strip — ONE white card, three sections ============ */
.bbc-benefits {
	position: relative;
	z-index: 2;
	margin-top: -16px; /* slight overlap of the hero's lower edge (desktop) */
}
/* a real <ul> (list semantics for AT) restyled as one card */
.bbc-benefit-card {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	list-style: none;
	margin: 0;
	padding: 0;
	background: #fff;
	border: 1px solid var(--bbc-hairline);
	border-radius: var(--bbc-radius-lg);
	box-shadow: var(--bbc-shadow-sm);
}
.bbc-benefit {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin: 0;
	padding: 20px 22px;
}
.bbc-benefit + .bbc-benefit { border-left: 1px solid var(--bbc-hairline); } /* thin inner dividers */
.bbc-benefit > .bbc-icon { width: 22px; height: 22px; margin-top: 2px; color: var(--bbc-green); }
.bbc-benefit-t { margin: 0 0 2px; font-size: 15px; font-weight: 700; color: var(--bbc-ink); }
.bbc-benefit-d { margin: 0; font-size: 14px; line-height: 1.5; color: var(--bbc-muted); }

/* ============ Pathway section header row ============ */
.bbc-pathway-section { margin-top: 44px; }
.bbc-path-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 6px 24px;
	margin: 0 0 14px;
}
.bbc-section-heading {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 4px;
	font-family: var(--bbc-serif);
	font-size: clamp(24px, 3vw, 30px);
	font-weight: 700;
	color: var(--bbc-green-dark);
}
.bbc-section-heading .bbc-icon { width: 22px; height: 22px; color: var(--bbc-green); }
.bbc-section-intro { margin: 0; color: var(--bbc-muted); max-width: 60ch; }
.bbc-path-stats {
	margin: 0 0 4px;
	font-size: 15px;
	font-weight: 600;
	color: var(--bbc-muted);
	white-space: nowrap;
}

/* ============ Compact filter row: chips left, more-filters right ============ */
.bbc-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 16px;
	margin: 0 0 18px;
}
.bbc-chips {
	flex: 1 1 340px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	min-width: 0;
}
.bbc-fchip {
	display: inline-flex;
	align-items: center;
	min-height: 44px; /* >=44px touch target */
	padding: 6px 15px;
	border: 1px solid var(--bbc-hairline);
	border-radius: 999px;
	background: #fff;
	color: var(--bbc-ink);
	font-size: 14.5px;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
}
.bbc-fchip:hover { border-color: var(--bbc-green); color: var(--bbc-green-deep); }
/* strong active contrast: white on deep green (12.4:1) + weight, not color alone
   (aria-current="true" carries the state for AT) */
.bbc-fchip-active {
	background: var(--bbc-green-deep);
	border-color: var(--bbc-green-deep);
	color: #fff;
	font-weight: 700;
}
.bbc-fchip-active:hover { color: #fff; }

.bbc-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 14px;
	align-items: flex-end;
	margin: 0 0 0 auto;
}
.bbc-field-inline { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.bbc-field-inline label { font-weight: 600; font-size: 14px; }
.bbc-field-inline select,
.bbc-field-inline input[type="search"] {
	min-height: 44px;
	padding: 8px 10px;
	border: 1px solid var(--iw-input-border, #ccc);
	border-radius: var(--bbc-radius-sm);
	font-family: var(--bbc-sans);
	font-size: 15px;
	background: #fff;
	color: var(--bbc-ink);
}
.bbc-toolbar-apply { justify-content: flex-end; }
.bbc-reset-link { font-weight: 700; display: inline-flex; align-items: center; min-height: 44px; }

/* "More filters" disclosure — native <details> (works no-JS); popover on
   desktop, compact bottom sheet on mobile. */
.bbc-morefilters { position: relative; }
.bbc-morefilters-toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	padding: 8px 16px;
	border: 1px solid var(--bbc-hairline);
	border-radius: var(--bbc-radius-sm);
	background: #fff;
	font-weight: 600;
	font-size: 14.5px;
	cursor: pointer;
	list-style: none;
}
.bbc-morefilters-toggle::-webkit-details-marker { display: none; }
.bbc-morefilters-toggle::after { content: "\25BE"; font-size: 12px; }
.bbc-morefilters[open] .bbc-morefilters-toggle { border-color: var(--bbc-green-deep); color: var(--bbc-green-deep); }
.bbc-morefilters[open] .bbc-morefilters-toggle::after { content: "\25B4"; }
.bbc-morefilters-pop {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 60;
	min-width: 264px;
	display: grid;
	gap: 12px;
	padding: 14px;
	background: #fff;
	border: 1px solid var(--bbc-hairline);
	border-radius: var(--bbc-radius-md);
	box-shadow: var(--iw-shadow-lg, 0 8px 32px rgba(0, 0, 0, .12));
}

/* ============ Featured pathway environment: ONE contained gravel band ============ */
.bbc-band {
	position: relative;
	padding: clamp(20px, 3.4vw, 34px);
	background-color: var(--bbc-bed);
	background-image: var(--bbc-speckle);
	border: 1px solid var(--bbc-stone-edge);
	border-radius: var(--bbc-radius-lg);
	/* soft white fade toward the band's edges — defined but not hard-framed */
	box-shadow: inset 0 0 42px 14px rgba(255, 255, 255, 0.5);
}
/* restrained perimeter planting: two tuft clusters + one leaf accent */
.bbc-band::before,
.bbc-band::after {
	content: "";
	position: absolute;
	width: 34px;
	height: 14px;
	background: var(--bbc-tuft) no-repeat;
	pointer-events: none;
}
.bbc-band::before { top: 8px; left: 22px; }
.bbc-band::after { bottom: 9px; right: 26px; }

/* ============ The paver row: 3 across / 2 across / stacked ============ */
.bbc-pathway {
	list-style: none;
	margin: 0;
	padding: 0;
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}
@media (min-width: 640px) and (max-width: 1024px) {
	.bbc-pathway { grid-template-columns: repeat(2, 1fr); }
}
.bbc-paver-slot { margin: 0; min-width: 0; display: flex; } /* equal-height cards */
/* the no-reload category chips hide slots via the hidden attribute — it must
   beat the display:flex above */
.bbc-paver-slot[hidden] { display: none; }

/* ============ The paver card (the star) ============ */
.bbc-paver {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	min-height: 236px;
	padding: 18px 18px 16px;
	background-color: var(--bbc-stone);
	background-image:
		var(--bbc-speckle),
		linear-gradient(158deg, var(--bbc-stone-hi) 0%, var(--bbc-stone) 55%, var(--bbc-stone-deep) 100%);
	border: 1px solid var(--bbc-stone-edge);
	border-radius: 20px;
	/* slight inset edge + soft under-shadow: set into the bed, not floating */
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.9),
		inset 0 -2px 0 rgba(120, 110, 86, 0.16),
		0 8px 14px -8px rgba(96, 86, 60, 0.4),
		0 2px 4px rgba(96, 86, 60, 0.1);
}

.bbc-paver-flag {
	position: absolute;
	top: 10px;
	right: 14px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--bbc-green-deep); /* 10.8:1 on limestone */
}

/* category chip: green pill + leaf glyph (never color-only) */
.bbc-paver-cat { margin: 0 0 10px; }
.bbc-chip {
	display: inline-flex;
	align-items: center;
	background: var(--bbc-green-chip);
	color: var(--bbc-green-deep); /* 10.5:1 */
	border-radius: 999px;
	padding: 3px 12px;
	font-size: 12.5px;
	font-weight: 700;
	text-decoration: none;
}
.bbc-cat-leaf {
	display: inline-block;
	width: 9px;
	height: 9px;
	margin-right: 6px;
	background: var(--bbc-green);
	border-radius: 0 70% 0 70%; /* little leaf */
	flex: none;
}

.bbc-paver-title {
	margin: 0 0 8px;
	font-family: var(--bbc-serif);
	font-size: 19px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--bbc-green-deep); /* 10.8:1 on limestone */
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.7em; /* ~2 lines: consistent card rhythm */
}

/* before -> after path line (charcoal; the arrow is green and IS the indicator) */
.bbc-paver-path {
	margin: 0 0 12px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--bbc-muted); /* 7.8:1 on limestone */
}
.bbc-path-arrow { color: var(--bbc-green); font-weight: 700; } /* 5.6:1 stone / 6.4:1 white */

/* footer row: medallion + name + implemented date */
.bbc-paver-foot {
	margin: auto 0 0; /* pins to the card bottom for equal heights */
	padding-right: 28px; /* clears the arrow cue */
	display: flex;
	align-items: center;
	gap: 10px;
}
.bbc-paver-who { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.bbc-paver-name { font-size: 14.5px; font-weight: 700; color: var(--bbc-ink); }
.bbc-paver-extra { font-size: 13px; font-weight: 600; color: var(--bbc-muted); margin-left: 4px; }
.bbc-paver-date { font-size: 13px; color: var(--bbc-muted); }

/* Contributor medallion — one consistent 42px circle everywhere (photo or initial).
   width/height attrs are always emitted, so layout space is reserved (no CLS). */
.bbc-medallion {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	flex: none;
}
img.bbc-medallion {
	object-fit: cover;
	border: 1px solid var(--bbc-stone-edge);
}
.bbc-medallion-initial {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--bbc-stone-edge); /* neutral stone gray */
	color: var(--bbc-ink);             /* 11.3:1 on #d8d0bc */
	border: 1px solid #b9af94;
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
}

/* the ONLY interactive element above the stretched link */
.bbc-paver-person { position: relative; z-index: 2; }
span.bbc-paver-person { color: var(--bbc-ink); }
a.bbc-paver-person { color: var(--bbc-green-deep); text-decoration: underline; text-underline-offset: 2px; }
a.bbc-paver-person:hover { color: var(--bbc-green); }

/* arrow cue, bottom-right */
.bbc-paver-arrow {
	position: absolute;
	right: 14px;
	bottom: 12px;
	font-size: 18px;
	font-weight: 700;
	color: var(--bbc-green); /* 5.6:1 on limestone */
	line-height: 1;
}

/* stretched-link overlay: whole paver clicks through to the story */
.bbc-paver-cover {
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: inherit;
}
.bbc-paver-cover:focus-visible { outline-offset: -3px; }
.bbc-paver:hover .bbc-paver-title { text-decoration: underline; text-underline-offset: 3px; }

/* hover: 2-3px lift + deeper shadow + arrow nudge ONLY (motion-safe) */
@media (prefers-reduced-motion: no-preference) {
	.bbc-paver { transition: box-shadow 0.18s ease, translate 0.18s ease; }
	.bbc-paver:hover,
	.bbc-paver:focus-within {
		translate: 0 -3px;
		box-shadow:
			inset 0 1px 0 rgba(255, 255, 255, 0.9),
			inset 0 -2px 0 rgba(120, 110, 86, 0.16),
			0 14px 22px -10px rgba(96, 86, 60, 0.45),
			0 3px 6px rgba(96, 86, 60, 0.12);
	}
	.bbc-paver-arrow { transition: transform 0.18s ease; }
	.bbc-paver:hover .bbc-paver-arrow { transform: translateX(3px); }
	.bbc-morefilters-pop { animation: bbc-pop-in 0.16s ease; }
	@keyframes bbc-pop-in {
		from { transform: translateY(-4px); }
		to { transform: none; }
	}
}

/* ============ Next-step paver (centered, slightly wider, unfinished) ============ */
.bbc-next-wrap {
	position: relative;
	z-index: 1;
	margin: 28px auto 0;
	text-align: center;
}
.bbc-next {
	max-width: 560px; /* slightly wider than one card */
	margin: 0 auto;
	padding: 24px 24px 26px;
	background-color: var(--bbc-stone-hi); /* lighter stone */
	background-image: var(--bbc-speckle);
	border: 2px dashed var(--bbc-stone-edge); /* unfinished edge */
	border-radius: 20px;
	box-shadow: inset 0 2px 6px rgba(96, 86, 60, 0.12);
}
.bbc-next-icon { display: inline-block; color: var(--bbc-green); } /* 6.0:1 on stone-hi */
.bbc-next-icon .bbc-icon { width: 30px; height: 30px; }
.bbc-next-title {
	margin: 6px 0 4px;
	font-family: var(--bbc-serif);
	font-size: 20px;
	font-weight: 700;
	color: var(--bbc-ink); /* 16.3:1 on stone-hi */
}
.bbc-next-sub {
	margin: 0 0 16px;
	font-size: 15px;
	color: var(--bbc-muted); /* 8.4:1 on stone-hi */
}
.bbc-next-cta { margin: 0; }
.bbc-shared-thanks { margin: 0 auto 18px; max-width: 560px; text-align: left; }

/* ============ Meaning statement ============ */
.bbc-meaning {
	max-width: 700px;
	margin: 40px auto 0;
	text-align: center;
}
.bbc-meaning p {
	margin: 0;
	font-size: 17px;
	line-height: 1.7;
	color: var(--bbc-muted);
}

/* ============ Compact impact bar (pale-green, four columns) ============ */
.bbc-impact { margin: 30px 0 0; }
.bbc-impact-bar {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 10px;
	padding: 18px 20px;
	background: var(--bbc-green-wash);
	border: 1px solid var(--bbc-green-chip);
	border-radius: var(--bbc-radius-lg);
}
.bbc-impact-cell {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	text-align: center;
	padding: 4px 6px;
}
.bbc-impact-cell .bbc-icon { width: 20px; height: 20px; color: var(--bbc-green); margin-bottom: 2px; }
.bbc-impact-n {
	font-size: 22px;
	font-weight: 800;
	line-height: 1.1;
	color: var(--bbc-green-deep); /* 11.7:1 on wash */
}
.bbc-impact-label { font-size: 13.5px; font-weight: 600; color: var(--bbc-muted); } /* 8.4:1 */
.bbc-impact-sublabel { display: block; font-size: 12px; font-weight: 400; color: var(--bbc-muted); } /* same 8.4:1 pair */
.bbc-impact-label-strong { font-size: 15px; font-weight: 700; color: var(--bbc-green-deep); }
.bbc-privacy-more { margin: 12px 0 0; text-align: center; font-size: 14px; }
.bbc-privacy-more a { display: inline-flex; align-items: center; min-height: 44px; gap: 4px; font-weight: 600; }

/* ============ Pagination / empty state (inside the band) ============ */
.bbc-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	margin: 22px 0 0;
	position: relative;
	z-index: 1;
}
.bbc-page-link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 10px;
	font-weight: 700;
	text-decoration: none;
}
.bbc-page-status { color: var(--bbc-muted); font-size: 15px; }
.bbc-empty {
	position: relative;
	z-index: 1;
	background: var(--bbc-stone-hi);
	border: 1px dashed var(--bbc-stone-edge);
	border-radius: var(--bbc-radius-lg);
	padding: 26px 22px;
	text-align: center;
	color: var(--bbc-muted);
}

/* ============ Detail page (v2.1 three-step layout, native tokens) ============ */
.bbc-breadcrumb { font-size: 14px; margin: 22px 0 10px; color: var(--bbc-muted); }
.bbc-breadcrumb a { margin-right: 4px; }
.bbc-breadcrumb span { margin-right: 4px; }
.bbc-detail-title {
	font-family: var(--bbc-serif);
	font-size: clamp(26px, 4vw, 38px);
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 8px;
	color: var(--bbc-green-dark);
}
.bbc-detail-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 18px;
}
.bbc-detail-date { color: var(--bbc-muted); font-size: 15px; }
.bbc-detail-pathline {
	margin: 0 0 10px;
	font-size: 16px;
	color: var(--bbc-muted); /* 8.9:1 on white */
}
.bbc-detail-section { margin: 0 0 22px; max-width: 720px; }

/* small-caps kickers: WHAT WE HEARD / WHAT IMPROVED / WHY IT MATTERS /
   THIS STEP WAS SHAPED BY — the real headings, styled as kickers */
.bbc-step-heading {
	margin: 0 0 6px;
	font-family: var(--bbc-sans);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--bbc-green); /* 6.4:1 on white, 5.6:1 on stone */
}

/* Three compact steps: side-by-side on desktop, stacked on mobile. */
.bbc-detail-steps {
	display: grid;
	gap: 18px;
	margin: 0 0 22px;
	max-width: 960px;
}
.bbc-detail-steps .bbc-detail-section { margin: 0; max-width: none; }
@media (min-width: 768px) {
	.bbc-detail-steps { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 22px; }
}
.bbc-detail-media {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 14px;
	margin: 0 0 22px;
}
.bbc-media-item { margin: 0; }
.bbc-media-item img {
	max-width: 100%;
	width: 100%;
	height: auto;
	border-radius: var(--bbc-radius-md);
	border: 1px solid var(--bbc-hairline);
}
.bbc-media-item figcaption { font-size: 13px; color: var(--bbc-muted); margin-top: 4px; }

.bbc-chip-link { min-height: 44px; } /* interactive chip: >=44px touch target */
.bbc-chip-link:hover { text-decoration: underline; color: var(--bbc-green-deep); }

/* contributor recognition block: ONE stone card — the metaphor's echo here */
.bbc-detail-contributors {
	background-color: var(--bbc-stone);
	background-image: var(--bbc-speckle);
	border: 1px solid var(--bbc-stone-edge);
	border-radius: var(--bbc-radius-lg);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), inset 0 -2px 0 rgba(120, 110, 86, 0.14);
	padding: 16px 18px;
	margin: 0 0 20px;
	max-width: 720px;
}
.bbc-detail-contributors .bbc-step-heading { margin-bottom: 12px; }
.bbc-contributor-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.bbc-contributor { display: flex; gap: 12px; align-items: flex-start; }
.bbc-contributor-name { font-weight: 700; display: block; font-size: 16px; }
.bbc-contributor-detail { display: block; font-size: 14px; color: var(--bbc-muted); }
.bbc-profile-link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	gap: 4px;
	font-size: 14px;
	font-weight: 700;
}

/* contributor quote: subdued callout beneath the recognition block */
.bbc-contributor-quote-callout {
	margin: 0 0 20px;
	padding: 12px 16px;
	max-width: 720px;
	background: var(--bbc-green-wash);
	border-left: 4px solid var(--bbc-green-line);
	border-radius: var(--bbc-radius-sm);
	font-style: italic;
	color: var(--bbc-ink);
}
.bbc-contributor-quote-callout p { margin: 0 0 4px; }
.bbc-contributor-quote-callout cite {
	font-style: normal;
	font-size: 14px;
	color: var(--bbc-muted);
}

.bbc-detail-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 0 0 14px;
}
.bbc-share-label { font-weight: 700; }
.bbc-share-btn {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 6px 14px;
	border: 1.5px solid var(--bbc-green-line);
	border-radius: var(--bbc-radius-sm);
	background: #fff;
	color: var(--bbc-green-deep);
	font-family: var(--bbc-sans);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}
.bbc-share-btn:hover { background: var(--bbc-green-wash); border-color: var(--iw-green-500, #52b788); }
.bbc-detail-removal { font-size: 14px; color: var(--bbc-muted); max-width: 720px; }
.bbc-detail-back { margin-top: 26px; }
.bbc-detail-back a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.bbc-detail-permalink { margin: 8px 0 0; }
.bbc-404 { text-align: center; padding: 70px 10px; }
.bbc-404 h1 { font-family: var(--bbc-serif); color: var(--bbc-green-dark); }

/* ============ Drawers (progressive enhancement) ============ */
.bbc-drawer-overlay {
	position: fixed;
	inset: 0;
	background: rgba(26, 26, 24, 0.5);
	z-index: 9998;
}
.bbc-drawer {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(560px, 100%);
	background: #fff;
	z-index: 9999;
	overflow-y: auto;
	padding: 18px 22px 40px;
	box-shadow: -8px 0 30px rgba(26, 26, 24, 0.25);
}
.bbc-share-drawer { width: min(520px, 100%); }
@media (prefers-reduced-motion: no-preference) {
	.bbc-drawer { animation: bbc-drawer-in 0.22s ease; }
	@keyframes bbc-drawer-in {
		from { transform: translateX(36px); }
		to { transform: none; }
	}
}
@media (max-width: 767px) {
	/* full-screen sheet on mobile */
	.bbc-drawer,
	.bbc-share-drawer { width: 100%; }
}
.bbc-drawer-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	margin-left: auto;
	border: 1px solid #e8e8e0;
	border-radius: var(--iw-radius-sm, 6px);
	background: #fff;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	color: #1a1a18;
}
.bbc-drawer-topbar { display: flex; justify-content: flex-end; margin-bottom: 6px; }
.bbc-drawer .bbc-detail-title { font-size: 24px; }
.bbc-drawer-loading { padding: 30px 0; text-align: center; color: #4a4a42; }

/* ============ Share panel (drawer fragment + /share/ page) ============ */
.bbc-share-title {
	font-family: var(--bbc-serif);
	font-size: clamp(24px, 3.6vw, 32px);
	font-weight: 700;
	color: var(--bbc-green-dark);
	margin: 12px 0 6px;
}
.bbc-share-panel { max-width: 720px; }
.bbc-main-share .bbc-share-panel {
	background: var(--bbc-stone-hi);
	border: 1px solid var(--bbc-stone-edge);
	border-radius: var(--bbc-radius-lg);
	padding: 22px 20px 26px;
}
.bbc-share-as { font-size: 15px; color: var(--bbc-muted); margin: 0 0 16px; }

.bbc-share-teaser .bbc-field textarea { min-height: 110px; }
.bbc-locked-rows { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.bbc-locked-row {
	background: #fff;
	border: 1px dashed var(--bbc-stone-edge);
	border-radius: var(--bbc-radius-md);
	padding: 12px 14px;
	color: var(--bbc-muted);
	font-weight: 600;
}
.bbc-login-panel {
	background: var(--bbc-green-wash);
	border: 1px solid var(--bbc-green-line);
	border-radius: var(--bbc-radius-md);
	padding: 16px 18px;
}
.bbc-login-copy { margin: 0 0 12px; color: var(--bbc-ink); }
.bbc-login-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0; }
.bbc-login-alt { font-weight: 700; display: inline-flex; align-items: center; min-height: 44px; }

/* ============ Form fields ============ */
.bbc-form { max-width: 720px; }
.bbc-field { margin: 0 0 16px; }
.bbc-field label { display: block; font-weight: 600; margin-bottom: 4px; }
.bbc-field input[type="text"],
.bbc-field input[type="email"],
.bbc-field select,
.bbc-field textarea {
	width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	border: 1px solid var(--iw-input-border, #ccc);
	border-radius: var(--bbc-radius-sm);
	font-family: var(--bbc-sans);
	font-size: 16px;
	background: #fff;
	color: var(--bbc-ink);
}
.bbc-field textarea { resize: vertical; }
.bbc-req { color: var(--bbc-error); font-weight: 700; }
.bbc-optional { font-weight: 400; color: var(--bbc-muted); font-size: 14px; }

.bbc-field-check,
.bbc-field-radio {
	display: grid;
	grid-template-columns: 24px 1fr;
	gap: 10px;
	align-items: start;
}
.bbc-field-check input,
.bbc-field-radio input {
	width: 22px;
	height: 22px;
	margin-top: 2px;
	accent-color: var(--bbc-green);
}
.bbc-field-check label,
.bbc-field-radio label { font-weight: 400; margin: 0; }

.bbc-recognition {
	border: 1px solid var(--bbc-hairline);
	border-radius: var(--bbc-radius-md);
	padding: 14px 16px 6px;
	margin: 0 0 16px;
	background: #fff;
}
.bbc-recognition legend { font-weight: 700; padding: 0 6px; }
.bbc-rec-intro { margin: 4px 0 10px; color: var(--bbc-muted); font-size: 15px; }
/* disabled prefs stay readable — dimming via color shift, NOT opacity on content */
.bbc-recognition-prefs.bbc-prefs-disabled label { color: var(--bbc-muted); }

/* helper lines under labels (also the quiet consent helper) */
.bbc-field-help {
	display: block;
	margin: 0 0 6px;
	font-size: 14px;
	font-weight: 400;
	color: var(--bbc-muted);
}

/* subtle consent block — quiet line, no boxed fieldset chrome */
.bbc-recognition-quiet {
	border: 0;
	border-radius: 0;
	padding: 0;
	margin: 0 0 16px;
	background: transparent;
}
.bbc-recognition-quiet legend { font-weight: 600; font-size: 16px; padding: 0; margin: 0 0 6px; }
.bbc-recognition-quiet .bbc-field-check-quiet { margin: 0 0 4px; }
.bbc-recognition-help { margin: 0 0 8px; }
/* consent-gated radios, restyled compact/inline (JS shows them when checked;
   without JS they render visible + enabled — never opacity-gated) */
.bbc-rec-inline { display: flex; flex-wrap: wrap; gap: 2px 18px; align-items: center; }
.bbc-rec-inline .bbc-rec-intro { flex-basis: 100%; margin: 2px 0 6px; font-size: 14px; }
.bbc-rec-inline .bbc-field-radio {
	display: inline-grid;
	grid-template-columns: 20px auto;
	gap: 6px;
	margin: 0 0 6px;
	font-size: 14px;
	align-items: center;
}
.bbc-rec-inline .bbc-field-radio input { width: 18px; height: 18px; margin-top: 0; }

/* error presentation — never color alone: warning glyph prefix + message text */
.bbc-field-error input,
.bbc-field-error select,
.bbc-field-error textarea { border-color: var(--bbc-error); border-width: 2px; }
.bbc-field-msg {
	display: block;
	margin-top: 4px;
	color: var(--bbc-error);
	font-size: 14px;
	font-weight: 600;
}
.bbc-field-msg::before { content: "\26A0\FE0E  "; }
.bbc-form-errors {
	background: var(--bbc-error-bg);
	border: 2px solid var(--bbc-error);
	border-radius: var(--bbc-radius-md);
	padding: 14px 18px;
	margin: 0 0 20px;
	max-width: 720px;
}
.bbc-form-errors-heading { margin: 0 0 8px; font-size: 17px; color: var(--bbc-error); }
.bbc-form-errors ul { margin: 0; padding-left: 20px; }
.bbc-form-errors a { color: var(--bbc-error); font-weight: 700; }
.bbc-form-success {
	background: var(--bbc-green-chip);
	border: 2px solid var(--bbc-green-deep);
	border-radius: var(--bbc-radius-md);
	padding: 14px 18px;
	margin: 0 0 20px;
	max-width: 720px;
	color: var(--bbc-ink);
}
.bbc-form-actions { margin: 8px 0 6px; }
.bbc-form-note { font-size: 13px; color: var(--bbc-muted); margin: 0; }

/* Honeypot: visually removed (position, NOT opacity), still in the DOM for bots */
.bbc-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ============ Placements (shortcodes, may render outside .bbc-main) ============ */
.bbc-callout {
	background: #fff;
	border: 1px solid #e8e8e0;
	border-left: 4px solid #2d6a4f;
	border-radius: 10px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	padding: 14px 18px;
	margin: 18px 0;
	max-width: 640px;
	color: #1a1a18;
}
.bbc-callout-heading { margin: 0 0 4px; font-weight: 800; font-size: 16px; }
.bbc-callout-body { margin: 0 0 8px; font-size: 15px; }
.bbc-callout-link { margin: 0; }
.bbc-callout-link a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: #1c3a2a;
	font-weight: 700;
	text-decoration: none;
}
.bbc-callout-link a:hover { text-decoration: underline; }

.bbc-profile-recognition {
	background: #fff;
	border: 1px solid #e8e8e0;
	border-left: 4px solid #2d6a4f;
	border-radius: 10px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	padding: 14px 18px;
	margin: 18px 0;
	color: #1a1a18;
}
.bbc-profile-recognition-heading { margin: 0 0 8px; font-size: 17px; }
.bbc-profile-recognition-list { margin: 0; padding-left: 20px; }
.bbc-profile-recognition-list li { margin-bottom: 4px; }
.bbc-profile-recognition-when { color: #4a4a42; font-size: 14px; }

.bbc-footer-link { font-weight: 600; }

/* ============ Tablet (641–1024px) ============ */
@media (max-width: 1024px) {
	.bbc-hero { grid-template-columns: 1fr; min-height: 0; padding: 26px 0 18px; }
	.bbc-hero-artwrap { order: 2; }
	.bbc-hero-art { max-width: 320px; margin: 4px auto 0; }
	.bbc-benefits { margin-top: 4px; }
}

/* ============ Mobile (<=640px, usable at 320) ============ */
@media (max-width: 640px) {
	.bbc-main { font-size: 16px; padding-inline: 16px; }
	.bbc-hero { padding-top: 18px; }
	.bbc-hero-artwrap { display: none; } /* decorative only — dropped on phones */
	/* benefit strip: compact stacked rows, not big cards */
	.bbc-benefit-card { grid-template-columns: 1fr; }
	.bbc-benefit { padding: 12px 16px; }
	.bbc-benefit + .bbc-benefit { border-left: 0; border-top: 1px solid var(--bbc-hairline); }
	.bbc-benefit-d { font-size: 13.5px; }
	.bbc-path-head { flex-direction: column; align-items: flex-start; }
	.bbc-path-stats { white-space: normal; }
	/* chips scroll horizontally INSIDE their own container — the page never
	   scrolls sideways */
	.bbc-chips {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 4px;
	}
	.bbc-fchip { flex: none; }
	.bbc-toolbar { width: 100%; flex-direction: column; align-items: stretch; }
	.bbc-toolbar .bbc-field-inline { width: 100%; }
	.bbc-morefilters-pop {
		position: fixed;
		left: 8px;
		right: 8px;
		top: auto;
		bottom: 8px;
		min-width: 0;
		max-height: 70vh;
		overflow-y: auto;
		box-shadow: 0 -8px 30px rgba(26, 26, 24, 0.3);
	}
	/* single-column pavers with a small gravel divider between cards */
	.bbc-pathway { grid-template-columns: 1fr; gap: 0; }
	.bbc-paver-slot + .bbc-paver-slot::before {
		content: "";
		display: block;
		width: 96px;
		height: 12px;
		margin: 14px auto;
		background: var(--bbc-gravel-row) no-repeat center;
	}
	.bbc-paver-slot { flex-direction: column; }
	.bbc-paver { min-height: 0; padding: 16px 16px 14px; }
	.bbc-paver-title { min-height: 0; font-size: 18px; }
	.bbc-impact-bar { grid-template-columns: repeat(2, 1fr); gap: 14px 8px; }
	.bbc-main-share .bbc-share-panel { padding: 16px 14px 20px; }
}

/* ============ Forced colors: strip textures → clean bordered cards ============ */
@media (forced-colors: active) {
	.bbc-paver,
	.bbc-band,
	.bbc-benefit-card,
	.bbc-impact-bar,
	.bbc-detail-contributors,
	.bbc-callout,
	.bbc-profile-recognition,
	.bbc-contributor-quote-callout,
	.bbc-login-panel,
	.bbc-empty {
		background-image: none !important;
		box-shadow: none !important;
		border: 1px solid CanvasText !important;
	}
	.bbc-band::before,
	.bbc-band::after,
	.bbc-paver-slot + .bbc-paver-slot::before { display: none !important; }
	.bbc-hero-art { display: none !important; }
	/* next-step keeps its dashed "unfinished" edge, textures stripped */
	.bbc-next {
		background-image: none !important;
		box-shadow: none !important;
		border: 2px dashed CanvasText !important;
	}
	.bbc-medallion-initial { background: Canvas; color: CanvasText; border: 1px solid CanvasText; }
	.bbc-cat-leaf { background: CanvasText; forced-color-adjust: none; }
	.bbc-btn { border: 1px solid ButtonText; }
}
