.navbar {
	background-color: var(--black);
	width: 100%;
	height: 50px;
	line-height: 52px;
}
.navbar.small { height: 40px; line-height: 42px; }

.desktop.wide .navbar nav { width: 1200px; }
.desktop .navbar nav { width: 100%; }

.navbar nav { 
	display: flex; 
	margin: 0 auto; 
	align-content: center; 
	position:relative; 
	height: inherit;
}

.navbar.left nav { align-content: flex-start;  }

.navbar nav a { 
	color: white;
	font-family: greycliff-cf, sans-serif;
	font-weight: 700;
	font-style: normal;
	text-transform: uppercase;
	font-size: 16px;
	letter-spacing: 0.02em;
	position: relative;
}

.navbar.small nav a { font-size: 16px; }

.navbar nav .menu a:not(.no-line)::after {
	position: absolute;
	border-top: 2px solid var(--navbar-hover);
	left:50%;
	bottom: -8px;
	width: 75%;
	color: var(--navbar-hover);
	content: "";
	opacity: 0;
	transition: bottom .2s ease-in-out, opacity .2s ease-in-out;
	transform: translateX(-50%);
} 

.navbar nav .menu a.active { color: var(--navbar-hover); }

.navbar a.logo { 
	width: 25px;
	height: inherit;
	margin-left: 0.5em; 
}
.navbar a.logo:before { 
	font-size:var(--navbar-logo-size,26px); 
	transition: color .3s ease-in-out; 
	top: 2px;
}

.navbar nav .menu a.no-line {
	border-color: transparent;
}

@media (hover: hover) { 
	.navbar a.logo:focus:before,
	.navbar a.logo:hover:before { color:var(--navbar-hover); }
	.navbar a:focus,
	.navbar a:hover { 
		color:var(--navbar-hover);
		transition: color .3s ease-in-out;
	}
	.navbar nav .menu a:focus:after,
	.navbar nav .menu a:hover:after {
		border-color: var(--navbar-hover);
		bottom:-2px;
		opacity: 1;
	}

	#profile_img:hover img {
		box-shadow:0 0 0 3px rgba(255,255,255,.4);
	}
}

#profile_img img {
	margin-block: 10px;
	border-radius: 50%;
	height: 30px;
	transition: box-shadow .3s ease-in-out;
}
#profile_img:after { border-top:0; }

.tablet .navbar a.logo,
.mobile .navbar a.logo { margin:0 auto; }

.navbar nav .menu { 
	margin: 0 auto;
	gap: 40px;
	position: relative;
	list-style: none;
}

.navbar nav .menu li { 
	margin:0; 
	padding:0; 
	line-height: 50px;
}

.navbar.small nav .menu li { line-height: 40px; }

.navbar.small nav .menu {
	display: flex;
	gap: 30px;
}

/* ----~~~~ Sub Menu ~~~~---- */

.nav_submenu {
	position: absolute;
	right: 0;
	background-color: rgba(21, 24, 28, .95);
	top: 50px;
	z-index: 1;
	border-radius: 5px;
	box-shadow: 2px 2px 4px 1px rgba(0,0,0,.3);
	padding: 5px;
	width: max-content;
	display: none;
}
.nav_submenu ul { list-style:none; margin:0; padding:0; }
.nav_submenu li { color:white; background-color: transparent; border-radius: 5px; }
.nav_submenu li a { display:block; font-size:.8em; height: 50px;  line-height: 52px; padding-inline:30px; }

.nav_submenu .aa-list a:before { left:0px; }
@media (hover: hover) { 
	.nav_submenu li:hover { background-color: rgba(255,255,255,.1); }
	.nav_submenu li:hover a { text-shadow: 1px 1px 1px rgba(0,0,0,.5); }
	.nav_submenu .aa-list a:hover:before { left:14px; bottom:-1px; }
	.nav_submenu .aa-list a:focus:before { left:14px; bottom:-1px; }
}



