/*	===================================
	FLEXIBLE MULTIMENU UPP TO 3 LEVELS
	===================================
	Common CSS for all available Header Menus
		- The jQuery variables to Show/Hide the menu for both Desctop and Mobiles are also common to all Header Menus
			jqNavHeaderMarker and jqNavHeader

    =====================================================
	To make the Top Navigation Menu FIXED when scrolling
    =====================================================
    Add the class .jqNavFixed as follow (is defined dynamically and added dynamically)
        <nav id="nav">
            <div class="nav_fixed jqNavFixed">
	jQuery toggles the position of .nav_fixed between relative and fixed depending on page scrolling
		- If Navigation is already place on top, jQuery will set .nav_fixed to fixed on page load and don't use the scroll functions

    =====================================================
	The background (color and image) of the Navigation menu
	=====================================================
	Background is defined by the class .nav_fixed (see sx_Structure.css)
		- Set the background (both color and image) for .sxNavHeader to "inherit", as it is set in .nav_fixed
		- Set then the background COLOR ONLY to "inherit" for the second list level:
			- .sxNavHeader ul ul {background-color: inherit}
		- In that way you redifine the background (color and image) only in one place: #nav .nav_fixed, in sx_Structure.css
*/

.sxNavHeader {
	font-family: var(--nav-fonts);
	position: absolute;
	left: 0;
	top: 100%;
	width: 100%;
	margin: 0;
	padding: 2rem;
	text-align: left;
	font-size: 1.2rem;
	background: var(--nav-bg);
	display: none;
	overflow: auto;
	border-top: 1px solid var(--nav-border);
}

.sxNavHeader>ul {
	display: block;
}

.sxNavHeader ul,
.sxNavHeader li {
	padding: 0;
	margin: 0;
	list-style: none;
}

.sxNavHeader span,
.sxNavHeader a {
	display: inline-block;
}

/*
	=================================== 
	FIRST LEVEL; span and a
	===================================
*/

.sxNavHeader>ul>li {
	padding: 0.5rem 0;
}

.sxNavHeader>ul>li>a,
.sxNavHeader>ul>li>span {
	color: var(--nav-link);
	font-weight: bold;
}

.sxNavHeader>ul>li:hover>span,
.sxNavHeader>ul>li:hover>a {
	color: var(--nav-link-hover);
}

.sxNavHeader>ul>li>a:after {
	content: " »»";
}

/*	
	=================================== 
	SECOND LEVEL
	===================================
	content: "\00BB";
*/

.sxNavHeader ul ul {
	display: block;
	margin: 10px 0 0 24px;
	background-color: inherit;
}

.sxNavHeader li li {
	padding: 0 6px;
}

.sxNavHeader li li a {
	position: relative;
	padding: 0 0 0.5rem 1.5rem;
	color: var(--nav-link);
	font-size: 1rem;
	font-weight: bold;
}

.sxNavHeader li li a::before {
	content: ' \00276F\00276F';
	font-size: 0.7em;
	position: absolute;
	top: 0.1em;
	left: 0;
}

.sxNavHeader .profile_menu a {
	padding: 0 0 8px 0;
}

.sxNavHeader .profile_menu a::before {
	content: "";
}

.sxNavHeader .profile_menu svg {
	margin-right: 0.75rem;
}


.sxNavHeader>ul>li>ul>li:hover>a {
	color: var(--nav-link-hover);
}

.sxNavHeader li li li:hover a {
	color: var(--nav-link-hover);
}

/*	
	=================================== 
	SECOND LEVEL + 1
	=================================== 
*/

.sxNavHeader li li li a {
	font-size: 0.9em;
	font-weight: normal
}

.sxNavHeader ul ul ul {
	display: block;
	position: static;
	padding: 0 0 0 20px;
}

/*
	=================================== 
	Transform Header Nav FROM Mobile Devices TO Desktop
	Use !important to reset values changed by jQuery, 
	since jQuery uses the ID jqNavHeader to change values set in CLASS sxNavHeader 
	===================================
*/

