/**
 * ElSahn Greens — HARVEST WINDOW site foundation.
 *
 * Tokens come from src/Tokens.php via the framework (`--mbw-*` custom
 * properties, literal fallbacks everywhere). Logical properties throughout, so
 * the Arabic (RTL) locale mirrors from this one sheet.
 *
 * MOTION SAFETY: this sheet never hides content. Entrance states are set by JS
 * only (assets/js/motion.js), so no-JS, reduced-motion and a failed island
 * import all render the finished page.
 *
 * Contents
 *   1.  Design tokens → site aliases
 *   1b. Metric-matched fallback faces
 *   2.  Base + accessibility
 *   3.  Container, rail, band engine
 *   4.  Typography components
 *   5.  Buttons
 *   6.  Spec primitives (chips, tables, provisional)
 *   7.  Cards + specimen media
 *   8.  Icons + tagged placeholders
 *   9.  Layout utilities
 *   10. Framework block restyles
 *   11. WordPress alignments, search, pagination
 *   12. Forms
 *   13. Reduced motion
 */

/* ------------------------------------------------------------------------- *
 * 1. Design tokens → site aliases
 * ------------------------------------------------------------------------- */

:root {
	/* Brand — sampled from the logo mark. */
	--es-leaf: var(--mbw-color-primary, #9ccc66);
	--es-leaf-deep: #46781f;
	--es-leaf-soft: var(--mbw-color-primary-container, #dcecc4);
	--es-gold: var(--mbw-color-tertiary, #eec344);
	--es-gold-deep: #7a5c00;
	--es-gold-soft: var(--mbw-color-tertiary-container, #faeec6);

	/* Surfaces. */
	--es-grove: var(--mbw-color-secondary, #132a16);
	--es-grove-hi: var(--mbw-color-secondary-container, #1c3a1f);
	--es-canvas: var(--mbw-color-background, #f7f8f2);
	--es-tint: var(--mbw-color-surface-variant, #edf0e4);
	--es-white: var(--mbw-color-surface, #ffffff);
	--es-ink: var(--mbw-color-on-surface, #141a12);
	--es-mist: #f4f7ee;
	--es-muted: var(--mbw-color-on-surface-variant, #5a6552);
	--es-line: var(--mbw-color-outline-variant, #dde3d2);

	/* Type. */
	--es-font-display: var(--wp--preset--font-family--heading, "Archivo", "Archivo Fallback", "Segoe UI", system-ui, sans-serif);
	--es-font-body: var(--wp--preset--font-family--base, "Instrument Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
	--es-font-mono: var(--wp--preset--font-family--mono, ui-monospace, "SFMono-Regular", "Liberation Mono", monospace);

	/* Measure + rhythm. */
	--es-wide: var(--mbw-wide-size, 1240px);
	--es-prose: var(--mbw-content-size, 680px);
	--es-gutter: clamp(1.15rem, 4vw, 2.5rem);
	--es-band-pad: clamp(3.75rem, 8vw, 7.5rem);
	--es-rail: clamp(0px, 6vw, 88px);

	/* Shape. */
	--es-r-card: var(--mbw-radius-card, 14px);
	--es-r-surface: var(--mbw-radius-surface, 20px);
	--es-r-chip: var(--mbw-radius-chip, 6px);

	/* Motion. NOTE: the framework emits these WITHOUT a `motion-` prefix. */
	--es-ease: var(--mbw-ease-out, cubic-bezier(0.16, 1, 0.3, 1));
	--es-ease-std: var(--mbw-ease-standard, cubic-bezier(0.4, 0, 0.2, 1));
	--es-fast: var(--mbw-duration-fast, 220ms);
	--es-mid: var(--mbw-duration-mid, 620ms);

	/* Elevation, composed here because TokenCss strips ';' from values. */
	--es-shadow-card: var(--mbw-shadow-sm, 0 1px 2px rgba(19, 42, 22, 0.06)), var(--mbw-shadow-md, 0 12px 32px rgba(19, 42, 22, 0.1));
	--es-shadow-pop: var(--mbw-shadow-md, 0 12px 32px rgba(19, 42, 22, 0.1)), var(--mbw-shadow-lg, 0 28px 70px rgba(19, 42, 22, 0.18));

	/* Stacking. */
	--es-z-header: 60;
	--es-z-overlay: 70;

	/* The page-level crop accent. Overridden per crop; defaults to the brand. */
	--crop-accent: var(--es-leaf);
	--crop-accent-text: var(--es-leaf-deep);
}

/* ------------------------------------------------------------------------- *
 * 1b. Metric-matched fallback faces
 *
 * The single biggest layout shift on this site was font swap: the display face
 * is 1.25x wider than Arial and shorter per line, so the hero column jumped
 * ~85px when Archivo arrived (CLS 0.11).
 *
 * These two faces alias the local system sans and then override its metrics to
 * match the real face, measured in-browser rather than guessed:
 *   Archivo Expanded 700 = 1.2492x Arial's width, 0.9478x its line height
 *   Instrument Sans 400  = 0.9939x Arial's width, 1.0609x its line height
 *
 * They are FIRST in each stack (see src/Brand.php), so the pre-swap render is
 * already the right size and the swap moves nothing.
 * ------------------------------------------------------------------------- */

@font-face {
	font-family: "Archivo Fallback";
	src: local("Arial"), local("Helvetica"), local("Liberation Sans");
	size-adjust: 124.9%;
	ascent-override: 70.7%;
	descent-override: 16.6%;
	line-gap-override: 0%;
}

@font-face {
	font-family: "Instrument Fallback";
	src: local("Arial"), local("Helvetica"), local("Liberation Sans");
	size-adjust: 99.4%;
	ascent-override: 99.4%;
	descent-override: 23.3%;
	line-gap-override: 0%;
}

/* ------------------------------------------------------------------------- *
 * 2. Base + accessibility
 * ------------------------------------------------------------------------- */

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--es-canvas);
	color: var(--es-ink);
	font-family: var(--es-font-body);
	font-size: var(--mbw-font-size-medium, 1.0625rem);
	line-height: 1.62;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}

img,
svg,
video {
	max-inline-size: 100%;
	block-size: auto;
}

a {
	color: var(--band-link, var(--es-leaf-deep));
	text-underline-offset: 0.18em;
	text-decoration-thickness: 1px;
}

a:hover {
	text-decoration-thickness: 2px;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--band-focus, var(--es-leaf-deep));
	outline-offset: 3px;
	border-radius: 3px;
}

.es-visually-hidden {
	position: absolute !important;
	inline-size: 1px;
	block-size: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.es-skip {
	position: absolute;
	inset-block-start: -100%;
	inset-inline-start: 1rem;
	z-index: calc(var(--es-z-overlay) + 1);
	padding: 0.75rem 1.25rem;
	background: var(--es-grove);
	color: var(--es-mist);
	border-radius: 0 0 var(--es-r-chip) var(--es-r-chip);
	text-decoration: none;
}

.es-skip:focus {
	inset-block-start: 0;
}

body.es-lock {
	overflow: hidden;
}

/* ------------------------------------------------------------------------- *
 * 3. Container, rail, band engine
 * ------------------------------------------------------------------------- */

.es-container {
	inline-size: min(var(--es-wide), 100% - 2 * var(--es-gutter));
	margin-inline: auto;
}

.es-container--prose {
	inline-size: min(var(--es-prose), 100% - 2 * var(--es-gutter));
	margin-inline: auto;
}

/*
 * The band engine. Each tone re-scopes the role variables, so everything
 * inside — headings, muted text, rules, links, buttons, cards — adapts without
 * naming a colour. Components read var(--band-*) and never a raw brand token.
 */
.es-band {
	position: relative;
	padding-block: var(--es-band-pad);
	background: var(--band-bg);
	color: var(--band-ink);

	--band-bg: var(--es-canvas);
	--band-ink: var(--es-ink);
	--band-muted: var(--es-muted);
	--band-line: var(--es-line);
	--band-accent: var(--crop-accent);
	--band-accent-text: var(--crop-accent-text);
	--band-link: var(--es-leaf-deep);
	--band-focus: var(--es-leaf-deep);
	--band-surface: var(--es-white);
}

.es-band--tint {
	--band-bg: var(--es-tint);
	--band-surface: var(--es-white);
}

.es-band--grove {
	--band-bg: var(--es-grove);
	--band-ink: var(--es-mist);
	--band-muted: #a3b39c;
	--band-line: rgba(244, 247, 238, 0.16);
	--band-link: var(--es-leaf);
	--band-focus: var(--es-leaf);
	--band-accent-text: var(--es-leaf);
	--band-surface: var(--es-grove-hi);
}

.es-band--leaf {
	--band-bg: var(--es-leaf-soft);
	--band-ink: #1c3a0d;
	--band-muted: #4a6033;
	--band-line: rgba(28, 58, 13, 0.16);
	--band-link: var(--es-leaf-deep);
	--band-surface: var(--es-white);
}

.es-band--gold {
	--band-bg: var(--es-gold-soft);
	--band-ink: #3d2e00;
	--band-muted: #6b5410;
	--band-line: rgba(61, 46, 0, 0.16);
	--band-link: var(--es-gold-deep);
	--band-focus: var(--es-gold-deep);
	--band-accent: var(--es-gold);
	--band-accent-text: var(--es-gold-deep);
	--band-surface: var(--es-white);
}

.es-band--tight {
	padding-block: clamp(2.25rem, 5vw, 4rem);
}

.es-band--flush-end {
	padding-block-end: 0;
}

/*
 * The rail: a slim column carrying the section label and the crop mark. It is
 * a grid column, not a float, so it collapses to zero on narrow viewports and
 * mirrors for RTL with no extra rules.
 */
.es-railed {
	display: grid;
	grid-template-columns: var(--es-rail) minmax(0, 1fr);
	gap: 0 clamp(1rem, 3vw, 2.5rem);
	align-items: start;
}

.es-rail {
	position: sticky;
	inset-block-start: clamp(5rem, 12vh, 8rem);
	display: none;
	flex-direction: column;
	align-items: center;
	gap: 0.9rem;
	color: var(--band-muted);
}

.es-rail__mark {
	color: var(--band-accent);
}

.es-rail__label {
	font-family: var(--es-font-mono);
	font-size: 0.75rem;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	writing-mode: vertical-rl;
	white-space: nowrap;
}

.es-rail__line {
	inline-size: 1px;
	block-size: clamp(2rem, 8vh, 5rem);
	background: var(--band-line);
}

@media (min-width: 64rem) {
	.es-rail {
		display: flex;
	}
}

/* ------------------------------------------------------------------------- *
 * 4. Typography components
 * ------------------------------------------------------------------------- */

/*
 * Archivo carries a width axis; asking for 125% is what makes the display face
 * Expanded. Browsers without variable-font support simply get normal width.
 */
h1,
h2,
h3,
h4 {
	font-family: var(--es-font-display);
	font-weight: 700;
	font-stretch: 125%;
	line-height: 1.06;
	letter-spacing: -0.015em;
	text-wrap: balance;
	margin-block: 0 0.6em;
}

.es-h1 {
	font-size: clamp(2.5rem, 1.4rem + 4.8vw, 5rem);
}

.es-h2 {
	font-size: clamp(1.875rem, 1.1rem + 3.2vw, 3.25rem);
}

.es-h3 {
	font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem);
	line-height: 1.18;
}

.es-eyebrow {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin-block: 0 1rem;
	font-family: var(--es-font-mono);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--band-accent-text);
}

.es-eyebrow::before {
	content: "";
	inline-size: 1.75rem;
	block-size: 2px;
	background: var(--band-accent);
	flex: none;
}

.es-lede {
	max-inline-size: 46ch;
	font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem);
	line-height: 1.5;
	color: var(--band-muted);
	margin-block: 0 1.5rem;
}

.es-prose {
	max-inline-size: 68ch;
}

.es-prose > p {
	margin-block: 0 1.1em;
}

.es-prose > p:last-child {
	margin-block-end: 0;
}

.es-mark {
	color: var(--band-accent-text);
}

/* Stats: figures in the display face, labels in mono. */
.es-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
	gap: clamp(1.25rem, 3vw, 2.5rem);
	margin-block: 2.25rem 0;
	padding: 0;
}

.es-stats__value {
	font-family: var(--es-font-display);
	font-size: clamp(2rem, 1.4rem + 2.2vw, 3.25rem);
	font-weight: 700;
	line-height: 1;
	color: var(--band-ink);
	margin: 0;
}

.es-stats__label {
	margin: 0.5rem 0 0;
	font-family: var(--es-font-mono);
	font-size: 0.75rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--band-muted);
}

/* ------------------------------------------------------------------------- *
 * 5. Buttons
 * ------------------------------------------------------------------------- */

.es-btn-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-block: 1.75rem 0;
}

.es-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.8rem 1.5rem;
	border: 1px solid transparent;
	border-radius: var(--mbw-radius-button, 999px);
	font-family: var(--es-font-body);
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: transform var(--es-fast) var(--es-ease), background-color var(--es-fast) ease, border-color var(--es-fast) ease, color var(--es-fast) ease;
}

.es-btn:hover {
	transform: translateY(-2px);
}

.es-btn .es-icon {
	inline-size: 1.1em;
	block-size: 1.1em;
}

.es-btn--solid {
	background: var(--es-grove);
	color: var(--es-mist);
}

.es-btn--solid:hover {
	background: var(--es-grove-hi);
}

.es-btn--gold {
	background: var(--es-gold);
	color: #3d2e00;
}

.es-btn--gold:hover {
	background: #f7d267;
}

.es-btn--leaf {
	background: var(--es-leaf);
	color: #1c3a0d;
}

.es-btn--line {
	border-color: var(--band-line);
	color: var(--band-ink);
	background: transparent;
}

.es-btn--line:hover {
	border-color: var(--band-accent);
}

.es-btn--text {
	padding-inline: 0;
	color: var(--band-link);
	background: transparent;
}

.es-btn--text:hover {
	gap: 0.75rem;
	transform: none;
}

/* ------------------------------------------------------------------------- *
 * 6. Spec primitives — the "spec sheet" voice
 * ------------------------------------------------------------------------- */

.es-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	padding: 0;
	margin: 0;
	list-style: none;
}

.es-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.3rem 0.6rem;
	border: 1px solid var(--band-line);
	border-radius: var(--es-r-chip);
	background: color-mix(in srgb, var(--band-ink) 3%, transparent);
	font-family: var(--es-font-mono);
	font-size: 0.75rem;
	line-height: 1.4;
	color: var(--band-ink);
	white-space: nowrap;
}

.es-chip__key {
	color: var(--band-muted);
}

.es-chip--accent {
	border-color: color-mix(in srgb, var(--band-accent) 55%, transparent);
	background: color-mix(in srgb, var(--band-accent) 12%, transparent);
}

.es-spec {
	inline-size: 100%;
	border-collapse: collapse;
	font-size: 0.9375rem;
}

.es-spec caption {
	text-align: start;
	padding-block-end: 0.75rem;
	font-family: var(--es-font-mono);
	font-size: 0.75rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--band-muted);
}

.es-spec th,
.es-spec td {
	padding: 0.7rem 0.9rem;
	text-align: start;
	border-block-end: 1px solid var(--band-line);
	vertical-align: top;
}

.es-spec thead th {
	font-family: var(--es-font-mono);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--band-muted);
	white-space: nowrap;
}

