/**
 * Posts archive: banner, FacetWP browse bar + posts grid.
 * Plain CSS — no build step. Tokens come from theme.json presets.
 *
 * Banner: Figma 2106:10 — butter band under oversized logo; title left,
 * term description right; title centred when description is empty.
 * Open dropdown: Figma 2209:79 / 2145:1279 — continuous 331×~1087 panel,
 * Inter Light 19/46 options, expand chevron (no minus or leaf bullets),
 * 32px #BDBDBD checkbox-style markers (checkbox + radio facets) inset below header.
 */

/* -------------------------------------------------------------------------
   Archive banner
   ------------------------------------------------------------------------- */

.lwt-archive-banner,
.lwt-archive-banner + .block-area {
	--lwt-archive-banner-overlap: 160px;
	--lwt-archive-banner-pad: 220px;
	/* Wordmark asset is 1627×190; width tracks the header logo column. */
	--lwt-logo-visual-height: min(
		190px,
		calc((100vw - (2 * var(--lwt-header-inset, 40px))) * 190 / 1627)
	);
}

.lwt-archive-banner {
	position: relative;
	/*
	 * Stack above the posts-slider sun, but keep the fill transparent so the
	 * sun can show on the butter layer from .block-area underneath.
	 */
	z-index: 1;
	box-sizing: border-box;
	width: 100%;
	/* Beat WP layout `.wp-container-… > * { margin-block-start: 0 }`. */
	margin-top: calc(var(--lwt-archive-banner-overlap) * -1) !important;
	margin-block-start: calc(var(--lwt-archive-banner-overlap) * -1) !important;
	padding-top: var(--lwt-archive-banner-pad);
	padding-right: var(--lwt-header-inset, 40px);
	padding-bottom: var(--wp--preset--spacing--47);
	padding-left: var(--lwt-header-inset, 40px);
	background-color: transparent !important;
}

.lwt-archive-banner.has-butter-background-color,
.lwt-archive-banner.has-background {
	background-color: transparent !important;
}

/*
 * Butter band + sun live here: pull under the transparent banner so yellow
 * remains continuous and the sun sits behind title/description.
 */
.lwt-archive-banner + .block-area {
	/*
	 * Butter top = 25% down the wordmark. Pull equals the banner's place in
	 * the flow (header, main block gap, overlap, padding, title line) minus
	 * that target. The bar paints 0.4rem taller than --lwt-header-bar-height.
	 */
	--lwt-archive-pull: calc(
		var(--lwt-logo-expanded-height) - (0.25 * var(--lwt-logo-visual-height)) +
			var(--lwt-archive-banner-pad) +
			(clamp(2.75rem, 5vw, 4.375rem) * 1.15) +
			var(--wp--preset--spacing--47) + 1.5rem + 0.4rem -
			var(--lwt-archive-banner-overlap)
	);
	position: relative;
	z-index: 0;
	box-sizing: border-box;
	margin-top: calc(var(--lwt-archive-pull) * -1);
	margin-bottom: 105px;
	margin-block-end: 105px;
	padding-top: var(--lwt-archive-pull);
	background-color: var(--wp--preset--color--butter);
	/*
	 * Visible so the posts-slider sun can bleed under the banner / past the
	 * right edge. overflow-x: clip forces overflow-y to clip too (CSS pairing).
	 */
	overflow: visible;
}

.lwt-archive-banner__inner {
	position: relative;
	z-index: 1;
    display: grid;
    grid-template-columns: minmax(12rem, 0.38fr) minmax(0, 1fr);
    align-items: start;
    column-gap: clamp(2rem, 9.5vw, 11.5rem);
    row-gap: var(--wp--preset--spacing--30);
    width: 98%;
    max-width: 1265px;
    margin-inline: auto;
}

/* Small archive labels echo the theme headings and fine footer rules. */
.lwt-archive-breadcrumbs {
	grid-column: 1 / -1;
	min-width: 0;
	max-width: 100%;
	margin: 0;
	color: var(--wp--preset--color--black);
	font: 700 0.75rem/1.7 var(--wp--preset--font-family--manrope);
	letter-spacing: 0.13em;
	text-transform: uppercase;
	overflow-wrap: anywhere;
}

.lwt-posts-intro .lwt-archive-breadcrumbs {
	text-align: center;
}

/* Keep each rule with the label that follows when a long trail wraps. */
.lwt-archive-breadcrumbs .yoast-breadcrumbs > span > span {
	display: inline-flex;
	align-items: center;
	max-inline-size: 100%;
	vertical-align: middle;
}

.lwt-archive-breadcrumbs .yoast-breadcrumbs > span > span + span::before {
	content: "";
	flex: none;
	block-size: 0.75em;
	margin-inline: clamp(0.375rem, 1vw, 0.625rem);
	border-inline-start: 1px solid currentColor;
}

.lwt-archive-breadcrumbs a:has(.lwt-archive-breadcrumbs__home-icon) {
	display: inline-grid;
	place-items: center;
	inline-size: 2.5rem;
	block-size: 1.5rem;
}

.lwt-archive-breadcrumbs__home-icon {
	display: block;
	inline-size: 100%;
	block-size: auto;
	filter: brightness(0);
}

@media (forced-colors: active) and (prefers-color-scheme: dark) {
	.lwt-archive-breadcrumbs__home-icon {
		filter: brightness(0) invert(1);
	}
}

.lwt-archive-breadcrumbs a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

.lwt-archive-breadcrumbs a:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.lwt-archive-banner__inner:not(:has(.wp-block-term-description)) .lwt-archive-breadcrumbs {
	text-align: center;
}

