
nav {
	/* --menu-sub-bg: #22534e; */

	--menu-sub-bg: #22534e;
	--menu-node-bg: #2c6963;
}

/* ==== NAVIGATION  */

nav.menu.menu--sub {
	font-size: 0.9rem;
	position: sticky;
	top: 0px;
	z-index: 1000;
	border-color: #ffffff33;
	background-color: var(--menu-sub-bg);
	padding: .25rem;
	border-bottom: 5px solid #ffffff11;
}

/* nav.menu.menu--sub { */

nav.menu.menu--sub a {
	text-align: left;
	overflow: hidden;
	text-transform: uppercase;
	font-size: .9rem;
	font-weight: bold;
	color: #eee;
	padding: 0;
	
	margin: .25rem;
	
	/* max-width: calc(max-content + .2rem); */
	display: flex;
	align-items: center;
	/* line-height: 1; */
	/* padding-top: .5rem; */
	/* padding-bottom: .5rem; */
	padding-left: 0;
	background-color: #ffffff22;
	/* border-color: #ffffff44; */
	border-color: transparent;
	/* height: 2rem; */
	/* background-color: rgba(255,255,255,0.95); */
	border-radius: .25rem;
}

nav.menu.menu--sub li:first-of-type a {
	border-radius: .5rem .25rem .25rem .5rem;
}
nav.menu.menu--sub li:last-of-type a {
	border-radius: .25rem .5rem .5rem .25rem;
}


nav.menu.menu--sub a:hover {
	text-decoration: none;
	border-color: transparent;
}

nav.menu.menu--sub a span.m-icon {
	background-color: #ffffff11;
	/* display: inline-block; */
	/* display: none; */
	/* height: 2.5; */
	/* padding: 5px 10px; */
	/* margin: -5px 12px -5px 0; */
	/* margin: 0 12px 0 0; */
}

nav.menu.menu--nofix {
	position: relative;
}

nav.menu.menu--bg-t2 {
	background-color: #0088aa44;
}

nav.menu.menu--node {
	background-color: var(--menu-node-bg);
}
nav.menu.menu--node ul {
	
	/* width: fit-content; */
	/* justify-content: left; */
	/* width: 5; */
	/* align-items: left; */
	/* display: inline-block; */
}
nav.menu.menu--node ul li {
}
nav.menu.menu--node.menu--nicons ul li {
	text-align: left;
	
}
nav.menu.menu--node.menu--nicons ul li a {
	padding-left: 0;
	padding-right: 2rem;
}

nav.menu.menu--nicons a span.m-icon {
	background-color: #ffffff11;
	display: inline-block;
	/* display: none; */
	/* height: 2.5; */
	width: 2.5rem;
	text-align: center;
	font-size: 1.25rem;
	padding: .25rem 0;
	/* padding: 0; */
	/* margin: 0; */
	margin-right: .75rem;
	/* margin: -8px 14px -8px 0; */
}
nav.menu.menu--nicons a:hover span.m-icon {
	background-color: #00000011;
}

/* ==== MOBILE BURGER ==== */

.menu--sub #burger {
  display: none;
}
.menu--sub.stuck {
	background-color: #002244dd;
}

@media (max-width: 768px) {

	nav.menu.menu--sub {
		padding: .4rem .5rem .35rem .25rem;
	}
	nav.menu.menu--sub li {
		padding: 0;
	}
	nav.menu.menu--sub a {
		padding-right: .1rem;
	}
	nav.menu.menu--node {
		/* padding: .4rem .5rem .35rem .25rem; */
	}
	nav.menu.menu--node li {
		/* padding: 0; */
		/* flex-grow: 0; */
	}
	nav.menu.menu--node li.menu-name {
		padding: 0 1rem;
	}
	nav.menu.menu--node a {
		padding: .1rem 1.5rem;
		/* padding-right: .1rem; */
	}
	
	.menu--sub.stuck {
	  /* height: 4rem; */
	}
	.menu--sub #burger {
	  font-size: 1.5rem;
	  font-weight: bold;
	  cursor: pointer;
	  padding: .8rem 0;
	  width: 3rem;
	  height: 3rem;
	  text-align: center;
	  background-color: #00224488;
	  position: absolute;
	  overflow: hidden;
	  left: 0;
	  top: 0;
	  z-index: 1001;
	  border: 1px solid #ffffff44;
	  border-left: 0px;
	  border-top: 0px;
	  
	  border-radius: 0 0 .5rem 0;
	}
	.menu--sub #burger::before {
		content: '☰';
	}
	.menu--sub.menu-open #burger::before {
		content: '✕';
		padding: 0;
		/* content: ''; */
	}

	/* When stuck, show burger and hide menu */
	.menu--sub.stuck #burger {
	  display: block;
	}

	.menu--sub.stuck ul {
	  display: none;
	}

	/* If menu is open, show it even when stuck */
	.menu--sub.stuck.menu-open {
		background-color: #002244dd;
	}
	.menu--sub.stuck.menu-open ul {
	  display: flex;
	  /* flex-direction: column; */
	}

}
