:root {
	--grey: #888;
	--lightgrey: #BBB;
	--margin: 1rem;
	--margin-half: calc(0.5 * var(--margin));
}

*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html,
body {
	height: 100%;
	overflow: hidden;
}

body {
	background-color: white;
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
	font-family: "ToTemper", Futura, sans-serif;
	font-feature-settings: "ss01" 1, "zero" 1;
	line-height: 1.4;
	text-size-adjust: none;
}

body::before,
body::after {
	content: "";
	display: block;
	position: fixed;
	inset: 0;
	background-color: white;
	z-index: 10;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.1s ease-in-out;
}

body::before {
	mix-blend-mode: saturation;
}

body::after {
	mix-blend-mode: difference;
}

body.xray::before,
body.xray::after {
	opacity: 1;
}

code,
em,
small,
.code {
	font-family: "DMMono", monospace !important;
	font-feature-settings: "ss02" 1, "ss03" 1, "ss04" 1, "ss05" 1;
	letter-spacing: -0.025em;
}

a {
	color: inherit;
	text-decoration-color: var(--grey);
	text-decoration-thickness: 1px;
}

a:hover {
	text-decoration-color: currentColor;
}

ul, ol {
	list-style: none;
	counter-reset: list;
}

li {
	counter-increment: list;
	display: flex;
	align-items: baseline;
}

li::before {
	content: counter(list) ".";
	flex: 0 0 4ch;
	font-family: "DMMono";
	font-size: 0.75em;
}

ol > li::before {
	content: counter(list) ".";
}

ul > li::before {
	content: "—>";
}

hr {
	border: none;
	border-bottom: 1px solid var(--color, var(--grey));
}

iframe,
svg {
	display: block;
	max-width: 100%;
}

figure {
	position: relative;
}

figcaption {
	width: 100%;
	padding: calc(var(--margin-half) - 0.35em) var(--margin-half);
	/* position: absolute; */
	/* bottom: 0; */
	/* left: 0; */
	/* background: linear-gradient(
		to top,
		hsl(0, 0%, 0%) 0%,
		hsla(0, 0%, 0%, 0.987) 8.1%,
		hsla(0, 0%, 0%, 0.951) 15.5%,
		hsla(0, 0%, 0%, 0.896) 22.5%,
		hsla(0, 0%, 0%, 0.825) 29%,
		hsla(0, 0%, 0%, 0.741) 35.3%,
		hsla(0, 0%, 0%, 0.648) 41.2%,
		hsla(0, 0%, 0%, 0.55) 47.1%,
		hsla(0, 0%, 0%, 0.45) 52.9%,
		hsla(0, 0%, 0%, 0.352) 58.8%,
		hsla(0, 0%, 0%, 0.259) 64.7%,
		hsla(0, 0%, 0%, 0.175) 71%,
		hsla(0, 0%, 0%, 0.104) 77.5%,
		hsla(0, 0%, 0%, 0.049) 84.5%,
		hsla(0, 0%, 0%, 0.013) 91.9%,
		hsla(0, 0%, 0%, 0) 100%
	); */
	background-color: var(--color, var(--grey));
	color: white;
	font-family: "DMMono", monospace;
	font-size: 0.75rem;
	text-transform: uppercase;
}

figcaption:empty {
	display: none;
}

figure > img {
	display: block;
	width: 100%;
	height: auto;
}

main {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
}

.blink {
	animation: blink 0.1s ease-in-out infinite;
}

@keyframes blink {
	0%, 100% {
		opacity: 1;
	}
	50% {
		opacity: 0;
	}
}

.title {
	font-weight: bold;
	line-height: 0.7;
	text-transform: uppercase;
}

.title--small {
	font-size: inherit;
}

.logo {
	font-size: inherit;
	font-weight: inherit;
}

.logo > svg {
	height: auto;
}

.bar {
	order: 1;
	display: flex;
	flex-wrap: wrap;
	gap: 1px;
	grid-template-columns: 1fr 2fr 2fr 1fr;
	position: sticky;
	bottom: 0;
	z-index: 1;
	background-color: white;
	/* outline: 1px solid var(--lightgrey); */
	font-size: 0.75em;
	text-transform: uppercase;
}

.bar a {
	text-decoration: none;
}