.es-spec tbody th {
	font-weight: 600;
}

.es-spec td {
	font-family: var(--es-font-mono);
	font-size: 0.8125rem;
	color: var(--band-muted);
}

.es-spec tr:last-child th,
.es-spec tr:last-child td {
	border-block-end: 0;
}

/* Wide spec tables scroll inside themselves — the page never scrolls sideways. */
.es-scroller {
	overflow-x: auto;
	overscroll-behavior-x: contain;
}

/* The provisional-data marker. */
.es-provisional {
	display: inline-flex;
	align-items: center;
	padding: 0.1rem 0.4rem;
	border: 1px dashed color-mix(in srgb, var(--band-ink) 35%, transparent);
	border-radius: var(--es-r-chip);
	font-family: var(--es-font-mono);
	font-size: 0.75rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--band-muted);
	cursor: help;
}

/* ------------------------------------------------------------------------- *
 * 7. Cards + specimen media
 * ------------------------------------------------------------------------- */

.es-grid {
	display: grid;
	gap: clamp(1rem, 2.5vw, 1.75rem);
}

.es-grid--2 {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
}

.es-grid--3 {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}

.es-grid--4 {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}

.es-card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: clamp(1.25rem, 2.5vw, 1.85rem);
	background: var(--band-surface);
	border: 1px solid var(--band-line);
	border-radius: var(--es-r-card);
	transition: transform var(--es-fast) var(--es-ease), box-shadow var(--es-fast) ease, border-color var(--es-fast) ease;
}