.lwt-archive-banner .wp-block-query-title,
.lwt-archive-banner__title {
	margin: 0;
	color: var(--wp--preset--color--black);
	font-family: var(--wp--preset--font-family--editors-note);
	font-size: clamp(2.75rem, 5vw, 4.375rem);
	font-style: normal;
	font-weight: 200;
	line-height: 1.15;
	text-align: left;
}

.lwt-archive-banner .wp-block-term-description,
.lwt-archive-banner__description {
	max-width: 58.0625rem;
	margin: 0;
	padding-top: 0.5rem;
	color: var(--wp--preset--color--black);
	font-family: var(--wp--preset--font-family--inter);
	font-size: var(--wp--preset--font-size--body);
	font-weight: 300;
	line-height: 2.1;
}

.lwt-archive-banner .wp-block-term-description p {
	margin: 0;
	letter-spacing: 0.01rem;
}

/* No term description → centre the archive title. */
.lwt-archive-banner__inner:not(:has(.wp-block-term-description)) {
	grid-template-columns: 1fr;
	justify-items: center;
}

.lwt-archive-banner__inner:not(:has(.wp-block-term-description)) .wp-block-query-title {
	text-align: center;
}

@media (max-width: 1200px) {
	.lwt-archive-banner {
		margin-top: 0 !important;
		margin-block-start: 0 !important;
		padding-top: 2.25rem;
		padding-right: 2rem;
		padding-bottom: 1.25rem;
		padding-left: 2rem;
		/*
		 * Butter fill for mobile design. z-index:auto so this box does not
		 * trap stacking — sun (block-area) can sit above the fill while
		 * title/desc (__inner) stay above the sun.
		 */
		z-index: auto !important;
		background-color: var(--wp--preset--color--butter) !important;
	}

	.lwt-archive-banner.has-butter-background-color,
	.lwt-archive-banner.has-background {
		background-color: var(--wp--preset--color--butter) !important;
	}

	.lwt-archive-banner__inner {
		position: relative;
		z-index: 5;
		grid-template-columns: 1fr;
		justify-items: center;
		width: 100%;
		max-width: 40rem;
		margin-inline: auto;
		row-gap: 1.25rem;
	}

	.lwt-archive-banner .lwt-archive-breadcrumbs {
		text-align: center;
	}

	.lwt-archive-banner + .block-area {
		--lwt-archive-pull: 0;
		margin-top: 0;
		margin-bottom: 3rem;
		margin-block-end: 3rem;
		padding-top: 0;
		padding-bottom: 1.5rem;
		/* Above banner fill; below __inner (5) so sun stays behind the words. */
		z-index: 1;
		overflow: visible;
	}

	.lwt-archive-banner .wp-block-query-title,
	.lwt-archive-banner__title {
		font-size: clamp(2.5rem, 5vw, 3.25rem) !important;
		line-height: 1.2 !important;
		text-align: center !important;
	}

	.lwt-archive-banner .wp-block-term-description,
	.lwt-archive-banner__description {
		max-width: 28rem !important;
		padding-top: 0 !important;
		text-align: center !important;
		font-size: 1rem !important;
		line-height: 2.1875rem !important; /* 35px */
	}
}

@media (max-width: 781px) {
	/* Clear the overlapping mobile wordmark on the standalone posts index. */
	.lwt-posts-intro:has(.lwt-archive-breadcrumbs) {
		padding-block-start: 2rem;
	}

	.lwt-archive-banner {
		padding-top: 2rem;
		padding-right: 1.5rem;
		padding-bottom: 1.25rem;
		padding-left: 1.5rem;
	}

	.lwt-archive-banner + .block-area {
		margin-bottom: 2.5rem;
		margin-block-end: 2.5rem;
	}

	.lwt-archive-banner__inner {
		max-width: none;
		row-gap: 1.5rem;
	}

	.lwt-archive-banner .wp-block-query-title,
	.lwt-archive-banner__title {
		font-size: 2.5rem; /* 40px — Figma CATEGORY Mobile */
		line-height: 1.2;
	}

	.lwt-archive-banner .wp-block-term-description,
	.lwt-archive-banner__description {
		max-width: 19.3125rem; /* 309px */
	}
}

/* -------------------------------------------------------------------------
   Facet bar
   ------------------------------------------------------------------------- */

/*
 * Archive shell stays within the viewport; tiles shrink via grid tracks below.
 * Keep overflow visible so open facet panels aren’t clipped.
 */
.lwt-posts-archive {
	box-sizing: border-box;
	max-width: 100%;
	min-width: 0;
	padding-inline: 20px;
	overflow: visible;
}

.lwt-facet-bar {
	overflow: visible;
}

/* Let FacetWP tiles participate in the bar grid (shortcode block wraps them). */
.lwt-facet-bar .wp-block-shortcode {
	display: contents;
}