.bar a:hover {
	background-color: inherit;
	color: black;
}

.bar > .logo {
	flex: 1;
	min-width: calc(17ch + 2 * var(--margin));
	min-height: calc(calc(1.3em + 2 * var(--margin) + 2px));
	position: relative;
	outline: 1px solid var(--lightgrey);
}

.bar > .logo > a > svg {
	width: auto;
	max-width: calc(100% - var(--margin));
	height: calc(100% - var(--margin));
	position: absolute;
	top: var(--margin-half);
	left: var(--margin-half);
}

.data {
	flex: 4;
	display: flex;
	flex-wrap: wrap-reverse;
	gap: 1px;
}

.data_block {
	flex: 1 1 calc(50% - 1px);
	display: flex;
	flex-direction: column;
	gap: 1px;
	min-width: calc(50ch + 2 * var(--margin));
	color: var(--grey);
}

.data_block[style*="--color"] {
	padding-right: 2px;
	position: relative;
	color: white;
}

.data_block[style*="--color"][style*="var(--grey)"]::after {
	content: "";
	display: block;
	width: 1px;
	position: absolute;
	top: -1px;
	right: 0;
	bottom: -1px;
	z-index: 1;
	background-color: white;
}

.data_line {
	flex: 1;
	display: flex;
	gap: 1px;
}

.data_block[style*="--color"] > .data_line {
	background-color: var(--color);
}

.data_cell {
	flex: 1 1 0%;
	height: calc(0.7em + var(--margin));
	padding: calc(var(--margin-half) - 0.35em) var(--margin-half);
	position: relative;
	outline: 1px solid var(--lightgrey);
	white-space: nowrap;
}

.data_block[style*="--color"] > .data_line > .data_cell {
	outline-color: var(--color);
}

.data_block[style*="--color"] > .data_line:first-child > .data_cell::after {
	content: "";
	display: block;
	height: 1px;
	position: absolute;
	right: -1px;
	bottom: -1px;
	left: -1px;
	z-index: 1;
	background-color: white;
}

.data_cell > div {
	max-width: calc(100% - var(--margin));
	position: absolute;
	overflow: hidden;
	text-overflow: ellipsis;
}

.contribute {
	flex: 1;
	min-width: calc(17ch + 2 * var(--margin));
	z-index: 1;
	background-color: var(--lightgrey);
	outline: 1px solid var(--lightgrey);
	color: white;
}

.contribute > div {
	padding: calc(var(--margin-half) - 0.35em) var(--margin-half);
}

.d3 {
	flex: 1;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	position: relative;
}

.d3 > .logo {
	display: none;
}

.d3 > h2 {
	order: 1;
	margin: var(--margin) var(--margin) calc(2 * var(--margin));
	color: var(--color, var(--grey));
	line-height: 0.7;
	text-align: center;
	text-transform: uppercase;
	transition: transform 0.75s cubic-bezier(0.19, 1, 0.22, 1);
}

.d3_wrapper {
	flex: 1;
	margin: var(--margin);
	position: relative;
	transition: transform 0.75s cubic-bezier(0.19, 1, 0.22, 1);
}

.d3_wrapper > svg {
	max-width: none;
	width: calc(100% + 2 * var(--margin));
	height: calc(100% + 2 * var(--margin));
	position: absolute;
	top: calc(-1 * var(--margin));
	left: calc(-1 * var(--margin));
}

.d3_title {
	display: grid;
	align-content: center;
	place-items: center;
	padding: var(--margin);
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 1;
	transform: translate(-50%, -50%);
	pointer-events: none;
	color: var(--color, var(--grey));
	font-size: 1.5em;
	font-weight: bold;
	line-height: 1;
	text-align: center;
	text-transform: uppercase;
}

.d3_title:not(:empty) {
	background: radial-gradient(closest-side, rgba(255, 255, 255, 0.5) 50%, transparent), radial-gradient(closest-side, white, transparent);
}

.d3_title > small {
	display: block;
	margin: var(--margin-half) auto;
	font-size: 0.5em;
	font-weight: normal;
}

.post {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: var(--margin);
	margin-bottom: 1px;
	overflow-x: hidden;
	overflow-y: auto;
	color: var(--color, black);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	background-color: rgba(255, 255, 255, 0.8);
}

.post > * + * {
	margin-top: var(--margin);
}