.es-card:hover {
	transform: translateY(-3px);
	border-color: color-mix(in srgb, var(--band-accent) 50%, var(--band-line));
	box-shadow: var(--es-shadow-card);
}

.es-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	inline-size: 2.75rem;
	block-size: 2.75rem;
	margin-block-end: 1rem;
	border-radius: var(--es-r-chip);
	background: color-mix(in srgb, var(--band-accent) 16%, transparent);
	color: var(--band-accent-text);
}

.es-card__title {
	margin-block: 0 0.45rem;
	font-size: 1.125rem;
}

.es-card__text {
	margin: 0;
	color: var(--band-muted);
	font-size: 0.9375rem;
}

/*
 * Specimen media. The source photography is mixed-quality phone shots, so the
 * system carries them: a fixed ratio, a matte surround and a hairline rule make
 * an inconsistent library read as one set.
 */
.es-specimen {
	position: relative;
	overflow: hidden;
	border-radius: var(--es-r-card);
	background: var(--es-tint);
	border: 1px solid var(--band-line);
	aspect-ratio: var(--es-ratio, 4 / 5);
}

.es-specimen--wide {
	--es-ratio: 3 / 2;
}

.es-specimen--square {
	--es-ratio: 1 / 1;
}

.es-specimen img {
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
	display: block;
	transition: transform var(--es-mid) var(--es-ease);
}

