/*
 * MALF Megamenu 1.1.0
 * Built by Futuregram Studio
 *
 * Colours and the header height come from the settings page (see malf_mm_inline_css).
 * The values below are fallbacks.
 */

:root {
	--malf-mm-h: 78px;
	--malf-mm-header-bg: #F5F3EF;
	--malf-mm-header-border: #25544A;
	--malf-mm-logo-text: #0B574C;
	--malf-mm-toggle: #0B574C;
	--malf-mm-nav-text: #1E4F43;
	--malf-mm-nav-hover: #0D954A;
	--malf-mm-aux-text: #111111;
	--malf-mm-aux-hover: #0D954A;
	--malf-mm-aux-sep: #23403B;
	--malf-mm-panel-bg: #FFFFFF;
	--malf-mm-title: #0B574C;
	--malf-mm-blurb: #7A8B8D;
	--malf-mm-label: #7A8B8D;
	--malf-mm-link: #0D954A;
	--malf-mm-link-hover: #09574A;
	--malf-mm-rule: #6CBD45;
	--malf-mm-row-line: #B7CED0;
	--malf-mm-aside-line: #B7CED0;
	--malf-mm-cta-bg: #F4DA5B;
	--malf-mm-cta-text: #000000;
	--malf-mm-cta-hover: #EBCF45;
	--malf-mm-search-bg: #0B574C;
	--malf-mm-search-btn-bg: #F4DA5B;
	--malf-mm-search-btn-text: #000000;
}

/* Reset inside the component */
.malf-mm,
.malf-mm *,
.malf-mm *::before,
.malf-mm *::after {
	box-sizing: border-box;
}

.malf-mm {
	position: relative;
	z-index: 999;
	font-size: 16px;
	line-height: 1.5;
	text-align: left;
}

.malf-mm ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.malf-mm li {
	margin: 0;
	padding: 0;
	background: none;
}

.malf-mm a {
	text-decoration: none;
}

.malf-mm button {
	margin: 0;
	border-radius: 0;
	box-shadow: none;
	text-transform: none;
	letter-spacing: normal;
	font-family: inherit;
}

.malf-mm h2,
.malf-mm p {
	margin: 0;
	padding: 0;
}

.malf-mm__sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.malf-mm-notice {
	padding: 12px 16px;
	background: #fff8e5;
	border-bottom: 1px solid #f0c36d;
	font-size: 14px;
}

.malf-mm :focus-visible {
	outline: 3px solid var(--malf-mm-toggle);
	outline-offset: 2px;
}

/* ===== Bar ===== */

.malf-mm__bar {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	height: var(--malf-mm-h);
	background: var(--malf-mm-header-bg);
	border-bottom: 1px solid var(--malf-mm-header-border);
}

.malf-mm .malf-mm__logo {
	flex: 0 0 clamp(190px, 20vw, 306px);
	align-self: stretch;
	display: flex;
	align-items: center;
	padding: 0 clamp(12px, 1.6vw, 28px);
	container-type: inline-size;
	color: var(--malf-mm-logo-text);
}

.malf-mm__logo-img {
	display: block;
	width: 100%;
	height: auto;
	max-height: calc(var(--malf-mm-h) - 20px);
	object-fit: contain;
	object-position: left center;
}

.malf-mm__logo-text {
	display: block;
	font-size: clamp(15px, calc(100cqw / 11), 22px);
	font-weight: 500;
	line-height: 1.15;
}

/* ===== Main nav ===== */

.malf-mm__nav {
	flex: 1 1 0;
	min-width: 0;
	align-self: stretch;
	display: flex;
	align-items: center;
	justify-content: center;
}

.malf-mm__list {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	height: 100%;
	white-space: nowrap;
}

.malf-mm__item {
	display: flex;
	align-items: center;
	height: 100%;
	margin-right: var(--mr, 10px);
}

.malf-mm .malf-mm__trigger,
.malf-mm .malf-mm__link {
	position: relative;
	display: flex;
	align-items: center;
	height: 100%;
	margin: 0;
	padding: 0 var(--pl, 20px);
	border: 0;
	background: none;
	color: var(--malf-mm-nav-text);
	font-size: clamp(14px, 1.2vw, 18px);
	line-height: 1.2;
	white-space: nowrap;
	cursor: pointer;
}

.malf-mm .malf-mm__trigger {
	padding-right: var(--pr, 20px);
}

.malf-mm .malf-mm__trigger:hover,
.malf-mm .malf-mm__link:hover {
	color: var(--malf-mm-nav-hover);
}