.lwt-facet-bar {
	position: relative;
	z-index: 20;
	box-sizing: border-box;
	/* Grid beats WP is-layout-flex and shrinks tracks below 331/256 when needed. */
	display: grid !important;
	grid-template-columns:
		max-content
		repeat(3, minmax(0, 331px))
		minmax(0, 256px);
	align-items: start;
	column-gap: clamp(0.75rem, 1.5vw, 1.4375rem); /* 12px → 23px */
	row-gap: 0;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.lwt-facet-bar > * {
	margin-block-start: 0 !important;
	margin-block-end: 0 !important;
	min-width: 0;
}

.lwt-facet-bar .lwt-facet-bar__label {
	display: flex;
	align-items: center;
	box-sizing: border-box;
	height: 52px;
	margin: 0;
	color: var(--wp--preset--color--black);
	font-family: var(--wp--preset--font-family--september-spirit-all-caps);
	/* Ease down before the 1200px 2-up layout so the label doesn’t shove tiles out. */
	font-size: clamp(1.875rem, 2.8vw, var(--wp--preset--font-size--heading-6));
	font-style: normal;
	font-weight: 400;
	line-height: 1.1;
	white-space: nowrap;
	min-width: max-content;
}

.lwt-facet-bar .facetwp-facet {
	position: relative;
	z-index: 1;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	height: 52px;
	margin: 0 !important;
	overflow: visible;
}

.lwt-facet-bar .facetwp-facet-search,
.lwt-facet-bar .facetwp-type-search {
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

/* ---- Checkbox & radio facets → closed trigger + overlay panel ---- */

.lwt-facet-bar :is(.facetwp-type-checkboxes, .facetwp-type-radio) {
	position: relative;
	box-sizing: border-box;
	height: 52px;
	overflow: hidden;
	border: 2px solid #7fa6af;
	background-color: #fffcf7;
	cursor: pointer;
}

.lwt-facet-bar .lwt-facet-trigger {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	width: 100%;
	border: 0;
	border-radius: 0;
	background-color: transparent;
	text-align: start;
	cursor: pointer;
	position: relative;
	z-index: 2;
	height: 52px;
	padding: 0 48px 0 26px;
	color: var(--wp--preset--color--black);
	font-family: var(--wp--preset--font-family--manrope);
	font-size: 17px;
	font-weight: 500;
	letter-spacing: 2.21px;
	line-height: normal;
	text-transform: uppercase;
	background-image: url("../icons/facet/chevron-down.svg");
	background-repeat: no-repeat;
	background-position: right 18px center;
	background-size: 14px 7px;
}

.lwt-facet-bar :is(.facetwp-type-checkboxes, .facetwp-type-radio) .lwt-facet-panel {
	display: none;
}

.lwt-facet-bar :is(.facetwp-type-checkboxes, .facetwp-type-radio).is-open {
	z-index: 40;
	overflow: visible;
	border-color: #7fa6af;
	background-color: #fffcf7;
	cursor: default;
}

.lwt-facet-bar .is-open > .lwt-facet-trigger {
	pointer-events: auto;
	cursor: pointer;
	background-color: #fffcf7;
	border-bottom: 2px solid #7fa6af;
}

.lwt-facet-bar :is(.facetwp-type-checkboxes, .facetwp-type-radio).is-open .lwt-facet-panel {
	display: block;
	position: absolute;
	top: 100%;
	left: -2px;
	z-index: 1;
	box-sizing: border-box;
	width: calc(100% + 4px);
	max-height: 1087px;
	overflow-x: hidden;
	overflow-y: auto;
	padding: 30px 0 40px;
	border: 2px solid #7fa6af;
	border-top: 0;
	background-color: #fffcf7;
}

/* Option rows: Inter Light 19/46 — Figma hierarchy tree. */
.lwt-facet-bar :is(.facetwp-type-checkboxes, .facetwp-type-radio) :is(.facetwp-checkbox, .facetwp-radio) {
	display: flex;
	align-items: center;
	gap: 12px;
	box-sizing: border-box;
	min-height: 46px;
	margin: 0 16px 0 28px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--wp--preset--color--black);
	font-family: var(--wp--preset--font-family--inter);
	font-size: 19px;
	font-weight: 300;
	letter-spacing: normal;
	line-height: 46px;
	text-transform: none;
	cursor: pointer;
}

.lwt-facet-bar :is(.facetwp-type-checkboxes, .facetwp-type-radio) .lwt-facet-panel > :is(.facetwp-checkbox, .facetwp-radio):first-child {
	margin-top: 0;
}

/* Choice glyph (after the expand chevron, when a row has one). */
.lwt-facet-bar :is(.facetwp-type-checkboxes, .facetwp-type-radio) :is(.facetwp-checkbox, .facetwp-radio)::before {
	content: "";
	flex: 0 0 32px;
	order: 1;
	box-sizing: border-box;
	width: 32px;
	height: 32px;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 32px 32px;
}

.lwt-facet-bar :is(.facetwp-type-checkboxes, .facetwp-type-radio) :is(.facetwp-checkbox, .facetwp-radio)::before {
	background-image: url("../icons/facet/checkbox.svg");
}

.lwt-facet-bar :is(.facetwp-type-checkboxes, .facetwp-type-radio) :is(.facetwp-checkbox, .facetwp-radio).checked::before {
	background-image: url("../icons/facet/checkbox-checked.svg");
}

/* FacetWP radio facets use sprite backgrounds; glyphs come from ::before. */
.lwt-facet-bar .facetwp-type-radio :is(.facetwp-checkbox, .facetwp-radio),
.lwt-facet-bar .facetwp-type-radio :is(.facetwp-checkbox, .facetwp-radio).checked {
	background: none !important;
	padding-left: 0 !important;
}

.lwt-facet-bar :is(.facetwp-type-checkboxes, .facetwp-type-radio) :is(.facetwp-checkbox, .facetwp-radio) .facetwp-display-value {
	order: 2;
	flex: 1 1 auto;
	min-width: 0;
	padding: 0;
}

.lwt-facet-bar :is(.facetwp-type-checkboxes, .facetwp-type-radio) :is(.facetwp-checkbox, .facetwp-radio) .facetwp-counter {
	display: none;
}

/* FacetWP owns the checkbox state and hierarchy. Each branch has a separate disclosure. */
.lwt-facet-bar .facetwp-facet-region.is-open .lwt-facet-panel {
	max-height: min(28rem, 55dvh);
	overscroll-behavior: contain;
}

.lwt-facet-bar .facetwp-facet-region .facetwp-depth {
	margin-inline-start: 0;
	padding-inline-start: 0.85rem;
}

.lwt-facet-bar .facetwp-facet-region .facetwp-checkbox {
	min-height: 44px;
	padding-block: 0.35rem;
	line-height: 1.35;
	white-space: normal;
	overflow-wrap: anywhere;
}

.lwt-facet-bar .facetwp-facet-region .facetwp-checkbox[aria-checked="mixed"]::before {
	content: "−";
	color: #7fa6af;
	display: grid;
	place-items: center;
	font: 500 1.25em/1 var(--wp--preset--font-family--manrope);
}

.lwt-facet-bar .lwt-facet-branch {
	float: right;
	position: relative;
	z-index: 1;
	width: 44px;
	height: 44px;
	padding: 0;
	margin-inline-end: 0.5rem;
	border: 0;
	background: transparent url("../icons/facet/chevron-down.svg") center / 14px 7px no-repeat;
	transform: rotate(-90deg);
	cursor: pointer;
}

.lwt-facet-bar .lwt-facet-branch[aria-expanded="true"] {
	transform: none;
}

.lwt-facet-bar .lwt-facet-branch + .facetwp-checkbox {
	margin-inline-end: 3.5rem;
}

.lwt-facet-bar .lwt-facet-branch + .facetwp-checkbox .facetwp-expand {
	display: none;
}

.lwt-facet-bar .lwt-facet-clear {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 46px;
	margin: 0 16px 0 28px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--wp--preset--color--black);
	font: 300 19px/1.35 var(--wp--preset--font-family--inter);
	cursor: pointer;
}