.es-specimen:hover img {
	transform: scale(1.03);
}

.es-specimen__tag {
	position: absolute;
	inset-block-end: 0.75rem;
	inset-inline-start: 0.75rem;
	padding: 0.25rem 0.55rem;
	border-radius: var(--es-r-chip);
	background: rgba(19, 42, 22, 0.82);
	color: var(--es-mist);
	font-family: var(--es-font-mono);
	font-size: 0.75rem;
	letter-spacing: 0.06em;
}

/* ------------------------------------------------------------------------- *
 * 8. Icons + tagged placeholders
 * ------------------------------------------------------------------------- */

.es-icon {
	inline-size: 1.5rem;
	block-size: 1.5rem;
	flex: none;
	vertical-align: middle;
}

.es-icon--missing {
	display: inline-block;
	inline-size: 1.5rem;
	block-size: 1.5rem;
	border: 1px dashed var(--es-gold-deep);
	border-radius: 3px;
}

.es-ph {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	padding: 1.5rem;
	min-block-size: 12rem;
	block-size: 100%;
	text-align: center;
	background: repeating-linear-gradient(135deg, var(--es-tint) 0 10px, color-mix(in srgb, var(--es-tint) 70%, var(--es-white)) 10px 20px);
	border: 1px dashed color-mix(in srgb, var(--es-muted) 45%, transparent);
	border-radius: var(--es-r-card);
	color: var(--es-muted);
}

