/**
 * EHL footer
 *
 * Every size is a multiple of --ehl-r, the old site's root font size, which
 * stepped 15 / 16 / 17 / 18 px at 768 / 1250 / 1400 px. The old CSS values are
 * kept as the multipliers, so "calc(var(--ehl-r) * 0.9375)" is the old 0.9375rem.
 * The scale is scoped to the footer so it does not touch the rest of the theme.
 */

.site-footer a { color: inherit; }
.site-footer .wp-block-navigation a { text-decoration: none; }
.site-footer .wp-block-navigation a:hover { text-decoration: underline; }
.back-to-top {
	position: fixed;
	right: 1rem;
	bottom: 1rem;
	margin: 0;
	z-index: 10;
}
.back-to-top a {
	display: grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	box-shadow: 0 2px 6px rgb(0 0 0 / 0.25);
}
.back-to-top a::before {
	content: "";
	width: 1.5rem;
	height: 1.5rem;
	background-color: currentColor;
	-webkit-mask: var(--ehl-icon-chevron-up) center / contain no-repeat;
	mask: var(--ehl-icon-chevron-up) center / contain no-repeat;
}

/* Visually hidden text, readable by screen readers. */
.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	white-space: nowrap;
}


/**
 * EHL footer
 *
 * Recreates the footer of the old Drupal site (EHL sub-theme of mumc_network),
 * measured from the webarchive of 20 April 2026.
 *
 * Every size is a multiple of --ehl-r, the old site's root font size, which
 * stepped 15 / 16 / 17 / 18 px at 768 / 1250 / 1400 px. The old CSS values are
 * kept as the multipliers, so "calc(var(--ehl-r) * 0.9375)" is the old 0.9375rem.
 * The scale is scoped to the footer so it does not touch the rest of the theme.
 */