.lwt-facet-bar .lwt-facet-clear::before {
	content: "";
	width: 32px;
	height: 32px;
	background: url("../icons/facet/checkbox.svg") center / contain no-repeat;
}

.lwt-facet-bar .lwt-facet-clear[aria-pressed="true"]::before {
	background-image: url("../icons/facet/checkbox-checked.svg");
}

.lwt-facet-bar .facetwp-facet.facetwp-facet-clear_filters {
	grid-column: 1 / -1;
	justify-self: end;
	width: auto !important;
	height: auto !important;
	padding-block-start: 0.25rem;
}

.lwt-facet-bar .facetwp-facet-clear_filters:empty {
	display: none;
}

.lwt-facet-bar .facetwp-reset {
	min-height: 28px;
	padding: 0.125rem 0;
	border: 0;
	background: transparent;
	color: var(--wp--preset--color--black);
	font: 500 var(--wp--preset--font-size--heading-4)/1.4 var(--wp--preset--font-family--manrope);
	letter-spacing: 0.13em;
	text-transform: uppercase;
	text-decoration: underline;
	text-underline-offset: 0.15em;
	cursor: pointer;
}

.lwt-facet-bar :is(.lwt-facet-trigger, .lwt-facet-clear, .facetwp-reset, .lwt-facet-branch, .facetwp-checkbox, .facetwp-radio):focus-visible {
	outline: 2px solid currentColor;
	outline-offset: -3px;
}

/* ---- Native <select> ---- */

.lwt-facet-bar .facetwp-dropdown {
	box-sizing: border-box;
	display: block;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	height: 52px;
	margin: 0;
	padding: 0 48px 0 26px;
	border: 2px solid #7fa6af;
	border-radius: 0;
	background-color: #fffcf7;
	background-image: url("../icons/facet/chevron-down.svg");
	background-repeat: no-repeat;
	background-position: right 18px center;
	background-size: 14px 7px;
	color: var(--wp--preset--color--black);
	font-family: var(--wp--preset--font-family--manrope);
	font-size: 17px;
	font-weight: 500;
	letter-spacing: 2.21px;
	line-height: 48px;
	text-transform: uppercase;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}

/* ---- fSelect: continuous open panel ---- */

.lwt-facet-bar .facetwp-type-fselect .fs-wrap {
	position: relative;
	width: 100% !important;
}

.lwt-facet-bar .facetwp-type-fselect .fs-wrap.fs-open {
	z-index: 40;
}

.lwt-facet-bar .facetwp-type-fselect .fs-label-wrap {
	box-sizing: border-box;
	width: 100%;
	height: 52px;
	border: 2px solid #7fa6af !important;
	border-radius: 0 !important;
	background-color: #fffcf7 !important;
	background-image: url("../icons/facet/chevron-down.svg");
	background-repeat: no-repeat;
	background-position: right 18px top 22px;
	background-size: 14px 7px;
}

.lwt-facet-bar .facetwp-type-fselect .fs-wrap.fs-open .fs-label-wrap {
	border-bottom-color: transparent !important;
}

.lwt-facet-bar .facetwp-type-fselect .fs-label {
	height: 48px !important;
	padding: 14px 48px 0 26px !important;
	border: 0 !important;
	background: transparent !important;
	color: var(--wp--preset--color--black) !important;
	font-family: var(--wp--preset--font-family--manrope) !important;
	font-size: 17px !important;
	font-weight: 500 !important;
	letter-spacing: 2.21px !important;
	line-height: normal !important;
	text-transform: uppercase !important;
}

