/* ==========================================================================
   LIMA Africa theme
   Brand colours sampled from the production logo files (Nov 2026):
   forest #3D5D30, leaf #8DC63F, leaf-light #ADD63B, wordmark black.
   Content classes are applied to core blocks, so pages stay editable.
   ========================================================================== */

@font-face {
	font-family: "Manrope";
	src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2");
	font-weight: 200 800;
	font-display: swap;
}
@font-face {
	font-family: "DM Sans";
	src: url("../fonts/dm-sans-latin-wght-normal.woff2") format("woff2");
	font-weight: 100 1000;
	font-display: swap;
}

:root {
	--forest: #3D5D30;
	--forest-deep: #22351B;
	--forest-ink: #172414;
	--leaf: #8DC63F;
	--leaf-light: #ADD63B;
	--leaf-wash: #EEF5DC;
	--cream: #F5F3EB;
	--paper: #FFFEFA;
	--white: #FFFFFF;
	--ink: #17221A;
	--muted: #56635A;
	--line: #DDE4D6;
	--line-dark: #4C6643;
	--amber: #8A5A12;
	--amber-wash: #FFF3D6;

	--font-display: "Manrope", system-ui, sans-serif;
	--font-body: "DM Sans", system-ui, sans-serif;

	--wrap: 1240px;
	--gutter: clamp(20px, 5vw, 64px);
	--section: clamp(64px, 9vw, 112px);
	--radius: 16px;
	--radius-sm: 8px;
	--shadow: 0 18px 40px -24px rgb(23 36 20 / 0.35);
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--forest-deep); }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; border-radius: 4px; }
p { margin: 0 0 1.1em; }
h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.035em;
	margin: 0 0 0.55em;
	color: inherit;
	text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.4vw, 4.6rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3.25rem); }
