/* -------------------------------------------------------------------------------- */
/*                                  Mobile Drawer                                   */
/* -------------------------------------------------------------------------------- */
#nf-mobile-drawer {
	background: var(--abs-white);
	box-shadow: 4px 0 18px var(--nf-shadow);
	display: flex;
	flex-direction: column;
	height: 100dvh;
	left: 0;
	position: fixed;
	top: 0;
	transform: translateX(-100%);
	transition: transform 0.50s ease;
	width: 320px;
	z-index: 1100;
}

#nf-mobile-drawer .nf-mobile-header {
	align-items: center;
	border-bottom: 1px solid var(--pri-neutral);
	display: flex;
	height: 60px;
	justify-content: space-between;
	padding: 0 16px;
}

#nf-mobile-drawer .nf-mobile-header .nf-mobile-brand {
	align-items: center;
	display: flex;
	gap: 12px;
	text-decoration: none;
}

#nf-mobile-drawer .nf-mobile-header .nf-mobile-brand img {
	height: 36px;
}

#nf-mobile-drawer .nf-mobile-header .nf-mobile-brand span {
	color: var(--pri-dark);
	font-family: "Sofia Sans Extra Condensed", sans-serif !important;
	font-size: 22px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

#nf-mobile-drawer .nf-mobile-header .nf-mobile-close {
	background: transparent;
	border: 0;
	height: 40px;
	position: relative;
	width: 40px;
}

#nf-mobile-drawer .nf-mobile-header .nf-mobile-close::before,
#nf-mobile-drawer .nf-mobile-header .nf-mobile-close::after {
	background: var(--sec-neutral);
	content: "";
	height: 2px;
	left: 9px;
	position: absolute;
	top: 19px;
	width: 22px;
}

#nf-mobile-drawer .nf-mobile-header .nf-mobile-close::before {
	transform: rotate(45deg);
}

#nf-mobile-drawer .nf-mobile-header .nf-mobile-close::after {
	transform: rotate(-45deg);
}

#nf-mobile-drawer .nf-mobile-panels {
	flex: 1 1 auto;
	isolation: isolate;
	overflow: hidden;
	position: relative;
	width: 100%;
}

#nf-mobile-drawer .nf-mobile-panels .nf-mobile-panel {
	background: var(--abs-white);
	inset: 0;
	overflow: auto;
	padding: 8px 8px 24px 8px;
	position: absolute;
	transform: translateX(-100%);
	transition: transform 0.50s ease;
}

/* Panel transition states with CSS variables controlled via JavaScript */
#nf-mobile-drawer .nf-mobile-panels {
	--panel-index: 0;
}

#nf-mobile-drawer .nf-mobile-panels > .nf-mobile-panel:nth-child(1) {
	transform: translateX(calc(100% * var(--panel-index)));
}

#nf-mobile-drawer .nf-mobile-panels > .nf-mobile-panel:nth-child(2) {
	transform: translateX(calc(100% * (var(--panel-index) - 1)));
}

#nf-mobile-drawer .nf-mobile-panels > .nf-mobile-panel:nth-child(3) {
	transform: translateX(calc(100% * (var(--panel-index) - 2)));
}

#nf-mobile-drawer .nf-mobile-panels > .nf-mobile-panel:nth-child(4) {
	transform: translateX(calc(100% * (var(--panel-index) - 3)));
}

#nf-mobile-drawer .nf-mobile-panels > .nf-mobile-panel:nth-child(5) {
	transform: translateX(calc(100% * (var(--panel-index) - 4)));
}

/* Mobile panel inner structure */
#nf-mobile-drawer .nf-mobile-panel .nf-mobile-subheader {
	align-items: center;
	background: var(--abs-white);
	display: flex;
	gap: 8px;
	height: 44px;
	position: sticky;
	top: 0;
	z-index: 1;
}

#nf-mobile-drawer .nf-mobile-panel.is-root .nf-mobile-subheader {
	display: none;
}

#nf-mobile-drawer .nf-mobile-back {
	background: transparent;
	border: 0;
	height: 40px;
	width: 40px;
}

#nf-mobile-drawer ul {
	list-style: none;
	margin: 0;
	padding: 0 8px;
}

#nf-mobile-drawer li {
	border-bottom: 1px solid var(--pri-neutral);
}

#nf-mobile-drawer li.has-sub > a i {
	margin-left: 12px;
}

#nf-mobile-drawer li.has-sub > ul {
	display: none;
}