.es-ph__mark {
	color: color-mix(in srgb, var(--es-leaf-deep) 60%, transparent);
}

.es-ph__tag {
	font-family: var(--es-font-mono);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	color: var(--es-leaf-deep);
}

.es-ph__desc {
	font-size: 0.8125rem;
	max-inline-size: 30ch;
}

.es-ph-inline {
	font-family: var(--es-font-mono);
	font-size: 0.8125rem;
	padding: 0.15rem 0.45rem;
	border: 1px dashed color-mix(in srgb, currentColor 45%, transparent);
	border-radius: var(--es-r-chip);
	opacity: 0.85;
}

/* ------------------------------------------------------------------------- *
 * 9. Layout utilities
 * ------------------------------------------------------------------------- */

.es-split {
	display: grid;
	gap: clamp(1.75rem, 4vw, 3.5rem);
	align-items: center;
}

@media (min-width: 52rem) {
	.es-split {
		grid-template-columns: 1fr 1fr;
	}

	.es-split--media-first .es-split__text {
		order: 2;
	}
}

.es-head {
	max-inline-size: 60ch;
	margin-block-end: clamp(1.75rem, 4vw, 3rem);
}

.es-flow > * + * {
	margin-block-start: 1.1rem;
}

/* ------------------------------------------------------------------------- *
 * 10. Framework block restyles
 *
 * The framework blocks are RESTYLED by their own `mbw-` classes, never forked.
 * Their DOM contract is fixed; only appearance is ours.
 * ------------------------------------------------------------------------- */

/* mbw/product-grid — category and product cards. */
.mbw-pgrid__heading {
	font-family: var(--es-font-display);
	font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
	margin-block: 0 1.5rem;
}

.mbw-pgrid__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
	gap: clamp(1rem, 2.5vw, 1.75rem);
	padding: 0;
	margin: 0;
	list-style: none;
}

