header {
	display: block;
	width: 100%;
	margin: 2rem 0;
}
header[role="navigation"] {
	margin-top: 0;
	padding-top: 3rem;
}
header section div.flex {
	margin: 0 4rem;
}
header section h1#logo,
header section div#logo{
	order: 1;
	flex-grow: 1;
	max-width: 250px
}
header section nav {
	order: 2;
	flex-grow: 4;
	padding-left: 3rem;
}
header section nav ul li a {
    display: block;
}
header section nav > ul {
	position: relative;
	font-weight: 700;
	font-size: 0.95rem;
}
header section nav > ul li input[type="checkbox"] {
	display: none;
}
header section nav > ul ul {
	font-weight: 400;
	font-size: 0.9rem;
	position: absolute;
	display: block;
	/*display: none;*/
	transform: scaleY(0);
	transform-origin: top;
	min-width: 10rem;
	transition: transform 0.2s ease;
}
header section nav ul li label {
	cursor: pointer;
}
#hamburger {
	display: none;
}
header section nav ul li input[type="checkbox"]:checked ~ ul {
	transform: scaleY(1);
	transition: transform 0.5s ease;
}
header section nav > ul ul.blue.inv li,
header section nav > ul ul.blue.inv {
	background-color: #27587b !important;
	color: #fff;
}
header section nav ul ul li {
	padding-top: 0.25rem;
	padding-bottom: 0.25rem;
	/*border-bottom: 1px solid;*/
}
header section nav ul ul li:hover {
	background-color: rgba(39,88,123,0.15);
}
header section nav ul ul li:first-child {
	margin-top: 0.5rem;
	/*border-top: 1px solid;*/
}

@media only screen and (orientation: portrait) and (-webkit-min-device-pixel-ratio: 2) {
	header section div.flex {
		display: block;
		text-align: center;
	}
	header section div.flex ul {
		text-align: left;
	}
	header section nav {
		margin-top: 2rem;
		margin-bottom: 4rem;
	}
	.screen-reader-text {
		/*display: inline-block;*/
	}
}
@media all and (max-width: 1024px) {
	header[role="navigation"] > section > .flex {
		display: block;
		text-align: left;
		position: relative;
	}
	#hamburger {
		display: block;
		width: 4rem;
		height: 4rem;
		
		position: absolute;
		top: 1.5rem;
		right: 0;
	}
	#hamburger::before {
		font-family: 'Font Awesome 5 Free';
		font-weight: 900;
		font-size: 4rem;
		content: '\f0c9';
		display: inline-block;
		
		cursor:pointer;
	}
	#logo {
		margin-bottom: 2rem;
		margin-right: 8rem;
	}
	header[role="navigation"] nav {
		padding-left: 0;
		height: auto;
		max-height: 0;
		overflow: hidden;
		transition: all 0.25s ease;
	}
	header[role="navigation"] input#navSwitch[type="checkbox"]:checked ~ nav {
		transition: all 0.5s ease;
		max-height: 30rem;
	}
	nav ul.flex {
		display: block;
	}
	header section nav > ul.flex li {
		padding: 0.5rem 0;
		margin: 0.5rem 0;
		text-align: left;
		
		font-size: 1.2rem;
	}
	header section nav > ul.flex ul {
		position: relative;
		display: block;
		transform: none;
		min-width: 0;
		transition: all 0.2s ease;
		max-height: 0;
		overflow: hidden;
		margin: 0 0 0 0;
	}
	header section nav ul.flex li input[type="checkbox"]:checked ~ ul {
		height: auto;
		margin-bottom: 1rem;
		transform: none;
		max-height: 10rem;
		transition: all 0.2s ease;
		margin: 0 0 1rem 0;
	}
}

#content {
	margin: 0 auto 0;
}