#nf-mobile-drawer a {
	align-items: center;
	color: var(--sec-neutral);
	display: flex;
	font-weight: 600;
	justify-content: space-between;
	padding: 14px 8px;
	text-decoration: none;
}

/* Page shift + drawer open */
.menu-open > #nf-mobile-drawer {
	transform: translateX(0);
}

/* -------------------------------------------------------------------------------- */
/*                                     Overlay                                      */
/* -------------------------------------------------------------------------------- */
.nf-overlay {
	background: var(--nf-overlay);
	inset: 0;
	opacity: 0;
	pointer-events: none;
	position: fixed;
	transition: opacity 0.30s ease;
	z-index: 1000;
}

.menu-open > .nf-overlay {
	opacity: 1;
	pointer-events: auto;
}

/* -------------------------------------------------------------------------------- */
/*                                   Search Panel                                   */
/* -------------------------------------------------------------------------------- */
#nf-search-panel {
	inset: 0;
	pointer-events: none;
	position: fixed;
	z-index: 1200;
}

#nf-search-panel[aria-hidden="true"] .nf-search-backdrop {
	opacity: 0;
}

#nf-search-panel[aria-hidden="true"] .nf-search-shell {
	opacity: 0;
	transform: translateY(-100%);
}

#nf-search-panel .nf-search-backdrop {
	background: var(--nf-overlay);
	inset: 0;
	position: absolute;
	transition: opacity 0.28s ease;
}

#nf-search-panel .nf-search-shell {
	background: var(--abs-white);
	box-shadow: 0 8px 24px var(--nf-shadow);
	display: block;
	left: 0;
	margin: 0;
	pointer-events: auto;
	position: absolute;
	right: 0;
	top: 0;
	transition: transform 0.32s ease, opacity 0.32s ease;
}

#nf-search-panel .nf-search-shell .nf-search-close {
	display: none !important;
}

#nf-search-panel .nf-search-shell .nf-search-form {
	padding: 16px 16px 18px 16px;
}

#nf-search-panel .nf-search-shell .nf-search-form .nf-search-label {
	clip: rect(0 0 0 0);
	height: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

#nf-search-panel .nf-search-shell .nf-search-form .nf-search-row {
	align-items: center;
	box-sizing: border-box;
	display: grid;
	gap: 10px;
	grid-template-columns: 1fr 96px 120px;
	width: 100%;
}

#nf-search-panel .nf-search-shell .nf-search-form .nf-search-row > * {
	box-sizing: border-box;
	max-width: 100%;
	min-width: 0;
}

#nf-search-panel .nf-search-shell .nf-search-form .nf-search-row input[type="search"] {
	border: 1px solid var(--pri-base);
	border-radius: 6px;
	font-size: 16px;
	height: 44px;
	padding: 0 12px;
	width: 100%;
}

#nf-search-panel .nf-search-shell .nf-search-form .nf-search-row select {
	background: var(--abs-white);
	border: 1px solid var(--pri-base);
	border-radius: 6px;
	font-size: 15px;
	height: 44px;
	padding: 0 10px;
	width: 100%;
}

#nf-search-panel .nf-search-shell .nf-search-form .nf-search-submit {
	border-radius: 6px;
	height: 44px;
	margin: 0px;
}

/* Allow clicks when search is open */
.search-open > #nf-search-panel {
	pointer-events: auto;
}

/* -------------------------------------------------------------------------------- */
/*                             Page wrapper transition                              */
/* -------------------------------------------------------------------------------- */
#nf-page {
	transition: transform 0.50s ease;
}

/* -------------------------------------------------------------------------------- */
/*                                    Header Top                                    */
/* -------------------------------------------------------------------------------- */
#nf-page #nf-header .nf-header-top {
	border-bottom: 1px solid var(--pri-neutral);
}

#nf-page #nf-header .nf-header-top .nf-container {
	padding-bottom: 12px;
	padding-top: 12px;
}

#nf-page #nf-header .nf-header-top .nf-menu-toggle {
	align-items: center;
	background: transparent;
	border: 0;
	display: none;
	height: 40px;
	justify-content: center;
	position: relative;
	width: 40px;
}

#nf-page #nf-header .nf-header-top .nf-menu-toggle span {
	background: var(--sec-neutral);
	height: 2px;
	position: absolute;
	transition: top 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
	width: 22px;
}

#nf-page #nf-header .nf-header-top .nf-menu-toggle span:nth-child(1) {
	top: 12px;
}

#nf-page #nf-header .nf-header-top .nf-menu-toggle span:nth-child(2) {
	top: 19px;
}