.malf-mm .malf-mm__trigger::after {
	content: "";
	position: absolute;
	right: 0;
	top: 50%;
	width: 12px;
	height: 7px;
	margin-top: -3.5px;
	background: var(--malf-mm-nav-hover);
	-webkit-mask: url("img/arrow-down.png") center / 12px 7px no-repeat;
	mask: url("img/arrow-down.png") center / 12px 7px no-repeat;
}

/* ===== Aux nav ===== */

.malf-mm__aux {
	flex: 0 0 auto;
	align-self: stretch;
	display: flex;
	align-items: center;
	margin-right: clamp(8px, 1vw, 16px);
}

.malf-mm__aux ul {
	display: flex;
	align-items: center;
	gap: clamp(12px, 1.6vw, 26px);
	height: calc(var(--malf-mm-h) * 0.77);
	padding-left: clamp(14px, 2vw, 28px);
	border-left: 1px solid var(--malf-mm-aux-sep);
}

.malf-mm .malf-mm__aux a {
	color: var(--malf-mm-aux-text);
	font-size: clamp(12.5px, 1.07vw, 16px);
	white-space: nowrap;
}

.malf-mm .malf-mm__aux a:hover {
	color: var(--malf-mm-aux-hover);
}

.malf-mm__aux li.is-clipped {
	display: none;
}

.malf-mm__aux.is-empty {
	display: none;
}

/* ===== Search toggle and hamburger ===== */

.malf-mm .malf-mm__searchtoggle,
.malf-mm .malf-mm__burger {
	flex: 0 0 44px;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--malf-mm-toggle);
	cursor: pointer;
}

.malf-mm .malf-mm__searchtoggle {
	margin-right: clamp(12px, 2vw, 30px);
}

.malf-mm__searchtoggle svg {
	grid-area: 1 / 1;
	width: 26px;
	height: 26px;
}

.malf-mm__searchtoggle .malf-mm__i--close {
	display: none;
}

.malf-mm__searchtoggle[aria-expanded="true"] .malf-mm__i--close {
	display: block;
}

.malf-mm__searchtoggle[aria-expanded="true"] .malf-mm__i--search {
	display: none;
}

.malf-mm .malf-mm__burger {
	display: none;
	margin-right: clamp(8px, 2vw, 20px);
}

.malf-mm__burger span,
.malf-mm__burger span::before,
.malf-mm__burger span::after {
	display: block;
	width: 26px;
	height: 3px;
	background: currentColor;
	border-radius: 2px;
	transition: transform 0.2s, background 0.2s;
}

.malf-mm__burger span {
	position: relative;
}

.malf-mm__burger span::before,
.malf-mm__burger span::after {
	content: "";
	position: absolute;
	left: 0;
}

.malf-mm__burger span::before {
	top: -8px;
}

.malf-mm__burger span::after {
	top: 8px;
}

.malf-mm__burger[aria-expanded="true"] span {
	background: transparent;
}

.malf-mm__burger[aria-expanded="true"] span::before {
	transform: translateY(8px) rotate(45deg);
}

.malf-mm__burger[aria-expanded="true"] span::after {
	transform: translateY(-8px) rotate(-45deg);
}

/* Burger state (set by the script when the main nav can no longer fit) */

.malf-mm.is-burger .malf-mm__nav,
.malf-mm.is-burger .malf-mm__aux {
	display: none;
}

.malf-mm.is-burger .malf-mm__burger {
	display: grid;
}

.malf-mm.is-burger .malf-mm__searchtoggle {
	margin-left: auto;
	margin-right: 0;
}

/* ===== Desktop panel ===== */

.malf-mm__panel {
	display: none;
	position: absolute;
	left: 0;
	right: 0;
	top: calc(100% + 1px);
	z-index: 3;
	background: var(--malf-mm-panel-bg);
	border-bottom-left-radius: 10px;
	border-bottom-right-radius: 10px;
	box-shadow: -1px 23px 5px -1px rgba(0, 0, 0, 0.19);
	text-align: left;
	white-space: normal;
}

.malf-mm__item.is-open > .malf-mm__panel {
	display: block;
}

.malf-mm__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
	min-height: 100px;
	padding: 40px 10%;
	border-bottom: 1px solid var(--malf-mm-rule);
}

.malf-mm__intro {
	flex: 1 1 0;
	min-width: 0;
	max-width: 780px;
}

.malf-mm .malf-mm__title {
	margin: 0 0 6px;
	color: var(--malf-mm-title);
	font-size: 31px;
	font-weight: 400;
	line-height: 1.15;
}

.malf-mm .malf-mm__blurb {
	color: var(--malf-mm-blurb);
	font-size: 20px;
	line-height: 1.3;
}