.mbw-pcard {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--band-surface, #fff);
	border: 1px solid var(--band-line, #dde3d2);
	border-radius: var(--es-r-card);
	transition: transform var(--es-fast) var(--es-ease), box-shadow var(--es-fast) ease;
}

.mbw-pcard:hover {
	transform: translateY(-3px);
	box-shadow: var(--es-shadow-card);
}

.mbw-pcard__media {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--es-tint);
}

.mbw-pcard__media img {
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
}

.mbw-pcard__body {
	padding: 1.15rem 1.25rem 1.35rem;
}

.mbw-pcard__title {
	font-family: var(--es-font-display);
	font-size: 1.125rem;
	margin-block: 0 0.35rem;
}

.mbw-pcard__desc {
	color: var(--band-muted, #5a6552);
	font-size: 0.9375rem;
}

/* The framework colours this link with its own rule; re-point it at the band
   accent so a category card matches everything around it. */
.mbw-pcard__link,
.mbw-pgrid__list a.mbw-pcard__link {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-family: var(--es-font-mono);
	font-size: 0.8125rem;
	letter-spacing: 0.04em;
	text-decoration: none;
	color: var(--band-accent-text, #46781f);
}

.mbw-pcard__link:hover {
	text-decoration: underline;
	text-underline-offset: 0.25em;
}

/* Catalog result cards. Shared by elsahn/loop and elsahn/crop-view. */
.es-loop__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
	gap: clamp(1rem, 2.5vw, 1.75rem);
	padding: 0;
	margin: 0;
	list-style: none;
}

.es-loop__card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--band-surface);
	border: 1px solid var(--band-line);
	border-radius: var(--es-r-card);
	transition: transform var(--es-fast) var(--es-ease), box-shadow var(--es-fast) ease, border-color var(--es-fast) ease;
}

.es-loop__card:hover {
	transform: translateY(-3px);
	border-color: color-mix(in srgb, var(--crop, var(--band-accent)) 55%, var(--band-line));
	box-shadow: var(--es-shadow-card);
}

.es-loop__media {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--es-tint);
}

.es-loop__media img {
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
	transition: transform var(--es-mid) var(--es-ease);
}

.es-loop__card:hover .es-loop__media img {
	transform: scale(1.04);
}

.es-loop__body {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 1.15rem 1.25rem 1.35rem;
}

.es-loop__cat {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-family: var(--es-font-mono);
	font-size: 0.75rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--crop, var(--band-accent-text));
}

.es-loop__cat .es-icon {
	inline-size: 0.95rem;
	block-size: 0.95rem;
}

.es-loop__title {
	margin: 0;
	font-size: 1.125rem;
}

/* The whole card is clickable, but only the title is a real link — one
   tab stop per card, and the link text still says what it goes to. */
.es-loop__link::after {
	content: "";
	position: absolute;
	inset: 0;
}

.es-loop__title a {
	text-decoration: none;
	color: inherit;
}

.es-loop__excerpt {
	margin: 0;
	font-size: 0.9375rem;
	color: var(--band-muted);
}

.es-loop__season {
	margin-block-start: 0.25rem;
	font-family: var(--es-font-mono);
	font-size: 0.75rem;
	color: var(--band-muted);
}

