/*
 * Rules theme.json can't express. Loaded on the front end and in the editor.
 * Prefer theme.json for anything it supports.
 */

html {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

a {
	text-underline-offset: 0.15em;
	text-decoration-thickness: 1px;
}

:where(a, button, input, select, textarea, summary, .wp-element-button):focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
}

/* Breathing room above anchored headings. The sticky header offset comes from scroll-padding-top in effects.css. */
:where(h1, h2, h3, h4, h5, h6)[id] {
	scroll-margin-top: var(--wp--preset--spacing--30);
}

/* Push the footer to the bottom on short pages. */
.wp-site-blocks {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.wp-site-blocks > main {
	flex-grow: 1;
}

/* No gap between the content and a coloured footer; main has its own bottom padding. */
.wp-site-blocks > footer {
	margin-block-start: 0;
}

/* Header ------------------------------------------------------------------ */

.site-header__inner {
	gap: var(--wp--preset--spacing--40);
}

.site-header__logo {
	flex-shrink: 0;
	margin: 0;
}

.site-header__logo img {
	display: block;
	width: clamp(8.5rem, 4rem + 15vw, 19.75rem);
	height: auto;
}

.site-header__nav {
	flex: 0 1 51.5rem;
	gap: var(--wp--preset--spacing--40);
	padding-bottom: 2.75rem;
	border-bottom: 2px solid var(--wp--preset--color--primary);
}

.site-header__menu {
	flex-grow: 1;
}

/* Current page: semibold. */
.site-header__menu .wp-block-navigation-item.current-menu-item > .wp-block-navigation-item__content {
	font-weight: 600;
}

/* Menu item with the CSS class "is-button" (Appearance → Menus → Screen options → CSS classes). */
.wp-block-navigation .wp-block-navigation-item.is-button > .wp-block-navigation-item__content {
	display: inline-flex;
	align-items: center;
	min-height: 56px;
	padding: 0 1.5rem;
	border-radius: 3px;
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	font-weight: 600;
	text-decoration: none;
}

.wp-block-navigation .wp-block-navigation-item.is-button > .wp-block-navigation-item__content:hover,
.wp-block-navigation .wp-block-navigation-item.is-button > .wp-block-navigation-item__content:focus-visible {
	background-color: var(--wp--preset--color--primary-hover);
	color: var(--wp--preset--color--base);
}

/* Mobile menu overlay. */
.site-header .wp-block-navigation__responsive-container.is-menu-open {
	padding: var(--wp--preset--spacing--30) var(--wp--style--root--padding-right, 1.25rem);
	background-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
}

.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: var(--wp--preset--spacing--20);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 400;
}

.site-header .wp-block-navigation__responsive-container.is-menu-open .current-menu-item > .wp-block-navigation-item__content {
	font-weight: 600;
}

/* In the mobile menu the Contact item is an ordinary link. */
.site-header .wp-block-navigation__responsive-container.is-menu-open .is-button > .wp-block-navigation-item__content {
	min-height: 0;
	padding: 0;
	background: none;
	color: inherit;
	font-weight: inherit;
}

/* Contact details at the bottom of the mobile menu (inc/menus.php). */
.mobile-menu-contact {
	display: none;
}

.wp-block-navigation__responsive-container.is-menu-open .mobile-menu-contact {
	display: block;
	width: 100%;
	margin-top: var(--wp--preset--spacing--50);
	padding-top: var(--wp--preset--spacing--30);
	border-top: 2px solid var(--wp--preset--color--primary);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 400;
	line-height: 1.5;
}

.mobile-menu-contact p {
	margin: 0 0 0.25rem;
}

.mobile-menu-contact a {
	color: inherit;
}

.site-header .wp-block-navigation__responsive-container-open svg,
.site-header .wp-block-navigation__responsive-container-close svg {
	width: 32px;
	height: 32px;
}

@media (max-width: 599px) {
	.site-header__nav {
		flex: 0 0 auto;
		align-self: center;
		flex-direction: row-reverse;
		padding-bottom: 0;
		border-bottom: 0;
	}
}

/* Footer ------------------------------------------------------------------ */

.site-footer__top {
	gap: var(--wp--preset--spacing--40);
}

.site-footer__logo {
	margin: 0;
}

