/* Closer */

aside#related-closer {
	order: 40;
}

aside#related-closer a::after {
	content: " \25b6";
	padding-inline-start: 0.5rem;
}

@property --from-color {
	syntax: "<color>";
	inherits: false;
	initial-value: #ac2683;
}

@property --to-color {
	syntax: "<color>";
	inherits: false;
	initial-value: #ee353f;
}

@property --to-position {
	syntax: "<percentage>";
	inherits: false;
	initial-value: 85%;
}

aside#related-closer>a {
	background: linear-gradient(45deg,var(--from-color) 15%,var(--to-color) var(--to-position));
	transition: 0.4s;
	transition-property: --from-color, --to-color, --to-position;
	display: block;
	padding: clamp(3rem, 5vw, 5vw) 2rem;
	color: #fff;
	text-decoration: none;
	letter-spacing: 0.02em;
	font-weight: 400;
	text-align: center;
	line-height: 1.2;
	text-wrap: balance;
	font-size: 1.5rem;
	aspect-ratio: 13;
	align-content: center;
}

aside#related-closer>a:hover,
aside#related-closer>a:focus-visible {
	--from-color: #5c2f92;
	--to-color: #9c2486;
	--to-position: 90%;	
}

@media (min-width: 42em) {
	aside#related-closer>a {
		font-size: 2rem;
	}
}

.cta-boxes {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin: 1rem 0;
}

.cta-boxes a {
	flex: 1 1 20rem;
	display: flex;
	flex-wrap: wrap;
	align-content: center;
	justify-content: center;
	position: relative;
	color: rgb(var(--color-white));
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	aspect-ratio: 1.5;
	font-size: 1.5rem;
	overflow: hidden;	
}

.cta-boxes a img.bg {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: -1;
	object-fit: cover;
	width: 100%;
	height: 100%;
	object-position: 50% 50%;
	transition: all 0.8s ease;
}

.cta-boxes a:hover img.bg,
.cta-boxes a:focus-visible img.bg {
	transform: scale(1.1);
}

.cta-boxes a figure {
	flex-basis: 100%;
	margin-bottom: 0.5rem;
}

.cta-boxes a figure img {
	max-width: 80%;
	margin: 0 auto;
	display: block;
}

.cta-boxes a:nth-child(2) figure img {
	max-width: 60%;
}

/* Footer */

footer {
	order: 50;
	background: rgb(var(--color-dkpurple));
	color: rgb(var(--color-white));
	margin: auto auto 0;
	padding: 1rem;
	width: var(--layout-content-width);
	max-width: calc(100% - 2rem);
	position: relative;
	display: grid;
	grid-template-areas: 
		'social'
		'signup'
		'creds'
		'nav'
		'legal'
		'imprint';
	gap: 1rem;
	align-items: center;
	font-size: 0.8em;
}

footer::before {
	content: ' ';
	position: absolute;
	top: 0;
	bottom: 0;
	left: calc(50% - 50vw);
	right: calc(50% - 50vw);
	background: rgb(var(--color-dkpurple));
	z-index: -1;
}

footer a {
	color: rgb(var(--color-white));
}

#footer-imprint {
	grid-area: imprint;
}

#footer-social {
	grid-area: social;
}

#footer-social ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	list-style: none;
	padding: 0;
	margin: 0;
	gap: 1rem;	
}

#footer-social li {
	margin: 0;
	padding: 0;
}

#footer-social a {
	width: 3em;
	height: 4em;
	display: block;
}

#footer-social img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

#footer-newsletter {
	grid-area: signup;
	justify-self: center;
	font-size: 1.2em;
}

#footer-newsletter a {
	background: transparent;
	color: rgb(var(--color-white));
	text-align: center;
	text-transform: uppercase;
	text-decoration: none;
	display: inline-block;
	border: solid 0.2em rgb(var(--color-white));
	border-radius: 0.25rem;
	padding: 0.25rem 1rem;
	cursor: pointer;
	font-weight: 700;
	transition: color 0.2s, background-color 0.2s;
	width: auto;
}

#footer-newsletter a:hover,
#footer-newsletter a:focus-visible {
	background-color:rgb(var(--color-white));
	color: rgb(var(--color-purple));
	text-decoration: none;
}

#footer-credentials {
	grid-area: creds;
}

#footer-credentials ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	list-style: none;
	padding: 0;
	margin: 0;
	gap: 1rem;
}

#footer-credentials li {
	margin: 0;
	padding: 0;
}

#footer-credentials a {
	width: 4em;
	height: 5em;
	display: block;
}

#footer-credentials img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

#nav-foot {
	grid-area: nav;
}

#nav-foot a {
	text-decoration: none;
}

