/*	---------------------------------------------------------------------------------
	---------------------- CENTRAL COLOR SWITCH AREA START --------------------------
	--------------------------------------------------------------------------------- */
:root {
	--colorAccent: #AE9B7C;
	--colorAccentHover: #726857;
	--colorAccentFont: #FFF;
	--colorBackground: #FFF;
	--colorAccentBright: color-mix(in srgb, var(--colorAccent) 60%, white 40%);
	--colorAccentDark: color-mix(in srgb, var(--colorAccent) 50%, black 50%);
}

/*	---------------------------------------------------------------------------------
	----------------------- CENTRAL COLOR SWITCH AREA END ---------------------------
	--------------------------------------------------------------------------------- */

body {
	font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont,
		"Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	line-height: 1.5;
}

h1 {
  padding-top: 55px;
}

h2 {
	font-size: 1.8em;
	font-weight: 400;
	padding: 10px 0 30px 0;
}

/* RESET */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

/* ===== HEADNAV START ===== */

/* NAV BAR */
header {
	position: relative;
	background: var(--colorBackground);
}

.header-inner {
	display: flex;
	align-items: center;
	min-height: 250px;
}

nav {
	display: flex;
	align-items: center;
	width: 100%;
}

nav ul {
	display: flex;
	list-style: none;
	width: 100%;
}

/* Left items */
nav li.nav-left {
	width: 20%;
}

/* Center spacer */
nav li.nav-center {
	width: 20%;
}

/* Right item */
nav li.nav-right {
	width: 40%;
}

/* NAV LINKS */
nav a {
	display: block;
	width: 100%;
	padding: 1.5rem 1rem;
	text-align: center;
	text-decoration: none;
	color: var(--colorAccent);
	position: relative;
	overflow: hidden;
	transition: color 1s ease, transform 1s ease;
}

#headNav {
	font-size: 1.4rem;
}

/* Reflective sweep */
nav a::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		-75deg,
		transparent 40%,
		rgba(255,255,255,0.45) 50%,
		transparent 60%
	);
	transform: translateX(100%);
}

/* Hover effect */
nav a:hover {
	color: color-mix(in srgb, var(--colorAccent) 80%, black);
	transform: scale(1.1);
}

nav a:hover::after {
	animation: shine 3s ease forwards;
}

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

/* LOGO (DESKTOP) */
.logo-wrapper {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	max-width: 20%;
	padding: 0.5rem;
	pointer-events: auto;
}

.logo-wrapper img {
	width: 100%;
	height: auto;
	display: block;
	max-height: 150px;
}

.mobile-nav-shell,
.mobile-nav-toggle {
	display: none;
}

/* RESPONSIVE */
@media (max-width: 800px) {
	header {
		overflow: visible;
		padding-bottom: 0;
	}

	.header-inner {
		min-height: auto;
		padding-bottom: 0;
	}

	.logo-wrapper {
		position: relative;
		transform: none;
		left: auto;
		max-width: 100%;
		max-height: 200px;
		text-align: center;
		padding: 0.5rem 1rem 0.75rem;
	}

	.logo-wrapper img {
		width: auto;
		margin: auto;
		max-height: 100px;
	}

	.mobile-nav-shell {
		display: block;
		height: 35px;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		background: var(--colorAccent);
		z-index: 310;
		transform: translateY(0);
		transition: transform 0.48s cubic-bezier(0.22, 1, 0.36, 1);
	}

	.mobile-nav-shell::before,
	.mobile-nav-shell::after {
		content: "";
		position: absolute;
		bottom: 0;
		height: 10px;
		background: #fff;
		width: calc(50% - 42px);
	}

	.mobile-nav-shell::before {
		left: 0;
	}

	.mobile-nav-shell::after {
		right: 0;
	}

	.mobile-nav-toggle {
		display: inline-flex;
		position: absolute;
		left: 50%;
		top: 0;
		transform: translate(-50%, 0);
		width: 74px;
		height: 36px;
		padding: 7px 0 0;
		border: 0;
		border-radius: 0 0 38px 38px;
		background: var(--colorAccent);
		align-items: center;
		justify-content: center;
		flex-direction: column;
		gap: 4px;
		cursor: pointer;
		z-index: 320;
		-webkit-tap-highlight-color: transparent;
	}

	.burger-line {
		display: block;
		width: 24px;
		height: 2px;
		border-radius: 999px;
		background: #fff;
		transition: transform 0.32s ease, opacity 0.32s ease;
	}

	header.nav-open .burger-line:nth-child(1) {
		transform: translateY(6px) rotate(45deg);
	}

	header.nav-open .burger-line:nth-child(2) {
		opacity: 0;
	}

	header.nav-open .burger-line:nth-child(3) {
		transform: translateY(-6px) rotate(-45deg);
	}

	#headNav {
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		background: var(--colorAccent);
		font-size: 1.15rem;
		z-index: 300;
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transform: translateY(calc(-100% - 35px));
		transition: opacity 0.48s ease, transform 0.48s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.48s ease;
		box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
		will-change: transform;
	}

	header.nav-open #headNav {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transform: translateY(0);
	}

	header.nav-open .mobile-nav-shell {
		transform: translateY(var(--mobile-nav-panel-height, 0px));
	}

	#headNav ul {
		flex-direction: column;
	}

	#headNav li {
		width: 100% !important;
	}

	#headNav a {
		text-align: center;
		color: #fff;
		padding: 1rem 1.25rem;
	}

	#headNav a:hover {
		color: #fff;
		transform: none;
	}

	#headNav li.nav-center {
		display: none;
	}
}

/* ===== HEADNAV END ===== */

.contentBox {
	color: var(--colorAccentFont);
	background-color: var(--colorAccent);
	padding: 75px 25% 110px 6%;
	font-size: 13pt;
}

/* ===== SLIDESHOW START ===== */

/* SLIDESHOW CONTAINER */
.slideshow {
	position: relative;
	width: 100%;
	margin: auto;
	overflow: visible;
	padding-top: 12px;
	z-index: 1;
	isolation: isolate;
}

/* TRACK */
.slides-track {
	display: flex;
	align-items: flex-start;
	gap: 0;
	transition: transform 0.8s ease-in-out;
	will-change: transform;
}

/* SLIDE */
.slide {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	overflow: hidden;
}

/* IMPORTANT:
   These rules keep every image inside the slide box.
   JS sets a unified slide height per slideshow. */
.slide img {
	width: auto;
	height: 100%;
	max-width: none;
	max-height: 100%;
	object-fit: contain;
	display: block;
}

/* RESPONSIVE */
@media (max-width: 900px) {
	.slide {
		width: 100%;
	}

	.slide img {
		width: 100%;
		height: auto;
		max-width: 100%;
	}
}

