#b-header {
	--b-header-max: 200px;
	--b-header-min: 100px;
	--b-icon-padding-max: 35px;
	--b-icon-padding-min: 15px;

	--b-burger-size: 50px;
	--b-burger-weight: 1px;

	--b-social-size: 25px;
	--b-social-border: 1px;
	--b-social-edge: 10px;
	--b-social-gap: 10px;

	--b-header-scale: 1;
}

#b-header .b-fixed {
	display: flex;
	flex-direction: column;

	position: fixed;
	top: 0;
	width: 100%;

	height: 100%;
	height: -moz-available;
	height: -webkit-fill-available;
	height: fill-available;

	pointer-events: none;
	z-index: 1000;
}

#b-header .b-bar {
	display: flex;
	align-items: center;

	position: relative;
	width: 100%;

	pointer-events: auto;
	background-color: white;
}

#b-header .b-line {
	position: absolute;
	bottom: 0;
	width: 100%;
	height: 1px;

	background-color: rgba(0,0,0,0.1);
}

#b-header .b-logo {
	height: calc(var(--b-header-min) + (var(--b-header-max) - var(--b-header-min)) * var(--b-header-scale));
	padding: calc(var(--b-icon-padding-min) + (var(--b-icon-padding-max) - var(--b-icon-padding-min)) * var(--b-header-scale));
}
#b-header .b-logo img {
	height: 100%;
}

/* bar links */
#b-header .b-bar .b-links {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-grow: 1;
	margin-right: 15px;
}

#b-header .b-bar .b-links .b-a {
	display: block;

	font-size: 13px;
	font-weight: 500;
	font-family: Raleway, sans-serif;
	color: #003241;
	text-align: center;
	text-decoration: none;
	user-select: none;

	position: relative;
	padding: 22px 20px;
	margin: 0 15px;
	
	cursor: pointer;
}


:root:not(.b-navigating) #b-header .b-bar .b-links .b-a.b-current .b-i,
:root.b-navigating #b-header .b-bar .b-links .b-a.b-target .b-i,
:root.b-hover #b-header .b-bar .b-links .b-a:hover .b-i,
#b-header .b-bar .b-links .b-a.b-clicked .b-i {
	display: block;

	position: absolute;
	left: 0;
	right: 0;
	bottom: -4px;
	width: 100%;
	height: 4px;
	margin: 0 auto;

	background-color: #0081ad;
}






/* bar link dropdowns */
#b-header .b-bar .b-links .b-a .b-dropdown {
	position: absolute;
	min-width: 100%;
	top: 100%;
	left: 50%;
	margin-top: 24px;
	padding: 15px 25px;
	z-index: 1;
	
	transform: translateX(-50%);
	
	display: flex;
	flex-direction: column;
	align-items: flex-start;

	background-color: white;
}
#b-header .b-bar .b-links .b-a .b-dropdown.b-hidden {
	display: none;
}
#b-header .b-bar .b-links .b-a .b-dropdown::before {
	content: "";
	position: absolute;
	width: 100%;
	height: 24px;
	top: -24px;
	left: 0;
}
#b-header .b-bar .b-links .b-a .b-dropdown a {
	
	position: relative;
	display: block;
	
	width: 100%;
	padding: 10px 20px;

	font-size: 13px;
	font-weight: 500;
	font-family: Raleway, sans-serif;
	color: #003241;
	text-align: left;
	text-decoration: none;
	user-select: none;
	white-space: nowrap;
	
	cursor: pointer;
}

:root.b-navigating #b-header .b-bar .b-links .b-a .b-dropdown a.b-target i,
:root.b-hover #b-header .b-bar .b-links .b-a .b-dropdown a:hover i {
	display: block;
	position: absolute;
	left: -4px;
	top: 0;
	bottom: 0;
	width: 4px;
	height: 60%;
	margin: auto 0;
	background-color: #0081ad;
}





/* burger button */
#b-header .b-burger {
	display: none;
	padding: 0 20px;
	margin-right: 15px;
}
#b-header .b-burger svg {
	width: var(--b-burger-size);
	height: var(--b-burger-size);
	color: #003241;
	cursor: pointer;
}