.post > p,
.post > ul,
.post > ol,
.post_link {
	max-width: 500px;
}

.post > .title {
	line-height: 1;
}

.post > .title--small {
	line-height: inherit;
}

.post > .title:first-child {
	margin-top: -0.15em;
	padding-right: calc(1ch + var(--margin));
}

.post > hr {
	margin-right: calc(-1 * var(--margin));
	margin-left: calc(-1 * var(--margin));
}

.post_images {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1px;
	margin-right: calc(-1 * var(--margin));
	margin-left: calc(-1 * var(--margin));
}

.post_images:last-child {
	margin-bottom: calc(-1 * var(--margin));
}

.post_image > figure {
	position: sticky;
	top: calc(-1 * var(--margin));
}

.post_image > figure > figcaption {
	position: sticky;
	bottom: calc(-1 * var(--margin) + var(--gap, 0) * (0.7em + var(--margin) + 1px));
	border-bottom: 1px solid;
}

.post_embed {
	margin-right: calc(-1 * var(--margin));
	margin-left: calc(-1 * var(--margin));
	position: relative;
}

.post_embed::after {
	content: "";
	display: block;
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	mix-blend-mode: color;
	background-color: var(--color);
	pointer-events: none;
}

.post_embed > iframe[data-src*="vimeo.com"],
.post_embed > iframe[src*="vimeo.com"],
.post_embed > iframe[data-src*="youtube.com"],
.post_embed > iframe[src*="youtube.com"] {
	aspect-ratio: 16 / 9;
	width: 100%;
	height: auto;
	position: relative;
	z-index: 1;
}

.post_embed > iframe[src*="spotify.com"] {
	filter: grayscale(1);
}

.post_embed > noscript {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
}

.post_embed > noscript > a,
.post_consent button {
	appearance: none;
	padding: var(--margin);
	background-color: var(--color);
	color: white;
	line-height: 0.71;
	text-transform: uppercase;
	font-size: 0.75em;
	text-decoration: none;
	border: none;
}

.post_embed > noscript > a:hover,
.post_consent button:hover {
	background-color: white;
	color: var(--color);
}

.post_consent {
	display: none;
	place-items: center;
	width: 100%;
	height: 100%;
	padding: var(--margin);
	overflow: auto;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
}

.post_embed > iframe[data-src] ~ .post_consent {
	display: grid;
	opacity: 0;
}

.post_embed > iframe[data-src] ~ .post_consent--show {
	opacity: 1;
}

.post_consent p {
	max-width: 500px;
	margin: var(--margin) auto;
	text-align: center;
}

.post_consent p.code {
	font-size: 0.75em;
}

.post_consent button {
	margin: 0 0.5px;
}

.post_link {
	display: block;
	padding: calc(var(--margin) - 0.35em) var(--margin);
	border: 1px solid var(--color, var(--grey));
	border-radius: 5px;
	text-decoration-thickness: 1px;
	text-decoration-color: var(--grey);
}

.post_link:hover {
	text-decoration-color: currentColor;
}

.post_linked {
	margin: auto calc(-1 * var(--margin)) calc(-1 * var(--margin));
	padding-top: var(--margin);
	position: sticky;
	bottom: calc(-1 * var(--margin));
	border-bottom: 1px solid white;
}

.post_images + .post_linked {
	padding-top: 0;
}

.post_linked > div {
	display: block;
	padding: calc(var(--margin-half) - 0.35em) var(--margin-half);
	background-color: var(--color, var(--grey));
	color: hsl(0, 0%, 100%);
	font-family: "DMMono", monospace;
	font-size: 0.75rem;
	text-decoration: none;
	text-transform: uppercase;
}

.post_linked > div + div {
	margin-top: 1px;
}

.post_close {
	appearance: none;
	width: 0.9ch;
	position: fixed;
	top: var(--margin);
	right: var(--margin);
	z-index: 10;
	background: none;
	border: none;
	color: var(--grey);
	font-family: "DMMono";
	font-feature-settings: "case" 1;
	font-size: 2.6rem;
	line-height: 0.45;
	text-transform: uppercase;
	cursor: pointer;
}

.post_close:hover {
	color: var(--color, black);
}