/* OVERLAY CONTROLS */
.slide-control {
	position: absolute;
	top: 0;
	width: 10%;
	height: 100%;
	z-index: 210;
	cursor: pointer;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.slideshow:hover .slide-control {
	opacity: 1;
}

/* LEFT */
.slide-control.left {
	left: 0;
	background: linear-gradient(to right, rgba(0,0,0,0.25), transparent);
}

/* RIGHT */
.slide-control.right {
	right: 0;
	background: linear-gradient(to left, rgba(0,0,0,0.25), transparent);
}

/* ===== SLIDESHOW TOGGLE ===== */

.slideshow-toggle {
	position: absolute;
	top: -10px;
	right: 14px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0;
	margin: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	z-index: 250;
	color: var(--colorAccentDark);
}

.play-pause-icon {
	width: 18px;
	height: 18px;
	display: block;
}

.icon-play,
.icon-pause {
	transform-origin: center;
	transition: opacity 0.28s ease, transform 0.28s ease;
	fill: currentColor;
}

.slideshow-toggle.is-playing .icon-play {
	opacity: 1;
	transform: scale(1);
}

.slideshow-toggle.is-playing .icon-pause {
	opacity: 0;
	transform: scale(0.7);
}

.slideshow-toggle.is-paused .icon-play {
	opacity: 0;
	transform: scale(0.7);
}

.slideshow-toggle.is-paused .icon-pause {
	opacity: 1;
	transform: scale(1);
}

.slideshow-toggle:hover.is-playing .icon-play,
.slideshow-toggle:focus-visible.is-playing .icon-play {
	opacity: 0;
	transform: scale(0.7);
}

.slideshow-toggle:hover.is-playing .icon-pause,
.slideshow-toggle:focus-visible.is-playing .icon-pause {
	opacity: 1;
	transform: scale(1);
}

.slideshow-toggle:hover.is-paused .icon-play,
.slideshow-toggle:focus-visible.is-paused .icon-play {
	opacity: 1;
	transform: scale(1);
}

.slideshow-toggle:hover.is-paused .icon-pause,
.slideshow-toggle:focus-visible.is-paused .icon-pause {
	opacity: 0;
	transform: scale(0.7);
}

.toggle-label {
	display: inline-block;
	overflow: hidden;
	max-width: 0;
	white-space: nowrap;
	opacity: 0;
	transform: translateX(8px);
	transition: max-width 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
}

.slideshow-toggle:hover .toggle-label,
.slideshow-toggle:focus-visible .toggle-label {
	max-width: 56px;
	opacity: 1;
	transform: translateX(0);
}

.slideshow-toggle:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
	.slides-track,
	.icon-play,
	.icon-pause,
	.toggle-label,
	#headNav,
	.burger-line {
		transition: none !important;
	}
}

/* ===== SLIDESHOW END ===== */

footer {
	min-height: 300px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

footer nav {
	display: flex;
	justify-content: center;
	align-items: center;
}

footer nav ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 20px;
	list-style: none;
	padding: 0;
}

footer nav ul li {
	text-align: center;
}

@media (max-width: 600px) {
	footer {
		padding: 30px 20px;
		gap: 20px;
	}

	footer nav ul {
		gap: 12px;
	}
}

#footerLogo {
	max-width: 100px;
}

.regularLink {
	all: unset;
	color: var(--colorAccent);
	cursor: pointer;
}

#footerNav {
	font-size: 1.1rem;
}

#footerLegal {
	font-size: 0.8rem;
}

#footerNavLogo {
	width: 20%;
}

#footerLegalCopyright {
	width: 20%;
	font-size: 0.8em;
	justify-content: center;
	align-items: center;
}

#footerLegalCreators {
	width: 20%;
	font-size: 0.8em;
	justify-content: center;
	align-items: center;
}

.floatleft {
	float: left;
}

.floatright {
	float: right;
}

@media (min-width: 901px) {
	footer nav,
	footer .footerSeparator {
		width: 90%;
	}

	footer nav:nth-of-type(2) ul {
		justify-content: flex-start;
	}

	footer nav:nth-of-type(3) ul {
		justify-content: space-between;
	}

	#footerNavLogo,
	#footerLegalCopyright {
		text-align: left;
	}

	#footerLegalCreators {
		margin-left: auto;
		text-align: right;
	}
}

/* ===== FOOTER SEPARATOR ===== */

.footerSeparator {
	height: 1px;
	background-color: var(--colorAccent);
	margin: 20px 0 0 0;
}

/* ===== SOCIAL ICON BASE ===== */

#footerSocial {
	display: inline-flex;
	gap: 2rem;
	align-items: center;
	justify-content: right;
	margin: 25px 0 100px 0;
}

#footerSocial a {
	width: auto;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.social-link {
	position: relative;
	display: inline-flex;
	width: 36px;
	height: 36px;
	color: var(--colorAccent);
	text-decoration: none;
	overflow: hidden;
}

.social-icon {
	fill: currentColor;
	transition: transform 0.6s ease, color 0.6s ease;
	width: 2rem;
	height: 2rem;
}

.social-icon .fill {
	fill: currentColor;
	stroke: none;
}

.social-link:hover .social-icon {
	transform: scale(1.08);
	color: color-mix(in srgb, var(--colorAccent) 80%, black);
}

/* ===== SHINE EFFECT ===== */

.social-icon {
	mask-image: linear-gradient(
		-75deg,
		black 40%,
		white 50%,
		black 60%
	);
	mask-size: 200% 100%;
	mask-position: 120% 0;
}

.social-link:hover .social-icon {
	animation: svg-shine 1.5s ease forwards;
}

@keyframes svg-shine {
	from { mask-position: 120% 0; }
	to   { mask-position: -120% 0; }
}

@media (prefers-reduced-motion: reduce) {
	.social-icon {
		animation: none !important;
	}
}

/* ===== PATCH 3 OVERRIDES ===== */
header {
	overflow: visible;
	z-index: 500;
}

.logo-wrapper {
	z-index: 340;
}

#headNav ul {
	align-items: stretch;
}

nav li.nav-right {
	width: 20%;
}

#headNav a {
	white-space: normal;
	line-height: 1.2;
}

#headNav .nav-right a {
	padding-left: 0.75rem;
	padding-right: 0.75rem;
}

.contentBox a {
	color: inherit;
}

.slideshow {
	overflow: visible;
	padding-top: 0;
	z-index: 260;
}

.slideshow-viewport {
	overflow: hidden;
	width: 100%;
	position: relative;
}

.slides-track {
	position: relative;
	z-index: 1;
}