@media only screen and (min-width: 1200px) {
	#sxNavHeaderMarker {
		display: none;
	}

	/*
	Set a pedding value to .sxNavHeader so that its height is equal to the height of #sxNavHeaderMarker
		It is important for fixed top navigation, the height of which is determined by
			- the height of #sxNavHeaderMarker, in screen with mobile sizes
			- the height of sxNavHeader, in wide screens
	*/

	.sxNavHeader {
		position: static;
		display: block !important;
		height: auto !important;
		padding: 0 0 0.2rem 0;
		text-align: center;
		font-size: 1rem;
        font-weight: 500;
		overflow: visible !important;
		border: 0;
		background: none;
	}

	/*	First Level
	===================================
	*/
	.sxNavHeader>ul {
		display: flex;
		flex-wrap: nowrap;
		justify-content: center;
		column-gap: 0.3rem;
		margin: 0 auto;
	}

	/* Obs! Obs! Obs! 
		The padding of the first LI defines the height of the 
		navigation bar when the logo is in navigation bar
		- alternativelu, the height might be defined by the logo padding
	*/
	.sxNavHeader>ul>li {
		display: inline-block;
		padding: 0.75rem 0 0.25rem 0.5rem;
		text-align: left;
		position: relative;
	}

	.sxNavHeader>ul>li>span,
	.sxNavHeader>ul>li>a {
		cursor: pointer;
		padding: 0;
		margin: 0;
		font-weight: 500;
	}

	.sxNavHeader>ul>li>a:after {
		content: "";
	}

	.sxNavHeader>ul>li>span::after {
		content: " \21E3";
		display: inline;
		overflow: hidden;
	}

	.sxNavHeader>ul>li:hover>span::after {
		content: " \21E1";
	}

	/*	Second Level
	=================================== */
	.sxNavHeader ul ul {
		position: absolute;
		left: 0;
		top: 100%;
		margin: 0;
		padding: 20px;
		display: none;
		background-color: var(--nav-bg);
		overflow: auto;
	}

	.sxNavHeader li li {
		padding: 1px 0;
	}

	.sxNavHeader li li a {
		white-space: nowrap;
        font-size: 1rem;
		font-weight: 500;
	}

	/*	Second Level + 1
	=================================== */
	.sxNavHeader ul ul ul {
		display: block;
		position: static;
		padding: 0 20px 8px 26px;
	}

	.sxNavHeader li li {
		line-height: 125%;
	}

	/*	
		For wide-screen menu:
		Used the classes li.static and ul.wide
		Change initial settings for the Position och the First Level LI:
			The including UL.wide is positioned relative to nav, Not to its LI
		content: "\00BB";
	=================================== */
	.sxNavHeader>ul>li.static {
		position: static;
	}

	.sxNavHeader .wide {
		left: 0;
		right: 0;
		text-align: center;
		border-top: 1px solid var(--nav-border);
		padding: 25px 10px;
	}

	.sxNavHeader .wide>li {
		display: inline-block !important;
		vertical-align: top;
		padding: 10px;
		margin: 0;
		text-align: left;
		width: 24.5%;
	}

	.sxNavHeader .wide>li>a {
		font-size: 1.2em;
	}

	.sxNavHeader .wide>li>a::before {
		content: "\203A\203A ";
		font-size: 0.8em;
	}

	.sxNavHeader .wide li ul {
		position: static;
		display: block !important;
	}

	.sxNavHeader .wide li ul li a {
		white-space: pre-wrap;
		font-size: 1em;
	}

}

@media only screen and (min-width: 1200px) {

	.nav_with_logo .sxNavHeader>ul {
		column-gap: 1.5rem;
	}
}

@media only screen and (min-width: 1320px) {
	.sxNavHeader>ul {
		column-gap: 1rem;
	}
}


@media only screen and (max-width: 1199px) {
    .sxNavHeader ul {
        display: block !important;
    }
}