.FormBuilder,
.Inputfields,
.InputfieldTextarea {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.FormBuilder button,
.FormBuilder input:not([type="checkbox"]),
.FormBuilder select,
.FormBuilder textarea {
	appearance: none;
	width: 100%;
	max-width: 500px;
	padding: calc(var(--margin-half) - 0.35em) var(--margin-half);
	background-color: transparent;
	border: 1px solid white;
	color: inherit;
	font-size: inherit;
	font-family: inherit;
	line-height: inherit;
}

.FormBuilder button,
.FormBuilder select {
	cursor: pointer;
}

.FormBuilder button {
	font-size: 0.75em;
	text-transform: uppercase;
}

.FormBuilder button:hover,
.FormBuilder button:focus,
.FormBuilder input:hover,
.FormBuilder input:focus,
.FormBuilder select:hover,
.FormBuilder textarea:hover,
.FormBuilder textarea:focus {
	background-color: white;
	color: black;
}

.FormBuilder label {
	display: block;
	padding-bottom: calc(var(--margin-half) - 0.35em);
	font-size: 0.75em;
	text-transform: uppercase;
}

.InputfieldCheckbox label {
	max-width: 500px;
	padding-bottom: 0;
}

.InputfieldCheckbox label > span {
	margin-left: var(--margin-half);
	user-select: none;
}

.InputfieldCheckbox label > span > a {
	text-decoration-color: currentColor;
}

.InputfieldCheckbox label > span > a:hover {
	color: black
}

.InputfieldTextarea .InputfieldContent {
	flex: 1;
}

.InputfieldTextarea .InputfieldContent > textarea {
	min-height: 100%;
}

#wrap_Inputfield-,
label.InputfieldHeaderHidden {
	display: none;
}

.Inputfield + .Inputfield {
	margin-top: var(--margin);
}

.InputfieldFormBuilderFileInput {
	display: flex;
	max-width: 500px;
}

.InputfieldFormBuilderFileInputClear {
	flex: 0;
	margin-left: -1px;
	font-size: 1.4em !important;
}

.InputfieldFormBuilderFileList {
	margin-top: var(--margin-half);
	list-style: none;
}

.InputfieldFormBuilderFileList li {
	display: block;
}

.InputfieldFormBuilderFileList li::before {
	display: none;
}

.InputfieldFormBuilderFileList input[type="file"] {
	padding: var(--margin-half);
	font-size: 0.75em;
	text-transform: uppercase;
}

.InputfieldFormBuilderFilePreviewImage > img {
	display: block;
	width: calc(100% + 2 * var(--margin));
	margin-left: calc(-1 * var(--margin));
	margin-right: calc(-1 * var(--margin));
	margin-bottom: 1px;
}

.InputfieldFormBuilderFilePreviewImage > img[src=""] {
	display: none;
}

.InputfieldFormBuilderFileInputDesc {
	margin-top: -1px;
}

.FormBuilderSubmitted > p {
	max-width: 500px;
	white-space: pre-line;
}

.post > .ajax {
	margin-top: 0;
}

.ajax {
	width: calc(50% + 0.5px);
	height: calc(100% - 1px);
	overflow: hidden;
	position: absolute;
	top: 0;
	right: 0;
	z-index: 1;
	transform: translateX(100%);
	/* -webkit-backdrop-filter: blur(10px); */
	/* backdrop-filter: blur(10px); */
	/* background-color: rgba(255, 255, 255, 0.8); */
	border-left: 1px solid var(--color, var(--grey));
	pointer-events: none;
	transition: transform 0.75s cubic-bezier(0.19, 1, 0.22, 1);
}

.ajax--open {
	transform: translateX(0);
	pointer-events: all;
}

.ajax--open ~ h2,
.ajax--open ~ div {
	transform: translateX(-25%) translateX(calc(-1 * var(--margin-half)));
}

.ajax > .post {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	margin-bottom: 0;
	overflow-x: hidden;
	overflow-y: auto;
	position: absolute;
	top: 0;
	left: 0;
}

.ajax > .post:not(:last-of-type) {
	animation: postOut 0.75s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.ajax > .post:last-of-type:not(:first-of-type) {
	animation: postIn 0.75s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@keyframes postIn {
	from {
		transform: translateX(100%);
	}
	to {
		transform: translateX(0%);
	}
}

@keyframes postOut {
	from {
		transform: translateX(0%);
	}
	to {
		transform: translateX(-100%);
	}
}

.ajax[style*="--color"] > .post[style*="--color:white"] {
	width: calc(100% + 1px);
	margin-left: -2px;
	padding-left: calc(var(--margin) + 1px);
	border-bottom: 1px solid;
	border-left: 1px solid;
}

.ajax[style*="var(--lightgrey)"] > .post_close {
	color: white;
}

.ajax[style*="var(--lightgrey)"] > .post_close:hover {
	color: black;
}

.terms {
	flex: 1;
	display: grid;
	gap: 1px;
	grid-template-columns: 1fr 1fr;
	overflow: hidden;
	position: relative;
}

.terms > .title {
	grid-column: 1 / -1;
	padding: var(--margin);
}

.terms > .post {
	height: 100%;
	padding: var(--margin);
	overflow: auto;
	outline: 1px solid var(--lightgrey);
}

.terms > .tabs {
	display: none;
	grid-column: 1 / -1;
	font-size: 0.75em;
	text-transform: uppercase;
	padding: 0;
	gap: 1px;
}

.terms > .tabs > label {
	flex: 1;
	padding: calc(var(--margin-half) - 0.35em) var(--margin-half);
	outline: 1px solid var(--lightgrey);
	cursor: pointer;
}

.terms > input:not(:checked) ~ .tabs > label:first-child,
.terms > input:checked ~ .tabs > label:last-child {
	pointer-events: none;
}

.terms > input:checked ~ .tabs > label:first-child,
.terms > input:not(:checked) ~ .tabs > label:last-child {
	color: var(--grey);
}

.terms > input:checked ~ .tabs > label:first-child:hover,
.terms > input:not(:checked) ~ .tabs > label:last-child:hover {
	color: inherit;
}

/* Alt layout (without D3) */

.categories {
	flex: 1;
	display: none;
	flex-wrap: wrap;
	gap: 1px;
	padding: var(--margin);
	text-align: center;
}

.category > .title,
.subcategory > .title {
	padding: 0.75em;
	background-color: var(--color);
	color: white;
	font-size: 0.75em;
	font-weight: normal;
	white-space: nowrap;
}

.category {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.subcategories {
	flex: 1;
	display: flex;
	flex-wrap: wrap;
	gap: 1px;
	margin-top: 1px;
}

.subcategory {
	display: flex;
	flex-direction: column;
	width: 100%;
}

.previews {
	flex: 1;
	display: flex;
	flex-wrap: wrap;
	gap: 1px;
	margin-top: 1px;
}

.previews > .preview {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: var(--margin-half);
	background-color: var(--color);
	text-decoration: none;
}

.previews > .preview:hover {
	opacity: 0.8;
}

.previews > .preview:hover::before {
	content: attr(title);
	color: white;
	text-align: center;
}

@media (max-width: 800px) {
	.bar {
		z-index: 10;
	}

	.ajax {
		width: calc(100% + 1px);
		transform: translateY(100%);
	}

	.ajax--open {
		transform: translateY(0);
	}

	.ajax--open ~ h2,
	.ajax--open ~ div {
		transform: translateX(0);
	}

	.d3_wrapper {
		margin: var(--margin-half);
	}

	.d3_wrapper > svg {
		width: calc(100% + var(--margin));
		height: calc(100% + var(--margin));
		top: calc(-1 * var(--margin-half));
		left: calc(-1 * var(--margin-half));
	}

	.terms {
		grid-template-columns: 1fr;
	}

	.terms > .tabs {
		display: flex;
	}

	.terms > input:checked ~ .post:first-of-type,
	.terms > input:not(:checked) ~ .post:last-of-type {
		display: none;
	}
}

@media (max-width: 560px), (max-height: 768px) {
	:root {
		font-size: 0.875rem;
	}

	.post > p,
	.post > ul,
	.post > ol,
	.post_link {
		font-size: 1.14285em;
	}
}

@media (max-width: 560px) {
	.bar > .logo {
		display: none;
	}

	.d3 > .logo {
		display: block;
		width: 9.6rem;
		height: auto;
		margin: var(--margin) auto var(--margin-half);
	}

	.d3 > h2 {
		order: 0;
		margin: var(--margin-half);
	}
}