.slideshow-loader {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	background: rgba(255,255,255,0.72);
	z-index: 265;
	pointer-events: none;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.slideshow.is-ready .slideshow-loader {
	opacity: 0;
	visibility: hidden;
}

.loader-spinner {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 2px solid color-mix(in srgb, var(--colorAccent) 35%, white);
	border-top-color: var(--colorAccentDark);
	animation: slideLoaderSpin 0.9s linear infinite;
}

.loader-text {
	font-size: 0.8rem;
	font-weight: 600;
	color: color-mix(in srgb, var(--colorAccent) 60%, black 40%);
}

@keyframes slideLoaderSpin {
	to { transform: rotate(360deg); }
}

.slideshow-toggle {
	top: -20px;
	right: 10px;
	z-index: 290;
}

.slide-control {
	z-index: 270;
}

main {
	position: relative;
	z-index: 1;
}

footer {
	position: relative;
	z-index: 1;
}

@media (max-width: 800px) {
	#headNav {
		opacity: 1;
		visibility: visible;
		pointer-events: none;
		transform: translateY(calc(-100% - 100%));
		transition: transform 0.62s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.62s;
		box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
	}

	header.nav-open #headNav {
		pointer-events: auto;
		transform: translateY(0);
		transition: transform 0.62s cubic-bezier(0.22, 1, 0.36, 1);
	}

	#headNav a::after {
		background: linear-gradient(
			-75deg,
			transparent 38%,
			color-mix(in srgb, var(--colorAccent) 72%, white 28%) 50%,
			transparent 62%
		);
	}

	.mobile-nav-shell {
		height: 46px;
		background: transparent;
		z-index: 330;
		transition: transform 0.62s cubic-bezier(0.22, 1, 0.36, 1);
	}

	.mobile-nav-shell::before,
	.mobile-nav-shell::after {
		bottom: 0;
		height: 10px;
		background: #fff;
		width: calc(50% - 38px);
	}

	.mobile-nav-toggle {
		top: 0;
		width: 76px;
		height: 36px;
		padding: 0;
		border-radius: 36px 36px 0 0;
		background: #fff;
		gap: 0;
	}

	.burger-line {
		position: absolute;
		left: 50%;
		width: 24px;
		height: 2px;
		background: var(--colorAccent);
		transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), width 0.42s cubic-bezier(0.22, 1, 0.36, 1);
		transform-origin: center;
	}

	.burger-line:nth-child(1) { transform: translate(-50%, -6px); }
	.burger-line:nth-child(2) { transform: translate(-50%, 0); }
	.burger-line:nth-child(3) { transform: translate(-50%, 6px); }

	header.nav-open .burger-line:nth-child(1) {
		transform: translate(-50%, 0) rotate(45deg);
	}

	header.nav-open .burger-line:nth-child(2) {
		width: 0;
		transform: translate(-50%, 0) rotate(-45deg);
	}

	header.nav-open .burger-line:nth-child(3) {
		transform: translate(-50%, 0) rotate(-45deg);
	}

	#headNav a {
		color: #fff;
	}

	#footerSocial {
		width: 100%;
		justify-content: center;
		margin: 25px 0 50px;
		gap: clamp(0.8rem, 4vw, 1.5rem);
		flex-wrap: wrap;
	}

	.social-link {
		width: clamp(28px, 7vw, 36px);
		height: clamp(28px, 7vw, 36px);
	}

	.social-icon {
		width: clamp(1.5rem, 6vw, 2rem);
		height: clamp(1.5rem, 6vw, 2rem);
	}

	#footerNav ul,
	#footerLegal ul {
		flex-direction: column;
		gap: 0.7rem;
	}

	#footerNav,
	#footerLegal,
	.footerSeparator {
		width: 60%;
	}

	#footerNav {
		font-size: 0.88rem;
	}

	#footerLegal {
		font-size: 0.8rem;
	}

	#footerNavLogo,
	#footerLegalCopyright,
	#footerLegalCreators {
		width: 100%;
		text-align: center;
		margin-left: 0;
	}

	.footerSeparator {
		margin: 18px auto;
	}

	footer nav ul li {
		width: 100%;
	}

	.slideshow-toggle {
		z-index: 290;
	}
}


/* ===== PATCH 4 OVERRIDES ===== */
:root {
  --colorBackgroundDark: #2a2a2a;
  --colorAccentLifted: color-mix(in srgb, var(--colorAccent) 75%, white 25%);
  --colorAccentDeeper: color-mix(in srgb, var(--colorAccent) 75%, black 25%);
  --site-font-scale: 1;
}
html { font-size: calc(16px * var(--site-font-scale)); }
body { background: var(--colorBackground); color: var(--colorAccent); }
body.dark-mode {
  --colorBackground: var(--colorBackgroundDark);
  --colorAccent: var(--colorAccentLifted);
  --colorAccentDark: color-mix(in srgb, var(--colorAccentLifted) 75%, black 25%);
  --colorAccentHover: color-mix(in srgb, var(--colorAccentLifted) 70%, black 30%);
  --colorAccentBright: color-mix(in srgb, var(--colorAccentLifted) 70%, white 30%);
  color: #f0ede8;
}
body.large-text { --site-font-scale: 1.2; }
.logo-link { display:inline-block; }
.logo-wrapper { pointer-events:auto; z-index: 450; }
.logo-link img { display:block; }
header { overflow: visible; }
#headNav { z-index: 360; }
@media (min-width: 801px) {
  .slideshow { z-index: 340; }
  .slideshow-toggle, .slideshow-dots { z-index: 390; }
}
.slideshow { overflow: visible; padding-top: 0; }
.slideshow-viewport { overflow: visible; position: relative; z-index: 1; }
.slides-track { align-items: flex-end; }
.slide { position: relative; }
.slide img { display:block; }
.slideshow-toggle {
  top: -20px !important;
  right: 10px;
  z-index: 390;
}
.slide-control { z-index: 360; }
.slideshow-dots {
  position:absolute;
  left:50%;
  bottom:12px;
  transform:translateX(-50%);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  flex-wrap:nowrap;
  z-index:380;
  padding: 0 12px;
}
.slideshow-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.4);
  cursor:pointer;
  transition: transform .25s ease, background-color .25s ease, opacity .25s ease;
}
.slideshow-dot.is-active { background: rgba(255,255,255,0.95); transform: scale(1.12); }
.slideshow-dot.is-hidden { display:none; }
.slide img.is-hidden-by-filter { display:none !important; }
/* mobile nav: no fade, slides from behind visible logo */
@media (max-width: 800px) {
  header {
    padding-bottom: 46px;
  }
  .logo-wrapper {
    background: #fff;
    z-index: 430;
    position: relative;
  }
  .header-inner {
    min-height: 0;
  }
  #headNav {
    top: calc(100% - 46px);
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: none;
    transform: translateY(calc(-100% + 46px));
    transition: transform 0.78s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: none;
    z-index: 350;
  }
  header.nav-open #headNav {
    pointer-events: auto;
    transform: translateY(0);
  }
  #headNav a::after {
    background: linear-gradient(-75deg, transparent 36%, color-mix(in srgb, var(--colorAccent) 82%, white 18%) 50%, transparent 64%);
  }
  .mobile-nav-shell {
    display:block;
    position:absolute;
    left:0;
    right:0;
    top: calc(100% - 46px);
    height:46px;
    background: transparent;
    z-index: 420;
    transform: translateY(0);
    transition: transform 0.78s cubic-bezier(0.22,1,0.36,1);
    pointer-events:none;
  }
  header.nav-open .mobile-nav-shell {
    transform: translateY(var(--mobile-nav-panel-height, 0px));
  }
  .mobile-nav-shell::before,
  .mobile-nav-shell::after {
    content:"";
    position:absolute;
    bottom:0;
    height:10px;
    background:#fff;
    width: calc(50% - 38px);
  }
  .mobile-nav-shell::before { left:0; }
  .mobile-nav-shell::after { right:0; }
  .mobile-nav-toggle {
    display:inline-flex;
    position:absolute;
    left:50%;
    bottom:0;
    top:auto;
    transform: translate(-50%, 0);
    width:76px;
    height:36px;
    border:0;
    border-radius: 0 0 38px 38px;
    background:#fff;
    align-items:center;
    justify-content:center;
    padding:0;
    z-index: 421;
    pointer-events:auto;
    overflow:hidden;
  }
  .burger-line {
    position:absolute;
    left:50%;
    width:24px;
    height:2px;
    background: var(--colorAccent);
    transform-origin:center;
    transition: transform .42s cubic-bezier(0.22,1,0.36,1), opacity .32s ease;
  }
  .burger-line:nth-child(1){ transform: translate(-50%, -6px); }
  .burger-line:nth-child(2){ transform: translate(-50%, 0); }
  .burger-line:nth-child(3){ transform: translate(-50%, 6px); }
  header.nav-open .burger-line:nth-child(1){ transform: translate(-50%, 0) rotate(45deg); }
  header.nav-open .burger-line:nth-child(2){ opacity:0; }
  header.nav-open .burger-line:nth-child(3){ transform: translate(-50%, 0) rotate(-45deg); }
  #footerSocial {
    justify-content:center;
    margin:25px auto 50px;
  }
  .site-preferences {
    grid-template-columns: 1fr;
  }
  .desktop-view-link { display:inline-flex; }
}
/* preferences */
.site-preferences {
  display:grid;
  grid-template-columns: repeat(2, minmax(220px, auto));
  justify-content:center;
  align-items:center;
  gap: 18px 36px;
  padding: 34px 20px 20px;
  color: var(--colorAccent);
}
.site-preference-item { display:flex; align-items:center; justify-content:center; gap:12px; }
.preference-toggle-wrap { min-height: 42px; }
.preference-toggle-label { font-weight:600; }
.preference-switch { position:relative; display:inline-flex; width:56px; height:30px; }
.preference-switch input { position:absolute; opacity:0; inset:0; cursor:pointer; }
.preference-slider {
  width:100%; height:100%; border-radius:999px; background: color-mix(in srgb, var(--colorAccent) 35%, white 65%);
  position:relative; transition: background .25s ease;
}
.preference-slider::after {
  content:""; position:absolute; top:3px; left:3px; width:24px; height:24px; border-radius:50%; background:#fff; transition: transform .25s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.preference-switch input:checked + .preference-slider { background: var(--colorAccent); }
.preference-switch input:checked + .preference-slider::after { transform: translateX(26px); }
.desktop-view-link { color:var(--colorAccent); text-decoration:none; font-weight:600; display:none; }
body.force-desktop-view .desktop-view-link { color: var(--colorAccentHover); }
/* markdown generated elements */
.contentBox p { margin: 0 0 1em; }
.contentBox ul { margin: 0 0 1em 1.2em; }
.contentBox h1, .contentBox h2, .contentBox h3, .contentBox h4, .contentBox h5, .contentBox h6 { scroll-margin-top: 30px; }
.md-image-block { margin: 1rem 0; }
.md-image-block.orientation-left { float:left; margin-right: 1.2rem; }
.md-image-block.orientation-right { float:right; margin-left: 1.2rem; }
.md-image-block.orientation-center { text-align:center; }
.md-image-block.no-wrap { float:none; display:block; clear:both; text-align:center; }
.md-image-block img { max-width:100%; height:auto; }
.md-map-consent {
  max-width:min(90%, 720px); min-width:200px; margin: 1rem auto; padding: 1rem; background: rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.4); text-align:center;
}
.md-map-consent iframe { width:100%; min-width:200px; border:0; margin-top: 1rem; }
.focusbox, .infobox { margin: 1.2rem 0; color: inherit; }
.focusbox { padding: 20px; display:flex; gap:20px; align-items:flex-start; }
.focusbox.orientation-right { flex-direction: row-reverse; }
.focusbox.orientation-center { flex-direction: column; align-items:center; text-align:center; margin-left:auto; margin-right:auto; }
.focusbox.media-bottom { flex-direction: column; }
.focusbox.align-left { margin-right:auto; }
.focusbox.align-right { margin-left:auto; }
.focusbox.align-center { margin-left:auto; margin-right:auto; }
.focusbox-image img { max-width:100%; display:block; }
.focusbox-content { flex:1 1 auto; min-width:0; }
.infobox { padding: 18px 20px; }
.infobox-head { display:flex; justify-content:space-between; gap: 16px; margin-bottom: 10px; font-size:.95em; }
.toc-box { margin: 1rem 0 1.5rem; }
.toc-box ul { list-style:none; margin: .5rem 0 0; padding:0; }
.toc-box li { margin: .2rem 0; }
.toc-level-3 { margin-left: 1rem; }
.toc-level-4 { margin-left: 2rem; }
.toc-level-5 { margin-left: 3rem; }
.toc-level-6 { margin-left: 4rem; }
.contentBox::after { content:""; display:block; clear:both; }
@media (max-width: 900px) {
  .focusbox, .focusbox.orientation-right, .focusbox.orientation-center { flex-direction:column; }
  .focusbox-image { order:2; width:100%; }
}