/* social links */
#b-header .b-socials {
	display: flex;
	position: absolute;
	top: calc(var(--b-social-edge) - (var(--b-social-edge) + var(--b-social-size) + var(--b-social-border) * 2) * (1 - var(--b-header-scale)));
	right: var(--b-social-edge);
}
#b-header .b-social-container {
	color: #003241;
	width: var(--b-social-size);
	height: var(--b-social-size);
	margin: var(--b-social-border);
	margin-right: calc(var(--b-social-border) + var(--b-social-gap));
	outline: var(--b-social-border) solid currentcolor;
	cursor: pointer;
}
#b-header .b-social-container:last-child {
	margin-right: var(--b-social-border);
}
#b-header .b-social-container svg {
	width: 100%;
	height: 100%;
}
#b-header .b-menu .b-socials {
	top: initial;
	right: initial;
	bottom: var(--b-social-edge);
	padding: 0 var(--b-social-edge);
	width: 100%;

	justify-content: center;

	opacity: 0;
	transition: opacity 0.25s;
}
#b-header .b-menu.open .b-socials {
	opacity: 1;
}
#b-header .b-menu .b-social-container {
	color: white;
}






/* fullscreen menu */
#b-header .b-menu {
	display: flex;
	position: relative;
	width: 100%;
	flex-grow: 1;
	align-items: center;
	justify-content: center;
}
#b-header .b-menu.open {
	pointer-events: auto;
}

#b-header .b-menu .b-back {
	position: fixed;
	top: 0;
	width: 100vw;
	height: 100vh;
	z-index: -1;

	background: rgba(0, 50, 65, 0);
	transition: background 0.25s, backdrop-filter 0.25s;
}
#b-header .b-menu.open .b-back {
	background: rgba(0, 50, 65, 0.85);
}

#b-header .b-menu .b-links {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	width: fit-content;
/* 	height: calc(100% - (2 * var(--b-social-edge) + 2 * var(--b-social-border) + var(--b-social-size))); */
	
	margin-bottom: calc(0.5 * (  (2 * var(--b-social-edge)) + 2 * var(--b-social-border) + var(--b-social-size)));

	opacity: 0;
	transition: opacity 0.25s;
}
#b-header .b-menu.open .b-links {
	opacity: 1;
}

#b-header .b-menu .b-links .b-a {
	display: block;
	position: relative;

	color: white;
	font-size: 16px;
	font-weight: 500;
	font-family: Raleway, sans-serif;
	text-align: center;
	text-decoration: none;
	user-select: none;
	
	width: 100%;
	padding: 12px 10px;
	
	cursor: pointer;
}

:root:not(.b-navigating) #b-header .b-menu .b-links .b-a.b-current i,
:root.b-navigating #b-header .b-menu .b-links .b-a.b-target i,
:root.b-hover #b-header .b-menu .b-links .b-a:not(.b-showing-submenu):hover i {
	display: block;
	position: absolute;
	left: -4px;
	top: 0;
	bottom: 0;
	width: 4px;
	height: 65%;
	margin: auto 0;
	background-color: #0081ad;
}


/* menu link dropdowns */
#b-header .b-menu .b-links .b-a.b-sa:not(.b-sa-show) {
	display: none;
}
#b-header .b-menu .b-links.b-showing-submenu .b-a:not(.b-sa):not(.b-showing-submenu) {
	display: none;
}
#b-header .b-menu .b-links .b-a .b-cross-container{
	display: none;
	align-items: center;
	position: absolute;
	top: 0;
	bottom: 0;
	left: 100%;
	
	margin-left: 5px;
}
#b-header .b-menu .b-links div.b-a.b-showing-submenu {
	border-bottom: 1px white solid;
	margin-bottom: 10px;
}
#b-header .b-menu .b-links div.b-a.b-showing-submenu .b-cross-container{
	display: flex;
	cursor: pointer;
}
#b-header .b-menu .b-links .b-a .b-cross-container .b-threelines{
	width: 32px;
	height: 32px;
}






/* responsiveness */
@media only screen and (max-width: 1349px) {
	#b-header .b-burger {
		display: block;
	}
	#b-header .b-bar .b-links {
		margin-right: 0;
	}
	#b-header .b-bar .b-links .b-a.b-collapses {
		display: none;
	}
}

@media only screen and (max-width: 700px) {
	#b-header {
		--b-header-max: 135px;
		--b-header-min: 65px;
		--b-icon-padding-max: 25px;
		--b-icon-padding-min: 5px;
		--b-burger-size: 35px;
		--b-social-size: 20px;
		--b-social-border: 1px;
		--b-social-edge: 10px;
		--b-social-gap: 10px;
	}
	#b-header .b-bar {
		justify-content: center;
	}
	#b-header .b-burger {
		position: absolute;
		right: 0;
		margin-right: 0;
	}
	#b-header .b-bar .b-socials {
		display: none;
	}
	#b-header .b-bar .b-links {
		display: none;
	}
}

/* pad page content down below top bar */
#b-header .b-page-padding {
	width: 100%;
	height: var(--b-header-max);
}