.site-footer__logo img {
	display: block;
	width: clamp(10rem, 7rem + 8vw, 15rem);
	height: auto;
}

.site-footer__menus {
	flex: 0 1 51.5rem;
	align-self: stretch;
	gap: var(--wp--preset--spacing--40);
}

.site-footer__columns {
	column-gap: 70px !important;
}

.site-footer .wp-block-navigation {
	font-size: var(--wp--preset--font-size--small);
}

.site-footer .wp-block-navigation a:hover {
	color: var(--wp--preset--color--tertiary);
}

.site-footer__to-top {
	align-self: flex-end;
	margin: 0;
	font-size: 1rem !important;
}

.site-footer__to-top a {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	text-decoration: none;
}

.site-footer__to-top a::after {
	content: "";
	width: 18px;
	height: 18px;
	background-color: currentColor;
	-webkit-mask: url("../images/pijl-omhoog.svg") center / contain no-repeat;
	mask: url("../images/pijl-omhoog.svg") center / contain no-repeat;
	transform: rotate(-45deg);
}

.site-footer__separator.wp-block-separator {
	border: 0;
	border-top: 1px solid #d7dfdf;
	color: #d7dfdf;
	opacity: 1;
}

@media (max-width: 781px) {
	.site-footer__menus {
		flex-basis: 100%;
	}
}

/* Compact header after scrolling (class set by assets/js/effects.js). */
.is-compact .site-header {
	padding-top: var(--wp--preset--spacing--20) !important;
	padding-bottom: var(--wp--preset--spacing--20) !important;
}

.is-compact .site-header__inner {
	align-items: center;
}

.is-compact .site-header__logo img {
	width: clamp(6.5rem, 5rem + 4vw, 8.5rem);
}

.is-compact .site-header__nav {
	align-self: center;
	padding-bottom: 0;
	border-bottom: 0;
}

/* Labels follow the text colour on coloured sections. */
:is(.is-style-section-contrast, .is-style-section-tertiary, .has-tertiary-background-color) .is-style-label:not(.has-text-color) {
	color: inherit;
}

/* Content that starts at the right-hand column of the label/content grid. */
@media (min-width: 782px) {
	.is-offset {
		display: grid;
		grid-template-columns: minmax(0, 34fr) minmax(0, 66fr);
		column-gap: var(--wp--preset--spacing--40);
	}

	.is-offset > * {
		grid-column: 2;
	}
}

/* Section headings that wrap like the design (two short lines). */
@media (min-width: 782px) {
	.is-narrow {
		max-width: 9em;
	}
}

/* Hero ---------------------------------------------------------------------- */

html,
body {
	overflow-x: clip;
}

.hero {
	position: relative;
}

.hero__intro {
	max-width: 38.25rem;
	line-height: 1.45;
}

.hero__star {
	--star: clamp(11rem, 35vw, 31.5rem);
	position: absolute;
	right: calc(var(--star) * -0.47);
	bottom: calc(var(--star) * -0.53);
	z-index: 2;
	width: var(--star);
	margin: 0 !important;
	pointer-events: none;
}

.hero__star img {
	display: block;
	width: 100%;
	height: auto;
}

@media (max-width: 781px) {
	.hero__star {
		--star: clamp(9rem, 45vw, 16rem);
		right: calc(var(--star) * -0.3);
		bottom: calc(var(--star) * -0.535);
	}
}

.has-max-width-small {
	max-width: 25rem;
}

/* News cards ---------------------------------------------------------------- */

.news-card {
	height: 100%;
}

.news-card > .wp-block-read-more {
	margin-top: auto !important;
	padding-top: var(--wp--preset--spacing--20);
}

.news-card .wp-block-post-featured-image {
	width: 100%;
}

.news-card .wp-block-post-title {
	line-height: 1.15;
}

.news-card .wp-block-post-title a {
	text-decoration: none;
}

.news-card__excerpt {
	color: var(--wp--preset--color--contrast-2);
	font-size: 1rem;
	line-height: 1.4;
}

.news-card__excerpt .wp-block-post-excerpt__excerpt {
	margin: 0;
}

.news-card__more.wp-block-read-more {
	color: var(--wp--preset--color--primary);
	font-size: 1rem;
	font-weight: 600;
	text-decoration: none;
}

.news-card__more.wp-block-read-more:hover {
	text-decoration: underline;
}