/* ===== PATCH 5 OVERRIDES ===== */
.footerLink,
.footerOption {
  color: var(--colorAccent);
  text-decoration: none;
  font-size: inherit;
  line-height: 1.3;
}

.footerOptions {
  width: 90%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 28px;
  padding: 18px 0 0;
}

.footerOption {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.footerOptionSwitch.preference-switch {
  width: 50px;
  height: 26px;
  flex: 0 0 auto;
}

.footerOptionSwitch .preference-slider::after {
  width: 20px;
  height: 20px;
}

.footerOptionSwitch.preference-switch input:checked + .preference-slider::after {
  transform: translateX(24px);
}

body.large-text {
  --site-font-scale: 1.2;
  font-size: 1.2em;
}

body.large-text .footerOptions,
body.large-text .footerOption,
body.large-text .desktop-view-link,
body.large-text .preference-toggle-label,
body.large-text button,
body.large-text input,
body.large-text select,
body.large-text textarea {
  font-size: 1em;
}

body.large-text .footerOptionSwitch.preference-switch {
  width: 60px;
  height: 32px;
}

body.large-text .footerOptionSwitch .preference-slider::after {
  width: 24px;
  height: 24px;
  top: 4px;
  left: 4px;
}

body.large-text .footerOptionSwitch.preference-switch input:checked + .preference-slider::after {
  transform: translateX(28px);
}

.slideshow-dot {
  border: 0;
}

@media (max-width: 800px) {
  #headNav,
  header.nav-open #headNav {
    opacity: 1 !important;
    animation: none !important;
    filter: none !important;
    transition: transform 0.78s cubic-bezier(0.22, 1, 0.36, 1) !important;
    will-change: transform;
  }

  .footerOptions {
    width: 60%;
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  .footerOption,
  .desktop-view-link {
    width: 100%;
    justify-content: center;
  }
}


/* ===== PATCH 6 OVERRIDES ===== */
header nav,
header nav ul {
  width: 100%;
}

#headNav a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(-75deg, transparent 40%, rgba(255,255,255,0.45) 50%, transparent 60%);
  transform: translateX(100%);
}

footer nav a::after,
#footerLegal a::after,
.regularLink::after,
.footerOptions a::after,
.footerOptions label::after {
  display: none !important;
  content: none !important;
}

#footerLegal a,
#footerLegal .regularLink,
.footerOptions .footerLink {
  display: inline-flex;
  width: auto;
  padding: 0;
  overflow: visible;
}

#footerLegal a:hover,
#footerLegal .regularLink:hover,
.footerOptions .footerLink:hover,
.footerOptions .footerLink:focus-visible {
  transform: none;
}

#footerLegalCopyright,
#footerLegalCreators {
  color: #000;
}

body.dark-mode #footerLegalCopyright,
body.dark-mode #footerLegalCreators {
  color: #f0ede8;
}

#footerLegal .regularLink {
  color: var(--colorAccent);
}

.footerOptions {
  width: 90%;
  font-size: 0.8rem;
  padding: 18px 0 0;
  gap: 10px 22px;
}

