:root {
	--max: 75ch;
	--gap: 16px;
	--bg: #fff;
}

:focus-visible {
	outline: 3px solid var(--pink-color);
	outline-offset: 3px;
}

html {
	overflow: auto;
	background: var(--bg);
}

body {
	margin: 0;
	font-family: sans-serif;
	line-height: 1.6;
	background: var(--bg);
	color: var(--tcolor-k);
}

header,
main,
footer {
	padding: var(--fs-xxl) var(--fs-m);
}

p {
	line-height: 2em;
}

header {
	padding: calc(var(--fs-m) * 6) var(--fs-m);
}

footer {
	padding-bottom: calc(var(--fs-m) * 6);
}

footer > h4 {
	font-size: var(--fs-l);
	margin-bottom: 0.5em;
}

footer > ul + h4 {
	margin-top: 2em;
}

footer > a {
	display: block;
	color: var(--purple-color);
	text-decoration: underline;
	line-height: 1.74em;
}

.container {
	max-width: calc(var(--max) + 24px);
	margin: 0 auto;
}

h1 {
	font-size: var(--fs-xxl);
	margin-bottom: 1em;
	text-align: center;
}

.lead {
	margin: 0;
}

	.skip-links {
		position: fixed;
		left: 8px;
		top: 8px;
		display: flex;
		flex-direction: column;
		font-size: var(--fs-s);
		background: var(--color-bk);
		color: #fff;
		padding: 0 1.25em;
		border-radius: 1em;
		z-index: 9999;
		transition: max-height 0.3s;
	}

	.skip-links > label {
		text-align: center;
		padding: 0.75em 1em;
	}

	.skip-links > * {
		transition: 0.3s;
	}

	.skip-links > a {
		max-height: 0px;
		font-size: var(--fs-m);
		overflow: hidden;
	}

/*@media (hover: hover) {*/
	.skip-links:hover > a {
		max-height: 10em;
		padding: 0.5em 0;
	}

	.skip-links:hover > a:last-of-type {
		padding-bottom: 1em;
	}
/*}*/

.skip-links:has(*:focus-visible) > * {
	position: absolute;
	left: -99999px;
	top: 8px;
	white-space: nowrap;
	background: var(--color-bk);
	max-height: 10em;
	padding: 0.75em 1em;
	border-radius: 1em;
}

.skip-links > a:focus-visible {
	left: 8px;
}

nav {
	margin-top: 16px;
}

nav h2 {
	margin: 0 0 10px;
	font-size: var(--fs-l);
}

.nav-grid {
	display: grid;
	gap: 12px;
}

.nav-group {
	border: 1px solid var(--lcolor-w);
	border-radius: 14px;
	padding: 12px;
}

.nav-group > p {
	margin: 0 0 8px;
	font-size: var(--fs-l);
}

nav ul {
	margin: 0;
	padding-left: 18px;
}

nav a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

nav a[aria-current="true"] {
	font-weight: 700;
}

section {
	padding: 24px;
	margin: 24px 0;
	border: 1px solid var(--lcolor-w);
	border-radius: 1em;
}

section > h2 {
	font-size: var(--fs-xl);
	margin-bottom: 0.5em;
}

.section-summary {
	margin: 0 0 16px;
}

.subsection {
	padding: 24px 0;
}

.subsection + .subsection {
	border-top: 1px solid var(--lcolor-w);
}

.subsection h3 {
	font-size: var(--fs-l);
	margin-bottom: 0.75em;
}

.media {
	margin-top: 12px;
	display: grid;
	gap: 12px;
}

.p-img {
	--img-w: 250px;
	width: 100%;
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(var(--img-w), 1fr));
	margin: 1em 0;
}

.p-img figure {
	margin: 0;
}

.p-img figure > * {
	display: block;
}

.p-img figure img {
	width: 100%;
	height: auto;
	aspect-ratio: 1/1;
	/*	height: var(--img-w);*/
	object-fit: cover;
	display: block;
	background-color: black;
}

/*wide images*/
.subsection[id="sec-1-sub-1"] figure img,
.p-img figure img[src*='D-06-02'],
.p-img figure img[src*='B-06-01'] {
	aspect-ratio: auto;
}