.ehl-footer {
	--ehl-r: 15px;
	--ehl-footer-bg: var(--wp--preset--color--dark, #222222);
	--ehl-footer-text: var(--wp--preset--color--white, #ffffff);
	--ehl-footer-link: rgba(255, 255, 255, 0.85);
	--ehl-footer-accent: var(--wp--preset--color--accent-on-dark, #8cfffd);
	--ehl-footer-rule: rgba(140, 255, 253, 0.3);

	background-color: var(--ehl-footer-bg);
	color: var(--ehl-footer-text);
	font-family: var(--wp--preset--font-family--maven-pro, "Maven Pro", system-ui, sans-serif);
	font-size: var(--ehl-r);
	font-weight: 400;
	line-height: calc(var(--ehl-r) * 1.75);
	margin: 0;
	padding: calc(var(--ehl-r) * 2) 0;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

@media (min-width: 768px) {
	.ehl-footer {
		--ehl-r: 16px;
		padding: calc(var(--ehl-r) * 4) var(--ehl-r);
	}
}

@media (min-width: 1250px) {
	.ehl-footer { --ehl-r: 17px; }
}

@media (min-width: 1400px) {
	.ehl-footer { --ehl-r: 18px; }
}

/* Reset WordPress flow-layout gaps inside the footer; spacing is set below. */
.ehl-footer > *,
.ehl-footer .ehl-footer__main > *,
.ehl-footer .ehl-footer__col > * {
	margin-block: 0;
}

/* ---------------------------------------------------------------------------
 * Columns: stacked < 576 px, 50/50 from 576 px, 25/75 from 992 px
 * ------------------------------------------------------------------------ */

.ehl-footer .ehl-footer__main {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	margin-inline: auto;
	max-width: 1362px; /* old page cap 1468px − 70px menu rail − 2 × 18px */
}

@media (min-width: 576px) {
	.ehl-footer .ehl-footer__main {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 992px) {
	.ehl-footer .ehl-footer__main {
		grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
	}
}

.ehl-footer .ehl-footer__col {
	margin-bottom: calc(var(--ehl-r) * 2);
	padding-inline: calc(var(--ehl-r) * 2);
}

/* The old "about" block sat in a nested column, so it had a second inset.
   Its 2r bottom margin absorbed the logo's 1.3125r margin (margin collapse),
   so only the difference is added here. */
.ehl-footer .ehl-footer__col--about {
	padding-bottom: calc(var(--ehl-r) * 0.6875);
	padding-inline: calc(var(--ehl-r) * 4);
}

/* ---------------------------------------------------------------------------
 * Menu
 * ------------------------------------------------------------------------ */

.ehl-footer nav.ehl-footer__menu {
	display: block;
	font-size: inherit;
	margin-bottom: calc(var(--ehl-r) * 0.9375);
}

.ehl-footer .ehl-footer__menu .wp-block-navigation__container {
	display: block;
	gap: 0;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ehl-footer .ehl-footer__menu .wp-block-navigation-item {
	color: var(--ehl-footer-link);
	display: block;
	position: relative;
}

.ehl-footer .ehl-footer__menu .wp-block-navigation-item__content {
	color: inherit;
	display: block;
	font-size: calc(var(--ehl-r) * 0.9375);
	font-weight: 700;
	line-height: calc(var(--ehl-r) * 1.75);
	padding: calc(var(--ehl-r) * 0.25) 0 calc(var(--ehl-r) * 0.1875);
	text-decoration: none;
}

.ehl-footer .ehl-footer__menu .wp-block-navigation-item:hover,
.ehl-footer .ehl-footer__menu .wp-block-navigation-item:focus-within {
	color: var(--ehl-footer-text);
}

/* ---------------------------------------------------------------------------
 * Social media list (List block, style "Sociale media")
 * The icon is chosen from the link address, so editors only edit the link.
 * ------------------------------------------------------------------------ */

.ehl-footer .is-style-ehl-social,
.is-style-ehl-social {
	list-style: none;
	margin: 0;
	padding: 0;
}

.is-style-ehl-social li {
	color: var(--ehl-footer-link, rgba(255, 255, 255, 0.85));
	margin: 0;
	position: relative;
}

.is-style-ehl-social a {
	color: inherit;
	display: block;
	font-size: calc(var(--ehl-r, 1rem) * 0.9375);
	font-weight: 400;
	line-height: calc(var(--ehl-r, 1rem) * 1.75);
	padding: calc(var(--ehl-r, 1rem) * 0.25) 0 calc(var(--ehl-r, 1rem) * 0.1875) calc(var(--ehl-r, 1rem) * 2.125);
	text-decoration: none;
}

.is-style-ehl-social a::before {
	background-color: var(--ehl-footer-accent, #8cfffd);
	content: "";
	height: calc(var(--ehl-r, 1rem) * 1.25);
	left: 0;
	-webkit-mask: var(--ehl-icon) center / contain no-repeat;
	mask: var(--ehl-icon) center / contain no-repeat;
	pointer-events: none;
	position: absolute;
	top: 50%;
	transform: translate(0, -50%);
	transition: transform 0.1s ease-in-out;
	width: calc(var(--ehl-r, 1rem) * 1.25);
}

.is-style-ehl-social li:hover,
.is-style-ehl-social li:focus-within {
	color: var(--ehl-footer-text, #ffffff);
}

.is-style-ehl-social li:hover a::before,
.is-style-ehl-social li:focus-within a::before {
	transform: translate(0, -50%) scale(1.16667);
}

/* Instagram: Feather icon (MIT), stroke 1.5 as on the old site. */
.is-style-ehl-social a[href*="instagram.com"] {
	--ehl-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='2' width='20' height='20' rx='5' ry='5'/%3E%3Cpath d='M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z'/%3E%3Cline x1='17.5' y1='6.5' x2='17.51' y2='6.5'/%3E%3C/svg%3E");
}

/* LinkedIn: same "in" glyph as the old site. */
.is-style-ehl-social a[href*="linkedin.com"] {
	--ehl-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M7 9v12H3V9h4Zm8-1a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-4 0v7H9v-7a6 6 0 0 1 6-6ZM5 2a2 2 0 1 1 0 4 2 2 0 0 1 0-4Z'/%3E%3C/svg%3E");
}

/* X (formerly Twitter): Simple Icons glyph (CC0). */
.is-style-ehl-social a[href*="x.com"],
.is-style-ehl-social a[href*="twitter.com"] {
	--ehl-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z'/%3E%3C/svg%3E");
}

/* Fallback for any other link: an external-link arrow. */
.is-style-ehl-social a:not([href*="instagram.com"]):not([href*="linkedin.com"]):not([href*="x.com"]):not([href*="twitter.com"]) {
	--ehl-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='7' y1='17' x2='17' y2='7'/%3E%3Cpolyline points='7 7 17 7 17 17'/%3E%3C/svg%3E");
}

/**
 * Social Icons block: "Logos only" + "Show labels" = a vertical list of icon + label.
 *
 * Applies wherever the team picks these core settings, not only in the footer.
 * Icon colour still comes from the block's own "Icon colour" setting.
 * Context (e.g. the footer) can tune the look with these custom properties:
 *   --ehl-social-size         label font size (icon scales with it)
 *   --ehl-social-pad          padding around each item
 *   --ehl-social-label        label colour (default: same as the icon)
 *   --ehl-social-label-hover  label colour on hover/focus
 *
 * Note: with these two settings the block's "Icon size" option is overruled,
 * because the icon is sized relative to the label (old site: 1.25rem icon, 0.9375rem text).
 */

.wp-block-social-links.is-style-logos-only.has-visible-labels {
	font-size: var(--ehl-social-size, 1rem);
}

/* Core scales the whole item on hover; here only the icon scales. */
.wp-block-social-links.is-style-logos-only.has-visible-labels .wp-social-link,
.wp-block-social-links.is-style-logos-only.has-visible-labels .wp-social-link:hover {
	transform: none;
}

.wp-block-social-links.is-style-logos-only.has-visible-labels .wp-block-social-link-anchor {
	gap: 0.9333em; /* icon 1.3333em + gap = 2.125rem text indent at 0.9375rem */
	padding: var(--ehl-social-pad, 0.2667em 0 0.2em); /* .25rem 0 .1875rem at 0.9375rem */
	line-height: 1.5;
}

.wp-block-social-links.is-style-logos-only.has-visible-labels .wp-social-link svg {
	flex: none;
	width: 1.3333em; /* 1.25rem / 0.9375rem */
	height: 1.3333em;
	transition: transform 0.15s ease;
}

.wp-block-social-links.is-style-logos-only.has-visible-labels .wp-block-social-link-label {
	margin: 0;
	font-size: 1em;
	line-height: inherit;
	color: var(--ehl-social-label, inherit);
	transition: color 0.15s ease;
}

.wp-block-social-links.is-style-logos-only.has-visible-labels .wp-block-social-link-anchor:is(:hover, :focus-visible) .wp-block-social-link-label {
	color: var(--ehl-social-label-hover, inherit);
}

.wp-block-social-links.is-style-logos-only.has-visible-labels .wp-block-social-link-anchor:is(:hover, :focus-visible) svg {
	transform: scale(1.16667);
}

@media (prefers-reduced-motion: reduce) {
	.wp-block-social-links.is-style-logos-only.has-visible-labels .wp-social-link svg,
	.wp-block-social-links.is-style-logos-only.has-visible-labels .wp-block-social-link-label {
		transition: none;
	}
}

/* Footer context: values measured on the old footer (04-theme-build, v0.1.1). */
.ehl-footer {
	--ehl-social-size: calc(var(--ehl-r, 1rem) * 0.9375);
	--ehl-social-label: color-mix(in srgb, var(--wp--preset--color--white, #fff) 85%, transparent);
	--ehl-social-label-hover: var(--wp--preset--color--white, #fff);
}

/* ---------------------------------------------------------------------------
 * About text and logo
 * ------------------------------------------------------------------------ */

.ehl-footer .ehl-footer__about {
	color: var(--ehl-footer-text);
	font-size: calc(var(--ehl-r) * 0.8125);
	line-height: 1.8461538462em;
	margin: 0 0 var(--ehl-r);
}

.ehl-footer .ehl-footer__about a {
	color: inherit;
}

.ehl-footer .ehl-footer__logo {
	margin: 0 0 calc(var(--ehl-r) * 1.3125);
}

.ehl-footer .ehl-footer__logo,
.ehl-footer .ehl-footer__logo img {
	display: block;
	height: auto;
	max-width: calc(var(--ehl-r) * 12.5);
	width: 100%;
}

/* ---------------------------------------------------------------------------
 * Bottom rule
 * ------------------------------------------------------------------------ */

.ehl-footer .ehl-footer__bottom {
	margin: calc(var(--ehl-r) * -0.5) auto 0;
	max-width: 1362px; /* old page cap 1468px − 70px menu rail − 2 × 18px */
	padding: 0 calc(var(--ehl-r) * 2) calc(var(--ehl-r) * 1.625);
}

.ehl-footer .ehl-footer__rule,
.ehl-footer .ehl-footer__rule.is-style-wide {
	background: none;
	border: 0;
	border-top: 1px solid var(--ehl-footer-rule);
	height: 0;
	margin: 0;
	max-width: none;
	opacity: 1;
	width: 100%;
}

/* ---------------------------------------------------------------------------
 * Focus (not on the old site: visible on the dark background)
 * ------------------------------------------------------------------------ */

.ehl-footer a:focus-visible {
	border-radius: 2px;
	outline: 2px solid var(--ehl-footer-accent);
	outline-offset: 2px;
}

/* ---------------------------------------------------------------------------
 * Back to top
 * Fixed circle, bottom right. The old site showed it with JavaScript after
 * scrolling; here a scroll-driven animation does the same without JavaScript.
 * Browsers without support show it all the time.
 * ------------------------------------------------------------------------ */

.ehl-back-to-top {
	background-color: var(--wp--preset--color--primary, #00857e);
	border-radius: calc(var(--ehl-r, 1rem) * 3);
	bottom: var(--ehl-r, 1rem);
	box-shadow: 0 20px 20px -10px rgba(0, 0, 0, 0.3);
	color: #ffffff;
	display: block;
	height: calc(var(--ehl-r, 1rem) * 3);
	position: fixed;
	right: var(--ehl-r, 1rem);
	transition: background-color 0.1s ease-in-out;
	width: calc(var(--ehl-r, 1rem) * 3);
	z-index: 999;
}

.ehl-back-to-top svg {
	height: calc(var(--ehl-r, 1rem) * 1.5);
	left: 50%;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	transition: transform 0.1s ease-in-out;
	width: calc(var(--ehl-r, 1rem) * 1.5);
}

.ehl-back-to-top:hover,
.ehl-back-to-top:focus-visible {
	background-color: var(--wp--preset--color--secondary, #d2337d);
	color: #ffffff;
}

.ehl-back-to-top:hover svg,
.ehl-back-to-top:focus-visible svg {
	transform: translate(-50%, -60%);
}

.ehl-back-to-top:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: 2px;
	box-shadow: 0 0 0 4px var(--wp--preset--color--secondary, #d2337d);
}

@supports (animation-timeline: scroll()) {
	.ehl-back-to-top {
		animation: ehl-back-to-top-reveal linear both;
		animation-range: 0 300px;
		animation-timeline: scroll(root block);
	}

	@keyframes ehl-back-to-top-reveal {
		0%, 50% { opacity: 0; visibility: hidden; }
		100% { opacity: 1; visibility: visible; }
	}
}

/* In the Site Editor: keep the button inside the footer, always visible. */
.editor-styles-wrapper .ehl-footer {
	position: relative;
}

.editor-styles-wrapper .ehl-back-to-top {
	animation: none;
	bottom: var(--ehl-r);
	opacity: 1;
	position: absolute;
	right: var(--ehl-r);
	visibility: visible;
}

.ehl-footer .screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

/* #top anchor target added by inc/footer.php */
#top:focus {
	outline: none;
}

@media (prefers-reduced-motion: reduce) {
	.ehl-footer *,
	.ehl-footer *::before,
	.ehl-back-to-top,
	.ehl-back-to-top svg {
		transition: none !important;
	}
}

@media print {
	.ehl-back-to-top {
		display: none !important;
	}
}


/* ---------- Footer Terms Links---------- */
.wp-block-paragraph.is-style-ehl-footer-terms-link :hover {	
	background-color: transparent;
	color: var(--wp--preset--color--primary-light);
	text-decoration: underline;
	padding: 0;
}

.wp-block-paragraph.is-style-ehl-footer-terms-link a {
	background-color: transparent;
	color: var(--wp--preset--color--white);
	text-decoration: none;
	padding: 0;
}