#nf-page #nf-header .nf-header-top .nf-menu-toggle span:nth-child(3) {
	top: 26px;
}

#nf-page #nf-header .nf-header-top .nf-brand {
	align-items: center;
	display: flex;
	gap: 12px;
	text-decoration: none;
}

#nf-page #nf-header .nf-header-top .nf-brand img {
	height: 90px;
}

#nf-page #nf-header .nf-header-top .nf-brand span {
	color: var(--pri-dark);
	font-family: "Sofia Sans Extra Condensed", sans-serif !important;
	font-size: 26px;
	font-weight: 700;
	letter-spacing: 0.5px;
	line-height: 28px;
	margin-left: 25px;
	text-transform: uppercase;
}

#nf-page #nf-header .nf-header-top .nf-header-actions {
	align-items: center;
	display: flex;
	gap: 10px;
}

#nf-page #nf-header .nf-header-top .nf-header-actions a,
#nf-page #nf-header .nf-header-top .nf-header-actions button {
	align-items: center;
	background: none;
	border: none;
	color: var(--sec-neutral);
	cursor: pointer;
	display: flex;
	font-size: 14px;
	gap: 6px;
	text-decoration: none;
}

#nf-page #nf-header .nf-header-top .nf-header-actions a i,
#nf-page #nf-header .nf-header-top .nf-header-actions button i {
	font-size: 14px;
}

#nf-page #nf-header .nf-header-top .nf-header-actions .nf-header-actions-sep {
	background-color: var(--sec-neutral);
	height: 20px;
	width: 1px;
}

/* Hide toggle while the drawer is open */
.menu-open > #nf-page #nf-header .nf-header-top .nf-menu-toggle {
	opacity: 0;
	pointer-events: none;
	visibility: hidden;
}

/* -------------------------------------------------------------------------------- */
/*                                Header Navigation                                 */
/* -------------------------------------------------------------------------------- */
#nf-page #nf-header .nf-header-nav {
	background: var(--abs-white);
	border-bottom: 1px solid var(--pri-neutral);
	position: relative;
	z-index: 1000;
}

#nf-page #nf-header .nf-header-nav .nf-container {
	padding-bottom: 0;
	padding-top: 0;
}

#nf-page #nf-header .nf-header-nav .nf-header-menu {
	color: var(--sec-neutral);
	display: flex;
	font-size: 14px;
	gap: 24px;
	list-style: none;
	margin: 0;
	padding: 0;
	position: relative;
}

#nf-page #nf-header .nf-header-nav .nf-header-menu li {
	position: relative;
}

#nf-page #nf-header .nf-header-nav .nf-header-menu li a {
	display: inline-block;
	font-weight: 500;
	padding: 12px 8px;
}

#nf-page #nf-header .nf-header-nav .nf-header-menu li:has(> ul) > a::after {
	content: "\f107";
	font-family: "Font Awesome 6 Free";
	font-size: 12px;
	font-weight: 900;
	margin-left: 4px;
}

#nf-page #nf-header .nf-header-nav .nf-header-menu li:has(> ul):hover > .nf-submenu {
	display: block;
}

#nf-page #nf-header .nf-header-nav .nf-submenu {
	background: var(--abs-white);
	border-top: 3px solid var(--pri-base);
	box-shadow: 0 4px 8px var(--nf-shadow);
	display: none;
	left: 0;
	list-style: none;
	min-width: 300px;
	padding-bottom: 12px;
	position: absolute;
	top: 100%;
	z-index: 999;
}

#nf-page #nf-header .nf-header-nav .nf-submenu li {
	list-style: none;
	position: relative;
}

#nf-page #nf-header .nf-header-nav .nf-submenu li a {
	color: var(--sec-neutral);
	display: block;
	font-weight: bold;
	padding: 8px 30px;
	text-decoration: none;
	white-space: nowrap;
}

#nf-page #nf-header .nf-header-nav .nf-submenu li:has(> ul) > a::after {
	content: "\f107";
	float: right;
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
	margin-left: 8px;
	transform: rotate(-90deg);
}

#nf-page #nf-header .nf-header-nav .nf-submenu li:has(> ul):hover > .nf-submenu {
	display: block;
	left: 100%;
	top: 0;
}

#nf-page #nf-header .nf-header-nav .nf-submenu li.dropdown-title {
	border-bottom: 1px solid var(--pri-neutral);
	color: var(--sec-neutral);
	font-size: 18px;
	font-weight: 600;
	padding: 10px 16px;
	pointer-events: none;
}