/* mbw/faq — the zero-JS <details> accordion that feeds FAQPage schema. */
.mbw-faq__item {
	border-block-end: 1px solid var(--band-line, #dde3d2);
}

.mbw-faq__q {
	padding-block: 1rem;
	font-family: var(--es-font-display);
	font-size: 1.0625rem;
	cursor: pointer;
	list-style: none;
}

.mbw-faq__q::-webkit-details-marker {
	display: none;
}

.mbw-faq__q::after {
	content: "+";
	float: inline-end;
	font-family: var(--es-font-mono);
	color: var(--band-accent-text, #46781f);
}

.mbw-faq__item[open] .mbw-faq__q::after {
	content: "–";
}

/* mbw/language-switcher. */
.mbw-langswitch__list {
	display: flex;
	gap: 0.5rem;
	padding: 0;
	margin: 0;
	list-style: none;
	font-family: var(--es-font-mono);
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.mbw-langswitch__link {
	text-decoration: none;
	color: inherit;
	opacity: 0.7;
}

.mbw-langswitch__link[aria-current] {
	opacity: 1;
	color: var(--band-accent-text, #46781f);
}

/* ------------------------------------------------------------------------- *
 * 11. WordPress alignments, search, pagination
 * ------------------------------------------------------------------------- */

.alignfull {
	max-inline-size: none;
}

.alignwide {
	max-inline-size: var(--es-wide);
	margin-inline: auto;
}

.es-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	justify-content: center;
	margin-block-start: clamp(2rem, 5vw, 3.5rem);
	font-family: var(--es-font-mono);
	font-size: 0.875rem;
}

.es-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-inline-size: 2.5rem;
	block-size: 2.5rem;
	padding-inline: 0.5rem;
	border: 1px solid var(--band-line);
	border-radius: var(--es-r-chip);
	text-decoration: none;
	color: var(--band-ink);
}

.es-pagination .page-numbers.current {
	background: var(--es-grove);
	border-color: var(--es-grove);
	color: var(--es-mist);
}

.es-empty {
	padding: clamp(2rem, 5vw, 3.5rem);
	border: 1px dashed var(--band-line);
	border-radius: var(--es-r-card);
	text-align: center;
	color: var(--band-muted);
}

/* ------------------------------------------------------------------------- *
 * 12. Forms
 * ------------------------------------------------------------------------- */

.es-field {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.es-field__label {
	font-family: var(--es-font-mono);
	font-size: 0.8125rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--band-muted);
}

.es-field input,
.es-field select,
.es-field textarea,
.es-search input {
	inline-size: 100%;
	padding: 0.75rem 0.9rem;
	background: var(--band-surface);
	border: 1px solid var(--band-line);
	border-radius: var(--es-r-chip);
	font-family: inherit;
	font-size: 1rem;
	color: var(--band-ink);
}

.es-field textarea {
	min-block-size: 8rem;
	resize: vertical;
}

.es-field--error input,
.es-field--error select,
.es-field--error textarea {
	border-color: var(--mbw-color-error, #a3231b);
}

.es-field__error {
	font-size: 0.8125rem;
	color: var(--mbw-color-error, #a3231b);
}

.es-search {
	display: flex;
	gap: 0.6rem;
	flex-wrap: wrap;
	max-inline-size: 34rem;
}

.es-search input {
	flex: 1 1 14rem;
}

.es-honeypot {
	position: absolute;
	inset-inline-start: -9999px;
	inline-size: 1px;
	block-size: 1px;
	overflow: hidden;
}

.es-formnote {
	margin-block-start: 1rem;
	padding: 0.9rem 1.1rem;
	border-radius: var(--es-r-chip);
	font-size: 0.9375rem;
}

.es-formnote--ok {
	background: color-mix(in srgb, var(--es-leaf) 25%, transparent);
	color: #1c3a0d;
}

.es-formnote--bad {
	background: color-mix(in srgb, var(--mbw-color-error, #a3231b) 12%, transparent);
	color: var(--mbw-color-error, #a3231b);
}

/* Framework contact form, restyled by its own classes. */
.mbw-cform__input,
.mbw-cform__textarea {
	inline-size: 100%;
	padding: 0.75rem 0.9rem;
	background: var(--band-surface, #fff);
	border: 1px solid var(--band-line, #dde3d2);
	border-radius: var(--es-r-chip);
	font-family: inherit;
	font-size: 1rem;
}

/* ------------------------------------------------------------------------- *
 * 13. Reduced motion — dampen, never hide
 * ------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}

/* Enquiry form additions: checkbox group, file input and hints.
   Reads --band-* roles like every other component, so it adapts to any tone. */
.es-field--group { border: 0; margin: 0; padding: 0; }

.es-quote__checks {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem 1.25rem;
	margin-block-start: 0.5rem;
}

.es-check {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	font-size: 0.9375rem;
	color: var(--band-ink);
	cursor: pointer;
}

.es-check input {
	inline-size: 1rem;
	block-size: 1rem;
	accent-color: var(--band-accent);
}

.es-field--file input {
	padding: 0.6rem;
	font-size: 0.9375rem;
}

.es-field__hint {
	font-size: 0.8125rem;
	color: var(--band-muted);
}

/* --- Touch targets ------------------------------------------------------- */

/* WCAG 2.5.8 asks for 24×24 CSS px. A QA pass measured the footer nav links at
   18px tall, the footer contact lines and crop eyebrow at 24, the footer logo
   at 32 and the certification checkboxes at 16 — a column of near-touching
   18px targets is the hardest thing on the site to tap accurately.
   Scoped to `pointer: coarse`; the desktop layout is unchanged. */
@media (pointer: coarse) {

	.es-footer__nav a,
	.es-footer__line,
	.es-footer__logo,
	.es-topbar__logo,
	.es-crop__eyebrow {
		display: inline-flex;
		align-items: center;
		min-block-size: 44px;
	}

	/* Contact lines wrap to two rows, so they align to the top and grow down
	   rather than centring a tall block on one line of text. */
	.es-footer__line {
		align-items: flex-start;
		padding-block: 0.6rem;
	}

	/* The label is the target as well as the box, so the whole row is tappable
	   and the 16px box no longer has to be hit precisely. */
	.es-check {
		min-block-size: 44px;
	}
	.es-check input[type="checkbox"],
	.es-check input[type="radio"] {
		inline-size: 1.5rem;
		block-size: 1.5rem;
	}
}

/* iOS zooms the page whenever a focused control's text is under 16px, which
   yanks the layout sideways mid-form. The file input inherits a smaller size
   from the field styles, so pin it back at touch sizes. */
@media (pointer: coarse) {
	.es-field input,
	.es-field select,
	.es-field textarea {
		font-size: max(1rem, var(--es-text-sm, 1rem));
	}
}

/* ==================================================================== *
 * Non-Latin scripts
 *
 * The HARVEST WINDOW type scale was set against Archivo and Instrument Sans and
 * carries Latin-display decisions that do not transfer:
 *
 * - Negative tracking fights Arabic's cursive joining and pulls Devanagari away
 *   from its shirorekha. Both want tracking at zero.
 * - Archivo's width axis (`font-stretch: 125%` on display headings) has no
 *   counterpart in IBM Plex Sans Arabic or Noto Sans Devanagari; left in place a
 *   browser synthesises a stretch, which distorts letterforms that carry meaning
 *   in their shape.
 * - A Latin-tuned display line-height clips Arabic and Devanagari ascenders and
 *   descenders at the same font-size.
 *
 * Keyed on `:lang()` and `[lang^=]` together, because the framework writes the
 * BCP-47 tag into `<html lang>` and that is `zh-Hans` rather than `zh`.
 * ==================================================================== */

:lang(ar), :lang(fa), :lang(ur),
:lang(hi), :lang(bn), :lang(ta),
:lang(zh), :lang(ja), :lang(ko), :lang(th),
[lang^="ar"], [lang^="fa"], [lang^="ur"],
[lang^="hi"], [lang^="bn"], [lang^="ta"],
[lang^="zh"], [lang^="ja"], [lang^="ko"], [lang^="th"] {
	letter-spacing: normal;
	/* Neutralise the width axis: it belongs to Archivo, not to these faces. */
	font-stretch: normal;
}

:lang(ar) h1, :lang(ar) h2, :lang(ar) h3,
:lang(hi) h1, :lang(hi) h2, :lang(hi) h3,
[lang^="ar"] h1, [lang^="ar"] h2, [lang^="ar"] h3,
[lang^="hi"] h1, [lang^="hi"] h2, [lang^="hi"] h3 {
	line-height: 1.3;
}

/* The eyebrow's wide tracking and uppercase read as deliberate in Latin and as
   an error in a unicameral or cursive script. */
:lang(ar) .es-eyebrow, :lang(hi) .es-eyebrow,
:lang(zh) .es-eyebrow, :lang(ja) .es-eyebrow, :lang(ko) .es-eyebrow,
[lang^="ar"] .es-eyebrow, [lang^="hi"] .es-eyebrow,
[lang^="zh"] .es-eyebrow, [lang^="ja"] .es-eyebrow, [lang^="ko"] .es-eyebrow {
	letter-spacing: normal;
	text-transform: none;
}

/* The pull-quote is capped in `ch`, a unit measured against the "0" glyph of the
   active font. That measurement is Latin; in Arabic and Devanagari the same
   count of characters occupies a different width, so let the quote take the
   column it is given rather than a width computed for another script. */
:lang(ar) .es-pull__quote, :lang(hi) .es-pull__quote,
[lang^="ar"] .es-pull__quote, [lang^="hi"] .es-pull__quote {
	max-inline-size: none;
}

:lang(zh), :lang(ja), [lang^="zh"], [lang^="ja"] {
	line-break: strict;
	overflow-wrap: anywhere;
}