.malf-mm .malf-mm__cta {
	flex: 0 0 auto;
	display: inline-block;
	min-width: 250px;
	padding: 14px 30px 10px 50px;
	border-radius: 29px;
	background: var(--malf-mm-cta-bg) url("img/cta-arrow.png") 15px 13px no-repeat;
	color: var(--malf-mm-cta-text);
	font-size: 16px;
	line-height: 1.5;
	transition: background-color 0.2s linear;
}

.malf-mm .malf-mm__cta:hover {
	background-color: var(--malf-mm-cta-hover);
	color: var(--malf-mm-cta-text);
}

.malf-mm__body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) clamp(240px, 24vw, 330px);
	padding: 0 10%;
}

.malf-mm__body--no-aside {
	grid-template-columns: minmax(0, 1fr);
}

.malf-mm__main {
	padding: 40px 30px 30px 0;
}

.malf-mm .malf-mm__label {
	margin: 0 0 16px;
	color: var(--malf-mm-label);
	font-size: 20px;
	line-height: 1.5;
}

.malf-mm__cols {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 30px;
	margin-top: 10px;
}

.malf-mm__col {
	min-width: 0;
}

.malf-mm__col li {
	width: 94%;
	margin: 0 0 15px;
	padding: 0 0 9px 50px;
	border-bottom: 1px solid var(--malf-mm-row-line);
	background: url("img/link-arrow.png") left top no-repeat;
	font-size: clamp(16px, 1.35vw, 20px);
	line-height: 32px;
}

.malf-mm__col li:last-child {
	border-bottom: 0;
}

.malf-mm .malf-mm__col a {
	color: var(--malf-mm-link);
	text-transform: capitalize;
}

.malf-mm .malf-mm__col a:hover {
	color: var(--malf-mm-link-hover);
}

.malf-mm__aside {
	padding: 30px 0 30px 30px;
	border-left: 1px solid var(--malf-mm-aside-line);
}

.malf-mm .malf-mm__aside-heading {
	margin: 0 0 12px;
	color: var(--malf-mm-title);
	font-size: 18px;
	font-weight: 700;
}

.malf-mm__img-link {
	display: block;
}

.malf-mm .malf-mm__img {
	display: block;
	width: 100%;
	max-width: 220px;
	height: auto;
	margin: 0 0 10px;
	border-radius: 7px;
}

.malf-mm__aside-text {
	color: var(--malf-mm-blurb);
	font-size: 16px;
	line-height: 1.4;
}

.malf-mm__aside-text > :last-child {
	margin-bottom: 0;
}

.malf-mm .malf-mm__aside-text p {
	margin: 0 0 0.5em;
}

.malf-mm .malf-mm__aside-text a {
	color: var(--malf-mm-link);
}

.malf-mm .malf-mm__aside-text a:hover {
	color: var(--malf-mm-link-hover);
}

.malf-mm .malf-mm__aside-text h2,
.malf-mm .malf-mm__aside-text h3,
.malf-mm .malf-mm__aside-text h4,
.malf-mm .malf-mm__aside-text h5,
.malf-mm .malf-mm__aside-text h6 {
	margin: 0 0 4px;
	color: var(--malf-mm-link);
	font-size: 21px;
	font-weight: 400;
	line-height: 1.2;
}

@media (max-width: 1000px) {
	.malf-mm__head {
		padding-left: 4%;
		padding-right: 4%;
	}

	.malf-mm__body {
		grid-template-columns: minmax(0, 1fr) 200px;
		padding: 0 4%;
	}

	.malf-mm__body--no-aside {
		grid-template-columns: minmax(0, 1fr);
	}

	.malf-mm__col li {
		font-size: 16px;
	}
}

/* ===== Search row (overlays the page, never pushes it) ===== */

.malf-mm__search {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	z-index: 1;
	display: grid;
	grid-template-rows: 0fr;
	background: var(--malf-mm-search-bg);
	transition: grid-template-rows 0.3s ease;
}

.malf-mm__search.is-open {
	grid-template-rows: 1fr;
	box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.35);
}

.malf-mm__search-inner {
	min-height: 0;
	overflow: hidden;
}

.malf-mm__search-wrap {
	padding: 14px 10% 16px;
}

.malf-mm__form {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px;
	background: #fff;
	border-radius: 12px;
}

.malf-mm__field {
	position: relative;
	flex: 1 1 0;
	min-width: 0;
}

.malf-mm__field svg {
	position: absolute;
	left: 12px;
	top: 50%;
	width: 22px;
	height: 22px;
	margin-top: -11px;
	color: #333;
	pointer-events: none;
}

.malf-mm .malf-mm__field input {
	display: block;
	width: 100%;
	height: 48px;
	margin: 0;
	padding: 0 12px 0 46px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	box-shadow: none;
	color: #111;
	font: inherit;
	font-size: 17px;
}