#nf-page #nf-header .nf-header-nav .nf-submenu li.dropdown-title span {
	position: relative;
}

#nf-page #nf-header .nf-header-nav .nf-submenu li.dropdown-title span::before {
	color: var(--pri-base);
	content: "\f0d8";
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
	left: 25%;
	position: absolute;
	top: -31px;
}

#nf-page #nf-header .nf-header-nav .nf-submenu li.dropdown-sep {
	border-bottom: 1px solid var(--pri-neutral);
	height: 0;
	overflow: hidden;
}

#nf-page #nf-header .nf-header-nav .nf-submenu li.dropdown-subtitle {
	color: var(--sec-neutral);
	display: block;
	font-size: 12px;
	line-height: 1.42857143;
	padding: 8px 30px 0 30px;
	white-space: nowrap;
}

/* Burger animation when menu is open */
.menu-open > #nf-page #nf-header .nf-header-top .nf-menu-toggle span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.menu-open > #nf-page #nf-header .nf-header-top .nf-menu-toggle span:nth-child(2) {
	opacity: 0;
}

.menu-open > #nf-page #nf-header .nf-header-top .nf-menu-toggle span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* -------------------------------------------------------------------------------- */
/*                                 Responsive rules                                 */
/* -------------------------------------------------------------------------------- */
@media (max-width:1024px) {
	#nf-page #nf-header .nf-header-nav {
		display: none;
	}

	#nf-page #nf-header .nf-header-top .nf-container {
		align-items: center;
		column-gap: 0;
		display: grid !important;
		grid-template-columns: 1fr auto 1fr;
		grid-template-rows: auto auto;
		padding-bottom: 0;
		padding-top: 10px;
		row-gap: 0;
	}

	#nf-page #nf-header .nf-header-top .nf-menu-toggle {
		align-self: center;
		display: inline-flex;
		grid-column: 1 / 2;
		grid-row: 1 / 2;
		justify-self: start;
	}

	#nf-page #nf-header .nf-header-top .nf-brand {
		align-self: center;
		grid-column: 2 / 3;
		grid-row: 1 / 2;
		justify-self: center;
		margin: 0;
	}

	#nf-page #nf-header .nf-header-top .nf-header-actions {
		align-items: center;
		background: var(--abs-white);
		border-top: 1px solid var(--pri-neutral);
		display: flex;
		gap: 20px;
		grid-column: 1 / -1;
		grid-row: 2 / 3;
		justify-content: center;
		padding: 10px 12px;
		width: 100%;
	}

	#nf-page #nf-header .nf-header-top .nf-header-actions .nf-header-actions-sep {
		display: none !important;
	}

	.menu-open > #nf-page #nf-header .nf-header-top .nf-menu-toggle {
		opacity: 0;
		pointer-events: none;
		visibility: hidden;
	}

	#nf-page #nf-header .nf-header-nav .dropdown-sep,
	#nf-page #nf-header .nf-header-nav .dropdown-subtitle,
	#nf-page #nf-header .nf-header-nav .dropdown-title {
		display: none !important;
	}

}

@media (max-width:600px) {
	#nf-search-panel .nf-search-shell {
		border-bottom: 1px solid var(--pri-neutral);
		box-sizing: border-box;
		left: 0;
		max-width: 100vw;
		position: fixed;
		right: 0;
		top: 0;
		width: 100%;
	}

	#nf-search-panel .nf-search-shell .nf-search-form {
		padding: 14px 12px 16px 12px;
	}

	#nf-search-panel .nf-search-shell .nf-search-form .nf-search-row {
		grid-template-areas: "input input" "lang  submit";
		grid-template-columns: 1fr 1fr;
	}

	#nf-search-panel .nf-search-shell .nf-search-form .nf-search-row input[type="search"] {
		border-radius: 8px;
		grid-area: input;
		height: 48px;
	}

	#nf-search-panel .nf-search-shell .nf-search-form .nf-search-row select {
		border-radius: 8px;
		font-size: 16px;
		grid-area: lang;
		height: 48px;
	}

	#nf-search-panel .nf-search-shell .nf-search-form .nf-search-submit {
		border-radius: 8px;
		font-size: 16px;
		grid-area: submit;
		height: 48px;
	}

}

@media (max-width:360px) {
	#nf-search-panel .nf-search-shell .nf-search-form .nf-search-row {
		grid-template-areas: "input" "lang" "submit";
		grid-template-columns: 1fr;
	}

}