#nav-foot a:hover,
#nav-foot a:focus-visible {
	text-decoration: underline;
}

#nav-foot>ul {
	columns: 16rem;
	list-style: none;
}

#nav-foot>ul>li {
	padding: 1rem 0;
	margin: 0;
	display: inline-block;
	width: 100%;
}

#nav-foot>ul>li>a {
	font-weight: 600;
}

#nav-foot .sub-menu {
	margin: 0.5em 0 0;
	list-style: disc;

}

#footer-legal {
	grid-area: legal;
}

#footer-legal ul {
	padding: 0;
	margin: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

#footer-legal li {
	margin: 0;
	padding: 0;
}

#footer-legal a {
	text-decoration: underline;
	text-transform: uppercase;
	font-weight: 600;
}

@media (min-width: 55em) {
	footer {
		grid-template-areas: 
			'social creds'
			'signup signup'
			'nav nav'
			'legal legal'
			'imprint imprint';
	}
}

/* Blocks */
.block-accordion {
	margin: 0 auto 1rem;
	width: var(--layout-content-width);
	max-width: calc(100% - 2rem);
}

.accordion {
	padding: 0;
	list-style: none;
}

.accordion>li {
	border-bottom: solid 0.0625rem rgb(var(--color-magenta));
	margin-bottom: 1rem;
    padding: 0;
}

.accordion>li:last-child {
	border-bottom: 0;
}

.accordion .header {
    display: block;
	padding: 0.5rem 0;
}

.accordion .content {
    padding: 0 0 1rem;
}

.js-on .accordion .header button {
    width: 100%;
	margin: 0;
	padding: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	vertical-align: inherit;
	text-align: inherit;
	border: none;
	cursor: pointer;
	text-transform: inherit;
	letter-spacing: inherit;
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 1rem;
}

.js-on .accordion .header button:hover,
.js-on .accordion .header button:focus-visible {
	text-decoration: underline;
}

.js-on .accordion .header button::after {
	content: '+'; /* '\25BE'; */
	color: rgb(var(--color-purple));
	flex: 0 0 1em;
    text-align: center;
}

.js-on .accordion .header button:hover::after,
.js-on .accordion .header button:focus-visible::after {
	background: rgb(var(--color-purple));
    color: rgb(var(--color-white));
    border-radius: 0.5rem;
    text-decoration: none;
}

.js-on .accordion .open .header button::after {
	content: '-'; /*'\25B4';*/
}

/* ============== */
/* Pagination */

.pagination {
	margin: 2rem auto;
	max-width: calc(100% - 2rem);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.2em;
	text-align: center;
	text-wrap: balance;
	line-height: 2;
}

.pagination .page-numbers {
	padding: 0 0.4em;
	margin: 0 0.25rem
}

.pagination .current {
	font-weight: 700;
}

.pagination .next, 
.pagination .prev {
	text-decoration: none;
}

/* ============== */
/* Dialog */

dialog {
	overflow: visible;
	padding: 0;
}

dialog > button.close {
	position: absolute;
	right: 0;
	bottom: 100%;
}

#video_dialog_content {
	padding: 0.5rem;
	background-color: #000;
	box-sizing: border-box;
	max-width: 100%;
	width: 60em;
	aspect-ratio: 16/9;
}

dialog iframe {
	display: block;
	width: 100%;
	height: 100%;
}

/* ============== */
/* Specialty */

.glossary {
	font-size: 0.8em;
	margin-top: 2rem;
}

.grants-closer {
	margin-top: 4rem;
}

/* Fix popup-maker */
.pum-container {
	max-width: calc(-2rem + 100vw);
}

/* ============== */
/* Print Styles */

@media print {
	* {
		background: transparent !important;
		color: #000 !important; /* Black prints faster: h5bp.com/s */
		box-shadow: none !important;
		text-shadow: none !important;
	}

	a,
	a:visited {
		text-decoration: underline;
	}

	a[href]:after {
		content: " (" attr(href) ")";
	}

	abbr[title]:after {
		content: " (" attr(title) ")";
	}

	a[href^="javascript:"]:after,
	a[href^="tel:"]:after,
	a[href^="#"]:after {
		content: "";
	}

	pre, blockquote {
		border: 1px solid #999;
		page-break-inside: avoid;
	}

	thead {
		display: table-header-group; /* h5bp.com/t */
	}

	tr, img {
		page-break-inside: avoid;
	}

	img {
		max-width: 100% !important;
	}

	@page {
		margin: 0.5cm;
	}

	p, h2, h3 {
		orphans: 3;
		widows: 3;
	}

	h2, h3 {
		page-break-after: avoid;
	}

	#wpadminbar {
		display: none;
	}
}