/*
Theme Name: Vaerk
Theme URI: https://github.com/joly/vaerk
Author: Joachim Lykke
Description: A minimal block theme for a writing school. Elegant, typographic, black and white.
Requires at least: 6.5
Tested up to: 6.7
Requires PHP: 7.4
Version: 0.2.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vaerk
Tags: block-patterns, full-site-editing, one-column, custom-colors, custom-menu, editor-style, translation-ready, wide-blocks
*/

/* ---- Dynamic header ---- */
header.wp-block-template-part {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	background: var(--wp--preset--color--white, #F9F9F2);
	transition: box-shadow 0.3s ease;
}

.admin-bar header.wp-block-template-part {
	top: 32px;
}

@media screen and (max-width: 782px) {
	.admin-bar header.wp-block-template-part {
		top: 46px;
	}
}

@media screen and (max-width: 600px) {
	.admin-bar header.wp-block-template-part.header-scrolled {
		top: 0;
	}
}

header.wp-block-template-part {
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}

header.wp-block-template-part.header-scrolled {
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.header-bar {
	width: 100% !important;
	align-items: center;
}

.header-logo img {
	height: 140px;
	transition: height 0.3s ease;
}

header.wp-block-template-part.header-scrolled .header-logo img {
	height: 70px;
}

@media screen and (max-width: 782px) {
	.header-logo img {
		height: 70px;
	}
}
.wp-block-navigation__responsive-container.is-menu-open {
	background-color: var(--wp--preset--color--site-primary) !important;
}

html {
	scroll-padding-top: 100px;
}

/* ---- General spacing ---- */
.wp-site-blocks > * + * {
	margin-top: 0;
}

.wp-site-blocks .wp-block-separator {
	margin-top: 0;
	margin-bottom: 0;
}

/* Sticky footer: push footer to bottom when content is short */
.wp-site-blocks {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	padding-bottom: 40px !important;
}

.wp-site-blocks > .wp-block-template-part:first-child + * {
	margin-top: 0 !important;
	padding-top: var(--header-height, 240px) !important;
	flex-grow: 1;
	padding-bottom: 160px !important;
}

.wp-block-navigation .wp-block-navigation-item a.wp-block-navigation-item__content {
	text-transform: uppercase;
	letter-spacing: 0.1em;
	text-decoration: none;
}

.wp-block-navigation .wp-block-navigation-item a.wp-block-navigation-item__content:hover {
	text-decoration: underline;
	text-underline-offset: 0.7em;
	text-decoration-thickness: 4px;
	text-decoration-color: var(--wp--preset--color--site-primary);
}

/* ---- Featured quote ---- */
.featured-quote {
	position: relative;
	display: flex !important;
	flex-direction: row !important;
	align-items: flex-start;
	gap: 1.25rem;
}

.featured-quote-right {
	position: relative;
	display: flex !important;
	flex-direction: row-reverse !important;
	align-items: flex-start;
	gap: 1.25rem;
}

.featured-quote-icon {
	display: block;
	width: 200px;
	flex-shrink: 0;
	height: auto;
	margin-top: 0.5rem;
}

.featured-quote-text {
	font-family: var(--wp--preset--font-family--jost), sans-serif !important;
	font-weight: 300 !important;
	font-size: 1.25rem !important;
	line-height: 1.7 !important;
	color: #000;
	text-align: left;
	margin: 0 !important;
}

.featured-quote-text::first-letter {
	font-family: var(--wp--preset--font-family--jost), sans-serif;
	font-size: 4.5em;
	font-weight: 100;
	float: left;
	line-height: 0.8;
	margin-right: 0.15em;
	margin-top: 0.05em;
	text-transform: uppercase;
}

/* Featured quote: watercolor blobs */
.featured-quote-visual {
	position: relative;
	width: 300px;
	min-height: 400px;
	overflow: hidden;
	background: var(--wp--preset--color--white, #F9F9F2);
}

.featured-quote-visual .blob {
	position: absolute;
	border-radius: 50%;
	filter: blur(30px);
	opacity: 0;
	animation: blob-pulse 8s ease-in-out infinite;
}

.featured-quote-visual .blob:nth-child(1) {
	width: 120px;
	height: 120px;
	background: rgba(130, 254, 180, 0.5);
	top: 10%;
	left: 20%;
	animation-delay: 0s;
}

.featured-quote-visual .blob:nth-child(2) {
	width: 90px;
	height: 90px;
	background: rgba(0, 234, 255, 0.4);
	top: 40%;
	left: 50%;
	animation-delay: 2s;
}

.featured-quote-visual .blob:nth-child(3) {
	width: 140px;
	height: 140px;
	background: rgba(130, 254, 180, 0.35);
	top: 60%;
	left: 10%;
	animation-delay: 4s;
}

.featured-quote-visual .blob:nth-child(4) {
	width: 80px;
	height: 80px;
	background: rgba(0, 234, 255, 0.3);
	top: 15%;
	left: 60%;
	animation-delay: 6s;
}

.featured-quote-visual .blob:nth-child(5) {
	width: 100px;
	height: 100px;
	background: rgba(130, 254, 180, 0.4);
	top: 75%;
	left: 45%;
	animation-delay: 3s;
	animation-duration: 10s;
}

@keyframes blob-pulse {
	0%, 100% { opacity: 0; transform: scale(0.4); }
	30% { opacity: 1; transform: scale(1); }
	70% { opacity: 0.8; transform: scale(1.1); }
}

@media (prefers-reduced-motion: reduce) {
	.featured-quote-visual .blob {
		animation: none;
		opacity: 0.6;
		transform: scale(1);
	}
}

@media screen and (max-width: 600px) {
	.featured-quote-visual {
		width: 100px;
	}
	.featured-quote-icon {
		width: 60px;
	}
}

/* ---- Floating annotation (desktop-only decorative element) ---- */
.floating-annotation {
	position: absolute;
	z-index: 5;
	pointer-events: none;
	max-width: 250px;
}

.floating-annotation img {
	width: 100%;
	height: auto;
	display: block;
}

@media screen and (max-width: 782px) {
	.floating-annotation {
		display: none;
	}
}

/* ---- Featured note ---- */
.featured-note {
	position: relative;
	display: flex !important;
	flex-direction: row !important;
	align-items: flex-start;
	gap: 1.25rem;
}

.featured-note-right {
	position: relative;
	display: flex !important;
	flex-direction: row-reverse !important;
	align-items: flex-start;
	gap: 1.25rem;
}

.featured-note-icon,
.featured-note-right .featured-note-icon {
	display: block;
	width: 200px;
	flex-shrink: 0;
	height: auto;
	margin-top: 0.5rem;
}

.featured-note-text,
.featured-note-right .featured-note-text {
	font-family: var(--wp--preset--font-family--jost), sans-serif !important;
	font-weight: 300 !important;
	font-size: 1.25rem !important;
	line-height: 1.7 !important;
	color: #000;
	text-align: left;
	margin: 0 !important;
}

.featured-note-text::first-letter {
	font-family: var(--wp--preset--font-family--jost), sans-serif;
	font-size: 4.5em;
	font-weight: 100;
	float: left;
	line-height: 0.8;
	margin-right: 0.15em;
	margin-top: 0.05em;
	text-transform: uppercase;
}

@media screen and (max-width: 782px) {
	.featured-note-icon,
	.featured-note-right .featured-note-icon {
		width: 60px;
	}
}

/* ---- Polaroid image ---- */
.wp-block-image.is-style-polaroid {
	background: #fff;
	padding: 12px 12px 48px;
	box-shadow: 2px 3px 12px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.08);
	transform: rotate(-1.5deg);
	display: inline-block;
	transition: transform 0.3s ease;
	max-width: fit-content;
}

.wp-block-image.is-style-polaroid:hover {
	transform: rotate(0deg) scale(1.02);
}

.wp-block-image.is-style-polaroid img {
	filter: saturate(0.85) contrast(1.05) sepia(0.08);
	display: block !important;
}

.wp-block-image.is-style-polaroid:has(figcaption) {
	padding-bottom: 12px;
}

.wp-block-image.is-style-polaroid figcaption {
	font-family: var(--wp--preset--font-family--jost), sans-serif;
	font-weight: 300;
	font-style: italic;
	text-align: center;
	margin-top: 8px;
	padding-bottom: 8px;
	font-size: 0.875rem;
	color: #555;
}

/* ---- Full-page submenu (experiment — remove this section to revert) ---- */

/* Always hide the default WP dropdown submenu */
.wp-block-navigation-item.has-child > .wp-block-navigation__submenu-container {
	display: none !important;
}

.wp-block-navigation-item.has-child > .wp-block-navigation-submenu__toggle {
	display: none !important;
}

/* Restore inside the open mobile overlay */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item.has-child > .wp-block-navigation__submenu-container {
	display: block !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item.has-child > .wp-block-navigation-submenu__toggle {
	display: inline-block !important;
}

/* Hide entire navigation when overlay is open, keep logo */
body.submenu-is-open .wp-block-navigation {
	visibility: hidden !important;
}

body.submenu-is-open header.wp-block-template-part {
	background: var(--wp--preset--color--site-primary) !important;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12) !important;
}

body.submenu-is-open .submenu-close {
	display: flex;
}

/* Overlay — appended to body, sits below the header */
.submenu-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100vw;
	height: 100vh;
	background: var(--wp--preset--color--site-primary);
	z-index: 99;
	display: none;
	flex-direction: column;
	align-items: stretch;
	padding: calc(var(--header-height, 160px) + 2rem) 0 3rem 0;
	box-sizing: border-box;
	overflow-y: auto;
}

.submenu-overlay.submenu-open {
	display: flex;
}

/* Close button — in the header row, right side */
.submenu-close {
	position: fixed;
	top: 0;
	right: calc((100vw - 1200px) / 2 + 1.5rem);
	z-index: 101;
	display: none;
	font-size: 3rem;
	font-weight: 300;
	font-family: var(--wp--preset--font-family--jost), sans-serif;
	color: #000;
	cursor: pointer;
	background: none;
	border: none;
	padding: 0;
	height: var(--header-height, 160px);
	display: flex;
	align-items: center;
}

/* Parent label */
.submenu-parent-label {
	display: flex;
	align-items: center;
	gap: 0;
	max-width: 1200px;
	width: 100%;
	margin: 3rem auto 2.5rem;
	padding: 0 1.5rem;
	box-sizing: border-box;
	font-family: var(--wp--preset--font-family--jost), sans-serif;
	font-size: 3.5rem;
	font-weight: 100;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: #000;
}

.submenu-parent-label::before {
	display: none;
}

/* Sub-items */
.submenu-overlay .wp-block-navigation-item {
	width: 100%;
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding: 0 1.5rem;
	box-sizing: border-box;
	list-style: none;
}

.submenu-overlay .wp-block-navigation-item a {
	font-family: var(--wp--preset--font-family--jost), sans-serif;
	font-size: 3.5rem;
	font-weight: 300;
	color: #000;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	text-decoration: none;
	padding: 0.4rem 0;
	display: block;
	line-height: 1.3;
	transition: font-size 0.2s ease, font-weight 0.2s ease;
}

.submenu-overlay .wp-block-navigation-item a:hover {
	font-weight: 600;
	font-size: 4.5rem;
}

@media screen and (max-width: 1260px) {
	.submenu-close {
		right: 1.5rem;
	}
}

@media screen and (max-width: 782px) {
	.submenu-close {
		font-size: 2.5rem;
	}
	.submenu-overlay .wp-block-navigation-item a {
		font-size: 2rem;
	}
}
/* ---- End full-page submenu experiment ---- */

/* ---- Marker highlight ---- */
mark,
.has-inline-color mark {
	background: var(--wp--preset--color--site-primary) !important;
	color: inherit !important;
	padding: 0.1em 0.35em;
	border-radius: 3px;
	box-decoration-break: clone;
	-webkit-box-decoration-break: clone;
}

/* ---- Left accent ---- */
.wp-block-group.is-style-left-accent {
	border-left: 14px solid currentColor;
	padding-left: 1.5rem !important;
}

/* ---- Right accent ---- */
.wp-block-group.is-style-right-accent {
	border-right: 14px solid currentColor;
	padding-right: 1.5rem !important;
	text-align: right;
}

/* ---- Newsletter signup ---- */
.newsletter-form {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
	justify-content: center;
}

.has-text-align-left .newsletter-form {
	justify-content: flex-start;
}

.has-text-align-right .newsletter-form {
	justify-content: flex-end;
}

.has-text-align-center .newsletter-form {
	justify-content: center;
}

.newsletter-form input[type="email"] {
	padding: 0.75rem 1rem;
	border: 2px solid var(--wp--preset--color--site-primary);
	background: #fff;
	font-family: var(--wp--preset--font-family--jost), sans-serif;
	font-size: 1rem;
	font-weight: 300;
	flex: 1 1 250px;
	min-width: 0;
	box-sizing: border-box;
}

.newsletter-form input[type="email"]::placeholder {
	color: rgba(0, 0, 0, 0.5);
}

.newsletter-form input[type="submit"] {
	padding: 0.75rem 2rem;
	background: #000;
	color: #fff;
	border: 2px solid #000;
	font-family: var(--wp--preset--font-family--jost), sans-serif;
	font-size: 0.9375rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	cursor: pointer;
	transition: transform 0.2s ease;
}

.newsletter-form input[type="submit"]:hover {
	transform: scale(1.05);
}

@media screen and (max-width: 782px) {
	.newsletter-form input[type="email"] {
		width: 100%;
		min-width: 0;
	}

	.newsletter-form input[type="submit"] {
		width: 100%;
	}
}

/* ---- Partner marquee ---- */
.partner-marquee {
	position: relative;
	padding: 0.75rem 0 2.5rem 0 !important;
}

/* ---- Accent line heading ---- */
.wp-block-heading.is-style-accent-line {
	display: flex;
	align-items: baseline;
	gap: 0;
	text-transform: uppercase;
	letter-spacing: 0.15em;
}

.wp-block-heading.is-style-accent-line::before {
	content: '';
	display: block;
	width: 120px;
	height: 10px;
	background: currentColor;
	flex-shrink: 0;
	margin-right: 0;
}

.partner-marquee-strip {
	height: 52px;
	background: url('/wp-content/themes/vaerk/assets/images/partner-strip.png') repeat-x 0 center;
	background-size: auto 52px;
	animation: marquee-scroll 30s linear infinite;
}

.partner-marquee-strip:hover {
	animation-play-state: paused;
}

@keyframes marquee-scroll {
	0% { background-position-x: 0; }
	100% { background-position-x: -1191px; }
}

@media (prefers-reduced-motion: reduce) {
	.partner-marquee-strip {
		animation: none;
	}
}

/* ---- Partner strip (static) ---- */
.partner-strip-logos {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 3rem 5rem;
}

.partner-strip-logos a {
	display: block;
	text-decoration: none;
	transition: opacity 0.15s ease;
}

.partner-strip-logos a:hover {
	opacity: 0.6;
}

.partner-strip-logos img {
	display: block;
	height: 48px;
	width: auto;
	object-fit: contain;
}

.partner-strip-logos .partner-logo-sdu {
	height: 52px;
}

.partner-strip-logos img[alt*="SPOKEN"] {
	height: 30px;
}

/* ---- Numbered feature ---- */
.numbered-feature-row {
	gap: var(--wp--preset--spacing--large) !important;
	align-items: flex-start !important;
}

.numbered-feature-label {
	flex-shrink: 0;
	margin: 0 !important;
	border-radius: 0 !important;
}

.numbered-feature-label p {
	margin: 0 !important;
	color: #000 !important;
	font-weight: 300 !important;
}

.numbered-feature-text {
	flex: 1 1 0%;
	min-width: 0;
	padding-top: 0.75rem;
}

.numbered-feature-text .wp-block-heading {
	margin-top: 0;
	margin-bottom: 0.5rem;
}

.numbered-feature-text p {
	font-family: var(--wp--preset--font-family--jost), sans-serif !important;
	font-weight: 300 !important;
	font-style: normal !important;
}

.numbered-feature + .numbered-feature {
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}

@media screen and (max-width: 600px) {
	.numbered-feature-row {
		flex-direction: column !important;
		gap: 0.25rem !important;
	}

	.numbered-feature-label {
		min-width: auto;
	}
}

/* ---- CTA box ---- */
.cta-box {
	font-family: var(--wp--preset--font-family--jost), sans-serif;
}

.cta-box-inner {
	position: relative;
	margin-top: 40px !important;
	align-items: center;
	flex-wrap: nowrap !important;
	gap: var(--wp--preset--spacing--medium) !important;
}

.cta-box-inner::before {
	content: '';
	position: absolute;
	top: -40px;
	left: 0;
	right: 0;
	height: 40px;
	background: inherit;
	clip-path: polygon(0 0, 0 100%, 100% 100%);
}

.cta-box-inner > .wp-block-group {
	flex: 1 1 0%;
	min-width: 0;
}

.wp-block-buttons:not(.is-vertical) {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: wrap !important;
	gap: 0.5em;
	align-items: center;
}

.cta-box-inner > .wp-block-buttons {
	flex-shrink: 0;
}

.wp-block-button__link {
	transition: transform 0.2s ease;
}

.wp-block-button__link:hover {
	transform: scale(1.05);
}

@media screen and (max-width: 782px) {
	.cta-box {
		padding-left: 0 !important;
		padding-right: 0 !important;
	}

	.cta-box-inner {
		flex-wrap: wrap !important;
		padding-left: var(--wp--preset--spacing--medium) !important;
		padding-right: var(--wp--preset--spacing--medium) !important;
	}

	.cta-box-inner > .wp-block-group {
		flex-basis: 100%;
	}

	.cta-box-inner > .wp-block-buttons {
		flex-basis: 100%;
	}

	.cta-box-inner .wp-block-button,
	.cta-box-inner .wp-block-button__link {
		width: 100%;
		box-sizing: border-box;
		text-align: center;
	}
}

/* ---- Card ---- */
.wp-block-group.is-style-card {
	background: var(--wp--preset--color--background, #F9F9F2) !important;
	padding: var(--wp--preset--spacing--large) !important;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06), 2px 2px 0 rgba(0, 0, 0, 0.02);
	border-radius: 0;
}

/* ---- Program timeline ---- */
.program-timeline {
	font-family: var(--wp--preset--font-family--jost), sans-serif;
}

.program-year {
	font-family: var(--wp--preset--font-family--jost), sans-serif !important;
	font-size: 1.5rem !important;
	font-weight: 600 !important;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin-top: 3rem !important;
	margin-bottom: 1.5rem !important;
	color: var(--wp--preset--color--gray, #767676) !important;
}

.program-entry {
	display: flex !important;
	flex-direction: row !important;
	align-items: stretch !important;
	gap: 0 !important;
	padding: 2rem 0 !important;
	border-bottom: 1px solid var(--wp--preset--color--background-dark, #e9e9df);
}

.program-entry:last-child {
	border-bottom: none;
}

.program-entry-month {
	flex-shrink: 0;
	width: 140px;
	padding-right: 2rem;
}

.program-entry-month p {
	font-family: var(--wp--preset--font-family--jost), sans-serif !important;
	font-size: 1.0625rem !important;
	font-weight: 600 !important;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	color: var(--wp--preset--color--gray, #767676) !important;
	margin: 0 !important;
	position: sticky;
	top: calc(var(--header-height, 160px) + 1rem);
}

.program-entry-content {
	flex: 1;
	min-width: 0;
}

.program-entry-content h3 {
	font-family: var(--wp--preset--font-family--jost), sans-serif !important;
	font-size: 1.75rem !important;
	font-weight: 600 !important;
	margin-top: 0 !important;
	margin-bottom: 0.75rem !important;
}

.program-entry-content p {
	font-family: var(--wp--preset--font-family--jost), sans-serif !important;
	font-weight: 300 !important;
	font-size: 1.125rem !important;
	line-height: 1.7 !important;
	margin-bottom: 1rem !important;
}

.program-entry-content .program-dates {
	margin-top: 1.25rem !important;
	padding-left: 0 !important;
}

.program-entry-content .program-dates li {
	font-family: var(--wp--preset--font-family--jost), sans-serif !important;
	font-weight: 300 !important;
	font-size: 1.0625rem !important;
	line-height: 1.6 !important;
	list-style: none;
	padding: 0.4rem 0;
	border-bottom: 1px solid var(--wp--preset--color--background-dark, #e9e9df);
}

.program-entry-content .program-dates li:last-child {
	border-bottom: none;
}

.program-entry-content .program-dates li strong {
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-size: 1rem;
}

@media screen and (max-width: 782px) {
	.program-entry {
		flex-direction: column !important;
	}

	.program-entry-month {
		width: auto;
		padding-right: 0;
		margin-bottom: 0.5rem;
	}

	.program-entry-month p {
		position: static;
	}

	.program-year {
		font-size: 2.5rem !important;
	}
}

/* ---- Team list ---- */
.team-list {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--large, 3rem);
}

.team-member {
	display: flex !important;
	flex-direction: row !important;
	align-items: flex-start;
	gap: var(--wp--preset--spacing--large, 3rem) !important;
}

.team-member:nth-child(even) {
	flex-direction: row-reverse !important;
}

.team-member-photo {
	flex-shrink: 0;
	width: 180px;
}

.team-member-photo img {
	width: 100%;
	height: auto;
	display: block;
}

.team-member-info {
	flex: 1;
	min-width: 0;
}

.team-member-name {
	font-family: var(--wp--preset--font-family--jost), sans-serif !important;
	font-size: 1.75rem !important;
	font-weight: 600 !important;
	margin-top: 0 !important;
	margin-bottom: 0.25rem !important;
}

.team-member-title {
	font-family: var(--wp--preset--font-family--jost), sans-serif !important;
	font-size: 0.875rem !important;
	font-weight: 400 !important;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--wp--preset--color--gray, #767676) !important;
	margin-top: 0 !important;
	margin-bottom: 1rem !important;
}

.team-member-bio {
	font-family: var(--wp--preset--font-family--jost), sans-serif !important;
	font-weight: 300 !important;
	font-size: 1rem !important;
	line-height: 1.7 !important;
}

@media screen and (max-width: 782px) {
	.team-member,
	.team-member:nth-child(even) {
		flex-direction: column !important;
	}

	.team-member-photo {
		width: 140px;
	}
}

/* ---- Wave section ---- */
.wp-block-group.is-style-wave-top {
	position: relative;
	margin-top: 120px !important;
	margin-bottom: 200px !important;
}

.wp-block-group.is-style-wave-top::after {
	content: '';
	position: absolute;
	bottom: -200px;
	left: 50%;
	transform: translateX(-50%);
	width: 100vw;
	height: 200px;
	background: linear-gradient(to bottom, var(--wp--preset--color--background-dark, #e9e9df), var(--wp--preset--color--background, #F9F9F2));
	pointer-events: none;
}

/* Next element pulls up into the wave gradient — reclaims the 200px fade zone */
.wp-block-group.is-style-wave-top + * {
	margin-top: -200px !important;
	position: relative;
	z-index: 1;
}

.wp-block-group.is-style-wave-top::before {
	content: '';
	position: absolute;
	top: -120px;
	left: 50%;
	transform: translateX(-50%);
	width: 100vw;
	height: 120px;
	background: inherit;
	pointer-events: none;
	-webkit-mask-image: url('/wp-content/themes/vaerk/assets/images/wave-top.svg');
	mask-image: url('/wp-content/themes/vaerk/assets/images/wave-top.svg');
	-webkit-mask-size: 100% 100%;
	mask-size: 100% 100%;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
}

/* ---- Sloped sections ---- */
.wp-block-group.is-style-slope-left,
.wp-block-group.is-style-slope-right {
	position: relative;
	margin-top: 80px !important;
}


.wp-block-group.is-style-slope-left::before,
.wp-block-group.is-style-slope-right::before {
	content: '';
	position: absolute;
	top: -80px;
	left: 0;
	right: 0;
	height: 80px;
	background: inherit;
}

.wp-block-group.is-style-slope-left::before {
	clip-path: polygon(0 0, 0 100%, 100% 100%);
}

.wp-block-group.is-style-slope-right::before {
	clip-path: polygon(100% 0, 0 100%, 100% 100%);
}

/* ---- Page-level footer background (via page template) ---- */
/* ---- Page-level footer background (via page template) ---- */
.wp-site-blocks:has(.dark-footer-page) {
	background-color: var(--wp--preset--color--background-dark) !important;
}

.wp-site-blocks:has(.dark-footer-page) > header.wp-block-template-part {
	background-color: var(--wp--preset--color--background, #F9F9F2);
}

.wp-site-blocks:has(.dark-footer-page) > .dark-footer-page {
	background: linear-gradient(
		to bottom,
		var(--wp--preset--color--background, #F9F9F2) calc(100% - 240px),
		var(--wp--preset--color--background-dark) calc(100% - 240px)
	) !important;
}

/* Footer slope and layered effect */
.site-footer {
	position: relative;
	z-index: 1;
	margin-top: -80px !important;
}

.site-footer::before {
	content: '';
	position: absolute;
	top: -80px;
	left: 0;
	right: 0;
	height: 80px;
	background: var(--wp--preset--color--site-primary);
	clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.site-footer .wp-block-navigation .wp-block-navigation-item a.wp-block-navigation-item__content {
	text-transform: none;
	letter-spacing: 0;
	font-size: 0.875rem;
}

.site-footer .wp-block-social-links .wp-social-link {
	transition: opacity 0.15s ease;
}

.site-footer .wp-block-social-links .wp-social-link:hover {
	opacity: 0.6;
}



.footer-partner-logos {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	flex-wrap: wrap;
	gap: 3.5rem;
	margin-top: 1.25rem;
}

.footer-partner-logos a {
	display: block;
	text-decoration: none;
	transition: opacity 0.15s ease;
}

.footer-partner-logos a:hover {
	opacity: 0.6;
}

.footer-partner-logos img {
	display: block;
	height: 52px;
	width: auto;
	object-fit: contain;
}

.footer-partner-logos .partner-logo-sdu {
	height: 56px;
}

.footer-partner-logos img[alt*="SPOKEN"] {
	height: 32px;
}

.footer-partner-logos-row2 {
	margin-top: 1.25rem;
}

@media screen and (max-width: 782px) {
	.footer-partner-logos {
		flex-direction: column;
		align-items: flex-start;
		gap: 2rem;
	}
}