.lwt-facet-bar .facetwp-type-fselect .fs-arrow {
	display: none !important;
}

.lwt-facet-bar .facetwp-type-fselect .fs-dropdown {
	box-sizing: border-box;
	top: calc(100% - 2px) !important;
	width: 100% !important;
	max-height: 1035px !important;
	margin: 0 !important;
	padding: 28px 0 40px !important;
	border: 2px solid #7fa6af !important;
	border-top: 0 !important;
	border-radius: 0 !important;
	background: #fffcf7 !important;
	box-shadow: none !important;
}

.lwt-facet-bar .facetwp-type-fselect .fs-options {
	max-height: none !important;
}

.lwt-facet-bar .facetwp-type-fselect .fs-option {
	display: flex !important;
	align-items: center;
	gap: 12px;
	box-sizing: border-box;
	min-height: 46px;
	margin: 0 16px 0 28px !important;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	color: var(--wp--preset--color--black) !important;
	font-family: var(--wp--preset--font-family--inter) !important;
	font-size: 19px !important;
	font-weight: 300 !important;
	letter-spacing: normal !important;
	line-height: 46px !important;
	text-transform: none !important;
}

.lwt-facet-bar .facetwp-type-fselect .fs-option::before {
	content: "";
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
	background: url("../icons/facet/checkbox.svg") center / 32px 32px no-repeat;
}

.lwt-facet-bar .facetwp-type-fselect .fs-option:first-child {
	margin-top: 0 !important;
}

.lwt-facet-bar .facetwp-type-fselect .fs-option.selected::before {
	background-image: url("../icons/facet/checkbox-checked.svg");
}

.lwt-facet-bar .facetwp-type-fselect .fs-checkbox,
.lwt-facet-bar .facetwp-type-fselect .fs-option .fs-checkbox,
.lwt-facet-bar .facetwp-type-fselect .fs-search {
	display: none !important;
}

/* ---- Search (border only, no fill) ---- */

