body>header {
	display: grid;
	grid-template-areas: "l logo menu r";
	grid-template-columns: auto 268px minmax(0, calc(var(--width-max) - 268px)) auto;
	align-items: center;
	/*grid-template-rows: calc(64px + 2rem) 40px;*/
	height: calc(64px + 2rem);
	width: 100vw;
	background: var(--color-background-head);
	box-shadow: 0 20px 20px rgb(0 0 0 / .2);
	z-index: 999;
}

body>header>a {
	grid-area: logo;
	display: flex;
	grid-column: 2;
}


body>header>nav:nth-child(2) {
	grid-area: menu;
	grid-column: 3;
	justify-self: end;
	display: flex;
	align-items: center;
	min-width: 0;
}

body>header>nav:nth-child(3) {
	grid-area: submenu;
}

body>header>img {
	display: none;
}

@media (max-width:1247px) {
	body>header {
		grid-template-columns: 1rem 200px minmax(0, calc(var(--width-max) - 200px)) 1rem;
	}
}

@media (max-width: 640px) {
	body>header {
		grid-template-areas: "left logo right";
		grid-template-columns: 1fr 300px 1fr;
		padding-inline: 1rem;
	}

	body>header>a {
		display: block;
		grid-column: 2;
		justify-self: center;
	}

	body>header>nav {
		display: block;
		position: fixed;
		top: 0px;
		left: -240px;
		bottom: 0px;
		width: 240px;
		height: 100vh;
		background: #222;
		z-index: 999;
		transition: all .2s ease-in-out;
		z-index: 1000;
	}

	body>header>nav.open {
		left: 0;
		transition: all .5s ease-in-out;
	}

	body>header>img {
		display: block;
		position: absolute;
		top: 33px;
		right: calc((100vw - 200px) / 4);
		filter: invert(1);
		cursor: pointer;
	}
}

.breadcrumbs,
#content,
#resources,
#copyright {
	width: 100%;
	max-width: var(--width-max);
	margin: 0 auto;
	padding: 0 1rem;
}

@media (max-width:1247px) {

	.breadcrumbs,
	#content,
	#resources,
	#copyright {
		width: 100vw;
		max-width: 100vw;
	}
}

@media (min-height:460px) {
	body>header {
		position: fixed;
	}

	.breadcrumbs {
		padding-top: calc(64px + 2rem);
	}
}

main {
	grid-column: 2;
}

main>article>header {
	margin-top: 1rem;
}