.footerOption {
  gap: 8px;
}

.footerOptionSwitch.preference-switch {
  width: 34px;
  height: 18px;
}

.footerOptionSwitch .preference-slider::after {
  width: 12px;
  height: 12px;
  top: 3px;
  left: 3px;
}

.footerOptionSwitch.preference-switch input:checked + .preference-slider::after {
  transform: translateX(16px);
}

html {
  font-size: calc(16px * var(--site-font-scale));
}

body.large-text {
  --site-font-scale: 1.2;
}

body.large-text .contentBox,
body.large-text .contact-form,
body.large-text #headNav,
body.large-text #footerNav,
body.large-text #footerLegal,
body.large-text .footerOptions,
body.large-text .focusbox,
body.large-text .infobox,
body.large-text .toc-box {
  font-size: 1em;
}

body.large-text .toggle-label,
body.large-text .contact-form-hint,
body.large-text .contact-form-submit,
body.large-text input,
body.large-text textarea,
body.large-text button {
  font-size: 1rem;
}

.contentBox {
  font-size: 1rem;
}

.toggle-label {
  font-size: 0.75rem;
}

@media (max-width: 800px) {
  #headNav {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: none;
    transform: translateY(calc(-100% - 35px));
    transition: transform 0.72s cubic-bezier(0.22, 1, 0.36, 1) !important;
    will-change: transform;
  }

  header.nav-open #headNav {
    pointer-events: auto;
    transform: translateY(0);
  }

  .logo-wrapper {
    position: relative;
    z-index: 360;
    background: var(--colorBackground);
  }

  .mobile-nav-shell {
    z-index: 350;
  }

  #headNav {
    z-index: 345;
    transition-property: transform !important;
  }

  .footerOptions {
    width: 90%;
    gap: 8px 16px;
  }
}

.contact-form-section {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.55);
}

.contact-form-section h2 {
  padding-bottom: 1rem;
}

.contact-form {
  width: min(100%, 860px);
}

.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-form-message {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  font: inherit;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255,255,255,0.8);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(255,255,255,0.75);
  outline-offset: 2px;
}

.contact-form-hint,
.contact-form-status {
  margin-top: 0.85rem;
  font-size: 0.92rem;
}

.contact-form-submit {
  margin-top: 1rem;
  border: 1px solid rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-radius: 999px;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.contact-form-submit:hover,
.contact-form-submit:focus-visible {
  background: rgba(255,255,255,0.18);
  transform: translateY(-1px);
}

.md-inline-code {
  display: inline-block;
  padding: 0.1em 0.4em;
  border-radius: 0.35em;
  background: rgba(0,0,0,0.12);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.95em;
}

.md-code-block {
  overflow-x: auto;
  margin: 1rem 0 1.5rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: rgba(0,0,0,0.12);
}

.md-code-block code {
  white-space: pre;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.95em;
}

@media (max-width: 700px) {
  .contact-form-grid {
    grid-template-columns: 1fr;
  }
}


/* ===== PATCH 6B OVERRIDES ===== */
body.large-text .footerOptions,
body.large-text .footerOption,
body.large-text #footerLegal,
body.large-text #footerLegalCopyright,
body.large-text #footerLegalCreators {
  font-size: 0.8rem;
}

body.large-text .footerOptionSwitch.preference-switch,
body.large-text .footerOptionSwitch.preference-switch input + .preference-slider {
  width: 34px;
  height: 18px;
}

body.large-text .footerOptionSwitch .preference-slider::after {
  width: 12px;
  height: 12px;
  top: 3px;
  left: 3px;
}

body.large-text .footerOptionSwitch.preference-switch input:checked + .preference-slider::after {
  transform: translateX(16px);
}

/* ===== PATCH 8 OVERRIDES ===== */
body.dark-mode {
  --colorBackground: var(--colorBackgroundDark);
  --colorAccent: var(--colorAccentDeeper);
  --colorAccentDark: color-mix(in srgb, var(--colorAccentDeeper) 72%, black 28%);
  --colorAccentHover: color-mix(in srgb, var(--colorAccentDeeper) 78%, white 22%);
  --colorAccentBright: color-mix(in srgb, var(--colorAccentDeeper) 78%, white 22%);
  color: #f0ede8;
}

body.dark-mode #headNav a::after,
body.dark-mode nav a::after,
body.dark-mode .toc-box a::after {
  background: linear-gradient(-75deg, transparent 36%, rgba(42,42,42,0.5) 50%, transparent 64%);
}

.contentBox ol {
  margin: 0 0 1em 1.45em;
}

.md-hr {
  border: 0;
  border-top: 1px solid rgba(255,255,255,0.55);
  margin: 1.1rem 0 1.3rem;
}

.md-image-block {
  display: table;
  max-width: 100%;
}

.md-image-block.orientation-center {
  margin-left: auto;
  margin-right: auto;
}

.md-image-block img {
  display: block;
}

.md-image-caption {
  display: table-caption;
  caption-side: bottom;
  max-width: 100%;
  padding-top: 0.4rem;
  line-height: 1.25;
}

.md-image-caption.align-left { text-align: left; }
.md-image-caption.align-center { text-align: center; }
.md-image-caption.align-right { text-align: right; }

.md-map-consent {
  position: relative;
  max-width: min(90vw, 1200px);
  min-width: 200px;
  min-height: 200px;
  margin: 1rem auto;
  padding: 0;
  background: transparent;
  border: 0;
}

.md-map-frame {
  width: 100%;
  height: 100%;
}

.md-map-consent iframe {
  width: max(200px, 90%);
  height: max(200px, 90%);
  border: 0;
  display: block;
  margin: 0 auto;
  background: transparent;
}

.md-map-notice {
  position: absolute;
  top: -1.05rem;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-size: 0.64rem;
  line-height: 1.15;
  width: min(90%, 32rem);
  text-align: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.md-map-consent:hover .md-map-notice,
.md-map-consent:focus-within .md-map-notice {
  opacity: 1;
}

.infobox-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 0;
  margin-bottom: 6px;
  font-size: 0.72em;
  line-height: 1.05;
}

.infobox-head span {
  display: inline-flex;
  flex: 0 0 auto;
  width: auto;
}

.infobox-head .is-empty {
  display: none;
}

.focusbox {
  padding: 20px;
  overflow: visible;
}

.focusbox.is-contact-edge {
  padding: 0;
}

.focusbox.align-left.is-contact-edge {
  margin-left: calc(50% - 50vw);
  margin-right: auto;
}

.focusbox.align-right.is-contact-edge {
  margin-right: calc(50% - 50vw);
  margin-left: auto;
}

.focusbox-image {
  flex: 0 0 auto;
  max-width: min(33.333%, 100%);
}

.focusbox-image img {
  width: auto;
  max-width: min(100%, 33vw);
  height: auto;
  display: block;
}

.focusbox-image.image-align-left { align-self: flex-start; }
.focusbox-image.image-align-center { align-self: center; }
.focusbox-image.image-align-right { align-self: flex-end; }
.focusbox-image.image-align-left img { margin-right: auto; }
.focusbox-image.image-align-center img { margin-left: auto; margin-right: auto; }
.focusbox-image.image-align-right img { margin-left: auto; }

.toc-box {
  margin: 1rem 0 1.3rem;
}

.toc-box h3 {
  margin-bottom: 0.45rem;
}