.lwt-facet-bar .facetwp-input-wrap {
	display: block;
	position: relative;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.lwt-facet-bar .facetwp-input-wrap .facetwp-icon {
	display: none;
}

.lwt-facet-bar .facetwp-search {
	box-sizing: border-box;
	display: block;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	height: 52px;
	margin: 0;
	padding: 0 48px 0 26px;
	border: 2px solid #7fa6af;
	border-radius: 0;
	background-color: transparent;
	background-image: url("../icons/facet/search.svg");
	background-repeat: no-repeat;
	background-position: right 18px center;
	background-size: 17px 17px;
	color: var(--wp--preset--color--black);
	font-family: var(--wp--preset--font-family--manrope);
	font-size: 17px;
	font-weight: 500;
	letter-spacing: 2.21px;
	line-height: 48px;
	text-transform: uppercase;
	-webkit-appearance: none;
	appearance: none;
}

.lwt-facet-bar .facetwp-search::placeholder {
	color: var(--wp--preset--color--black);
	opacity: 1;
	font-family: var(--wp--preset--font-family--manrope);
	font-size: 17px;
	font-weight: 500;
	letter-spacing: 2.21px;
	text-transform: uppercase;
}

.lwt-facet-bar .facetwp-dropdown:focus-visible,
.lwt-facet-bar .facetwp-search:focus-visible {
	outline: 2px solid var(--wp--preset--color--moss);
	outline-offset: 2px;
}

@media (max-width: 1200px) {
	/*
	 * CSS grid guarantees equal columns — Flex + FacetWP search
	 * intrinsic min-width was stretching the search tile.
	 */
	.lwt-facet-bar {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		justify-content: center;
		align-items: start;
		column-gap: 16px;
		row-gap: 16px;
	}

	.lwt-facet-bar .lwt-facet-bar__label {
		grid-column: 1 / -1;
		display: flex;
		justify-content: center;
		height: auto;
		margin: 0 0 0.25rem;
		font-size: clamp(1.75rem, 4vw, 2.1875rem);
		line-height: 1.1;
		text-align: center;
	}

	.lwt-facet-bar .facetwp-facet,
	.lwt-facet-bar .facetwp-facet-search,
	.lwt-facet-bar .facetwp-type-search {
		box-sizing: border-box !important;
		flex: none !important;
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		height: 2.75rem !important;
	}

	.lwt-facet-bar :is(.facetwp-type-checkboxes, .facetwp-type-radio) {
		height: 2.75rem !important;
		border-width: 1.5px;
	}

	.lwt-facet-bar .lwt-facet-trigger {
		height: 2.75rem;
		padding: 0 2.25rem 0 1.1rem;
		font-size: 0.8125rem;
		letter-spacing: 0.13em;
		background-position: right 0.85rem center;
		background-size: 11px 6px;
	}

	.lwt-facet-bar .facetwp-input-wrap,
	.lwt-facet-bar .facetwp-search {
		box-sizing: border-box !important;
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
	}

	.lwt-facet-bar .facetwp-search {
		height: 2.75rem !important;
		padding: 0 2.25rem 0 1.1rem;
		border-width: 1.5px;
		font-size: 0.8125rem !important;
		letter-spacing: 0.13em;
		line-height: 2.5rem;
		background-size: 12px 12px;
		background-position: right 0.85rem center;
	}

	.lwt-facet-bar .facetwp-search::placeholder {
		font-size: 0.8125rem !important;
		letter-spacing: 0.13em;
	}

	.lwt-facet-bar .facetwp-type-fselect .fs-label-wrap {
		height: 2.75rem;
		border-width: 1.5px;
		background-size: 11px 6px;
		background-position: right 0.85rem center;
	}

	.lwt-facet-bar .facetwp-type-fselect .fs-label {
		padding: 0.7rem 2.25rem 0 1.1rem;
		font-size: 0.8125rem;
		letter-spacing: 0.13em;
	}
}

/* Align the attached panel with the control's border in the two-column layout. */
@media (min-width: 782px) and (max-width: 1200px) {
	.lwt-facet-bar .facetwp-facet-region {
		border-inline-width: 1px;
	}

	.lwt-facet-bar .facetwp-facet-region.is-open .lwt-facet-panel {
		inset-inline: -1px;
		width: auto;
		border-inline-width: 1px;
	}
}

/* Mobile — stack facets full-width (not 2×2). */
@media (max-width: 781px) {
	.lwt-facet-bar {
		grid-template-columns: minmax(0, 1fr);
		justify-content: stretch;
		column-gap: 0;
		row-gap: 0.9375rem;
	}

	.lwt-facet-bar .lwt-facet-bar__label {
		margin-bottom: 0.75rem;
		font-size: 2.1875rem; /* ~35px */
		line-height: 2.0625rem;
	}

	.lwt-facet-bar .facetwp-facet,
	.lwt-facet-bar .facetwp-facet-search,
	.lwt-facet-bar .facetwp-type-search {
		width: 100% !important;
		max-width: 100% !important;
		height: 2.375rem !important; /* 38px */
	}

	.lwt-facet-bar :is(.facetwp-type-checkboxes, .facetwp-type-radio) {
		height: 2.375rem !important;
	}

	.lwt-facet-bar .lwt-facet-trigger {
		height: 2.375rem;
		padding: 0 2rem 0 1rem;
		font-size: 0.77rem; /* ~12.3px */
		background-position: right 0.75rem center;
		background-size: 10px 5px;
	}

	.lwt-facet-bar .is-open > .lwt-facet-trigger {
		border-bottom-width: 1.5px;
	}

	/* Keep the next filter reachable while a branch is open on touch screens. */
	.lwt-facet-bar :is(.facetwp-type-checkboxes, .facetwp-type-radio).is-open {
		height: auto !important;
	}

	.lwt-facet-bar :is(.facetwp-type-checkboxes, .facetwp-type-radio).is-open .lwt-facet-panel {
		position: static;
		width: 100%;
		max-height: 50dvh;
		padding: 0.5rem 0;
		border: 0;
	}

	.lwt-facet-bar .lwt-facet-clear {
		min-height: 44px;
		margin-inline: 1rem 0.75rem;
		font-size: 1rem;
	}

	.lwt-facet-bar .lwt-facet-clear::before {
		width: 1.5rem;
		height: 1.5rem;
	}

	.lwt-facet-bar :is(.facetwp-type-checkboxes, .facetwp-type-radio) :is(.facetwp-checkbox, .facetwp-radio) {
		min-height: 2.5rem;
		margin: 0 0.75rem 0 1rem;
		font-size: 1rem;
		line-height: 2.5rem;
	}

	.lwt-facet-bar .facetwp-facet-region .facetwp-checkbox {
		min-height: 44px;
		line-height: 1.35;
	}

	.lwt-facet-bar :is(.facetwp-type-checkboxes, .facetwp-type-radio) :is(.facetwp-checkbox, .facetwp-radio)::before {
		flex-basis: 1.5rem;
		background-size: 1.5rem 1.5rem;
	}

	.lwt-facet-bar .facetwp-search {
		height: 2.375rem !important;
		padding: 0 2rem 0 1rem;
		font-size: 0.77rem !important;
		line-height: 2.2rem;
		background-size: 10px 10px;
		background-position: right 0.75rem center;
	}

	.lwt-facet-bar .facetwp-search::placeholder {
		font-size: 0.77rem !important;
		letter-spacing: 0.13em;
	}

	.lwt-facet-bar .facetwp-type-fselect .fs-label-wrap {
		height: 2.375rem;
		background-size: 10px 5px;
		background-position: right 0.75rem center;
	}

	.lwt-facet-bar .facetwp-type-fselect .fs-label {
		padding: 0.6rem 2rem 0 1rem;
		font-size: 0.77rem;
	}
}

/* -------------------------------------------------------------------------
   Posts grid
   ------------------------------------------------------------------------- */

.lwt-posts-grid {
	width: 100%;
	/* Bottom spacing when no pager follows the grid. */
	margin-bottom: 120px;
}

/* Pager present → it owns the spacing (margin-top / own margin-bottom). */
.js .lwt-posts-archive:has(.facetwp-pager) .lwt-posts-grid,
.no-js .lwt-posts-archive:has(.lwt-pagination-seo a) .lwt-posts-grid {
	margin-bottom: 0;
}

.lwt-posts-grid .lwt-posts-grid__card {
	width: 100%;
	height: 100%;
}

.lwt-posts-grid .wp-block-post-featured-image {
	width: 100%;
	overflow: hidden;
}

.lwt-posts-grid .wp-block-post-featured-image a {
	display: block;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.lwt-posts-grid .wp-block-post-featured-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform-origin: center center;
}

@media (prefers-reduced-motion: no-preference) {
	.lwt-posts-grid .wp-block-post-featured-image img {
		transition: transform 0.8s ease-out;
	}

	.lwt-posts-grid .wp-block-post-featured-image a:hover img,
	.lwt-posts-grid .wp-block-post-featured-image a:focus-visible img {
		transform: scale(1.02);
	}
}

.lwt-posts-grid .lwt-posts-grid__category a,
.lwt-posts-grid .lwt-posts-grid__title a {
	text-decoration: none;
}

.lwt-posts-grid .lwt-posts-grid__category a {
	transition: color var(--wp--custom--category-link--hover-duration) ease;
}

.lwt-posts-grid .lwt-posts-grid__category a:hover,
.lwt-posts-grid .lwt-posts-grid__category a:focus-visible {
	color: var(--wp--custom--category-link--hover-color);
}

.lwt-posts-grid .lwt-posts-grid__title a:hover,
.lwt-posts-grid .lwt-posts-grid__title a:focus-visible {
	color: var(--wp--preset--color--sea);
}

.lwt-posts-grid .lwt-posts-grid__title {
	font-synthesis: none;
}

/* Mid desktop: ease the Figma 144px column gap so 3-up cards breathe. */
@media (max-width: 1300px) {
	.lwt-posts-grid .wp-block-post-template.is-layout-grid {
		column-gap: var(--wp--preset--spacing--80) !important; /* 80px */
		row-gap: var(--wp--preset--spacing--80) !important;
	}
}

@media (max-width: 1024px) {
	.lwt-posts-grid .wp-block-post-template.is-layout-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: var(--wp--preset--spacing--80) !important;
	}
}