/* Forms (Contact Form 7) ---------------------------------------------------- */

.wpcf7 form > p,
.wpcf7 .form-row > p {
	margin: 0 0 var(--wp--preset--spacing--30);
}

.wpcf7 .form-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
	column-gap: var(--wp--preset--spacing--30);
}

.wpcf7 label {
	display: block;
	font-size: 1rem;
}

.wpcf7 label br {
	display: none;
}

.wpcf7 .wpcf7-form-control-wrap {
	display: block;
	margin-top: 0.75rem;
}

.wpcf7 :is(input[type="text"], input[type="email"], input[type="tel"], textarea) {
	box-sizing: border-box;
	width: 100%;
	padding: 1rem;
	border: 1px solid #728d59;
	border-radius: 2px;
	background-color: #d9f5c0;
	color: var(--wp--preset--color--contrast);
	font: inherit;
	font-size: 1.0625rem;
	line-height: 1.4;
}

.wpcf7 textarea {
	height: 9rem;
	resize: vertical;
}

.wpcf7 ::placeholder {
	color: var(--wp--preset--color--contrast);
	opacity: 1;
}

.wpcf7 .form-consent {
	font-size: 0.9375rem;
	line-height: 1.45;
}

.wpcf7 .wpcf7-acceptance .wpcf7-list-item {
	margin: 0;
}

.wpcf7 .wpcf7-acceptance label {
	display: flex;
	gap: 0.75rem;
	align-items: flex-start;
	font-size: inherit;
}

.wpcf7 input[type="checkbox"] {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	margin: 0.1em 0 0;
	accent-color: var(--wp--preset--color--contrast);
}

.wpcf7 .wpcf7-submit {
	min-height: 56px;
	padding: 0 1.5rem;
	border: 0;
	border-radius: 3px;
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	font: inherit;
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 600;
	cursor: pointer;
}

.wpcf7 .wpcf7-submit:hover,
.wpcf7 .wpcf7-submit:focus-visible {
	background-color: var(--wp--preset--color--primary-hover);
}

.wpcf7 .wpcf7-spinner {
	vertical-align: middle;
}

.wpcf7 .wpcf7-not-valid-tip {
	margin-top: 0.375rem;
	color: var(--wp--preset--color--contrast);
	font-size: 0.9375rem;
	font-weight: 600;
}

.wpcf7 form .wpcf7-response-output {
	margin: var(--wp--preset--spacing--30) 0 0;
	padding: 0.75rem 1rem;
	border-width: 2px;
}

/* Navigation on coloured sections follows the section text colour. */
:is(.is-style-section-contrast, .is-style-section-tertiary) .wp-block-navigation,
:is(.is-style-section-contrast, .is-style-section-tertiary) .wp-block-navigation a {
	color: inherit;
}

.has-max-width-medium {
	max-width: 38.25rem;
}

/* Breadcrumbs and back links ------------------------------------------------ */

.wp-block-breadcrumbs {
	color: var(--wp--preset--color--contrast);
	font-size: 1rem;
}

.wp-block-breadcrumbs a {
	color: var(--wp--preset--color--contrast-2);
	text-decoration: none;
}

.wp-block-breadcrumbs a:hover {
	color: var(--wp--preset--color--primary);
	text-decoration: underline;
}

.wp-block-breadcrumbs li:not(:last-child)::after {
	color: var(--wp--preset--color--primary);
}

.back-link a {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	text-decoration: none;
}

.back-link a::before {
	content: "";
	width: 20px;
	height: 20px;
	background-color: var(--wp--preset--color--primary);
	-webkit-mask: url("../images/pijl-links.svg") center / contain no-repeat;
	mask: url("../images/pijl-links.svg") center / contain no-repeat;
	transition: transform 0.2s ease;
}

.back-link a:hover::before {
	transform: translateX(-3px);
}

.back-link a:hover {
	text-decoration: underline;
}

/* Activity --------------------------------------------------------------------- */

.activity-intro .wp-block-post-title {
	text-transform: uppercase;
}

.activity-facts p {
	margin: 0;
}

.activity-facts__label {
	color: rgb(255 255 255 / 0.7);
	font-size: var(--wp--preset--font-size--small);
}

.activity-facts__value {
	font-size: 1.25rem;
	font-weight: 600;
}

