/* menu mobile */
.header-toggle {
	position: fixed;
	top: 5%;
	right: 5%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	margin: 0;
	padding: 0;
	color: rgb(var(--b) / 1);
	background: rgb(var(--n) / .5);
	border: 0;
	border-radius: .5rem;
	z-index: 260;
	cursor: pointer;
}

.header-toggle span {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2rem;
	line-height: 1;
	transition:
		opacity .25s ease,
		transform .25s ease;
}

.header-toggle .btn-open-menu {
	opacity: 1;
	transform: scale(1);
}

.header-toggle .btn-close-menu {
	opacity: 0;
	transform: scale(.7);
	pointer-events: none;
}

body.menu-open .header-toggle .btn-open-menu {
	opacity: 0;
	transform: scale(.7);
	pointer-events: none;
}

body.menu-open .header-toggle .btn-close-menu {
	opacity: 1;
	transform: scale(1);
	pointer-events: auto;
}

/* panel */
.menu {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100dvh;
	margin: 0;
	padding: 6rem 1rem 2rem;
	overflow-y: auto;
	overflow-x: hidden;
	-webkit-overflow-scrolling: touch;
	font-weight: 500;
	user-select: none;
	color: rgb(var(--b) / 1);
	background: rgb(var(--n) / .85);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	z-index: 240;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateX(-100%);
	transition:
		transform .55s cubic-bezier(.22, 1, .36, 1),
		opacity .35s ease,
		visibility .35s ease;
}

body.menu-open .menu {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateX(0);
	touch-action: pan-y;
	overscroll-behavior: contain;
}

body.menu-open {
	overflow: hidden;
	touch-action: none;
}


/* root */
.menu .menu-root {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}

.menu li {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	width: 100%;
	margin: 0;
	padding: 1rem 2.75rem 1rem 1rem;
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.2;
	color: rgb(var(--b) / 1);
	list-style: none;
	border-bottom: 1px solid rgb(var(--n-light) / .6);
}

.menu li:last-child {
	border-bottom: none;
}

.menu .menu-root > li {
	cursor: pointer;
}

.menu li i {
	display: block;
	margin-top: .25rem;
	font-size: .8rem;
	font-style: normal;
	font-weight: 500;
	line-height: 1.25;
	color: rgb(var(--n-light) / .75) !important;
}

.menu i {
	color: rgb(var(--n-light) / .75) !important;
	font-size: .8rem;
}

.menu i::before {
	content: "" !important;
}

/* arrow */
.menu li:has(> ul)::after {
	content: "\e900";
	position: absolute;
	top: 1.05rem;
	right: 1rem;
	font-family: "icomoon" !important;
	font-size: 1rem;
	color: rgb(var(--c5) / 1);
	transform: rotate(0deg);
	transition: transform .25s ease;
}

.menu li.is-open:has(> ul)::after {
	transform: rotate(180deg);
}

/* submenu level 1 */
.menu .menu-root > li > ul {
	position: relative;
	display: none;
	width: 100% !important;
	min-width: 0;
	margin: 1rem 0 0;
	padding: .75rem;
	list-style: none;
	background: rgb(var(--c1) / 1);
	border-radius: .5rem;
}

.menu .menu-root li.is-open > ul {
	display: block !important;
}

.menu .menu-root ul li {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	width: 100%;
	margin: 0 0 .25rem;
	padding: .75rem 1rem .75rem 1.5rem;
	font-size: .95rem;
	font-weight: 600;
	color: rgb(var(--n) / 1);
	background: rgb(var(--b) / .8);
	border: 0;
	border-radius: .35rem;
}

.menu .menu-root ul li:last-child {
	margin-bottom: 0;
}

.menu .menu-root ul li::before {
	content: "\e906";
	position: absolute;
	top: .9rem;
	left: .35rem;
	font-family: "icomoon" !important;
	font-size: .7rem;
	color: rgb(var(--c5) / 1);
}