/* Figma CATEGORY Mobile 1:2 — keep a 2-up grid (not single column). */
@media (max-width: 781px) {
	.lwt-posts-archive {
		padding-inline: 1.5rem;
	}

	.lwt-posts-grid {
		margin-bottom: 4rem;
	}

	.lwt-posts-grid .wp-block-post-template.is-layout-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		column-gap: 1.375rem !important; /* ~22px */
		row-gap: 2.5rem !important;
	}

	.lwt-posts-grid .lwt-posts-grid__card {
		align-items: flex-start !important;
	}

	.lwt-posts-grid .wp-block-post-featured-image,
	.lwt-posts-grid .wp-block-post-featured-image img {
		aspect-ratio: 182 / 228 !important;
	}

	.lwt-posts-grid .lwt-posts-grid__category {
		margin-top: 1.375rem !important; /* ~22px image → category */
		text-align: left !important;
		font-size: 0.625rem !important; /* 10px */
		letter-spacing: 0.13em !important;
	}

	.lwt-posts-grid .lwt-posts-grid__title {
		margin-top: 1rem !important;
		text-align: left !important;
		font-size: 1.25rem !important; /* 20px */
		line-height: 1.875rem !important; /* 30px */
	}
}

/* Search / blog index: match archive title treatment on small screens. */
@media (max-width: 1200px) {
	.search #main > .wp-block-query-title,
	.blog #main > .wp-block-query-title,
	.home.blog #main > .wp-block-query-title {
		margin: 2.5rem 1.5rem 1.5rem;
		color: var(--wp--preset--color--black);
		font-family: var(--wp--preset--font-family--editors-note);
		font-size: clamp(2.5rem, 5vw, 3.25rem);
		font-weight: 200;
		line-height: 1.2;
		text-align: center;
	}

	.lwt-posts-archive {
		--wp--style--block-gap: 2.5rem;
	}
}

/* -------------------------------------------------------------------------
   Pagination (Figma 2106:63) — Prev | palm | Next
   FacetWP AJAX pager for JS users; crawlable WP pagination for SEO / no-JS.
   @see https://facetwp.com/help-center/developers/the-facetwp-url/#facetwp-pagination-seo-and-accessibility
   ------------------------------------------------------------------------- */

/* Hide crawlable WP pagination when JS is available (users get FacetWP pager). */
.js .lwt-pagination-seo {
	display: none !important;
}

/* Hide FacetWP AJAX pager when JS is unavailable (users/crawlers get WP links). */
.no-js .facetwp-facet-pagination,
.no-js .facetwp-type-pager {
	display: none !important;
}

.lwt-posts-archive .facetwp-facet-pagination,
.lwt-posts-archive .facetwp-type-pager {
	margin-top: 165px;
}

/* FacetWP still outputs the facet wrapper when inner HTML is empty. */
.lwt-posts-archive .facetwp-facet-pagination:not(:has(.facetwp-pager)),
.lwt-posts-archive .facetwp-type-pager:not(:has(.facetwp-pager)) {
	display: none;
}

.wp-block-query-pagination,
.lwt-pagination,
.facetwp-facet-pagination .facetwp-pager,
.facetwp-type-pager .facetwp-pager,
.facetwp-pager.lwt-pagination {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) 81px minmax(0, 1fr);
	align-items: center;
	column-gap: clamp(32px, 6vw, 96px);
	width: 100%;
	margin: 0 0 155px;
	color: #5b5628;
	font-family: var(--wp--preset--font-family--september-spirit-all-caps);
	font-size: 70px;
	font-weight: 400;
	line-height: 0.93;
	text-align: center;
}

.wp-block-query-pagination {
	margin-block-start: var(--wp--preset--spacing--131);
}

.wp-block-query-pagination .wp-block-query-pagination-numbers,
.facetwp-pager .facetwp-page:not(.prev):not(.next) {
	display: none !important;
}

.wp-block-query-pagination::after,
.facetwp-pager::after {
	content: "";
	grid-column: 2;
	grid-row: 1;
	width: 81px;
	height: 110px;
	background: url("../icons/pagination/palm-tree.svg") center / contain no-repeat;
	justify-self: center;
	transform-origin: 50% 100%;
	animation: lwt-palm-sway 3.5s ease-in-out infinite;
}