h3 { font-size: clamp(1.2rem, 1.6vw, 1.45rem); letter-spacing: -0.02em; line-height: 1.2; }
h4 { font-size: 1.05rem; letter-spacing: -0.01em; }
ul, ol { padding-left: 1.2em; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link {
	position: absolute; left: -9999px; top: 8px; z-index: 100;
	background: var(--white); color: var(--ink); padding: 12px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { left: 8px; }

.container { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.prose { max-width: 820px; }
.prose > .container { padding-inline: 0; }

/* ---------- Buttons ---------- */
.btn,
.wp-block-button .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: 12px;
	min-height: 48px; padding: 13px 22px;
	border-radius: var(--radius-sm); border: 2px solid transparent;
	font-family: var(--font-display); font-weight: 800; font-size: 0.95rem; letter-spacing: -0.01em;
	text-decoration: none; line-height: 1.2; cursor: pointer;
	background: var(--forest); color: var(--white);
	transition: transform .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease);
}
.btn:hover, .wp-block-button .wp-block-button__link:hover { transform: translateY(-1px); color: var(--white); background: var(--forest-deep); }
.btn--primary,
.wp-block-button.is-style-lima-leaf .wp-block-button__link { background: var(--leaf); color: var(--forest-ink); }
.btn--primary:hover,
.wp-block-button.is-style-lima-leaf .wp-block-button__link:hover { background: var(--leaf-light); color: var(--forest-ink); }
.wp-block-button.is-style-lima-dark .wp-block-button__link { background: var(--forest); color: var(--white); }
.wp-block-button.is-style-lima-outline .wp-block-button__link { background: transparent; color: var(--forest); border-color: currentColor; }
.wp-block-button.is-style-lima-outline .wp-block-button__link:hover { background: var(--forest); color: var(--white); border-color: var(--forest); }
.btn--outline-light,
.wp-block-button.is-style-lima-outline-light .wp-block-button__link { background: transparent; color: var(--white); border-color: rgb(255 255 255 / .6); }
.btn--outline-light:hover,
.wp-block-button.is-style-lima-outline-light .wp-block-button__link:hover { background: var(--white); color: var(--forest-ink); border-color: var(--white); }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Floating glass navigation ---------- */
/* The header floats over the first section, so every page opens with a hero or
   subhero that reserves --header-space at the top. */
:root { --header-top: 14px; --header-h: 68px; --header-space: calc(var(--header-top) + var(--header-h) + 18px); }
.lima-glass {
	background: linear-gradient(140deg, rgb(255 255 255 / .2), rgb(255 255 255 / .06)), rgb(23 36 20 / .28);
	border: 1px solid rgb(255 255 255 / .26);
	box-shadow: 0 24px 60px -28px rgb(0 0 0 / .55), inset 0 1px 0 rgb(255 255 255 / .28);
	-webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
}

.site-header {
	position: fixed; top: var(--header-top); left: 0; right: 0; z-index: 50;
	padding-inline: var(--gutter); pointer-events: none;
}
.admin-bar .site-header { top: calc(var(--header-top) + 32px); }
.site-header__inner {
	pointer-events: auto; position: relative; isolation: isolate;
	max-width: var(--wrap); margin-inline: auto;
	display: flex; align-items: center; gap: 20px; justify-content: space-between;
	min-height: var(--header-h); padding: 8px 8px 8px 22px;
	border-radius: 999px;
}
/* The pill's glass sits on a pseudo-element: an element with backdrop-filter becomes the
   backdrop root for its children, which would stop the dropdowns blurring the page. */
.site-header__inner::before {
	content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
	background: rgb(255 255 254 / .8);
	border: 1px solid rgb(255 255 255 / .7);
	box-shadow: 0 18px 44px -22px rgb(23 36 20 / .5), inset 0 1px 0 rgb(255 255 255 / .9);
	-webkit-backdrop-filter: blur(20px) saturate(1.7); backdrop-filter: blur(20px) saturate(1.7);
	transition: background-color .25s var(--ease), box-shadow .25s var(--ease);
}
.site-header.is-scrolled .site-header__inner::before {
	background: rgb(255 255 254 / .88);
	box-shadow: 0 20px 50px -20px rgb(23 36 20 / .55), inset 0 1px 0 rgb(255 255 255 / .9);
}
.logo { display: block; flex: none; }
.logo img, .custom-logo { width: auto; height: 46px; }

.nav { display: flex; align-items: center; gap: 12px; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav__list > li { position: relative; display: flex; align-items: center; }
.nav__list a {
	display: block; padding: 10px 0;
	color: var(--ink); text-decoration: none;
	font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; letter-spacing: -0.01em; white-space: nowrap;
}
.nav__list > li > a { padding: 9px 12px; border-radius: 999px; transition: background-color .18s var(--ease), color .18s var(--ease); }
.nav__list > .menu-item-has-children > a { padding-right: 2px; }
.nav__list > li > a:hover { background: rgb(61 93 48 / .08); color: var(--forest-deep); }
.nav__list > .current-menu-item > a,
.nav__list > .current-menu-ancestor > a,
.nav__list > .current-page-ancestor > a { background: var(--leaf-wash); color: var(--forest-deep); }
.submenu-toggle {
	width: 26px; height: 26px; margin-left: 0; padding: 0; border: 0; background: transparent; cursor: pointer; border-radius: 999px;
	color: var(--muted);
}
.submenu-toggle::before {
	content: ""; display: block; width: 7px; height: 7px; margin: 6px auto 0;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
	transition: transform .2s var(--ease);
}
.submenu-toggle[aria-expanded="true"]::before { transform: rotate(-135deg); margin-top: 10px; }
.sub-menu {
	list-style: none; margin: 0; padding: 8px;
	position: absolute; top: calc(100% + 16px); left: -8px; min-width: 250px;
	background: rgb(255 255 254 / .92); border: 1px solid rgb(255 255 255 / .8); border-radius: 20px;
	box-shadow: 0 24px 50px -24px rgb(23 36 20 / .5), inset 0 1px 0 rgb(255 255 255 / .9);
	-webkit-backdrop-filter: blur(20px) saturate(1.7); backdrop-filter: blur(20px) saturate(1.7);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
/* Bridge the gap so the menu stays open while the pointer travels to it. */
.sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px; }
.sub-menu a { padding: 10px 14px; border-radius: 12px; font-weight: 600; }
.sub-menu a:hover { background: var(--leaf-wash); color: var(--forest-deep); }
@media (hover: hover) and (min-width: 1081px) {
	.menu-item-has-children:hover > .sub-menu { opacity: 1; visibility: visible; transform: none; }
}
.menu-item-has-children.is-open > .sub-menu,
.menu-item-has-children:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav__cta { flex: none; }
.site-header .nav__cta { border-radius: 999px; padding: 12px 20px; }

.nav-toggle {
	display: none; align-items: center; gap: 10px;
	min-height: 48px; padding: 8px 18px; border: 0; border-radius: 999px;
	background: var(--forest); color: var(--white); font: 700 0.95rem var(--font-display); cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
	display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
	transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1080px) {
	:root { --header-h: 64px; --header-top: 10px; }
	.nav-toggle { display: inline-flex; }
	.site-header__inner { padding: 6px 6px 6px 18px; }
	.logo img, .custom-logo { height: 42px; }
	.nav {
		display: none; position: absolute; top: calc(100% + 10px); left: 0; right: 0;
		flex-direction: column; align-items: stretch; gap: 16px;
		max-height: calc(100vh - 110px); max-height: calc(100dvh - 110px); overflow-y: auto;
		padding: 14px 22px 22px;
		background: rgb(255 255 254 / .95); border: 1px solid rgb(255 255 255 / .8); border-radius: 24px;
		box-shadow: 0 30px 60px -24px rgb(23 36 20 / .55), inset 0 1px 0 rgb(255 255 255 / .9);
		-webkit-backdrop-filter: blur(22px) saturate(1.7); backdrop-filter: blur(22px) saturate(1.7);
	}
	.nav.is-open { display: flex; }
	.nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.nav__list > li { flex-wrap: wrap; justify-content: space-between; border-bottom: 1px solid rgb(23 36 20 / .08); }
	.nav__list > li > a, .nav__list > .menu-item-has-children > a { padding: 14px 4px; font-size: 1.05rem; flex: 1; border-radius: 0; background: none !important; }
	.nav__list > .current-menu-item > a, .nav__list > .current-page-ancestor > a { color: var(--forest); }
	.submenu-toggle { width: 44px; height: 44px; }
	.submenu-toggle::before { margin-top: 0; }
	.sub-menu {
		position: static; flex-basis: 100%; min-width: 0; display: none;
		opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 12px 8px;
		background: none; -webkit-backdrop-filter: none; backdrop-filter: none;
	}
	.sub-menu::before { display: none; }
	.menu-item-has-children:focus-within > .sub-menu { display: none; }
	.menu-item-has-children.is-open > .sub-menu { display: block; }
	.site-header .nav__cta { align-self: stretch; justify-content: center; text-align: center; }
	body.nav-open { overflow: hidden; }
}
@media (max-width: 782px) { .admin-bar .site-header { top: calc(var(--header-top) + 46px); } }
@media (max-width: 600px) { .admin-bar .site-header { top: var(--header-top); } }

/* Where blur is unavailable or reduced transparency is requested, use solid panels. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.site-header__inner::before, .sub-menu, .nav.is-open { background: var(--paper) !important; }
	.lima-glass { background: rgb(23 36 20 / .82); }
}
@media (prefers-reduced-transparency: reduce) {
	.site-header__inner::before, .sub-menu, .nav.is-open { background: var(--paper) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
	.lima-glass { background: var(--forest-deep) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
}

/* ---------- Section system (core/group with classes) ---------- */
.lima-section { padding: var(--section) var(--gutter); margin: 0; }
.lima-section > .wp-block-group__inner-container,
.lima-hero > .wp-block-group__inner-container,
.lima-subhero > .wp-block-group__inner-container,
.lima-band > .wp-block-group__inner-container { max-width: var(--wrap); margin-inline: auto; }
.lima-section.is-tight { padding-block: clamp(44px, 6vw, 72px); }
.lima-section.is-cream { background: var(--cream); }
.lima-section.is-forest { background: var(--forest); color: var(--white); }
.lima-section.is-forest .muted, .lima-section.is-forest .lead { color: #D3E0CC; }
.lima-section.is-forest a:not(.wp-block-button__link) { color: var(--leaf-light); }
.lima-section > .wp-block-group__inner-container > :last-child { margin-bottom: 0; }

/* Used only as a breadcrumb back to the parent page on sub-page headers. */
.eyebrow {
	margin-bottom: 14px;
	font-family: var(--font-display); font-size: 0.95rem; font-weight: 700;
	color: var(--forest);
}
.eyebrow a { color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; }
.eyebrow a:hover { border-bottom-color: transparent; }
.is-forest .eyebrow, .lima-hero .eyebrow, .lima-subhero .eyebrow { color: var(--leaf-light); }
.lead { font-size: clamp(1.1rem, 1.4vw, 1.3rem); line-height: 1.55; max-width: 62ch; }
.muted { color: var(--muted); }
.measure { max-width: 760px; }
.center { text-align: center; margin-inline: auto; }

/* ---------- Home hero ---------- */
.lima-hero { position: relative; padding: 0; margin: 0; background: var(--forest); color: var(--white); overflow: hidden; }
.lima-hero > .wp-block-group__inner-container { max-width: none; }
.lima-hero .wp-block-columns { margin: 0; gap: 0; align-items: stretch !important; }
.lima-hero .wp-block-column:first-child {
	padding: clamp(64px, 9vw, 120px) clamp(20px, 5vw, 72px) clamp(64px, 8vw, 104px) max(var(--gutter), calc((100vw - var(--wrap)) / 2));
	display: flex; flex-direction: column; justify-content: center;
}
.lima-hero h1 { max-width: 13ch; }
.lima-hero h1 em { font-style: normal; color: var(--leaf-light); }
.lima-hero .lead { color: #DCE7D6; }
.lima-hero .wp-block-column:last-child { position: relative; min-height: 420px; }
.lima-hero .wp-block-column:last-child .wp-block-image { position: absolute; inset: 0; margin: 0; }
.lima-hero .wp-block-column:last-child img { width: 100%; height: 100%; object-fit: cover; }
.lima-hero .wp-block-column:last-child::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(90deg, var(--forest) 0%, rgb(61 93 48 / 0) 28%);
	pointer-events: none;
}

/* ---------- Sub-page hero ---------- */
.lima-subhero {
	position: relative; overflow: hidden; margin: 0;
	padding: clamp(64px, 8vw, 104px) var(--gutter) clamp(64px, 8vw, 96px);
	background: var(--forest); color: var(--white);
}
.lima-subhero h1 { max-width: 18ch; position: relative; z-index: 1; }
.lima-subhero p:not(.eyebrow) { max-width: 64ch; color: #DCE7D6; font-size: clamp(1.05rem, 1.3vw, 1.2rem); position: relative; z-index: 1; }
.lima-subhero .wp-block-buttons { position: relative; z-index: 1; }
.lima-subhero a:not(.wp-block-button__link):not(.btn) { color: var(--leaf-light); }
.lima-subhero--plain h1 { max-width: 24ch; margin: 0; }

/* Clear the floating navigation. */
.lima-subhero { padding-top: calc(clamp(56px, 7vw, 88px) + var(--header-space)); }

/* ---------- Photo hero with glass loop (home) ---------- */
.lima-hero--photo { background: var(--forest-ink); isolation: isolate; }
.lima-hero--photo > .wp-block-group__inner-container {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); gap: clamp(32px, 5vw, 72px); align-items: end;
	min-height: min(100svh, 900px);
	padding: calc(var(--header-space) + clamp(40px, 6vw, 88px)) max(var(--gutter), calc((100% - var(--wrap)) / 2)) clamp(48px, 6vw, 80px);
}
/* The first image is the backdrop; its ::after carries the tint that keeps text readable. */
.lima-hero--photo > .wp-block-group__inner-container > .lima-hero__bg { position: absolute; inset: 0; z-index: -1; margin: 0; }
.lima-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.lima-hero__bg::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background:
		linear-gradient(90deg, rgb(23 36 20 / .88) 0%, rgb(23 36 20 / .62) 38%, rgb(23 36 20 / .12) 72%, rgb(23 36 20 / .25) 100%),
		linear-gradient(0deg, rgb(23 36 20 / .7) 0%, rgb(23 36 20 / 0) 45%),
		linear-gradient(180deg, rgb(23 36 20 / .45) 0%, rgb(23 36 20 / 0) 22%);
}
.lima-hero__body { position: relative; align-self: center; }
.lima-hero__body > .wp-block-group__inner-container > :last-child { margin-bottom: 0; }
.lima-hero--photo h1 { max-width: 14ch; text-shadow: 0 2px 30px rgb(0 0 0 / .25); }
.lima-hero--photo .lead { color: #E6EEE1; max-width: 54ch; }


.lima-loop { position: relative; border-radius: 28px; padding: 24px 22px 14px; color: var(--white); }
.lima-loop > .wp-block-group__inner-container { position: relative; }
.lima-loop__title {
	margin: 0 0 6px; font-family: var(--font-display); font-size: 1.02rem; font-weight: 800; color: var(--white);
}
.lima-loop__step { position: relative; margin: 0; }
.lima-loop__step > .wp-block-group__inner-container { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; align-items: center; padding: 10px 0; }
/* Connector between thumbnails: the loop. */
.lima-loop__step:not(:last-child)::after {
	content: ""; position: absolute; left: 27px; top: calc(50% + 32px); height: calc(100% - 44px); width: 2px;
	background: repeating-linear-gradient(180deg, rgb(173 214 59 / .85) 0 4px, transparent 4px 9px);
}
.lima-loop__img { margin: 0; width: 56px; height: 56px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 2px rgb(255 255 255 / .55), 0 8px 18px -8px rgb(0 0 0 / .6); }
.lima-loop__img img { width: 100%; height: 100%; object-fit: cover; }
.lima-loop__txt { margin: 0; font-size: .92rem; line-height: 1.35; color: #DCE7D6; }
.lima-loop__txt strong { display: block; font-family: var(--font-display); font-size: 1.02rem; color: var(--white); }

@media (max-width: 900px) {
	.lima-hero--photo > .wp-block-group__inner-container { grid-template-columns: minmax(0, 1fr); min-height: 0; align-items: start; }
	.lima-hero__bg::after {
		background: linear-gradient(180deg, rgb(23 36 20 / .55) 0%, rgb(23 36 20 / .72) 45%, rgb(23 36 20 / .9) 100%);
	}
	.lima-loop { padding: 20px 18px 10px; }
	.lima-loop > .wp-block-group__inner-container { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; }
	.lima-loop__title { grid-column: 1 / -1; }
	.lima-loop__step > .wp-block-group__inner-container { grid-template-columns: 44px minmax(0, 1fr); gap: 10px; }
	.lima-loop__img { width: 44px; height: 44px; }
	.lima-loop__step:not(:last-child)::after { display: none; }
	.lima-loop__txt { font-size: .85rem; }
	.lima-loop__txt strong { font-size: .95rem; }
}

/* ---------- Split and columns ---------- */
.lima-split { gap: clamp(32px, 6vw, 80px) !important; align-items: center !important; }
.lima-split .wp-block-image { margin: 0; }
.lima-split .wp-block-image img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; border-radius: var(--radius); }
.wp-block-image.is-portrait img { aspect-ratio: 4 / 5; }
.wp-block-columns { margin-bottom: 0; }

/* ---------- Grids and cards ---------- */
.lima-grid > .wp-block-group__inner-container { display: grid; gap: 22px; }
.lima-grid--2 > .wp-block-group__inner-container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lima-grid--3 > .wp-block-group__inner-container { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lima-grid--4 > .wp-block-group__inner-container { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lima-grid { margin-top: 36px; }

.wp-block-group.is-style-lima-card {
	background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
	overflow: hidden; display: flex; flex-direction: column;
	transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.wp-block-group.is-style-lima-card:has(.wp-block-image):hover { box-shadow: var(--shadow); border-color: #C8D6BE; }
/* Text-only cards are not boxed: a top rule and spacing group them instead. */
.wp-block-group.is-style-lima-card:not(:has(.wp-block-image)) {
	background: none; border: 0; border-top: 2px solid var(--leaf); border-radius: 0; overflow: visible;
}
.wp-block-group.is-style-lima-card:not(:has(.wp-block-image)) > .wp-block-group__inner-container { padding: 22px 0 0; }
.is-forest .wp-block-group.is-style-lima-card:not(:has(.wp-block-image)) { background: none; border-top-color: var(--leaf-light); }
.wp-block-group.is-style-lima-card > .wp-block-group__inner-container {
	padding: 28px; display: flex; flex-direction: column; flex: 1;
}
.wp-block-group.is-style-lima-card > .wp-block-group__inner-container > .wp-block-image:first-child {
	margin: -28px -28px 24px;
}
.wp-block-group.is-style-lima-card .wp-block-image img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.wp-block-group.is-style-lima-card p { color: var(--muted); font-size: 0.98rem; }
.wp-block-group.is-style-lima-card h3 { margin-bottom: 10px; }
.wp-block-group.is-style-lima-card .lima-link { margin-top: auto; margin-bottom: 0; padding-top: 6px; }
.lima-link a, a.lima-link {
	font-family: var(--font-display); font-weight: 800; font-size: 0.93rem; color: var(--forest);
	text-decoration: none; border-bottom: 2px solid var(--leaf); padding-bottom: 2px;
}
.lima-link a::after { content: " →"; }
.is-forest .wp-block-group.is-style-lima-card { background: rgb(255 255 255 / .06); border-color: var(--line-dark); color: var(--white); }
.is-forest .wp-block-group.is-style-lima-card p { color: #D3E0CC; }

.pill, .lima-pill {
	display: inline-block; align-self: flex-start; margin-bottom: 14px;
	padding: 6px 11px; border-radius: 99px; background: var(--leaf-wash); color: #33502A;
	font-family: var(--font-display); font-size: 0.8rem; font-weight: 700;
}
.lima-pill.is-amber { background: var(--amber-wash); color: var(--amber); }
.card__num {
	font-family: var(--font-display); font-weight: 800; font-size: 0.85rem; color: #5E7F27; letter-spacing: 0.05em; margin-bottom: 10px;
}

/* Home problem statement: headline beside plain paragraphs, no cards. */
.lima-problem { gap: clamp(32px, 6vw, 96px) !important; margin: 0; }
.lima-problem h2 { margin: 0; max-width: 16ch; }
.lima-problem p { font-size: clamp(1.05rem, 1.25vw, 1.18rem); line-height: 1.6; color: var(--ink); max-width: 56ch; }
.lima-problem p:last-child { color: var(--forest); font-weight: 600; margin-bottom: 0; }

/* Theme template cards (stories listing) */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card__body { padding: 26px; }
.card__title { font-size: 1.3rem; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__meta { font-size: 0.85rem; color: var(--muted); }

/* ---------- Steps ---------- */
ol.lima-steps { list-style: none; counter-reset: step; padding: 0; margin: 28px 0; }
ol.lima-steps > li {
	counter-increment: step; position: relative;
	padding: 20px 0 20px 64px; border-bottom: 1px solid var(--line);
	color: var(--muted);
}
ol.lima-steps > li::before {
	content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 18px;
	font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; color: #5E7F27;
}
ol.lima-steps strong { display: block; color: var(--ink); font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 2px; }
.is-forest ol.lima-steps > li { border-color: var(--line-dark); color: #D3E0CC; }
.is-forest ol.lima-steps strong { color: var(--white); }
.is-forest ol.lima-steps > li::before { color: var(--leaf-light); }

/* Five-component model as a horizontal sequence */
ol.lima-flow {
	list-style: none; padding: 0; margin: 36px 0 0; counter-reset: flow;
	display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px;
}
ol.lima-flow > li {
	counter-increment: flow; position: relative;
	padding: 26px 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
	color: var(--muted); font-size: 0.95rem;
}
ol.lima-flow > li::before {
	content: counter(flow); display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 16px;
	border-radius: 50%; background: var(--forest); color: var(--leaf-light);
	font-family: var(--font-display); font-weight: 800;
}
ol.lima-flow strong { display: block; color: var(--ink); font-family: var(--font-display); font-size: 1.08rem; margin-bottom: 6px; }

/* ---------- Methane pathways ---------- */
.lima-pathways { gap: 22px !important; margin-top: 36px; }
.lima-pathway { border-radius: var(--radius); padding: 30px; }
.lima-pathway--a { background: #ECE7DD; color: #4B4135; }
.lima-pathway--b { background: var(--forest); color: var(--white); }
.is-forest .lima-pathway--b { background: var(--forest-deep); box-shadow: inset 0 0 0 1px var(--line-dark); }
.lima-pathway .pathway__label {
	font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; margin-bottom: 16px;
}
.lima-pathway--b .pathway__label { color: var(--leaf-light); }
.lima-pathway ol { list-style: none; padding: 0; margin: 0; }
.lima-pathway ol li {
	position: relative; padding: 14px 16px; margin-bottom: 26px; border-radius: 10px;
	font-family: var(--font-display); font-weight: 700;
}
.lima-pathway--a ol li { background: rgb(255 255 255 / .55); }
.lima-pathway--b ol li { background: rgb(255 255 255 / .09); }
.lima-pathway ol li:not(:last-child)::after {
	content: "↓"; position: absolute; left: 50%; bottom: -24px; transform: translateX(-50%); font-weight: 700; opacity: .6;
}
.lima-pathway ol li:last-child { margin-bottom: 0; }
.lima-pathway--a ol li:last-child { background: #F6D9C8; color: #7A2E12; }
.lima-pathway--b ol li:last-child { background: var(--leaf); color: var(--forest-ink); }

/* ---------- Lists ---------- */
ul.lima-checklist { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 10px; }
ul.lima-checklist li { position: relative; padding-left: 32px; }
ul.lima-checklist li::before {
	content: ""; position: absolute; left: 0; top: 0.3em; width: 18px; height: 18px; border-radius: 50%;
	background: var(--leaf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23172414' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}
ul.lima-checklist.is-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
ul.lima-tags { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
ul.lima-tags li { padding: 10px 16px; border: 1px solid var(--line); border-radius: 99px; background: var(--white); font-weight: 600; font-size: 0.95rem; }
.is-forest ul.lima-tags li { background: transparent; border-color: var(--line-dark); }

/* ---------- Notice, band ---------- */
.wp-block-group.is-style-lima-notice, .notice-box {
	border-left: 4px solid var(--leaf); background: var(--leaf-wash);
	padding: 18px 24px; border-radius: 0 10px 10px 0; color: #34472E; font-size: 0.97rem;
	margin-top: 28px;
}
.wp-block-group.is-style-lima-notice p:last-child, .notice-box p:last-child { margin-bottom: 0; }
.lima-band { margin: 0; padding: clamp(48px, 6vw, 72px) var(--gutter); background: var(--leaf); color: var(--forest-ink); }
.lima-band > .wp-block-group__inner-container { display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; }
.lima-band h2 { margin: 0; max-width: 22ch; font-size: clamp(1.7rem, 3vw, 2.6rem); }
.lima-band p { margin: 8px 0 0; max-width: 60ch; }
.lima-band .wp-block-buttons { margin: 0; }

/* ---------- Stats / framework (shortcode output) ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; margin-top: 36px; }
.stat { padding: 28px; background: var(--forest); display: flex; flex-direction: column; gap: 4px; }
.stat strong { font-family: var(--font-display); font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1; letter-spacing: -0.04em; color: var(--leaf-light); }
.stat span { color: var(--white); font-weight: 600; }
.stat small { color: #B8C9AF; font-size: 0.8rem; }
.framework { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-top: 36px; }
.framework__item { display: flex; flex-direction: column; gap: 6px; padding-top: 18px; border-top: 2px solid var(--leaf); }
.framework__item strong { font-family: var(--font-display); font-size: 1.08rem; }
.framework__item span:last-child { color: var(--muted); font-size: 0.92rem; }

/* ---------- Evidence register ---------- */
.evidence-register { display: grid; gap: 22px; margin-top: 36px; }
.evidence-group { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; }
.evidence-group header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-bottom: 8px; }
.evidence-group h3 { margin: 0; }
.evidence-group header p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.evidence-list { list-style: none; margin: 0; padding: 0; }
.evidence-item {
	display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr) minmax(0, 1.4fr); gap: 4px 24px; align-items: baseline;
	padding: 16px 0; border-top: 1px solid var(--line);
}
.evidence-item__label { font-weight: 700; }
.evidence-item__value { font-family: var(--font-display); font-weight: 800; color: var(--amber); font-size: 0.92rem; }
.evidence-item.is-public .evidence-item__value { color: var(--forest); font-size: 1.35rem; letter-spacing: -0.03em; }
.evidence-item__meta { grid-column: 2; font-size: 0.8rem; color: var(--muted); }
.evidence-item__source { grid-column: 3; grid-row: 1 / span 2; font-size: 0.88rem; color: var(--muted); }

/* ---------- Product cards ---------- */
.lima-product .wp-block-image img { aspect-ratio: 4 / 3; object-fit: cover; }
.lima-spec { list-style: none; padding: 0; margin: 4px 0 18px; display: grid; gap: 6px; font-size: 0.93rem; }
.lima-spec li { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 6px; border-bottom: 1px dashed var(--line); }
.lima-spec li span:first-child { color: var(--muted); }
.lima-spec li span:last-child { font-weight: 600; text-align: right; }

/* ---------- People ---------- */
.lima-person .wp-block-group__inner-container > h3 { margin-bottom: 2px; }
.lima-person .role { font-family: var(--font-display); font-weight: 700; color: #5E7F27; font-size: 0.9rem; margin-bottom: 12px; }

/* ---------- Enquiry form ---------- */
.lima-contact { gap: clamp(28px, 5vw, 64px) !important; align-items: flex-start !important; }
.enquiry { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 36px); }
.enquiry__title { margin-bottom: 18px; }
.enquiry__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.enquiry label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 6px; }
.enquiry input:not([type="checkbox"]), .enquiry select, .enquiry textarea {
	width: 100%; min-height: 48px; padding: 12px 14px;
	border: 1px solid #C9D4C3; border-radius: var(--radius-sm); background: var(--white); color: var(--ink);
	font: inherit; font-size: 1rem;
}
.enquiry input:focus, .enquiry select:focus, .enquiry textarea:focus { outline: 3px solid var(--leaf); outline-offset: 1px; border-color: var(--forest); }
.enquiry textarea { resize: vertical; min-height: 140px; }
.enquiry__consent label { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: 0.9rem; color: var(--muted); }
.enquiry__consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--forest); flex: none; }
.enquiry__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.enquiry__status { padding: 14px 18px; border-radius: var(--radius-sm); font-weight: 600; }
.enquiry__status--success { background: var(--leaf-wash); color: #2D4A23; }
.enquiry__status--error { background: #FDE8E4; color: #8A2414; }
.enquiry button { margin-top: 6px; }
.contact-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 14px; }
.contact-list li { display: grid; gap: 2px; }
.contact-list span { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; color: var(--muted); }
.contact-list a { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; text-decoration: none; }

/* ---------- Tables (routing etc.) ---------- */
.wp-block-table table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.wp-block-table th { text-align: left; background: var(--forest); color: var(--white); padding: 12px 16px; font-family: var(--font-display); }
.wp-block-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.wp-block-table figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 10px; }

/* ---------- Review mode: content awaiting LIMA Africa confirmation ---------- */
mark.lima-pending { background: none; color: inherit; }
.lima-review mark.lima-pending {
	background: #FFE58A; color: #3D2E00; padding: 0 3px; border-radius: 3px;
	box-shadow: 0 0 0 1px #E3B90B; cursor: help;
}
.lima-review .is-forest mark.lima-pending, .lima-review .lima-subhero mark.lima-pending, .lima-review .lima-hero mark.lima-pending { color: #3D2E00; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest-deep); color: #D3E0CC; padding: clamp(56px, 7vw, 80px) var(--gutter) 28px; }
.site-footer__top {
	max-width: var(--wrap); margin-inline: auto;
	display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 40px;
	padding-bottom: 48px; border-bottom: 1px solid var(--line-dark);
}
.site-footer__brand .logo img { height: 74px; }
.site-footer__brand p { max-width: 36ch; margin-top: 18px; font-size: 0.95rem; color: #B9CAB1; }
.site-footer__heading { font-size: 1rem; color: var(--leaf-light); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 0.95rem; }
.site-footer a { color: #D3E0CC; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer__bottom {
	max-width: var(--wrap); margin-inline: auto; padding-top: 24px;
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 0.82rem; color: #A9BBA1;
}

/* ---------- Single / pagination ---------- */
.single__media { margin-top: -40px; position: relative; }
.single__media img { border-radius: var(--radius); width: 100%; }
.nav-links { display: flex; gap: 8px; margin-top: 40px; }
.page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; }
.page-numbers.current { background: var(--forest); color: var(--white); border-color: var(--forest); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.lima-grid--4 > .wp-block-group__inner-container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	ol.lima-flow, .framework { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
	.lima-grid--3 > .wp-block-group__inner-container,
	.lima-grid--2 > .wp-block-group__inner-container,
	.grid--3 { grid-template-columns: minmax(0, 1fr); }
	.site-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.site-footer__brand { grid-column: 1 / -1; }
	.evidence-item { grid-template-columns: minmax(0, 1fr) auto; }
	.evidence-item__meta { grid-column: 1 / -1; }
	.evidence-item__source { grid-column: 1 / -1; grid-row: auto; }
	ul.lima-checklist.is-columns { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 781px) {
	.lima-hero .wp-block-column:first-child { padding: 64px var(--gutter) 48px; }
	.lima-hero .wp-block-column:last-child { min-height: 280px; }
	.lima-hero .wp-block-column:last-child::after { background: linear-gradient(180deg, var(--forest) 0%, rgb(61 93 48 / 0) 30%); }
}
@media (max-width: 600px) {
	body { font-size: 1rem; }
	.lima-grid--4 > .wp-block-group__inner-container,
	ol.lima-flow, .framework, .stats { grid-template-columns: minmax(0, 1fr); }
	.enquiry__grid { grid-template-columns: minmax(0, 1fr); }
	.site-footer__top { grid-template-columns: minmax(0, 1fr); }
	.lima-band > .wp-block-group__inner-container { display: block; }
	.lima-band .wp-block-buttons { margin-top: 20px; }
	.wp-block-group.is-style-lima-card > .wp-block-group__inner-container { padding: 22px; }
	.wp-block-group.is-style-lima-card > .wp-block-group__inner-container > .wp-block-image:first-child { margin: -22px -22px 20px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Floating WhatsApp link ---------- */
.wa-float {
	position: fixed; z-index: 40;
	right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
	display: inline-flex; align-items: center; gap: 10px;
	height: 56px; padding: 0 20px 0 16px; border-radius: 999px;
	background: #25D366; color: #0B3B1E; text-decoration: none;
	font-family: var(--font-display); font-weight: 800; font-size: .95rem;
	box-shadow: 0 14px 30px -12px rgb(11 59 30 / .55), inset 0 1px 0 rgb(255 255 255 / .35);
	transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -12px rgb(11 59 30 / .6), inset 0 1px 0 rgb(255 255 255 / .35); }
.wa-float:active { transform: translateY(0) scale(.98); }
.wa-float:focus-visible { outline: 3px solid var(--forest-ink); outline-offset: 3px; }
.wa-float svg { flex: none; }
/* Phones: icon only, so it covers less of the page. */
@media (max-width: 600px) {
	.wa-float { width: 56px; padding: 0; justify-content: center; }
	.wa-float__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
body.nav-open .wa-float { display: none; }
@media print { .wa-float { display: none; } }