/*grid images*/
.subsection[id="sec-1-sub-4"] figure:last-of-type {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

.subsection[id="sec-1-sub-4"] figure:last-of-type img {
	width: 50%;
	height: auto;
}

/*show and hide images*/
.p-img figure:has(img[src*='D-06-01']) {
	display: none;
}

.p-img figure:has(img[src*='D-06-02']) {
	grid-column: 1/-1;
}

/*smaller images*/
.p-img img[src*='C-02-00_graph'],
.p-img img[src*='B-02-01'] {
	box-sizing: border-box;
	padding: 15%;
}

.p-img img[src*='B-02-01'] {
	padding: 5%;
	object-fit: contain;
}

/*only one image*/
.p-img figure:has(img[src*='B-03-01']),
.p-img figure:has(img[src*='B-04-01']) {
	width: calc(50% - 22.5px);
}

.p-img img[src*='B-03-01'],
.p-img img[src*='B-04-01'] {}



figcaption {
	word-break: break-all;
	margin-top: 0.75em;
	font-size: var(--fs-m);
	text-align: left;
}

.back-to-nav {
	position: fixed;
	right: 16px;
	bottom: 16px;
	padding: 0.75em 1em;
	border-radius: 1em;
	border: 1px solid var(--lcolor-w);
	background: #111;
	color: #fff;
	cursor: pointer;
	font-size: var(--fs-m);
}

.back-to-nav:active {
	filter: brightness(1.1);
}

@media (hover: hover) {
	.back-to-nav:hover {
		filter: brightness(1.1);
	}
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (prefers-reduced-motion: reduce) {
	html:focus-within {
		scroll-behavior: auto;
	}
}

#poster {
	width: 100%;
	aspect-ratio: 297/210;
	display: grid;
	place-items: center;
	position: relative;
}

#poster figure {
	aspect-ratio: 297/210;
	width: 100%;
	height: auto;
	margin: 0;
}

#poster figure img {
	width: 100%;
}

#poster #nav-content a {
	position: absolute;
	font-size: 0;
	display: block;
	opacity: 0;
}

#poster #nav-content::after {
	content: '';
	width: 100%;
	height: auto;
	aspect-ratio: 297/210;
	background-color: black;
	position: absolute;
	left: 0;
	top: 0;
	border-radius: 4px;
	pointer-events: none;
	opacity: 0;
	border-radius: 4px;
}

#poster #nav-content:has(a:focus-visible)::after {
	opacity: .7;
}

#poster #D {
	width: 32%;
	height: 55.6%;
	right: 0;
	top: 21.5%;
	clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%);
}

#poster #nav-content:has(#D:focus-visible)::after {
	clip-path: polygon(0 0, 100% 0, 100% 22.5%, 77.5% 22.5%, 68% 82%, 100% 82%, 100% 100%, 0 100%);
}

#poster #C {
	width: 31.5%;
	height: 55.6%;
	left: 0;
	top: 21.5%;
	clip-path: polygon(0 0, 71.5% 0, 100% 100%, 0 100%);
}

#poster #nav-content:has(#C:focus-visible)::after {
	clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 82%, 31.5% 82%, 22.5% 22.5%, 0 22.5%);
}

#poster #E {
	width: 100%;
	height: 8%;
	left: 0;
	top: 77%;
}

#poster #nav-content:has(#E:focus-visible)::after {
	clip-path: polygon(0 0, 100% 0, 100% 82%, 0 82%, 0 90%, 100% 90%, 100% 100%, 0 100%);
}

#poster #F {
	width: 100%;
	height: 5.5%;
	left: 0;
	top: 85%;
}

#poster #nav-content:has(#F:focus-visible)::after {
	clip-path: polygon(0 0, 100% 0, 100% 90%, 0 90%, 0 96.5%, 100% 96.5%, 100% 100%, 0 100%);
}

#poster #B {
	width: 49.5%;
	height: 16%;
	right: 0;
	top: 5.5%;
}

#poster #nav-content:has(#B:focus-visible)::after {
	clip-path: polygon(0 0, 100% 0, 100% 5.5%, 50.5% 5.5%, 50.5% 21.5%, 65% 21.5%, 67% 22.5%, 100% 22.5%, 100% 100%, 0 100%);
}