.activity-intro__summary p {
	margin: 0;
}

.activity-subject p {
	margin: 0;
}

.activity-subject .wp-block-post-title {
	margin: 0;
}

/* List style "Arrows": items with a green line and an orange arrow. */
.wp-block-list.is-style-arrows {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--30);
	list-style: none;
}

.wp-block-list.is-style-arrows > li {
	position: relative;
	padding: 1.25rem 0 0 3rem;
	border-top: 1px solid var(--wp--preset--color--secondary);
}

.wp-block-list.is-style-arrows > li::before {
	content: "";
	position: absolute;
	top: 1.25rem;
	left: 0;
	width: 24px;
	height: 24px;
	background-color: var(--wp--preset--color--primary);
	-webkit-mask: url("../images/pijl-lijst.svg") center / contain no-repeat;
	mask: url("../images/pijl-lijst.svg") center / contain no-repeat;
}

.wp-block-list.is-style-arrows > li > strong:first-child {
	display: block;
	margin-bottom: 0.375rem;
	font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
	font-weight: 800;
	line-height: 1.2;
}

.wp-block-list.is-style-arrows > li > strong:first-child + br {
	display: none;
}

/* Full-width sections on pages and templates sit directly against each other. */
:is(.wp-block-post-content, .wp-site-blocks > main) > .alignfull {
	margin-block-start: 0;
}

/* Mobile swipe carousels ------------------------------------------------------
   Team, the compact agenda (home) and the news cards on the home page scroll
   sideways on small screens: one item fully visible, the next one peeking in. */

@media (max-width: 781px) {
	.wp-block-loopbaancentrum-team,
	.is-layout-compact .wp-block-loopbaancentrum-agenda__list,
	.news-cards--carousel .wp-block-post-template {
		display: flex !important;
		gap: var(--wp--preset--spacing--30);
		/* Full window width, whatever the parent; the first item lines up with the content. */
		width: auto !important;
		max-width: none !important;
		margin-right: calc(50% - 50vw) !important;
		margin-left: calc(50% - 50vw) !important;
		padding-right: calc(50vw - 50%) !important;
		padding-left: calc(50vw - 50%) !important;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: var(--wp--style--root--padding-left, 1.25rem);
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}

	.wp-block-loopbaancentrum-team::-webkit-scrollbar,
	.is-layout-compact .wp-block-loopbaancentrum-agenda__list::-webkit-scrollbar,
	.news-cards--carousel .wp-block-post-template::-webkit-scrollbar {
		display: none;
	}

	.wp-block-loopbaancentrum-team > *,
	.is-layout-compact .wp-block-loopbaancentrum-agenda__list > *,
	.news-cards--carousel .wp-block-post-template > * {
		flex: 0 0 78%;
		max-width: 20rem;
		scroll-snap-align: start;
	}

	.wp-block-loopbaancentrum-team > * {
		flex-basis: 68%;
	}

	/* Agenda items become cards with a line above and below. */
	.is-layout-compact .wp-block-loopbaancentrum-agenda__list {
		border-bottom: 0;
	}

	.is-layout-compact .wp-block-loopbaancentrum-agenda__item {
		border-bottom: 2px solid var(--agenda-line);
	}

	/* Carousel items are already in view horizontally; don't wait for a reveal. */
	:is(.wp-block-loopbaancentrum-team, .wp-block-loopbaancentrum-agenda__list, .news-cards--carousel .wp-block-post-template) > .is-reveal-pending {
		opacity: 1;
		transform: none;
	}
}

/* Collapsible form (mobile) ------------------------------------------------- */

.form-toggle > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 56px;
	padding: 0 1.5rem;
	border-radius: 3px;
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	font-weight: 600;
	list-style: none;
	cursor: pointer;
}

.form-toggle > summary::-webkit-details-marker {
	display: none;
}

.form-toggle > summary::after {
	content: "+";
	font-size: 1.75rem;
	font-weight: 400;
	line-height: 1;
	transition: transform 0.35s ease;
}

.form-toggle[open] > summary::after {
	transform: rotate(45deg);
}

.form-toggle[open] > summary {
	margin-bottom: var(--wp--preset--spacing--30);
}

@media (min-width: 782px) {
	.form-toggle > summary {
		display: none;
	}
}