.toc-box .toc-list-wrap {
  overflow: hidden;
  transition: max-height 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.toc-box ul {
  list-style: none;
  margin: 0;
  padding: 0 0 0 0.45rem;
}

.toc-box li {
  margin: 0.05rem 0;
  line-height: 1.1;
}

.toc-box li a {
  display: inline-block;
  padding: 0.04rem 0.2rem;
  border-radius: 0.3rem;
}

.toc-box .toc-toggle {
  margin-top: 0.35rem;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0.1rem 0.2rem;
  font: inherit;
}

.toc-box.is-expanded .toc-toggle-icon {
  display: inline-block;
  transform: rotate(180deg);
}

.toc-toggle-icon {
  transition: transform 0.3s ease;
}

.toc-level-2 { margin-left: 0; }
.toc-level-3 { margin-left: 0.7rem; }
.toc-level-4 { margin-left: 1.4rem; }
.toc-level-5 { margin-left: 2.1rem; }
.toc-level-6 { margin-left: 2.8rem; }

.toc-box a:hover,
.toc-box a:focus-visible,
.focusbox a:hover,
.focusbox a:focus-visible,
.infobox a:hover,
.infobox a:focus-visible {
  color: color-mix(in srgb, currentColor 90%, black 10%);
}

.toc-box a::after {
  background: linear-gradient(-75deg, transparent 38%, color-mix(in srgb, currentColor 20%, transparent) 50%, transparent 62%);
}

.md-slideshow-shell {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  position: relative;
}

.md-slideshow-shell .slideshow,
.md-slideshow-shell .slideshow-viewport {
  width: 100vw;
}

.md-slideshow-shell .slide-control.left {
  left: 0;
}

.md-slideshow-shell .slide-control.right {
  right: 0;
}

.md-slideshow-shell .slideshow-toggle {
  right: 14px;
}

@media (max-width: 900px) {
  .focusbox,
  .focusbox.orientation-right,
  .focusbox.orientation-center,
  .focusbox.align-left.is-contact-edge,
  .focusbox.align-right.is-contact-edge {
    margin-left: auto;
    margin-right: auto;
  }

  .focusbox.is-contact-edge {
    width: 100% !important;
  }

  .focusbox-image {
    max-width: 100%;
    width: 100%;
  }

  .focusbox-image img {
    max-width: 100%;
  }

  .md-map-notice {
    opacity: 1;
    position: static;
    transform: none;
    width: 100%;
    margin-bottom: 0.45rem;
  }
}


/* ===== PATCH 1.9 OVERRIDES ===== */
html, body {
  max-width: 100%;
  overflow-x: clip;
}

.slideshow,
.slideshow-viewport {
  max-width: 100%;
  overflow: hidden;
}

.slides-track {
  max-width: none;
}

.md-slideshow-shell {
  width: 100dvw;
  max-width: 100dvw;
  margin-left: calc(50% - 50dvw);
  margin-right: calc(50% - 50dvw);
  overflow: hidden;
}

.md-slideshow-shell .slideshow,
.md-slideshow-shell .slideshow-viewport {
  width: 100%;
  max-width: 100%;
}

.toc-box {
  display: block;
  width: min(100%, 28rem);
  margin: 1rem 0 1.3rem;
  text-align: left;
}

.toc-box ul {
  display: block;
  list-style: disc outside;
  padding-left: 15px;
  margin-left: 0;
  width: auto;
}

.toc-box li {
  display: list-item;
  width: auto;
  margin: 0.12rem 0;
  padding-left: 0;
}

.toc-box li::marker {
  font-size: 0.9em;
}

.toc-box li a {
  display: inline;
  width: auto;
  text-align: left;
}

.toc-level-2,
.toc-level-3,
.toc-level-4,
.toc-level-5,
.toc-level-6 {
  margin-left: 15px;
}

.toc-box a::after {
  background: linear-gradient(-75deg, transparent 38%, color-mix(in srgb, var(--colorAccent) 70%, white 30%) 50%, transparent 62%) !important;
}

.contact-form-note {
  font-size: 0.9em;
  line-height: 1.4;
  opacity: 0.92;
}

@media (max-width: 900px) {
  .focusbox-image,
  .focusbox-image.image-align-left,
  .focusbox-image.image-align-center,
  .focusbox-image.image-align-right {
    align-self: center;
    text-align: center;
  }

  .focusbox-image img,
  .focusbox-image.image-align-left img,
  .focusbox-image.image-align-center img,
  .focusbox-image.image-align-right img {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 800px) {
  #headNav {
    top: calc(100% - 46px);
    z-index: 350;
  }

  .mobile-nav-shell {
    top: calc(100% - 46px);
    height: 46px;
    background: transparent;
    overflow: visible;
  }

  .mobile-nav-shell::before,
  .mobile-nav-shell::after {
    bottom: 0;
    height: 10px;
    background: #fff;
    width: calc(50% - 38px);
  }

  .mobile-nav-toggle {
    bottom: 0;
    top: auto;
    transform: translate(-50%, 0);
    width: 76px;
    height: 36px;
    border-radius: 0 0 38px 38px;
    background: #fff;
    border: 0;
    box-shadow: none;
  }
}


/* ===== PATCH 1.9.1 CLEANUP OVERRIDES ===== */
.hidden-dev-link,
.hidden-dev-link:visited,
.hidden-dev-link:hover,
.hidden-dev-link:focus,
.hidden-dev-link:active {
  color: inherit !important;
  text-decoration: none !important;
  cursor: default !important;
  outline: none !important;
}

.md-size {
  font-size: inherit;
}
.md-size > :first-child { margin-top: 0; }
.md-size > :last-child { margin-bottom: 0; }

.toc-box {
  max-width: 320px;
  margin: 1rem auto 1.5rem 0;
}
.toc-box .toc-list-wrap {
  overflow: hidden;
  transition: max-height .25s ease;
}
.toc-box ul {
  list-style: disc;
  list-style-position: outside;
  margin: .5rem 0 0 15px;
  padding: 0 0 0 15px;
}
.toc-box li {
  display: list-item;
  margin: .25rem 0;
}
.toc-box a {
  display: inline-block;
  color: inherit;
  text-decoration: none;
  transition: color .2s ease, text-shadow .2s ease;
}
.toc-box a:hover,
.toc-box a:focus-visible {
  color: var(--colorAccent);
  text-shadow: 0 0 10px color-mix(in srgb, var(--colorAccent) 70%, transparent);
}
.toc-toggle {
  margin-top: .5rem;
  border: 1px solid color-mix(in srgb, var(--colorAccent) 60%, transparent);
  background: transparent;
  color: var(--colorAccent);
  border-radius: 999px;
  padding: .15rem .65rem;
  cursor: pointer;
}
.toc-box.is-expanded .toc-toggle-icon { transform: rotate(180deg); }
.toc-toggle-icon { display:inline-block; transition: transform .2s ease; }

@media (max-width: 900px) {
  .focusbox .focusbox-image,
  .focusbox .focusbox-image[class*="image-align-"] {
    align-self: center;
    text-align: center;
  }
  .focusbox .focusbox-image img {
    margin-left: auto;
    margin-right: auto;
  }
}


/* ===== PATCH 1.9.2 TOC + SEO/FAVICON SUPPORT ===== */
.toc-box a {
  position: relative;
  overflow: hidden;
  color: inherit;
}

.toc-box a:hover,
.toc-box a:focus-visible {
  color: color-mix(in srgb, currentColor 80%, black 20%) !important;
  text-shadow: none !important;
}

.toc-box a::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-120%) skewX(-20deg);
  background: linear-gradient(105deg, transparent 20%, color-mix(in srgb, var(--colorAccent) 45%, transparent) 50%, transparent 80%) !important;
  transition: transform .55s ease, opacity .18s ease;
}