.malf-mm .malf-mm__form-btn {
	flex: 0 0 auto;
	height: 48px;
	padding: 0 26px;
	border: 0;
	border-radius: 8px;
	background: var(--malf-mm-search-btn-bg);
	color: var(--malf-mm-search-btn-text);
	font-size: 17px;
	font-weight: 700;
	cursor: pointer;
}

.malf-mm .malf-mm__form-btn:hover {
	filter: brightness(0.95);
}

@media (max-width: 1000px) {
	.malf-mm__search-wrap {
		padding-left: 4%;
		padding-right: 4%;
	}
}

@media (max-width: 640px) {
	.malf-mm__search-wrap {
		padding: 12px 16px 14px;
	}
}

/* ===== Mobile menu (shown in the burger state) ===== */

.malf-mm__mobile {
	display: none;
	position: absolute;
	left: 0;
	right: 0;
	top: calc(100% + 1px);
	z-index: 4;
	max-height: calc(100vh - var(--malf-mm-h) - 1px);
	overflow-y: auto;
	background: #fff;
	box-shadow: -1px 23px 5px -1px rgba(0, 0, 0, 0.19);
}

.malf-mm.is-burger.is-menu-open .malf-mm__mobile {
	display: block;
}

.malf-mm .malf-mm__m-trigger {
	position: relative;
	display: block;
	width: 100%;
	padding: 16px 64px 16px clamp(20px, 5vw, 40px);
	border: 0;
	border-bottom: 1px solid var(--malf-mm-row-line);
	background: #fff;
	color: var(--malf-mm-nav-text);
	font-size: 18px;
	line-height: 1.3;
	text-align: left;
	cursor: pointer;
}

.malf-mm .malf-mm__m-trigger:hover {
	color: var(--malf-mm-nav-hover);
}

.malf-mm .malf-mm__m-trigger::after {
	content: "";
	position: absolute;
	right: clamp(20px, 5vw, 40px);
	top: 50%;
	width: 12px;
	height: 7px;
	margin-top: -3.5px;
	background: var(--malf-mm-nav-hover);
	-webkit-mask: url("img/arrow-down.png") center / 12px 7px no-repeat;
	mask: url("img/arrow-down.png") center / 12px 7px no-repeat;
}

.malf-mm .malf-mm__m-item.is-open > .malf-mm__m-trigger::after {
	-webkit-mask-image: url("img/arrow-up.png");
	mask-image: url("img/arrow-up.png");
}

.malf-mm__m-sub {
	display: none;
	padding: 6px clamp(20px, 5vw, 40px) 16px;
	background: #FBFAF8;
	border-bottom: 1px solid var(--malf-mm-row-line);
}

.malf-mm__m-item.is-open > .malf-mm__m-sub {
	display: block;
}

.malf-mm__m-sub .malf-mm__cta {
	margin: 10px 0 8px;
}

.malf-mm__m-sub .malf-mm__col li {
	width: 100%;
	margin: 0;
	padding: 0;
	background: none;
	font-size: 17px;
	line-height: 1.35;
}

.malf-mm__m-sub .malf-mm__col a {
	display: block;
	padding: 12px 0 12px 46px;
	background: url("img/link-arrow.png") left center / 26px 26px no-repeat;
}

.malf-mm__m-sub .malf-mm__col + .malf-mm__col {
	margin-top: 0;
}

.malf-mm__m-sub .malf-mm__col li:last-child {
	border-bottom: 1px solid var(--malf-mm-row-line);
}

.malf-mm__m-sub .malf-mm__col:last-child li:last-child {
	border-bottom: 0;
}

.malf-mm .malf-mm__m-plain a {
	display: block;
	padding: 16px clamp(20px, 5vw, 40px);
	border-bottom: 1px solid var(--malf-mm-row-line);
	color: var(--malf-mm-nav-text);
	font-size: 18px;
}

.malf-mm .malf-mm__m-plain--aux a {
	color: var(--malf-mm-aux-text);
	font-size: 16px;
}

.malf-mm .malf-mm__m-plain a:hover {
	color: var(--malf-mm-nav-hover);
}

/* ===== Sticky ===== */

.malf-mm.is-stuck {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	transform: translateY(-100%);
	box-shadow: 0 3px 16px rgba(0, 0, 0, 0.16);
}

.malf-mm.is-stuck.is-shown {
	transform: none;
	transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

body.admin-bar .malf-mm.is-stuck {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar .malf-mm.is-stuck {
		top: 46px;
	}
}

@media (max-width: 600px) {
	body.admin-bar .malf-mm.is-stuck {
		top: 0;
	}
}

.malf-mm__spacer {
	height: 0;
}

@media (prefers-reduced-motion: reduce) {
	.malf-mm.is-stuck.is-shown,
	.malf-mm__search {
		transition: none;
	}
}