/* Smooth opening where the browser supports animating to height: auto. */
@supports (interpolate-size: allow-keywords) {
	.form-toggle {
		interpolate-size: allow-keywords;
	}

	.form-toggle::details-content {
		block-size: 0;
		overflow: clip;
		transition:
			block-size 0.5s cubic-bezier(0.16, 1, 0.3, 1),
			content-visibility 0.5s allow-discrete;
	}

	.form-toggle[open]::details-content {
		block-size: auto;
	}
}

/* Without JavaScript the form stays visible on large screens. */
@media (min-width: 782px) {
	.form-toggle::details-content {
		block-size: auto;
		content-visibility: visible;
	}
}

/* Footer on small screens: logo, then the menus in a two-column grid, then
   the back-to-top link and the bottom line, all on the same left edge. */
@media (max-width: 599px) {
	.site-footer__top {
		flex-direction: column;
		gap: var(--wp--preset--spacing--40);
	}

	.site-footer__logo img {
		width: 9rem;
	}

	.site-footer__menus {
		flex-direction: column;
		align-items: stretch !important;
		gap: var(--wp--preset--spacing--40);
	}

	.site-footer__columns {
		display: grid !important;
		grid-template-columns: 1fr 1fr;
		gap: var(--wp--preset--spacing--30) var(--wp--preset--spacing--20) !important;
	}

	.site-footer__columns .wp-block-navigation {
		font-size: 1rem;
	}

	.site-footer__to-top {
		display: none;
	}

	.site-footer > .wp-block-group:last-child {
		flex-direction: column;
		align-items: flex-start;
		gap: var(--wp--preset--spacing--10);
	}

	.site-footer > .wp-block-group:last-child p {
		margin: 0;
	}
}

@media (max-width: 781px) {
	/* Arrow in the top-right corner of an agenda card in the carousel. */
	.is-layout-compact .wp-block-loopbaancentrum-agenda__item {
		grid-template-columns: minmax(0, 1fr);
		padding-right: 2.25rem;
	}

	.is-layout-compact .wp-block-loopbaancentrum-agenda__arrow {
		position: absolute;
		top: 1.5rem;
		right: 0;
		margin: 0;
	}
}

@media (max-width: 781px) {
	/* Contact sections get extra room above and below. */
	#contact,
	#interesse {
		padding-top: var(--wp--preset--spacing--70) !important;
		padding-bottom: var(--wp--preset--spacing--70) !important;
	}
}

@media (max-width: 599px) {
	/* Agenda page: compact items, one line between them and plenty of room. */
	.is-layout-full .wp-block-loopbaancentrum-agenda__item {
		gap: 0.5rem;
		padding-block: var(--wp--preset--spacing--40);
	}

	.is-layout-full .wp-block-loopbaancentrum-agenda__content {
		gap: 0.25rem;
	}

	.is-layout-full .wp-block-loopbaancentrum-agenda__date {
		font-size: 1rem;
	}

	.is-layout-full .wp-block-loopbaancentrum-agenda__summary {
		font-size: 1rem;
	}
}

/* The toggle label changes when the form is open. */
.form-toggle:not([open]) .form-toggle__close,
.form-toggle[open] .form-toggle__open {
	display: none;
}

/* Second line of a two-tone title (inc/activities.php). */
.is-two-tone__accent {
	color: var(--wp--preset--color--secondary);
}

.is-style-section-contrast .is-two-tone__accent {
	color: var(--wp--preset--color--tertiary);
}

/* Long-read content ------------------------------------------------------------ */

/* Key figures: large orange numbers. */
.key-figures {
	margin-top: var(--wp--preset--spacing--20);
}

.key-figures p {
	margin: 0;
}

.key-figures__number {
	color: var(--wp--preset--color--primary);
	font-size: clamp(3rem, 2rem + 3.5vw, 5rem);
	font-weight: 800;
	line-height: 1;
}

/* FAQ: details with a line between them and a plus that turns into a cross. */
.wp-block-details.faq {
	margin-block-start: 0 !important;
	border-top: 1px solid var(--wp--preset--color--secondary);
}

.wp-block-details.faq + :not(.wp-block-details.faq) {
	margin-top: var(--wp--preset--spacing--50);
}

.wp-block-details.faq:has(+ :not(.faq)),
.wp-block-details.faq:last-child {
	border-bottom: 1px solid var(--wp--preset--color--secondary);
}