.menu .menu-root ul li:hover {
	background: rgb(var(--b) / 1);
}

/* submenu level 2 */
.menu .menu-root ul ul {
	position: relative;
	display: none;
	width: 100%;
	margin: .75rem 0 0;
	padding: .5rem 0;
	list-style: none !important;
	border-top: 1px solid rgb(var(--n) / .2);
	border-bottom: 1px solid rgb(var(--n) / .2);
}

.menu .menu-root ul ul li {
	margin: 0;
	padding: .65rem 1rem .65rem 1.5rem;
	background: rgb(var(--b) / 1);
	border-radius: 0;
}

.menu .menu-root ul ul li:hover {
	background: rgb(var(--b) / .75);
}

/* language */
.menu li.language {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: .45rem;
	width: 100%;
	padding: 1rem;
	border-bottom: 1px solid rgb(var(--n-light) / .6);
}

.menu .language .lang-option {
	display: inline-block;
	margin-top: 0;
	font-weight: 900;
	color: rgb(var(--c1) / 1);
	text-decoration: none;
	text-shadow: none;
	cursor: pointer;
}

.menu .language .lang-option + .lang-option::before {
	content: "/";
	display: inline-block;
	margin-right: .45rem;
	color: rgb(var(--b) / .45);
	font-weight: 400;
}

/* search mobile */
.menu .site-search {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-start;
	width: 100%;
	height: auto;
	margin: 0;
	padding: 1rem;
	color: rgb(var(--b) / 1);
	border-right: 0;
	border-bottom: 1px solid rgb(var(--n-light) / .6);
	overflow: visible;
}

.menu .site-search:has(> ul)::after,
.menu .site-search::before {
	content: none;
}

.menu .site-search-toggle {
	position: absolute;
	top: 1rem;
	right: 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	margin: 0;
	padding: 0;
	cursor: pointer;
	text-decoration: none;
	background: none;
	border: 0;
	z-index: 3;
}

.menu .site-search-toggle::before {
	content: "\e910";
	font-family: "icomoon" !important;
	font-size: 1rem;
	color: rgb(var(--c1) / 1);
	line-height: 1;
}

.menu .site-search input {
	position: relative;
	top: auto;
	right: auto;
	left: auto;
	display: block;
	width: 100%;
	height: 2.75rem;
	margin: 0;
	padding: .35rem 3rem .35rem 1rem;
	font-family: inherit;
	font-size: 1rem;
	color: rgb(var(--n) / 1);
	background: rgb(var(--b) / .9);
	border: 1px solid rgb(var(--b) / 1);
	border-radius: .5rem;
	outline: none;
	z-index: 2;
}

.menu .site-search.search-open input {
	display: block;
}

.menu .site-search input::placeholder {
	color: rgb(var(--n) / .55);
	opacity: 1;
}

.menu #site-search-results {
	position: relative;
	top: auto;
	right: auto;
	left: auto;
	display: none;
	width: 100% !important;
	max-height: 45dvh;
	margin: .75rem 0 0;
	padding: .75rem;
	overflow-y: auto;
	overflow-x: hidden;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	list-style: none;
	background: rgb(var(--b) / 1);
	border-radius: .75rem;
	z-index: 2;
}

.menu #site-search-results.active {
	display: block;
}

.menu #site-search-results li {
	position: relative;
	display: block;
	width: 100%;
	margin: 0 0 .35rem;
	padding: .75rem;
	cursor: pointer;
	color: rgb(var(--n) / 1);
	background: rgb(var(--b) / 1);
	border: 0;
	border-radius: .5rem;
}

.menu #site-search-results li:last-child {
	margin-bottom: 0;
}

.menu #site-search-results li::before {
	content: none;
}

.menu #site-search-results li:hover {
	background: rgb(var(--b-dark) / .18);
}

.menu #site-search-results strong,
.menu #site-search-results span,
.menu #site-search-results p {
	color: rgb(var(--n) / 1);
}

body.site-search-open {
	overflow: hidden;
}