@font-face {
    font-family: 'opensans';
    src: url('../webfonts/OpenSans-SemiboldItalic-webfont.woff') format('woff');
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: 'opensans';
    src: url('../webfonts/OpenSans-Semibold-webfont.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'opensans';
    src: url('../webfonts/OpenSans-Regular-webfont.woff') format('woff');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'opensans';
    src: url('../webfonts/OpenSans-LightItalic-webfont.woff') format('woff');
    font-weight: 200;
    font-style: italic;
}

@font-face {
    font-family: 'opensans';
    src: url('../webfonts/OpenSans-Light-webfont.woff') format('woff');
    font-weight: 200;
    font-style: normal;
}

@font-face {
    font-family: 'opensans';
    src: url('../webfonts/OpenSans-Italic-webfont.woff') format('woff');
    font-weight: 300;
    font-style: italic;
}

@font-face {
    font-family: 'opensans';
    src: url('../webfonts/OpenSans-ExtraBoldItalic-webfont.woff') format('woff');
    font-weight: 600;
    font-style: italic;
}

@font-face {
    font-family: 'opensans';
    src: url('../webfonts/OpenSans-ExtraBold-webfont.woff') format('woff');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'opensans';
    src: url('../webfonts/OpenSans-BoldItalic-webfont.woff') format('woff');
    font-weight: 500;
    font-style: italic;
}

@font-face {
    font-family: 'opensans';
    src: url('../webfonts/OpenSans-Bold-webfont.woff') format('woff');
    font-weight: 500;
    font-style: normal;
}


@view-transition {
	navigation: auto;
}

:root {
	--system-ui: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
	--contentWidth: min(1200px, 96vw);
	interpolate-size: allow-keywords;
	
	--colorDefault: #3c424f;
	--colorAccent: #ff9800;
	--colorAccentLight: #8e9dae;
	/* --colorBG: #f5fafd; */
	--colorBG: #e4f5ff;
	--colorBGSecondary: #fff;
	
	--waveHeight: min(32px, 6vw);
}

* {
	padding: 0;
	box-sizing: border-box;
	font-family: 'opensans';
	transition-behavior: allow-discrete;
	color: var(--colorText);
}

html {
	font-size: 1rem;
	font-weight: 200;
	scroll-behavior: smooth;
}

html,
body {
	margin: 0px;
	--colorText: var(--colorDefault);
}

h2 {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.25rem;
	text-wrap-style: pretty;
	position: relative;
}

h3 {
    font-size: 1.75rem;
    font-weight: 300;
	text-wrap-style: pretty;
	position: relative;
}

h3::after {
    content: '';
    position: absolute;
    height: 2px;
    width: 25%;
    left: 0px;
    background: var(--colorAccent);
    bottom: -1rem;
}

h3[style="text-align: right;"]::after {
    right: 0px;
    left: unset;
}

h3[style="text-align: center;"]::after {
    left: 37.5%;
}

.panel h2 {
	font-size: 2rem;
    font-weight: 300;
    color: var(--colorAccent);
}

img {
	display: block;
	max-width: 100%;
}

p {
	line-height: 1.5em;
	font-size: 1rem;
	@media (width > 800px) {
		font-size: 1.1rem;
	}
	@media (width > 1000px) {
		font-size: 1.25rem;
	}
}

section.banner {
    width: 100%;
	height: 50vh;
    min-height: 16rem;
	position: relative;
	--slideTime: 1000ms;
	isolation: isolate;
}

.banner[data-slideshow="true"] .bannerimg {
	position: absolute;
	top: 0px;
	left: 0px;
	height: 100%;
	width: 100%;
	object-fit: cover;
	object-position: 50% 50%;
	z-index: 1;
	transition: var(--slideTime) opacity, var(--slideTime) z-index;
}

.bannerimg.slideshowhidden {
    opacity: 0;
	z-index: -1;
}

a.submit {
    display: block;
    text-decoration: none;
    background: var(--colorAccent);
    color: var(--colorBGSecondary);
    width: fit-content;
    margin: 0 auto;
    padding: 1rem 2rem;
    font-weight: 500;
    position: relative;
	border: 2px solid var(--colorAccent);
	border-radius: 0.25rem;
	transition: 250ms color, 250ms background;
}
a.submit:hover {
    color: var(--colorAccent);
    background: var(--colorBGSecondary);
}

a.submit::after {
	padding-left: 0.5rem;
	content: "\f324";
    font-family: "Font Awesome 6 Pro";
	font-weight: 900;
}


header {
	--headerBG: hsl(from var(--colorBGSecondary) h s l / 0.75);
	width: 100%;
	/* border-bottom: 1px solid #0004; */
	box-shadow: 0px 0px 2px #0008;
	background: var(--headerBG);
	/* position: relative; */
	/* z-index: 9; */
	position: sticky;
    z-index: 9;
    top: 0px;
	backdrop-filter: blur(5px);
}

main::after {
	transition: 250ms backdrop-filter;
}

header:has(input#navhamburger:checked) + main::after {
    inset: 0px;
    position: fixed;
    content: '';
    backdrop-filter: blur(3px) brightness(0.75);
	z-index: 8;
	@media (width > 1000px) {
		content: unset;
	}
}

.headercontent {
    display: grid;
    grid-template-columns: auto 1fr;
	justify-items: end;
	align-items: center;
	width: var(--contentWidth);
	margin-inline: auto;
	position: relative;
	@media (width > 1000px) {
		justify-items: unset;
		/* padding-bottom: 1rem; */
		/* border-bottom: none; */
	}
}

header .logo {
	/* padding-block: 0.5rem; */
}

header .logo img {
    /* height: 5rem; */
    max-height: 5rem;
    padding: 0.25rem;
}

header input.hidden {
	appearance: none;
	width: 0px;
	height: 0px;
	opacity: 0;
	position: absolute;
}

header label {
    padding: 1rem;
    display: block;
    font-size: 1.5rem;
	cursor: pointer;
	@media (width > 1000px) {
		display: none;
	}
}

header input.hidden:checked + label i::before {
    content: "\e59b";
}

header nav {
	/* grid-column: 1 / 3; */
	/* position: relative; */
	position: absolute;
    width: 100%;
    top: calc(100% - 1px);
    left: 0px;
	@media (width > 1000px) {
		position: static;
	}
}

header ul {
    list-style: none;
	height: 0px;
	overflow: clip;
	transition: 250ms height;
    position: absolute;
    top: 1px;
	/* width: 100%; */
	/* top: calc(4rem + 3px); */
    width: 100%;
    left: 0px;
    margin-block: 0px;
	@media (width > 1000px) {
		display: flex;
		flex-wrap: wrap;
		/* gap: 0.5rem 2rem; */
		/* justify-content: space-between; */
		height: auto;
		position: static;
        justify-content: flex-end;
	}
}

header input.hidden:checked + label + nav ul {
	height: auto;
}

header li a {
	position: relative;
    display: block;
    text-align: right;
    text-decoration: none;
    padding-block: 1rem;
    padding-inline: 0.5rem;
    border-bottom: 1px solid var(--colorAccent);
    border-left: 1px solid var(--colorAccent);
    border-right: 1px solid var(--colorAccent);
	background: var(--colorBGSecondary);
	color: var(--colorDefault);
	font-weight: 400;
	font-size: 0.9rem;
	/* color: var(--colorAccent); */
	@media (width > 1000px) {
		padding-block: 2rem;
        padding-inline: 0.25rem;
        border-top: none;
        border-bottom: none;
        border-left: none;
		border-right: none;
		background: transparent;
	}
	@media (width > 1000px) {
        padding-inline: 0.5rem;
	}
	@media (width > 900px) {
        /* padding-inline: 1rem; */
	}
	@media (width > 1200px) {
		padding-block: 2rem;
        padding-inline: 2rem;
	}
}

header li:last-child a {
	@media (width > 600px) {
		/* border-right: 1px solid var(--colorAccentLight); */
	}
}

header li:first-child a {
    border-top: 1px solid var(--colorAccent);
	@media (width > 1000px) {
        border-top: none;
	}
}

@media (width > 1000px) {
	header li a::before {
		width: 0px;
		height: 3px;
		border-radius: 3px;
		background: var(--colorAccent);
		content: '';
		position: absolute;
		bottom: 1rem;
		left: calc(100% - 0.5rem);
		transition: 250ms left, 250ms width;
		@media (width > 1200px) {
			left: calc(100% - 1rem);
		}
	}

	header li a:hover::before {
		transition: 250ms width;
		left: 0.25rem;
		width: calc(100% - 0.5rem);
		@media (width > 1200px) {
			left: 1rem;
			width: calc(100% - 2rem);
		}
	}
}

header li a:hover {
	background: var(--colorAccent);
	color: var(--colorBG);
	@media (width > 1000px) {
		background: unset;
		color: var(--colorDefault);
	}
}

header li a.active {
	background: var(--colorAccent);
	color: var(--colorBG);
	/* font-weight: 700; */
}

section {
    scroll-margin-top: 5.25rem;
	--bg: var(--colorBGSecondary);
	--bgpanel: var(--colorBG);
	
	position: relative;
	padding-bottom: 1px;
}

section.bgspecial {
    background: var(--colorAccent);
    --colorText: var(--colorBGSecondary);
    padding-block: 0.5rem;
}

section.bgdark {
    background: var(--colorDefault);
    --colorText: var(--colorBGSecondary);
	padding-block: 0.5rem;
}

section:has(>.wave-divider) + section:has(>.panel) {
	padding-top: 6rem;
}

section:has(>.wave-divider) .panel {
    margin-bottom: 2rem;
}

section.contentbg {
    background: var(--colorBG);
	--bg: var(--colorBG);
	--bgpanel: var(--colorBGSecondary);
	padding-block: 2rem;
}

section.contentbgsec {
    background: var(--colorBGSecondary);
	padding-block: 2rem;
}

section.contentbg > div.panel {
    background: var(--colorBGSecondary);
	padding-block: 1rem;
	border-radius: 0.5rem;
}

section.contentbgsec > div.panel {
    background: var(--colorBG);
	padding-block: 1rem;
	border-radius: 0.5rem;
}

section.headingtext > div.html {
    z-index: 2;
    position: relative;
	padding-block: 1rem;
}

section.floatingblock > div.html {
	/* margin-top: -2rem; */
    z-index: 2;
    position: relative;
    filter: drop-shadow(0px 1px 3px #0008);
    background: var(--colorBG);
	padding-block: 1rem;
	border-radius: 0.5rem;
}

section.headingtext > div.wave-divider,
section.floatingblock > div.wave-divider {
    /* bottom: calc(-32px - 2rem); */
    bottom: calc(0px - var(--waveHeight) - 2rem);
}

section.headingtext h2 {
	font-size: 2rem;
	font-weight: 300;
	color: var(--colorAccent);
}
section.floatingblock h2 {
	font-size: 1.5rem;
	color: var(--colorAccent);
}

section.headingtext p,
section.floatingblock p {
	font-size: 1.25rem;
	text-wrap-style: balance;
}

.html {
    width: var(--contentWidth);
    margin-inline: auto;
	margin-block: 2rem;
}

.htmlhtml,
.imagehtml,
.htmlimage {
    display: grid;
    grid-template-columns: 1fr;
    width: var(--contentWidth);
    margin-inline: auto;
	margin-block: 2rem;
    gap: 1rem;
    /* align-items: center; */
	
	@media (width > 800px) {
		grid-template-columns: 1fr 1fr;
		gap: 2rem;
	}
}


section:last-child .htmlhtml,
section:last-child .imagehtml,
section:last-child .htmlimage {
	margin-bottom: 0px;
}

div.htmlcontent {
    padding-inline: 0.5rem;
}
div.image {
    position: relative;
	isolation: isolate;
    padding-inline: 1rem;
}

.htmlimage div.image img,
.imagehtml div.image img {
	filter: drop-shadow(0px 2px 3px #0008);
    margin-bottom: 1rem;
}

.htmlimage div.image:not(:has(img:nth-child(2))),
.imagehtml div.image:not(:has(img:nth-child(2))) {
	align-self: center;
}

.htmlimage .image {
	@media (width > 800px) {
		margin-right: 1rem;
	}
}

.imagehtml .image {
	@media (width > 800px) {
		margin-left: 1rem;
	}
}

@media (width > 800px) {
	.htmlimage .image:has(img:nth-child(2)) img,
	.imagehtml .image:has(img:nth-child(2)) img {
		position: absolute;
	}

	.htmlimage .image:has(img:nth-child(2)) img:nth-child(1),
	.imagehtml .image:has(img:nth-child(2)) img:nth-child(1) {
		width: 55%;
		z-index: 1;
		top: 0px;
		left: 0px;
	}

	.htmlimage .image img:nth-child(2),
	.imagehtml .image img:nth-child(2) {
		width: 50%;
		z-index: 2;
		bottom: 0px;
		right: 0px;
	}
	
	.htmlimage .image img:nth-child(3),
	.imagehtml .image img:nth-child(3) {
		width: 45%;
		top: 20%;
		right: 20%;
		z-index: 3;
	}
}

.imga,
.imgb,
.imgc {
	position: absolute;
    height: 100%;
    background-image: var(--image);
    background-size: contain;
    background-repeat: no-repeat;
	filter: drop-shadow(0px 2px 3px #0008);
	@media (width < 800px) {
		min-height: 75vw;
	}
}

.imga {
    width: 100%;
    background-position: 50% 50%;
}

div.image:has(> .imgb) .imga {
    width: 55%;
    background-position: 50% 0%;
    z-index: 1;
}
.imgb {
	bottom: 0px;
    right: 0px;
    width: 50%;
    background-position: 50% 100%;
    z-index: 2;
}
.imgc {
	left: 40%;
    width: 40%;
    background-position: 50% 0%;
    z-index: 3;
}

div.image:has(> .imgc) .imga {
    width: 55%;
    background-position: 50% 50%;
    z-index: 1;
}

div.image:has(> .imgc) .imgb {
	bottom: 0px;
    right: 0px;
    width: 50%;
    background-position: 50% 100%;
    z-index: 2;
}


.panelhtml {
    width: var(--contentWidth);
    margin-inline: auto;
    border-radius: 0.5rem;
    border: 1px solid #0002;
}

.panelhtmlimages {
    width: var(--contentWidth);
    margin-inline: auto;
    /* padding: 1rem; */
    border-radius: 0.5rem;
    border: 1px solid #0002;
}

.panelhtmlimages .image img {
    width: 100%;
}



.imagepanels {
    display: flex;
    width: var(--contentWidth);
    margin-inline: auto;
    gap: 1rem;
    padding: 1rem;
	flex-direction: column;
	@media (width > 750px) {
		flex-direction: row;
	}
}

.imagepanels .image {
	position: relative;
    background: var(--bg);
    flex: 1;
    padding-block: 1rem;
    filter: drop-shadow(0px 2px 3px #0004);
	cursor: pointer;
	transition: 250ms filter;
}

.imagepanels .image:hover {
    filter: drop-shadow(0px 3px 5px #000);
}

.imagepanels .image::before {
    content: attr(title);
    width: 100%;
    text-align: center;
    display: block;
    font-size: 1.5rem;
    font-weight: 300;
    padding-bottom: 0.5rem;
}



.wave-divider {
    position: absolute;
    /* top: 0; */
	bottom: calc(0px - var(--waveHeight));
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
	z-index: 1;
}
.wave-divider svg,
.wave-divider-inv svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: var(--waveHeight);
}

.wave-divider .shape-fill,
.wave-divider-inv .shape-fill {
    fill: var(--bg);
}


.wave-divider-inv {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
	z-index: 1;
    transform: rotate(180deg);
}






.viewer.open {
	display: grid;
}

.viewer {
    background: #0008;
    position: fixed;
    inset: 0px;
    z-index: 20;
    overscroll-behavior: none;
    display: none;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: calc(100cqh - 8rem) 8rem;
}

.viewer.nothumbs {
    grid-template-rows: 100cqh;
}


.viewer.nothumbs .viewerleft,
.viewer.nothumbs .viewerright {
	opacity: 0;
	pointer-events: none;
}

.viewer.nothumbs .viewerthumbs {
	display: none;
}

.viewerimage {
    align-content: center;
    justify-self: center;
	padding-block: 1rem;
	position: relative;
}
.viewerimagediv {
    position: relative;
	isolation: isolate;
}
.viewerimage img {
    max-width: 100%;
    max-height: calc(100cqh - 11rem);
    display: block;
    object-fit: contain;
    /* border: 1rem solid #fff; */
    border: 1px solid #fff;
	background: #fff;
}

.viewerimage iframe {
	width: 90vw;
    height: 80vh;
    max-height: calc(100cqh - 11rem);
    display: block;
    object-fit: contain;
    border: 1px solid #fff;
	background: #fff;
}

.viewerimagediv img:has(+ span) {
    /* border-bottom: 1px solid #0004; */
    border-bottom: none;
}

.viewerimagediv span {
	display: block;
    background: #fff;
    text-align: center;
	/* border-bottom: 0.5rem solid #fff; */
	border-bottom: 1px solid #fff;
	font-size: 1.25rem;
    font-weight: 300;
}

.viewerleft,
.viewerright {
    --colorText: #fff;
    font-size: 2rem;
    align-content: center;
    padding-inline: 0.5rem;
	opacity: 0.5;
	cursor: pointer;
	transition: 150ms opacity;
}

.viewerleft i,
.viewerright i {
	pointer-events: none;
}

.viewerleft:hover,
.viewerright:hover {
	opacity: 1;
}

.viewerthumbs {
    grid-column: 1 / -1;
	display: flex;
    overflow: auto hidden;
    gap: 0.5rem;
    justify-content: space-evenly;
}

.viewerthumbs img {
    border: 0.25rem solid #fff;
    filter: brightness(0.65);
    transition: 150ms filter;
	cursor: pointer;
	height: 100%;
}

.viewerthumbs img.active,
.viewerthumbs img:hover {
    filter: brightness(1);
}

.closeviewer {
    position: absolute;
    right: -0.75rem;
    top: -0.75rem;
    background: #222;
    --colorText: #fff;
    border: 2px solid #fff;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
	z-index: 10;
}
.closeviewer:hover {
    background: #444;
}


.tox-dialog__content-js {
    overflow: auto;
}

.panel table td {
    padding: 1rem;
    border-color: var(--bgpanel);
	text-wrap-style: pretty;
	border: none;
}

.panel table {
    /* border-color: var(--bgpanel); */
    border-color: var(--colorAccent);
}

.panel table table h3 {
	margin-top: 0px;
}

.panel table table tr td:first-child {
	padding-top: 1rem;
}

.panel table table tr td:last-child {
	padding-bottom: 1rem;
}


@media (width >= 1000px) {
	.panel > .htmlcontent > table > tbody > tr > td {
		width: 50%;
	}
}
@media (width < 1000px) {
	.panel table td {
		display: block;
    }
	.panel table table td {
	    padding-block: 0px;
	}
}

.panel table em {
    font-size: 2rem;
    border: 2px solid var(--colorAccent);
    border-radius: 50%;
    display: flex;
    height: 5rem;
    width: 5rem;
    align-items: center;
    justify-content: center;
    color: var(--colorAccent);
	margin-inline: auto;
}