.wp-block-details.faq > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--20);
	padding-block: 1.25rem;
	font-size: clamp(1.125rem, 1rem + 0.4vw, 1.375rem);
	font-weight: 800;
	line-height: 1.25;
	list-style: none;
	cursor: pointer;
}

.wp-block-details.faq > summary::-webkit-details-marker {
	display: none;
}

.wp-block-details.faq > summary::after {
	content: "+";
	flex-shrink: 0;
	color: var(--wp--preset--color--primary);
	font-size: 1.75rem;
	font-weight: 400;
	line-height: 1;
	transition: transform 0.35s ease;
}

.wp-block-details.faq[open] > summary::after {
	transform: rotate(45deg);
}

.wp-block-details.faq > :not(summary) {
	margin-top: 0;
	padding-bottom: 1.25rem;
}

@supports (interpolate-size: allow-keywords) {
	.wp-block-details.faq {
		interpolate-size: allow-keywords;
	}

	.wp-block-details.faq::details-content {
		block-size: 0;
		overflow: clip;
		transition:
			block-size 0.45s cubic-bezier(0.16, 1, 0.3, 1),
			content-visibility 0.45s allow-discrete;
	}

	.wp-block-details.faq[open]::details-content {
		block-size: auto;
	}
}

/* Quote: larger text with the orange line. */
.wp-block-quote {
	margin-block: var(--wp--preset--spacing--40);
}

.wp-block-quote p {
	font-weight: 600;
	line-height: 1.4;
}

.wp-block-quote cite {
	color: var(--wp--preset--color--contrast-2);
}

/* Captions. */
.wp-block-image figcaption {
	margin-top: 0.75rem;
	color: var(--wp--preset--color--contrast-2);
	font-size: var(--wp--preset--font-size--small);
}

/* A full-width section at the end of a page sits directly on the footer. */
.wp-site-blocks > main > .alignfull:has(> .wp-block-post-content > .alignfull:last-child) {
	padding-bottom: 0 !important;
}

/* Pages (default template): generous room between blocks and sections. */
.page-template-default .wp-block-post-content > * + * {
	margin-block-start: var(--wp--preset--spacing--40);
}

.page-template-default .wp-block-post-content > :is(h2, .alignwide, .wp-block-quote) {
	margin-block-start: var(--wp--preset--spacing--50);
}

.page-template-default .wp-block-post-content > :is(h2, h3) + * {
	margin-block-start: var(--wp--preset--spacing--30);
}

.page-template-default .wp-block-post-content > .alignwide + *,
.page-template-default .wp-block-post-content > .wp-block-quote + * {
	margin-block-start: var(--wp--preset--spacing--50);
}

.page-template-default .wp-block-post-content > .alignfull {
	margin-block-start: var(--wp--preset--spacing--50);
}

.page-template-default .wp-block-post-content > .alignfull + .alignfull {
	margin-block-start: 0;
}

/* FAQ section: room around the questions. */
.faq-section .wp-block-details.faq > summary {
	padding-block: 1.75rem;
}

.faq-section .wp-block-details.faq > :not(summary) {
	padding-bottom: 1.75rem;
}

/* No line above the first question, and more room under the heading. */
.faq-section .wp-block-details.faq:first-of-type {
	margin-block-start: var(--wp--preset--spacing--60) !important;
	border-top: 0;
}

.faq-section .wp-block-details.faq:first-of-type > summary {
	padding-top: 0;
}

/* Form fields on the light orange section. */
.is-style-section-primary-light :is(.wpcf7, .lbc-newsletter) :is(input[type="text"], input[type="email"], input[type="tel"], textarea) {
	border-color: #e9a77f;
	background-color: var(--wp--preset--color--base);
}

/* Full-bleed backgrounds ----------------------------------------------------
   A full-width group with a background inside a narrow content column (single
   posts and activities) still colours the whole width of the screen. The
   content stays in the column. The page clips the overflow (overflow-x: clip). */

.wp-block-post-content .alignfull:is(.has-background, [class*="is-style-section-"]),
.is-full-bleed {
	position: relative;
	isolation: isolate;
}

.wp-block-post-content .alignfull:is(.has-background, [class*="is-style-section-"])::before,
.is-full-bleed::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset: 0 -100vmax;
	background: inherit;
}