@keyframes lwt-palm-sway {
	0%,
	100% {
		transform: rotate(-2deg);
	}

	50% {
		transform: rotate(2deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.wp-block-query-pagination::after,
	.facetwp-pager::after {
		animation: none;
	}
}

.wp-block-query-pagination .wp-block-query-pagination-previous,
.facetwp-pager .facetwp-page.prev {
	display: inline-flex;
	grid-column: 1;
	grid-row: 1;
	align-items: center;
	justify-self: end;
	gap: 20px;
	color: #5b5628;
	text-decoration: none;
	cursor: pointer;
}

.wp-block-query-pagination .wp-block-query-pagination-next,
.facetwp-pager .facetwp-page.next {
	display: inline-flex;
	grid-column: 3;
	grid-row: 1;
	align-items: center;
	justify-self: start;
	gap: 20px;
	color: #5b5628;
	text-decoration: none;
	cursor: pointer;
}

.wp-block-query-pagination .wp-block-query-pagination-previous::before,
.facetwp-pager .facetwp-page.prev::before {
	content: "";
	flex: 0 0 45px;
	width: 45px;
	height: 23px;
	background: url("../icons/pagination/arrow-next.svg") center / contain no-repeat;
	transform: scaleX(-1);
}

.wp-block-query-pagination .wp-block-query-pagination-next::after,
.facetwp-pager .facetwp-page.next::after {
	content: "";
	flex: 0 0 45px;
	width: 45px;
	height: 23px;
	background: url("../icons/pagination/arrow-next.svg") center / contain no-repeat;
}

@media (prefers-reduced-motion: no-preference) {
	.wp-block-query-pagination .wp-block-query-pagination-previous::before,
	.wp-block-query-pagination .wp-block-query-pagination-next::after,
	.facetwp-pager .facetwp-page.prev::before,
	.facetwp-pager .facetwp-page.next::after {
		transition: translate 0.25s ease;
	}

	.wp-block-query-pagination .wp-block-query-pagination-previous:hover::before,
	.wp-block-query-pagination .wp-block-query-pagination-previous:focus-visible::before,
	.facetwp-pager .facetwp-page.prev:hover::before,
	.facetwp-pager .facetwp-page.prev:focus-visible::before {
		translate: -0.375rem 0;
	}

	.wp-block-query-pagination .wp-block-query-pagination-next:hover::after,
	.wp-block-query-pagination .wp-block-query-pagination-next:focus-visible::after,
	.facetwp-pager .facetwp-page.next:hover::after,
	.facetwp-pager .facetwp-page.next:focus-visible::after {
		translate: 0.375rem 0;
	}
}

.wp-block-query-pagination .wp-block-query-pagination-previous .wp-block-query-pagination-previous-arrow,
.wp-block-query-pagination .wp-block-query-pagination-next .wp-block-query-pagination-next-arrow {
	display: none;
}

.wp-block-query-pagination a:hover,
.facetwp-pager a.facetwp-page.prev:hover,
.facetwp-pager a.facetwp-page.next:hover {
	color: var(--wp--preset--color--moss);
}

.wp-block-query-pagination .is-disabled,
.facetwp-pager .facetwp-page.prev.is-disabled,
.facetwp-pager .facetwp-page.next.is-disabled {
	color: rgba(91, 86, 40, 0.5);
	cursor: default;
	pointer-events: none;
}

.wp-block-query-pagination .is-disabled::before,
.wp-block-query-pagination .is-disabled::after,
.facetwp-pager .facetwp-page.prev.is-disabled::before,
.facetwp-pager .facetwp-page.next.is-disabled::after {
	opacity: 0.5;
}

@media (max-width: 782px) {
	.wp-block-query-pagination,
	.lwt-pagination,
	.facetwp-facet-pagination .facetwp-pager,
	.facetwp-type-pager .facetwp-pager,
	.facetwp-pager.lwt-pagination {
		grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr);
		column-gap: 1.25rem;
		font-size: 2.1875rem; /* ~35px — Figma mobile */
	}

	.wp-block-query-pagination::after,
	.facetwp-pager::after {
		width: 40px;
		height: 55px;
	}

	.wp-block-query-pagination .wp-block-query-pagination-previous,
	.wp-block-query-pagination .wp-block-query-pagination-next,
	.facetwp-pager .facetwp-page.prev,
	.facetwp-pager .facetwp-page.next {
		gap: 10px;
	}

	.wp-block-query-pagination .wp-block-query-pagination-previous::before,
	.wp-block-query-pagination .wp-block-query-pagination-next::after,
	.facetwp-pager .facetwp-page.prev::before,
	.facetwp-pager .facetwp-page.next::after {
		flex-basis: 22px;
		width: 22px;
		height: 11px;
	}
}

/* Tablet-down spacing — after desktop base so these win the cascade. */
@media (max-width: 1200px) {
	.lwt-posts-archive .facetwp-facet-pagination,
	.lwt-posts-archive .facetwp-type-pager {
		margin-top: 50px !important;
	}

	.wp-block-query-pagination,
	.lwt-pagination,
	.facetwp-facet-pagination .facetwp-pager,
	.facetwp-type-pager .facetwp-pager,
	.facetwp-pager.lwt-pagination {
		margin-bottom: 50px !important;
	}

	.js .lwt-posts-archive:has(.facetwp-pager) .lwt-posts-grid,
	.no-js .lwt-posts-archive:has(.lwt-pagination-seo a) .lwt-posts-grid {
		margin-top: 50px !important;
	}
}