.toc-box a:hover::after,
.toc-box a:focus-visible::after {
  opacity: 1;
  transform: translateX(120%) skewX(-20deg);
}

.toc-toggle {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .88rem;
  line-height: 1.2;
}

.toc-toggle-label {
  font-size: .82em;
}


/* ===== PATCH 1.9.3 MOBILE / LAYOUT / SLIDESHOW OVERRIDES ===== */
.contentBox {
  padding-right: 8%;
  font-size: 14.3pt;
  overflow-wrap: break-word;
  word-break: normal;
}
.contentBox p,
.contentBox li,
.contentBox h1,
.contentBox h2,
.contentBox h3,
.contentBox h4,
.contentBox h5,
.contentBox h6 {
  max-width: 100%;
}
.contentBox a,
.contentBox strong,
.contentBox em,
.contentBox span:not(.loader-spinner):not(.burger-line) {
  overflow-wrap: anywhere;
}
.md-slideshow-shell,
.md-map-consent,
.focusbox.is-contact-edge {
  overflow-wrap: normal;
}

.md-image-block,
.md-image-block img,
.contentImg {
  max-width: 100%;
  height: auto;
}
@media (max-width: 900px) {
  .md-image-block,
  .md-image-block.edge-touch,
  .md-image-block.with-padding {
    width: auto !important;
    max-width: 100vw !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .md-image-block img,
  .contentImg {
    width: auto !important;
    max-width: min(100%, 100vw) !important;
    height: auto !important;
  }
}

.md-map-consent {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  min-height: 260px;
  overflow: hidden;
}
.md-map-frame,
.md-map-consent iframe {
  width: 100% !important;
  height: 100% !important;
  min-height: inherit;
}
@media (max-width: 900px) {
  .md-map-consent {
    width: 100dvw !important;
    max-width: 100dvw !important;
    margin-left: calc(50% - 50dvw) !important;
    margin-right: calc(50% - 50dvw) !important;
  }
}

.md-slideshow-shell {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.md-slideshow-shell .slideshow,
.md-slideshow-shell .slideshow-viewport {
  width: 100vw;
  max-width: 100vw;
}
.slideshow-loader {
  background: rgba(0,0,0,0.28);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  opacity: 1;
  visibility: visible;
  transition: opacity 1s ease, visibility 1s ease;
}
.slideshow.is-ready .slideshow-loader {
  opacity: 0;
  visibility: hidden;
}
.loader-spinner {
  width: 28px;
  height: 28px;
  border-width: 3px;
  border-color: rgba(255,255,255,0.45);
  border-top-color: #fff;
}
.loader-text { color: #fff; }

.focusbox.is-contact-edge,
.focusbox.align-left.is-contact-edge,
.focusbox.align-right.is-contact-edge,
.focusbox.align-center.is-contact-edge {
  width: 100vw !important;
  max-width: 100vw;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}
@media (max-width: 900px) {
  .focusbox,
  .focusbox.is-contact-edge,
  .focusbox.align-left.is-contact-edge,
  .focusbox.align-right.is-contact-edge,
  .focusbox.align-center.is-contact-edge {
    width: 100dvw !important;
    max-width: 100dvw;
    margin-left: calc(50% - 50dvw) !important;
    margin-right: calc(50% - 50dvw) !important;
  }
}

#footerSocial { justify-content: center; }
@media (max-width: 800px) {
  #footerSocial {
    display: flex;
    width: 100%;
    justify-content: space-evenly;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 800px) {
  header { padding-bottom: 36px; }
  #headNav {
    top: calc(100% - 36px) !important;
    border-bottom: 10px solid #fff;
    transform: translateY(calc(-100% + 36px));
  }
  header.nav-open #headNav { transform: translateY(0); }
  .mobile-nav-shell {
    top: calc(100% - 36px) !important;
    height: 36px;
    background: transparent;
    pointer-events: none;
  }
  .mobile-nav-shell::before,
  .mobile-nav-shell::after { display: none !important; }
  .mobile-nav-toggle {
    bottom: 0 !important;
    top: auto !important;
    height: 36px;
    transform: translate(-50%, 0) !important;
    border-radius: 0 0 38px 38px;
    background: #fff;
  }
}
@media (min-width: 801px) and (max-width: 1180px) {
  #headNav { font-size: clamp(0.96rem, 1.55vw, 1.25rem); }
  #headNav a { padding-left: 0.35rem; padding-right: 0.35rem; }
}

.contact-icon-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 0.95rem;
  align-items: start;
  margin: 1.1rem 0 1.35rem;
}
.contact-icon-row__icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
}
.contact-icon-row__icon img {
  width: 42px;
  height: 42px;
  display: block;
}
.contact-icon-row__content > :first-child { margin-top: 0; }
.contact-icon-row__content > :last-child { margin-bottom: 0; }
@media (max-width: 520px) {
  .contact-icon-row { grid-template-columns: 38px minmax(0,1fr); gap: 0.75rem; }
  .contact-icon-row__icon,
  .contact-icon-row__icon img { width: 34px; height: 34px; }
}

/* ===== PATCH 1.9.3.1 CORRECTIONS ===== */
@media (min-width: 801px) {
  #footerSocial {
    width: auto !important;
    justify-content: flex-end !important;
    margin-left: auto;
  }
}

@media (max-width: 800px) {
  #footerSocial {
    justify-content: center !important;
  }
  header:not(.nav-open) #headNav {
    transform: translateY(-100%) !important;
    border-bottom-color: transparent !important;
    pointer-events: none;
    visibility: hidden;
  }
  header.nav-open #headNav {
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) !important;
  }
  .mobile-nav-toggle {
    pointer-events: auto;
  }
}

#headNav a {
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: normal;
  word-break: normal;
}

@media (min-width: 801px) and (max-width: 1240px) {
  #headNav a {
    line-height: 1.08;
    padding-left: 0.3rem !important;
    padding-right: 0.3rem !important;
  }
}

.md-map-consent {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: color-mix(in srgb, var(--colorAccent) 16%, white 84%);
  border: 1px solid color-mix(in srgb, var(--colorAccent) 35%, transparent);
}
.md-map-placeholder {
  width: min(760px, 92vw);
  min-height: inherit;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
}
.md-map-load {
  border: 1px solid var(--colorAccent);
  background: var(--colorAccent);
  color: #fff;
  border-radius: 999px;
  padding: 0.55rem 1.15rem;
  font: inherit;
  cursor: pointer;
  transition: transform .2s ease, filter .2s ease;
}
.md-map-load:hover,
.md-map-load:focus-visible {
  filter: brightness(0.92);
  transform: translateY(-1px);
}
.md-map-frame:not([hidden]) {
  display: block;
  width: 100%;
  min-height: inherit;
}

.contact-icon-warning .contact-icon-row__icon {
  background: color-mix(in srgb, var(--colorAccent) 82%, black 18%);
  border-radius: 999px;
}
.contact-icon-warning {
  font-size: 0.94em;
}

