/* ==========================================================================
   Energy Matters theme
   Breakpoints match the old Elementor kit:
   desktop ≥1367 (burger too if the menu would wrap) · laptop ≤1366 (burger menu) · tablet ≤1024 · mobile ≤767
   ========================================================================== */

:root {
	--em-primary: #08713D;
	--em-secondary: #8DC63F;
	--em-text: #302F2F;
	--em-mint: #EAFFDC;
	--em-sage: #C5E0B4;
	--em-grey: #E9E9E9;
	--em-yellow: #ECB425;
	--em-white: #FFFFFF;
	--em-font: Poppins, sans-serif;
	--em-font-alt: Roboto, sans-serif;
	--em-container: 1140px;
	--em-admin-bar: var(--wp-admin--admin-bar--height, 0px);
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 180px; }
body {
	margin: 0;
	font-family: var(--em-font);
	font-size: 16px;
	line-height: 1.5;
	color: var(--em-text);
	background: #fff;
	-webkit-font-smoothing: antialiased;
}
img,
svg,
video { max-width: 100%; height: auto; }
img { vertical-align: middle; border: 0; }
a { color: var(--em-secondary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--em-primary); }
button { font-family: inherit; }
h1,
h2,
h3,
h4,
h5,
h6 { margin: 0 0 16px; font-family: var(--em-font); line-height: 1.2; color: var(--em-primary); }
h1 { font-size: 3rem; font-weight: 500; }
h2 { font-size: 2.25rem; font-weight: 600; }
h3 { font-size: 1.75rem; font-weight: 600; color: var(--em-secondary); }
h4 { font-size: 1.375rem; font-weight: 500; color: var(--em-secondary); }
h5 { font-size: 1.25rem; font-weight: 400; color: var(--em-secondary); }
h6 { font-size: 1rem; font-weight: 400; color: var(--em-secondary); }
p { margin: 0 0 14.4px; }
:target::before { content: ''; display: block; height: 250px; margin-top: -250px; }
body.em-theme .em-icon { width: 1em; height: 1em; fill: currentColor; flex: none; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	position: fixed !important; top: 10px; left: 10px; z-index: 100000; width: auto; height: auto; clip: auto;
	padding: 12px 20px; background: #fff; color: var(--em-primary); font-weight: 600; border-radius: 6px;
}
:focus-visible { outline: 3px solid #f0b400; outline-offset: 2px; }

body.em-theme .em-container { width: min(var(--em-container), 100% - 40px); margin-inline: auto; }
body.em-theme .em-btn {
	display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border: 0; border-radius: 20px;
	background: var(--em-primary); color: #fff; font: 400 18px/1 var(--em-font); cursor: pointer;
}
body.em-theme .em-btn:hover { background: var(--em-secondary); color: #fff; }
body.em-theme .em-btn .em-icon { font-size: 16px; }

/* ==========================================================================
   Header
   ========================================================================== */
body.em-theme .em-header {
	position: sticky;
	top: var(--em-admin-bar);
	z-index: 100;
}
body.em-theme .em-bar {
	position: relative;
	z-index: 100;
	display: flex;
	align-items: stretch;
	min-height: 100px;
	padding: 0 30px;
	background: var(--em-primary);
}
body.em-theme .em-bar-logo {
	display: flex; flex-direction: column; justify-content: center;
	width: 12%; flex: none; padding: 10px;
}
body.em-theme .em-logo { display: block; line-height: 0; }
body.em-theme .em-logo-img { width: 100%; height: auto; }

body.em-theme .em-bar-nav {
	display: flex; align-items: center; justify-content: flex-end; gap: 10px;
	flex: 1 1 auto; min-width: 0; padding: 10px;
}
body.em-theme .em-bar-ctas {
	display: flex; align-items: center; justify-content: center; gap: 10px;
	flex: none; padding: 10px 0 10px 10px;
}

/* Header icons (search, phone) */
body.em-theme .em-hicon { display: inline-flex; color: var(--em-secondary); line-height: 1; transition: transform .2s, color .2s; }
body.em-theme .em-hicon:hover { color: #fff; transform: scale(.9); }
body.em-theme .em-hicon-search { font-size: 35px; }
body.em-theme .em-hicon-phone { font-size: 29px; margin-left: 0; }

/* Header buttons */
body.em-theme .em-hbtn {
	display: inline-flex; align-items: center; gap: 10px; flex: none;
	width: 142px; height: 62px; padding: 0 12px; border-radius: 15px;
	font: 600 14px/1.15 var(--em-font); color: var(--em-text); text-align: left;
	transition: transform .2s;
}
body.em-theme .em-hbtn:hover { color: var(--em-text); transform: scale(.95); }
body.em-theme .em-hbtn .em-icon { font-size: 15px; width: 18px; }
body.em-theme .em-hbtn-calc { background: #fff; }
body.em-theme .em-hbtn-calc span { flex: 1; }
body.em-theme .em-hbtn-quote { background: var(--em-yellow); }
body.em-theme .em-hbtn-quote span { flex: 1; }

/* Undo the base reset's button hover colours on header controls */
body.em-theme .em-burger:hover,
body.em-theme .em-burger:focus,
body.em-theme .em-nav-toggle:hover,
body.em-theme .em-nav-toggle:focus,
body.em-theme .em-banners-prev:hover,
body.em-theme .em-banners-prev:focus,
body.em-theme .em-banners-next:hover,
body.em-theme .em-banners-next:focus {
	background: none; border: 0; text-decoration: none;
}
body.em-theme .em-nav-toggle:focus,
body.em-theme .em-banners-prev:focus,
body.em-theme .em-banners-next:focus { color: inherit; }
body.em-theme .em-nav-link.em-nav-toggle:hover,
body.em-theme .em-nav-link.em-nav-toggle:focus { color: var(--em-secondary); }
body.em-theme .em-burger:focus { color: var(--em-secondary); }

/* Burger (shown ≤1366) */
body.em-theme .em-burger {
	display: none; padding: 0; border: 0; background: none; cursor: pointer;
	color: var(--em-secondary); font-size: 51px; line-height: 1; border-radius: 3px;
}
body.em-theme .em-burger:hover { color: #fff; }
body.em-theme .em-burger .em-burger-close { display: none; color: #fff; }
body.em-theme .em-burger[aria-expanded="true"] .em-burger-open { display: none; }
body.em-theme .em-burger[aria-expanded="true"] .em-burger-close { display: block; }

/* ---------- Main menu (desktop) ---------- */
body.em-theme .em-nav { flex: 1 1 auto; min-width: 0; }
body.em-theme .em-nav-list {
	display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center;
	margin: 0; padding: 0; list-style: none;
}
body.em-theme .em-nav-item { position: static; }
body.em-theme .em-nav-row { display: flex; align-items: center; gap: 5px; padding: 8px 16px; }
body.em-theme .em-nav-link {
	display: inline-flex; align-items: center; padding: 0; border: 0; background: none; cursor: pointer;
	font: 500 14px/21px var(--em-font); color: #fff; white-space: nowrap;
}
body.em-theme a.em-nav-link:hover,
body.em-theme .em-nav-link:hover,
body.em-theme .em-nav-item.is-open > .em-nav-row .em-nav-link,
body.em-theme .em-nav-item.is-current > .em-nav-row .em-nav-link { color: var(--em-secondary); }
body.em-theme .em-nav-caret {
	display: inline-flex; flex-direction: column; justify-content: center; padding: 0; border: 0; border-radius: 3px;
	background: none; color: #fff; cursor: pointer; font-size: 14px; line-height: 21px;
}
body.em-theme .em-nav-caret .em-icon { width: 14px; height: 14px; transition: transform .2s; }
body.em-theme .em-nav-item.is-open .em-nav-caret { color: var(--em-secondary); }
body.em-theme .em-nav-item.is-open .em-nav-caret .em-icon { transform: rotate(180deg); }
body.em-theme .em-nav-empty { margin: 0; }
body.em-theme .em-nav-empty a { color: #fff; text-decoration: underline; }

/* Mega panel */
body.em-theme .em-mega {
	display: none;
	position: absolute; top: 100%; left: 0; right: 0; z-index: 150;
	padding: 50px 20px;
	background: var(--em-mint);
	box-shadow: 0 12px 24px rgba(0, 0, 0, .08);
	max-height: calc(100vh - 100px - var(--em-admin-bar));
	overflow-y: auto;
}
body.em-theme .em-nav-item.is-open > .em-mega { display: block; animation: em-fade .15s ease-out; }
@keyframes em-fade { from { opacity: 0; } to { opacity: 1; } }
body.em-theme .em-mega-inner { max-width: var(--em-container); margin: 0 auto; }

/* Panel content (blocks inside the "Mega menu: …" patterns) */
body.em-theme .em-mega .wp-block-group { margin: 0; }
body.em-theme .em-mega p,
body.em-theme .em-mega ul,
body.em-theme .em-mega figure { margin: 0; }
body.em-theme .em-mm { display: flex; flex-direction: column; gap: 20px; }
body.em-theme .em-mm-head { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
body.em-theme .em-mm-title { font: 600 28.8px/1 var(--em-font); color: var(--em-primary); }
body.em-theme .em-mm-pill { display: flex; gap: 10px; }
body.em-theme .em-mm-pill .wp-block-button__link,
body.em-theme .em-mm-cta-btn .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	padding: 12px 24px; border-radius: 20px; background: var(--em-primary); color: #fff;
	font: 500 18px/1 var(--em-font); text-decoration: none; transition: transform .2s, background .2s;
}
body.em-theme .em-mm-pill .wp-block-button__link::after {
	content: ''; width: 11px; height: 18px; background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'%3E%3Cpath d='M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'%3E%3Cpath d='M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z'/%3E%3C/svg%3E") center / contain no-repeat;
}
body.em-theme .em-mm-pill .wp-block-button__link:hover,
body.em-theme .em-mm-cta-btn .wp-block-button__link:hover { background: var(--em-secondary); color: #fff; transform: scale(.97); }

body.em-theme .em-mm-grid { display: grid; gap: 20px; align-items: start; }
body.em-theme .em-mm-grid-1 { grid-template-columns: minmax(0, 35%); }
body.em-theme .em-mm-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.em-theme .em-mm-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body.em-theme .em-mm-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
body.em-theme .em-mm-col { display: flex; flex-direction: column; gap: 0; }
body.em-theme .em-mm-sub {
	font: 500 22.4px/1 var(--em-font); color: var(--em-primary);
	padding-bottom: 6px; margin-bottom: 20px !important; border-bottom: 1px solid var(--em-secondary);
}
body.em-theme .em-mm-list { list-style: none; padding: 0 !important; }
body.em-theme .em-mm-list li { padding: 1px 0; }
body.em-theme .em-mm-list a { display: block; font: 400 18px/27px var(--em-font); color: var(--em-primary); }
body.em-theme .em-mm-list a:hover { color: var(--em-secondary); }

body.em-theme .em-mm-cta {
	display: flex; flex-direction: column; justify-content: center; gap: 20px; align-self: stretch;
	padding: 20px; background: #fff; border: 1px solid var(--em-primary); border-radius: 20px;
}
body.em-theme .em-mm-cta-text { font: 500 19.2px/1 var(--em-font); color: var(--em-primary); text-align: center; }
body.em-theme .em-mm-cta-btn,
body.em-theme .em-mm-cta-btn .wp-block-button { display: block; width: 100%; }
body.em-theme .em-mm-cta-btn .wp-block-button__link { display: flex; width: 100%; font-weight: 400; }

/* Logos (TV & Media, Products) */
body.em-theme .em-mm-logos { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
body.em-theme .em-mm-logos .wp-block-image { width: 171px; }
body.em-theme .em-mm-logos img { width: 100%; height: auto; transition: transform .2s; }
body.em-theme .em-mm-logos a:hover img { transform: scale(.95); }
body.em-theme .em-mm-logos-grid { width: 50%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px 20px; justify-items: start; }
body.em-theme .em-mm-logos-grid .wp-block-image { width: 128px; }

/* State Info accordions */
body.em-theme .em-mm-acc { display: flex; flex-direction: column; }
body.em-theme .em-mm-acc .wp-block-details { margin: 0; }
body.em-theme .em-mm-acc summary {
	display: flex; align-items: center; gap: 10px; padding: 10px;
	font: 600 18px/27px var(--em-font); color: var(--em-primary); cursor: pointer; list-style: none;
}
body.em-theme .em-mm-acc summary::-webkit-details-marker { display: none; }
body.em-theme .em-mm-acc summary::before {
	content: ''; width: 13px; height: 15px; flex: none; background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z'/%3E%3C/svg%3E") center / contain no-repeat;
}
body.em-theme .em-mm-acc details[open] > summary::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z'/%3E%3C/svg%3E");
	        mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z'/%3E%3C/svg%3E");
}
body.em-theme .em-mm-acc details > .em-mm-list { padding: 0 10px 10px 33px !important; }

/* Banner carousel */
body.em-theme .em-banners { position: relative; z-index: 50; overflow: hidden; background: #fff; }
body.em-theme .em-banners-track { display: flex; transition: transform .5s ease; will-change: transform; }
body.em-theme .em-banner { flex: 0 0 100%; display: block; line-height: 0; }
body.em-theme .em-banner img { width: 100%; height: auto; aspect-ratio: 20 / 1; object-fit: cover; }
body.em-theme .em-banners-prev,
body.em-theme .em-banners-next {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
	display: flex; padding: 0; border: 0; background: none; cursor: pointer;
	font-size: 25px; color: rgba(238, 238, 238, .9);
}
body.em-theme .em-banners-prev { left: 0; }
body.em-theme .em-banners-next { right: 0; }

/* ---------- Laptop & below: burger menu ---------- */
@media (max-width: 1366px) {
	body.em-theme .em-burger { display: inline-flex; }
	body.em-theme .em-bar-nav { position: static; }
	body.em-theme .em-nav {
		display: none;
		position: absolute; top: 100%; left: 0; right: 0; z-index: 150;
		max-height: calc(100vh - 100px - var(--em-admin-bar)); overflow-y: auto;
		background: var(--em-sage);
		box-shadow: 0 12px 24px rgba(0, 0, 0, .12);
	}
	body.em-theme .em-nav.is-open { display: block; }
	body.em-theme .em-nav-list { flex-direction: column; align-items: stretch; justify-content: flex-start; flex-wrap: nowrap; }
	body.em-theme .em-nav-item { border-bottom: 1px solid rgba(8, 113, 61, .12); }
	body.em-theme .em-nav-row { justify-content: space-between; padding: 12px 20px; }
	body.em-theme .em-nav-link { font-size: 16px; line-height: 24px; color: var(--em-primary); flex: 1; text-align: left; }
	body.em-theme .em-nav-caret { color: var(--em-primary); font-size: 18px; padding: 4px; }
	body.em-theme .em-nav-caret .em-icon { width: 18px; height: 18px; }
	body.em-theme .em-mega { position: static; max-height: none; box-shadow: none; padding: 20px; }
	body.em-theme .em-mm-logos-grid { width: 100%; }
}
@media (max-width: 1366px) and (min-width: 1025px) {
	body.em-theme .em-burger { font-size: 51px; }
}


/* Desktop widths where the menu doesn't fit on one line: the script adds .em-nav-compact
   to <body> and the header switches to the burger, same as on laptops. */
@media (min-width: 1367px) {
	body.em-theme.em-nav-compact .em-burger { display: inline-flex; }
	body.em-theme.em-nav-compact .em-bar-nav { position: static; }
	body.em-theme.em-nav-compact .em-nav {
		display: none;
		position: absolute; top: 100%; left: 0; right: 0; z-index: 150;
		max-height: calc(100vh - 100px - var(--em-admin-bar)); overflow-y: auto;
		background: var(--em-sage);
		box-shadow: 0 12px 24px rgba(0, 0, 0, .12);
	}
	body.em-theme.em-nav-compact .em-nav.is-open { display: block; }
	body.em-theme.em-nav-compact .em-nav-list { flex-direction: column; align-items: stretch; justify-content: flex-start; flex-wrap: nowrap; }
	body.em-theme.em-nav-compact .em-nav-item { border-bottom: 1px solid rgba(8, 113, 61, .12); }
	body.em-theme.em-nav-compact .em-nav-row { justify-content: space-between; padding: 12px 20px; }
	body.em-theme.em-nav-compact .em-nav-link { font-size: 16px; line-height: 24px; color: var(--em-primary); flex: 1; text-align: left; }
	body.em-theme.em-nav-compact .em-nav-caret { color: var(--em-primary); font-size: 18px; padding: 4px; }
	body.em-theme.em-nav-compact .em-nav-caret .em-icon { width: 18px; height: 18px; }
	body.em-theme.em-nav-compact .em-mega { position: static; max-height: none; box-shadow: none; padding: 20px; }
	body.em-theme.em-nav-compact .em-mm-logos-grid { width: 100%; }

	body.em-theme.em-nav-compact .em-burger { font-size: 51px; }
}


/* Burger menu, tablet & up: headings in a column on the left, the open dropdown on the right. */
@media (min-width: 768px) and (max-width: 1366px) {
	body.em-theme .em-nav.is-open { min-height: min(480px, calc(100vh - 100px - var(--em-admin-bar))); }
	body.em-theme .em-nav-list { width: 280px; min-height: inherit; background: var(--em-sage); }
	body.em-theme .em-nav-row { padding: 9px 20px; }
	body.em-theme .em-nav-link { font-size: 15px; line-height: 22px; }
	body.em-theme .em-nav-caret .em-icon { width: 16px; height: 16px; transform: rotate(-90deg); }
	body.em-theme .em-nav-item.is-open .em-nav-caret .em-icon { transform: rotate(-90deg); }
	body.em-theme .em-nav-item.is-open > .em-nav-row { background: var(--em-mint); }
	body.em-theme .em-nav-item.is-open > .em-nav-row .em-nav-link { color: var(--em-primary); font-weight: 600; }
	body.em-theme .em-mega {
		position: absolute; top: 0; right: 0; bottom: 0; left: 280px;
		padding: 30px; overflow-y: auto; max-height: none;
		background: var(--em-mint);
	}
}
@media (min-width: 1367px) {
	body.em-theme.em-nav-compact .em-nav.is-open { min-height: min(480px, calc(100vh - 100px - var(--em-admin-bar))); }
	body.em-theme.em-nav-compact .em-nav-list { width: 280px; min-height: inherit; background: var(--em-sage); }
	body.em-theme.em-nav-compact .em-nav-row { padding: 9px 20px; }
	body.em-theme.em-nav-compact .em-nav-link { font-size: 15px; line-height: 22px; }
	body.em-theme.em-nav-compact .em-nav-caret .em-icon { width: 16px; height: 16px; transform: rotate(-90deg); }
	body.em-theme.em-nav-compact .em-nav-item.is-open .em-nav-caret .em-icon { transform: rotate(-90deg); }
	body.em-theme.em-nav-compact .em-nav-item.is-open > .em-nav-row { background: var(--em-mint); }
	body.em-theme.em-nav-compact .em-nav-item.is-open > .em-nav-row .em-nav-link { color: var(--em-primary); font-weight: 600; }
	body.em-theme.em-nav-compact .em-mega {
		position: absolute; top: 0; right: 0; bottom: 0; left: 280px;
		padding: 30px; overflow-y: auto; max-height: none;
		background: var(--em-mint);
	}
}
/* Burger menu, phones: a tighter list with dropdowns opening underneath. */
@media (max-width: 767px) {
	body.em-theme .em-nav-row { padding: 9px 16px; }
	body.em-theme .em-nav-link { font-size: 15px; line-height: 22px; }
	body.em-theme .em-nav-caret .em-icon { width: 16px; height: 16px; }
	body.em-theme .em-mega { padding: 16px; background: var(--em-mint); }
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
	body.em-theme .em-bar { padding: 0; }
	body.em-theme .em-bar-logo { width: 40%; }
	body.em-theme .em-burger { font-size: 35px; }
	body.em-theme .em-mm-grid-3,
body.em-theme .em-mm-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	body.em-theme .em-mm-grid-1 { grid-template-columns: 1fr; }
	body.em-theme .em-mm-logos-grid { grid-template-columns: repeat(4, 1fr); }
	body.em-theme .em-mm-logos .wp-block-image { width: 140px; }
	body.em-theme .em-mm-logos-grid .wp-block-image { width: 100%; max-width: 128px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
	/* Only the green bar sticks on mobile (the banner scrolls away), as before. */
	body.em-theme .em-header { display: contents; }
	body.em-theme .em-bar {
		position: sticky; top: var(--em-admin-bar);
		flex-wrap: wrap; min-height: 0; padding: 0;
	}
	body.em-theme .em-bar-logo { width: 45%; padding: 10px; }
	body.em-theme .em-bar-nav { flex: 1 1 0; justify-content: flex-end; padding: 10px; }
	body.em-theme .em-burger { font-size: 41px; }
	body.em-theme .em-bar-ctas {
		width: 100%; justify-content: space-between; gap: 10px;
		margin-top: -10px; padding: 10px;
	}
	body.em-theme .em-hbtn { width: auto; flex: 1 1 0; height: 44px; font-size: 12px; gap: 10px; }
	body.em-theme .em-hbtn .em-icon { font-size: 12px; width: 14px; }
	body.em-theme .em-hbtn-calc span,
body.em-theme .em-hbtn-quote span { width: auto; }
	body.em-theme .em-nav { max-height: calc(100vh - 119px - var(--em-admin-bar)); }
	body.em-theme .em-nav-link { font-size: 15px; line-height: 22px; }
	body.em-theme .em-banner img { aspect-ratio: 5 / 2; }
	body.em-theme .em-mm-title { font-size: 24px; }
	body.em-theme .em-mm-head { gap: 16px; }
	body.em-theme .em-mm-grid-2,
body.em-theme .em-mm-grid-3,
body.em-theme .em-mm-grid-4 { grid-template-columns: 1fr; }
	body.em-theme .em-mm-logos { gap: 12px; }
	body.em-theme .em-mm-logos .wp-block-image { width: calc(50% - 6px); }
	body.em-theme .em-mm-logos-grid { grid-template-columns: repeat(3, 1fr); }
	body.em-theme .em-hide-mobile { display: none !important; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
body.em-theme .em-footer { font-family: var(--em-font); }
body.em-theme .em-footer p { margin: 0 0 14.4px; }
body.em-theme .em-footer p:last-child { margin-bottom: 0; }
body.em-theme .em-footer .wp-block-group,
body.em-theme .em-footer figure { margin: 0; }

/* Recommended brands */
body.em-theme .em-f-brands { padding: 30px 0; background: var(--em-grey); }
body.em-theme .em-brands { display: flex; align-items: center; gap: 20px; }
body.em-theme .em-brands-intro {
	flex: 0 0 calc((100% - 20px) * .25); padding: 10px; margin: 0 !important;
	font: 500 18px/27px var(--em-font); color: var(--em-text);
}
body.em-theme .em-brands-logos { flex: 1 1 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
body.em-theme .em-brands-logos .wp-block-image { width: 118px; padding: 10px; }
body.em-theme .em-brands-logos img { width: 100%; height: auto; transition: transform .2s; }
body.em-theme .em-brands-logos a:hover img { transform: scale(.95); }

/* Newsletter */
body.em-theme .em-f-subscribe { padding: 30px 0; background: var(--em-secondary); }
body.em-theme .em-f-subscribe .em-container { display: flex; gap: 20px; }
body.em-theme .em-f-subscribe-text,
body.em-theme .em-f-subscribe-form { flex: 1 1 0; min-width: 0; padding: 10px; }
body.em-theme .em-f-subscribe h4 { margin: 20px 0; font: 600 22px/1 var(--em-font); color: var(--em-primary); }
body.em-theme .em-f-subscribe-text p { font: 400 18px/27px var(--em-font); color: #fff; }
body.em-theme .em-anchor { display: block; position: relative; top: -200px; }

/* Fluent Forms inside the newsletter strip */
body.em-theme .em-f-subscribe .em-container { align-items: center; }
body.em-theme .em-f-subscribe .fluentform fieldset { display: flex; flex-direction: column; gap: 12px; }
body.em-theme .em-f-subscribe .fluentform .ff-el-group,
body.em-theme .em-f-subscribe .fluentform .ff-field_container { margin: 0; }
body.em-theme .em-f-subscribe .fluentform .ff-t-container { display: flex; gap: 12px; margin: 0; }
body.em-theme .em-f-subscribe .fluentform .ff-t-container .ff-t-cell { flex: 1 1 0; padding: 0 !important; }
body.em-theme .em-f-subscribe .fluentform .ff-t-container .ff-t-cell .ff-el-group { margin: 0; }
body.em-theme .em-f-subscribe .fluentform .ff-el-input--label { display: none; }
body.em-theme .em-f-subscribe .fluentform .ff-el-form-control {
	width: 100%; height: 50px; padding: 0 18px; margin: 0;
	border: 2px solid transparent; border-radius: 10px; background: #fff;
	box-shadow: 0 2px 6px rgba(8, 113, 61, .12);
	font: 400 16px/1.4 var(--em-font); color: var(--em-text);
	transition: border-color .2s, box-shadow .2s;
}
body.em-theme .em-f-subscribe .fluentform .ff-el-form-control::placeholder { color: #6b7d72; opacity: 1; }
body.em-theme .em-f-subscribe .fluentform .ff-el-form-control:focus {
	border-color: var(--em-primary); outline: none; box-shadow: 0 0 0 3px rgba(255, 255, 255, .6);
}
body.em-theme .em-f-subscribe .fluentform .ff_submit_btn_wrapper { margin: 4px 0 0; }
body.em-theme .em-f-subscribe .fluentform .ff-btn-submit {
	height: 50px; padding: 0 36px; border: 0; border-radius: 10px;
	background: var(--em-primary) !important; color: #fff !important;
	font: 600 16px/1 var(--em-font); letter-spacing: .02em; cursor: pointer;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .12); transition: background .2s, transform .2s;
}
body.em-theme .em-f-subscribe .fluentform .ff-btn-submit:hover { background: #055a30 !important; transform: translateY(-1px); opacity: 1; }
body.em-theme .em-f-subscribe .ff-message-success { border: 0; padding: 14px 18px; background: #fff; color: var(--em-primary); border-radius: 10px; font-weight: 500; }
body.em-theme .em-f-subscribe .error.text-danger { margin-top: 6px; color: #fff; font-size: 14px; font-weight: 500; }

/* Main footer */
body.em-theme .em-f-main { padding: 30px 0; background: var(--em-primary); color: #fff; }
body.em-theme .em-f-main .em-container { display: flex; gap: 20px; }
body.em-theme .em-f-contact { flex: 0 0 43%; display: flex; flex-direction: column; gap: 20px; padding: 10px; }
body.em-theme .em-f-col { flex: 1 1 0; display: flex; flex-direction: column; gap: 20px; padding: 10px; }
body.em-theme .em-f-logo { display: block; width: 287px; max-width: 100%; line-height: 0; }
body.em-theme .em-f-logo img { width: 100%; height: auto; }
body.em-theme .em-f-contact-list,
body.em-theme .em-f-social,
body.em-theme .em-footer-links { margin: 0; padding: 0; list-style: none; }
body.em-theme .em-f-contact-list li + li { margin-top: 11px; }
body.em-theme .em-f-contact-list a { display: flex; align-items: center; gap: 10px; font: 400 18px/27px var(--em-font); color: #fff; }
body.em-theme .em-f-contact-list a .em-icon { font-size: 30px; color: var(--em-secondary); }
body.em-theme .em-f-contact-list a span { padding-left: 4px; }
body.em-theme .em-f-contact-list a:hover { color: var(--em-secondary); }
body.em-theme .em-f-social { display: flex; gap: 12px; }
body.em-theme .em-f-social a {
	display: flex; align-items: center; justify-content: center; width: 39px; height: 39px;
	border-radius: 50%; background: var(--em-secondary); color: var(--em-primary); transition: transform .2s;
}
body.em-theme .em-f-social a:hover { transform: scale(.9); color: var(--em-primary); }
body.em-theme .em-f-social .em-icon { font-size: 28px; }
body.em-theme .em-f-col h4 { margin: 0; font: 400 22px/1 var(--em-font); color: var(--em-secondary); }
body.em-theme .em-footer-links a { display: flex; align-items: flex-start; gap: 4px; font: 400 18px/27px var(--em-font); color: #fff; }
body.em-theme .em-footer-links a .em-icon { font-size: 14px; margin-top: 4px; color: var(--em-secondary); }
body.em-theme .em-footer-links a span { padding-left: 5px; }
body.em-theme .em-footer-links a:hover { color: var(--em-secondary); }

/* Awards */
body.em-theme .em-f-awards { padding: 20px 0; background: #fff; }
body.em-theme .em-awards { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
body.em-theme .em-awards .wp-block-image { width: 116px; display: flex; justify-content: center; }
body.em-theme .em-awards img { max-width: 100px; max-height: 100px; width: auto; height: auto; }

/* Bottom line */
body.em-theme .em-f-bottom { padding: 20px 0; background: var(--em-grey); }
body.em-theme .em-f-bottom p { font: 400 18px/27px var(--em-font); color: var(--em-text); }

@media (max-width: 1024px) {
	body.em-theme .em-brands { flex-direction: column; }
	body.em-theme .em-brands-intro { flex: none; text-align: center; }
	body.em-theme .em-f-main .em-container { flex-wrap: wrap; }
	body.em-theme .em-f-contact { flex: 0 0 100%; }
	body.em-theme .em-awards { flex-wrap: wrap; justify-content: center; }
}
@media (max-width: 767px) {
	body.em-theme .em-f-subscribe .em-container { flex-direction: column; gap: 0; }
	body.em-theme .em-f-subscribe .fluentform .ff-t-container { flex-direction: column; gap: 12px; }
	body.em-theme .em-f-subscribe .fluentform .ff-btn-submit { width: 100%; }
	body.em-theme .em-f-col { flex: 0 0 100%; }
	body.em-theme .em-brands-logos .wp-block-image { width: 30%; }
	body.em-theme .em-awards .wp-block-image { width: 40%; }
	body.em-theme .em-f-bottom p { font-size: 16px; line-height: 24px; }
}

/* ==========================================================================
   Content (Gutenberg)
   ========================================================================== */
body.em-theme .em-main { display: block; }
body.em-theme .em-content { font: 400 18px/27px var(--em-font); color: var(--em-text); }
body.em-theme .em-content > * { margin-top: 0; }
body.em-theme .em-content p { margin: 0 0 14.4px; }
body.em-theme .em-content h2 { font-size: 36px; line-height: 1.2; font-weight: 600; margin: 8px 0 16px; color: var(--em-primary); }
body.em-theme .em-content h3 { font-size: 28px; line-height: 1.2; font-weight: 600; margin: 8px 0 16px; color: var(--em-secondary); }
body.em-theme .em-content h4 { font-size: 22px; line-height: 1.2; font-weight: 500; margin: 8px 0 16px; color: var(--em-secondary); }
body.em-theme .em-content h5 { font-size: 20px; margin: 8px 0 16px; }
body.em-theme .em-content ul,
body.em-theme .em-content ol { margin: 0 0 14.4px; padding-left: 40px; }
body.em-theme .em-content li { margin: 0; }
body.em-theme .em-content a { color: var(--em-secondary); }
body.em-theme .em-content a:hover { color: var(--em-primary); }
body.em-theme .em-content img { border-radius: 0; }
body.em-theme .em-content figure { margin: 0 0 14.4px; }
body.em-theme .em-content figcaption { font-size: 14px; color: #6b6b6b; text-align: center; }
body.em-theme .em-content blockquote { margin: 0 0 14.4px; }
body.em-theme .em-content table { width: 100%; margin-bottom: 15px; border-spacing: 0; border-collapse: collapse; font-size: .9em; }
body.em-theme .em-content table td,
body.em-theme .em-content table th { padding: .5em; line-height: 1.5; vertical-align: top; border: 1px solid rgba(128, 128, 128, .5); }
body.em-theme .em-content table th { font-weight: 700; }
body.em-theme .em-content table tbody > tr:nth-child(odd) > td { background-color: rgba(128, 128, 128, .07); }
body.em-theme .em-content .wp-block-table { overflow-x: auto; }
body.em-theme .em-content .wp-block-button__link { text-decoration: none; }
body.em-theme .em-content .wp-block-button__link:hover { color: #fff; }
body.em-theme .em-content iframe { max-width: 100%; }
body.em-theme .em-content .alignleft { float: left; margin: 0 20px 14px 0; }
body.em-theme .em-content .alignright { float: right; margin: 0 0 14px 20px; }
body.em-theme .em-content .aligncenter { margin-left: auto; margin-right: auto; }
body.em-theme .em-content::after { content: ''; display: table; clear: both; }

/* Full-width & blank templates: edge-to-edge content with normal/wide/full alignments */
body.em-theme .em-content-full > * { max-width: var(--em-container); margin-left: auto; margin-right: auto; }
body.em-theme .em-content-full > *:not(.alignfull) { width: min(var(--em-container), 100% - 40px); }
body.em-theme .em-content-full > .alignfull { max-width: none; width: 100%; }
body.em-theme .em-content-full > .alignwide { max-width: var(--em-container); }

/* ==========================================================================
   Single post
   ========================================================================== */
body.em-theme .em-single-wrap {
	display: flex; align-items: flex-start; gap: 20px;
	width: min(var(--em-container), 100% - 40px); margin: 20px auto;
}
body.em-theme .em-article {
	flex: 1 1 auto; min-width: 0; max-width: 916px;
	display: flex; flex-direction: column; gap: 20px;
	padding: 10px; background: #fff; border-radius: 20px;
}
body.em-theme .em-article-top { display: flex; gap: 15px; }
body.em-theme .em-article-intro { flex: 0 0 calc((100% - 15px) * .6); min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
body.em-theme .em-article-cta { flex: 1 1 0; min-width: 0; }

body.em-theme .em-post-meta { display: flex; flex-wrap: wrap; gap: 16px; margin: 0; padding: 0; list-style: none; font: 400 16px/24px var(--em-font-alt); color: var(--em-secondary); }
body.em-theme .em-post-meta li { display: flex; align-items: center; }
body.em-theme .em-post-meta .em-icon { font-size: 14px; color: var(--em-primary); }
body.em-theme .em-post-meta span { padding-left: 5px; }
body.em-theme .em-article-title { margin: 0; font: 700 32px/38px var(--em-font); color: var(--em-primary); }
body.em-theme .em-article-excerpt { font: italic 400 20px/30px var(--em-font-alt); color: var(--em-text); }
body.em-theme .em-article-excerpt p { margin: 0; }
body.em-theme .em-article-byline { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
body.em-theme .em-author { display: flex; align-items: center; gap: 10px; }
body.em-theme .em-author-avatar { line-height: 0; }
body.em-theme .em-author-avatar img { width: 41px; height: 41px; border-radius: 50%; object-fit: cover; }
body.em-theme .em-author-name { font: 600 18px/21.6px var(--em-font-alt); color: var(--em-secondary); }

body.em-theme .em-share { display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; }
body.em-theme .em-share a {
	display: flex; align-items: center; justify-content: center; width: 29px; height: 29px;
	border-radius: 50%; color: #fff; font-size: 14px; transition: opacity .2s;
}
body.em-theme .em-share a:hover { opacity: .9; color: #fff; }
body.em-theme .em-share-facebook { background: #3b5998; }
body.em-theme .em-share-x { background: #000; }
body.em-theme .em-share-linkedin { background: #0077b5; }
body.em-theme .em-share-threads { background: #000; }
body.em-theme .em-share-reddit { background: #ff4500; }

body.em-theme .em-article-image { margin: 0; }
body.em-theme .em-article-image img { display: block; width: 100%; height: auto; border-radius: 20px; }
body.em-theme .em-article-image figcaption { margin-top: 8px; font: italic 400 18px/1.4 var(--em-font); text-align: center; }

body.em-theme .em-post-about { margin: 0; padding: 20px; background: var(--em-grey); font: 400 16px/24px var(--em-font); color: var(--em-text); }
body.em-theme .em-post-about p { margin: 0 0 14.4px; }
body.em-theme .em-post-about p:last-child { margin-bottom: 0; }

body.em-theme .em-post-nav { display: flex; align-items: center; padding: 28px 0; font-family: var(--em-font); color: var(--em-primary); }
body.em-theme .em-post-nav-prev,
body.em-theme .em-post-nav-next { flex: 1 1 0; min-width: 0; }
body.em-theme .em-post-nav-next { text-align: right; }
body.em-theme .em-post-nav a { display: inline-flex; align-items: center; gap: 15px; color: var(--em-primary); }
body.em-theme .em-post-nav a > .em-icon { font-size: 30px; color: var(--em-primary); }
body.em-theme .em-post-nav-text { display: flex; flex-direction: column; }
body.em-theme .em-post-nav-label { font-size: 12.8px; line-height: 19.2px; color: var(--em-primary); }
body.em-theme .em-post-nav-title { font-size: 11.2px; line-height: 16.8px; color: var(--em-secondary); }
body.em-theme .em-post-nav a:hover .em-post-nav-title { color: var(--em-primary); }
body.em-theme .em-post-nav-sep { width: 1px; align-self: stretch; margin: 0 28px; background: var(--em-primary); }

/* Compact related posts under the post */
body.em-theme .em-related-inline { display: none; padding: 20px; background: #F5F7F4; border-radius: 15px; }
body.em-theme .em-related-inline-title { margin: 0 0 14px; font: 600 18px/1.2 var(--em-font); color: var(--em-primary); }
body.em-theme .em-related-inline-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
body.em-theme .em-related-inline-list a { display: flex; align-items: center; gap: 14px; color: var(--em-primary); }
body.em-theme .em-related-inline-thumb {
	flex: 0 0 112px; height: 70px; overflow: hidden; border-radius: 8px; background: #d9d9d9; line-height: 0;
}
body.em-theme .em-related-inline-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
body.em-theme .em-related-inline-text { font: 600 14px/1.4 var(--em-font); color: var(--em-primary); }
body.em-theme .em-related-inline-list a:hover .em-related-inline-text { color: var(--em-secondary); }
body.em-theme .em-related-inline-list a:hover img { transform: scale(1.05); }

/* Sidebar */
body.em-theme .em-sidebar { flex: 0 0 204px; align-self: stretch; display: flex; flex-direction: column; gap: 20px; background: #fff; border-radius: 15px; }
body.em-theme .em-related { padding: 10px; display: flex; flex-direction: column; gap: 20px; }
body.em-theme .em-related-title { margin: 0; font: 400 20px/1 var(--em-font); color: var(--em-primary); text-align: center; }
body.em-theme .em-card { overflow: hidden; border-radius: 15px; background: var(--em-grey); }
body.em-theme .em-card-thumb { display: block; height: 200px; background: #d9d9d9; line-height: 0; }
body.em-theme .em-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
body.em-theme .em-card-title { margin: 0; padding: 20px 10px 25px; font: 600 16px/19.2px var(--em-font-alt); }
body.em-theme .em-card-title a { color: var(--em-primary); }
body.em-theme .em-card-title a:hover { color: var(--em-secondary); }
/* The ad slider sticks below the header while the post scrolls (desktop) */
body.em-theme .em-sidebar-ads {
	position: sticky;
	top: calc(var(--em-admin-bar) + var(--em-header-h, 172px) + 20px);
	padding: 10px;
}

/* Postcode capture box */
body.em-theme .emp { --emp-dark: #0d5c3d; --emp-mid: #1f8a57; --emp-tint: #eef6ec; --emp-line: #d3e2d6; --emp-ink: #1d2b24;
	max-width: 640px; margin: 0 auto; font-family: var(--em-font); color: var(--emp-ink); line-height: 1.5; font-size: 16px; text-align: left; }
body.em-theme .emp * { box-sizing: border-box; font-family: inherit; }
body.em-theme .emp .emp-form { background: var(--emp-tint); border: 1px solid var(--emp-line); border-radius: 12px; padding: 1.4rem; margin: 0; }
body.em-theme .emp .emp-label { display: block; font-weight: 600; font-size: 1.05rem; line-height: 1; color: var(--emp-dark); margin: 0 0 .8rem; }
body.em-theme .emp .emp-row { display: flex; gap: .6rem; flex-wrap: wrap; }
body.em-theme .emp input { flex: 1 1 170px; width: 100%; min-width: 0; max-width: 260px; padding: .75rem 1rem; font-size: 1.1rem; letter-spacing: .08em; border: 2px solid var(--emp-line); border-radius: 8px; background: #fff; color: var(--emp-ink); height: auto; margin: 0; }
body.em-theme .emp input:focus { border-color: var(--emp-mid); outline: none; }
body.em-theme .emp .emp-btn { padding: .75rem 1.5rem; font-size: 1rem; font-weight: 600; line-height: 1.3; border: 0; border-radius: 8px; background: var(--emp-dark); color: #fff; cursor: pointer; }
body.em-theme .emp .emp-btn:hover { background: var(--emp-mid); }
body.em-theme .emp input:focus-visible,
body.em-theme .emp .emp-btn:focus-visible { outline: 3px solid #f0b400; outline-offset: 2px; }
body.em-theme .emp .emp-msg { min-height: 1.4em; margin: .6rem 0 0; color: #b3261e; font-weight: 500; font-size: .9rem; }
@media (max-width: 520px) { body.em-theme .emp input { max-width: none; } body.em-theme .emp .emp-btn { width: 100%; } }

@media (max-width: 1024px) {
	body.em-theme .em-sidebar { display: none; }
	body.em-theme .em-article { max-width: none; }
}
@media (max-width: 767px) {
	body.em-theme .em-single-wrap { width: 100%; margin: 0; padding: 24px 20px 0; }
	body.em-theme .em-related-inline { display: block; padding: 16px; }
	body.em-theme .em-related-inline-thumb { flex-basis: 96px; height: 64px; }
	body.em-theme .em-article { padding: 0; }
	body.em-theme .em-article-top { flex-direction: column; gap: 20px; }
	body.em-theme .em-article-intro { flex: none; }
	body.em-theme .em-post-meta { font-size: 14px; }
	body.em-theme .em-article-title { font-size: 22.4px; line-height: 31.36px; }
	body.em-theme .em-article-excerpt { font-size: 16px; line-height: 24px; }
	body.em-theme .em-article-byline { flex-direction: column; align-items: flex-start; gap: 16px; }
	body.em-theme .em-author-avatar img { width: 35px; height: 35px; }
	body.em-theme .em-share { gap: 9px; }
	body.em-theme .em-share a { width: 31px; height: 31px; font-size: 16px; }
	body.em-theme .em-content h2 { font-size: 24px; }
	body.em-theme .em-content h3 { font-size: 20.8px; }
	body.em-theme .em-content h4 { font-size: 18.9px; }
	body.em-theme .em-post-nav-sep { margin: 0 12px; }
}

/* ==========================================================================
   Pages, archives, search, 404
   ========================================================================== */
body.em-theme .em-page,
body.em-theme .em-archive,
body.em-theme .em-404 { padding: 40px 0 60px; }
body.em-theme .em-page-header { margin-bottom: 30px; }
body.em-theme .em-page-title { margin: 0 0 16px; font: 500 3rem/1.2 var(--em-font); color: var(--em-primary); }
body.em-theme .em-archive-desc { font-size: 18px; }
body.em-theme .em-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
body.em-theme .em-card-lg .em-card-thumb { height: 220px; }
body.em-theme .em-card-lg .em-card-title { padding: 20px 20px 6px; font: 600 18px/1.3 var(--em-font); }
body.em-theme .em-card-date { margin: 0; padding: 0 20px 20px; font: 400 14px/1.4 var(--em-font-alt); color: var(--em-secondary); }
body.em-theme .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 40px; }
body.em-theme .nav-links .page-numbers { padding: 8px 14px; border-radius: 20px; background: var(--em-grey); color: var(--em-primary); }
body.em-theme .nav-links .page-numbers.current,
body.em-theme .nav-links .page-numbers:hover { background: var(--em-primary); color: #fff; }
body.em-theme .em-search-form { display: flex; gap: 10px; max-width: 560px; }
body.em-theme .em-search-form input {
	flex: 1; height: 46px; padding: 8px 16px; border: 1px solid var(--em-primary); border-radius: 23px;
	font: 400 16px/1 var(--em-font); color: var(--em-text);
}
body.em-theme .em-woo { padding: 40px 0 60px; }
@media (max-width: 1024px) { body.em-theme .em-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
	body.em-theme .em-grid { grid-template-columns: 1fr; }
	body.em-theme .em-page-title { font-size: 2.25rem; }
}

/* On phones the WordPress admin bar scrolls away, so the sticky header shouldn't leave room for it. */
@media (max-width: 600px) {
	body.em-theme .em-bar { top: 0; }
	body.em-theme .em-nav { max-height: calc(100vh - 119px); }
}


/* ==========================================================================
   Author archives & search results (matches Elementor's "Cards" skin)
   ========================================================================== */
body.em-theme .em-archive-inner { box-sizing: border-box; width: 100%; max-width: calc(var(--em-container) + 40px); margin: 0 auto; padding: 50px 20px; }
body.em-theme .em-search-page .em-archive-inner { padding: 40px 20px; }
body.em-theme .em-archive-title { margin: 0 0 20px; font: 400 48px/1 var(--em-font); color: var(--em-primary); }
body.em-theme .em-search-title { margin: 0 0 20px; font: 400 36px/1 var(--em-font); color: var(--em-primary); }
body.em-theme .em-archive-desc { margin-bottom: 20px; }

body.em-theme .em-acard-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 35px 30px; }
body.em-theme .em-acard {
	position: relative; display: flex; flex-direction: column; min-height: 100%; overflow: hidden;
	background: #fff; border-radius: 20px; box-shadow: 0 0 10px rgba(0, 0, 0, .15); transition: box-shadow .25s;
}
body.em-theme .em-acard:hover { box-shadow: 0 0 18px rgba(0, 0, 0, .2); }
body.em-theme .em-acard-thumb { position: relative; display: block; padding-bottom: 66%; overflow: hidden; background: #e9e9e9; }
body.em-theme .em-acard-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
body.em-theme .em-acard:hover .em-acard-thumb img { transform: scale(1.03); }
body.em-theme .em-acard-badge {
	position: absolute; top: 0; right: 0; margin: 20px; padding: .6em 1.2em; border-radius: 999px;
	background: #61CE70; color: #fff; font: 400 12px/1 var(--em-font); text-transform: uppercase;
}
body.em-theme .em-acard-avatar { position: relative; top: -25px; height: 0; padding: 0 30px; pointer-events: none; }
body.em-theme .em-acard-avatar img { width: 60px; height: 60px; border-radius: 50%; transform: translateY(-50%); object-fit: cover; }
body.em-theme .em-acard-text { display: flex; flex-direction: column; flex-grow: 1; margin-top: 20px; padding: 0 30px; }
body.em-theme .em-acard--full .em-acard-text { margin-top: 30px; }
body.em-theme .em-acard-title { margin: 0 0 25px; font: 400 21px/1.2 var(--em-font); }
body.em-theme .em-acard-title a { color: var(--em-secondary); }
body.em-theme .em-acard-title a:hover { color: var(--em-primary); }
body.em-theme .em-acard-excerpt p { margin: 0 0 25px; font: 400 18px/27px var(--em-font); color: #777; }
body.em-theme .em-acard-more { align-self: flex-start; margin-bottom: 20px; font: 400 12px/18px var(--em-font); color: #61CE70; text-transform: uppercase; }
body.em-theme .em-acard-more:hover { color: var(--em-primary); }
body.em-theme .em-acard-meta { margin-top: auto; padding: 15px 30px; border-top: 1px solid #eaeaea; font: 400 12px/1.3 var(--em-font); color: #adadad; }

/* Search: text-only cards with rounder corners */
body.em-theme .em-search-page .em-acard-title { font-size: 20px; font-weight: 600; }
body.em-theme .em-search-page .em-acard-excerpt p { font-size: 16px; line-height: 24px; }

body.em-theme .em-search-bar { display: flex; align-items: stretch; gap: 8px; margin: 0 0 20px; }
body.em-theme .em-search-bar input[type=search] {
	flex: 1; height: 59px; padding: 16px; border: 1px solid #cdcdcd; border-radius: 20px; background: #fff;
	font: 400 16px/1.5 var(--em-font); color: var(--em-text);
}
body.em-theme .em-search-bar input[type=search]:focus { border-color: var(--em-primary); outline: none; }
body.em-theme .em-search-bar button {
	display: flex; align-items: center; justify-content: center; width: 57px; height: 59px; padding: 0;
	border: 0; border-radius: 40px; background: var(--em-primary); color: #fff; font-size: 24px; cursor: pointer;
}
body.em-theme .em-search-bar button:hover, body.em-theme .em-search-bar button:focus { background: var(--em-secondary); color: #fff; }

body.em-theme .em-load-more-wrap { margin-top: 30px; text-align: center; }
body.em-theme .em-load-more {
	display: inline-block; padding: 12px 24px; border-radius: 3px; background: var(--em-primary); color: #fff;
	font: 400 15px/1 var(--em-font); transition: background .2s;
}
body.em-theme .em-load-more:hover { background: var(--em-secondary); color: #fff; }
body.em-theme .em-load-more.is-loading { opacity: .6; pointer-events: none; }
body.em-theme .em-load-more-done { margin: 0; color: #777; }
body.em-theme .em-nothing { font-size: 18px; }

@media (max-width: 1024px) {
	body.em-theme .em-acard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	body.em-theme .em-acard-grid { grid-template-columns: 1fr; gap: 30px; }
	body.em-theme .em-acard-thumb { padding-bottom: 50%; }
	body.em-theme .em-archive-title, body.em-theme .em-search-title { font-size: 36px; }
	body.em-theme .em-archive-inner, body.em-theme .em-search-page .em-archive-inner { padding: 30px 20px; }
	body.em-theme .em-404-inner { padding: 30px 20px; }
}

/* ==========================================================================
   404
   ========================================================================== */
body.em-theme .em-404-inner { box-sizing: border-box; width: 100%; max-width: calc(var(--em-container) + 40px); margin: 0 auto; padding: 40px 20px; display: flex; flex-direction: column; align-items: center; gap: 30px; }
body.em-theme .em-404-img { width: 800px; max-width: 100%; height: auto; }
body.em-theme .em-404-title { margin: 0; font: 400 36px/1 var(--em-font); color: var(--em-primary); text-align: center; }
body.em-theme .em-404-cols { display: flex; gap: 50px; width: 100%; }
body.em-theme .em-404-col { flex: 1 1 0; min-width: 0; padding: 10px; display: flex; flex-direction: column; gap: 20px; }
body.em-theme .em-404-sub { margin: 0; font: 400 28px/1 var(--em-font); color: var(--em-secondary); }
body.em-theme .em-404-col p { margin: 0; font: 400 18px/27px var(--em-font); color: var(--em-text); }
body.em-theme .em-404-links { margin: 0; padding: 0; list-style: none; }
body.em-theme .em-404-links a { display: flex; align-items: center; font: 400 18px/27px var(--em-font); color: var(--em-secondary); }
body.em-theme .em-404-links a:hover { color: var(--em-primary); }
body.em-theme .em-404-links .em-icon { font-size: 14px; }
body.em-theme .em-404-links span { padding-left: 5px; }
body.em-theme .em-404-search { position: relative; }
body.em-theme .em-404-search .em-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 16px; color: var(--em-primary); pointer-events: none; }
body.em-theme .em-404-search input[type=search] {
	width: 100%; height: 44px; padding: 8px 10px 8px 40px; border: 0; border-radius: 3px; background: #f8f8f8;
	font: 400 16px/1.5 var(--em-font); color: var(--em-primary);
}
body.em-theme .em-404-search input[type=search]:focus { outline: 2px solid var(--em-secondary); }
@media (max-width: 767px) {
	body.em-theme .em-404-cols { flex-direction: column; gap: 30px; }
	body.em-theme .em-404-title { font-size: 24px; line-height: 1.2; }
	body.em-theme .em-404-sub { font-size: 20.8px; line-height: 1.2; }
}


/* ==========================================================================
   Pages (matches the old Elementor "Single Page" template)
   ========================================================================== */
body.em-theme .em-pg {
	position: relative; padding: 50px 20px;
	background: linear-gradient(93deg, #08713D 0%, #FFF471 100%);
}
body.em-theme .em-pg::before {
	content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .02;
	background: url("/wp-content/uploads/2024/05/Lines-background.webp") repeat;
}
body.em-theme .em-pg-row { position: relative; display: flex; align-items: stretch; gap: 20px; max-width: var(--em-container); margin: 0 auto; }
body.em-theme .em-pg-card {
	flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 20px;
	padding: 20px; background: #fff; border-radius: 20px;
}
body.em-theme .em-pg-head { display: flex; gap: 10px; }
body.em-theme .em-pg-intro { flex: 0 0 calc((100% - 10px) * .6); min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 20px; padding: 10px; }
body.em-theme .em-pg-cta { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; padding: 10px; }
body.em-theme .em-pg-cta .emp { width: 100%; }
body.em-theme .em-pg-title { margin: 0; font: 500 2.5rem/44px var(--em-font); color: var(--em-primary); }
body.em-theme .em-pg-dates { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; font: 400 12px/18px var(--em-font-alt); color: var(--em-secondary); }
body.em-theme .em-pg-dates li + li { margin-left: 8px; padding-left: 8px; border-left: 1px solid #d4d4d4; }
body.em-theme .em-pg-head .em-share { gap: 10px; }
body.em-theme .em-pg-head .em-share a { width: 27px; height: 27px; font-size: 14px; }
body.em-theme .em-share-envelope { background: #ea4335; }
body.em-theme .em-pg-content { min-width: 0; }
body.em-theme .em-pg-content.em-content { padding: 0 10px; }

body.em-theme .em-pg-side { flex: 0 0 226px; background: #fff; border-radius: 15px; }
body.em-theme .em-pg-side-sticky {
	position: sticky; top: calc(var(--em-admin-bar) + var(--em-header-h, 172px) + 8px);
	padding: 0 10px;
}
body.em-theme .em-pg-quote { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 13px; text-align: center; }
body.em-theme .em-pg-quote p { margin: 0; font: 400 20px/1.1 var(--em-font-alt); color: var(--em-primary); }
body.em-theme .em-pg-quote strong { font-weight: 600; }
body.em-theme .em-pg-quote-btn {
	display: inline-block; padding: 12px 24px; border-radius: 3px; background: var(--em-primary); color: #fff;
	font: 400 15px/1 var(--em-font); transition: background .2s;
}
body.em-theme .em-pg-quote-btn:hover { background: var(--em-secondary); color: #fff; }
body.em-theme .em-pg-ads { padding: 10px; }

@media (max-width: 1024px) {
	body.em-theme .em-pg-side { display: none; }
}
@media (max-width: 767px) {
	body.em-theme .em-pg { padding: 0; }
	body.em-theme .em-pg-card { border-radius: 0; }
	body.em-theme .em-pg-head { flex-direction: column; gap: 20px; }
	body.em-theme .em-pg-intro { flex: none; }
	body.em-theme .em-pg-cta { padding: 0; }
	body.em-theme .em-pg-title { font-size: 32px; line-height: 44.8px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	*,
*::before,
*::after { animation: none !important; transition: none !important; }
}