@media (min-width: 801px) {
  #footerNav ul {
    display: grid;
    grid-template-columns: minmax(90px, 20%) repeat(4, minmax(0, 1fr));
    align-items: center;
  }
  #footerNavLogo {
    grid-row: 1 / span 3;
    align-self: stretch;
    width: auto !important;
    display: flex;
    align-items: center;
  }
  #footerNav li:not(#footerNavLogo) {
    min-width: 0;
  }
}

@media (max-width: 900px) {
  #footerNav ul {
    display: flex;
    flex-direction: column;
  }
  #footerNavLogo {
    width: 100% !important;
  }
}


/* ===== PATCH 1.9.3.2 CORRECTIONS ===== */
.contact-icon-row__icon,
.contact-icon-warning .contact-icon-row__icon {
  background: transparent !important;
  border-radius: 0 !important;
}
.contact-icon-row__icon img {
  filter: none;
}
.md-map-consent {
  overflow: hidden;
}
.md-map-placeholder {
  width: 100% !important;
  min-height: inherit;
  color: var(--colorAccent);
}
.md-map-placeholder .md-map-notice {
  position: static !important;
  transform: none !important;
  opacity: 1 !important;
  width: min(92%, 36rem) !important;
  color: var(--colorAccent) !important;
  font-size: 0.86rem !important;
  line-height: 1.35 !important;
  order: 2;
  pointer-events: auto;
}
.md-map-placeholder .md-map-load {
  order: 1;
}
.md-map-consent.is-map-loaded {
  background: transparent;
  border-color: transparent;
}
.md-map-consent.is-map-loaded .md-map-placeholder {
  display: none !important;
}
.md-map-consent.is-map-loaded .md-map-frame,
.md-map-consent.is-map-loaded iframe {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
}
@media (min-width: 801px) {
  #footerSocial {
    display: inline-flex !important;
    width: auto !important;
    justify-content: flex-end !important;
    margin: 25px 10% 100px auto !important;
    padding-right: 0 !important;
  }
}
@media (max-width: 800px) {
  #footerSocial {
    width: 100% !important;
    justify-content: center !important;
    margin: 25px auto 50px !important;
  }
}
/* Restore footer navigation flow from before 1.9.3.1 */
@media (min-width: 801px) {
  #footerNav ul {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: center !important;
  }
  #footerNavLogo {
    grid-row: auto !important;
    align-self: auto !important;
    width: 20% !important;
    display: list-item !important;
    align-items: initial !important;
  }
  #footerNav li:not(#footerNavLogo) {
    min-width: initial !important;
  }
}
@media (max-width: 900px) {
  #footerNav ul {
    display: flex !important;
  }
}

/* ===== PATCH 1.9.4 SLIDESHOW STABILITY ===== */
.slideshow {
  padding-top: 42px;
  overflow: visible;
  touch-action: pan-y;
  overscroll-behavior: contain;
}

.slideshow-viewport {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  contain: layout paint;
}

.slides-track {
  box-sizing: border-box;
  align-items: center;
}

.slide {
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  overflow: hidden;
}

.slide img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-position: center center;
}

.slideshow-toggle {
  top: 10px;
  right: max(14px, env(safe-area-inset-right));
  z-index: 390;
  color: var(--colorAccentDark);
  background: rgba(255,255,255,0.86);
  border-radius: 999px;
  padding: 5px 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}

.md-slideshow-shell {
  overflow: visible;
}

.md-slideshow-shell .slideshow,
.md-slideshow-shell .slideshow-viewport {
  width: 100vw;
  max-width: 100vw;
}

@supports (width: 100dvw) {
  .md-slideshow-shell .slideshow,
  .md-slideshow-shell .slideshow-viewport {
    width: 100dvw;
    max-width: 100dvw;
  }
}

@media (max-width: 900px) {
  .slideshow {
    padding-top: 40px;
  }
  .slideshow-toggle {
    top: 8px;
    right: max(10px, env(safe-area-inset-right));
  }
}


/* ===== PATCH 1.9.4.1 SLIDESHOW / FOOTER / CONTENT FIXES ===== */
.slideshow {
  padding-top: 0 !important;
  background: transparent;
}
.slideshow-viewport {
  background: transparent;
}
.slideshow.is-ready {
  background: transparent;
}
.slideshow-toggle {
  top: 12px !important;
}
.slides-track {
  display: flex;
  justify-content: flex-start;
  will-change: transform;
}
.slide {
  flex: 0 0 auto;
}
.slide img {
  min-width: 0;
  min-height: 0;
}
.md-slideshow-shell {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  overflow: visible !important;
}
@supports (width: 100dvw) {
  .md-slideshow-shell {
    width: 100dvw !important;
    max-width: 100dvw !important;
    margin-left: calc(50% - 50dvw) !important;
    margin-right: calc(50% - 50dvw) !important;
  }
}
.md-slideshow-shell .slideshow,
.md-slideshow-shell .slideshow-viewport {
  width: 100% !important;
  max-width: 100% !important;
}
@media (min-width: 901px) {
  #footerNav ul,
  #footerLegal ul {
    display: grid !important;
    grid-template-columns: 20% repeat(4, minmax(0, 1fr));
    column-gap: 0;
    align-items: center;
  }
  #footerNavLogo,
  #footerLegalCopyright {
    width: auto !important;
    text-align: left;
  }
  #footerNav li:nth-child(2),
  #footerLegal li:nth-child(2) {
    grid-column: 2;
    justify-self: start;
  }
}
.contact-icon-mail .contact-icon-row__icon img,
.contact-icon-warning .contact-icon-row__icon img {
  width: 2.45rem;
  height: 2.45rem;
}
.footerOptions {
  margin-bottom: 50px;
}
@media (max-width: 900px) {
  .footerOptions {
    margin-bottom: 44px;
  }
}


/* ===== PATCH 1.9.4.2 MOBILE PORTRAIT SLIDESHOW + DESKTOP FOOTER RESTORE ===== */
@media (max-width: 900px) and (orientation: portrait) {
  .slideshow .slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
  }
}

@media (min-width: 901px) {
  #footerNav ul,
  #footerLegal ul {
    display: flex !important;
    grid-template-columns: none !important;
    grid-auto-columns: auto !important;
    column-gap: normal !important;
    gap: 20px !important;
    align-items: center !important;
  }

  #footerNav ul {
    justify-content: flex-start !important;
  }

  #footerLegal ul {
    justify-content: space-between !important;
  }

  #footerNavLogo,
  #footerLegalCopyright {
    width: 20% !important;
    min-width: 20% !important;
    grid-column: auto !important;
    grid-row: auto !important;
    justify-self: auto !important;
    align-self: auto !important;
    text-align: left !important;
  }

  #footerNav li:nth-child(2),
  #footerLegal li:nth-child(2) {
    grid-column: auto !important;
    justify-self: auto !important;
  }

  #footerLegalCreators {
    margin-left: auto !important;
    text-align: right !important;
  }
}


/* ===== PATCH 1.9.4.3 MD SLIDESHOW VIEWPORT ALIGNMENT ===== */
.md-slideshow-shell {
  transform: translateX(var(--md-slideshow-viewport-offset, 0px));
}
.md-slideshow-shell .slideshow-viewport {
  margin-left: 0 !important;
  left: auto !important;
  right: auto !important;
}
