/* Global style */

:root {
	--wp--admin-bar-offset: 32px;
}

@media (max-width: 782px) {
	:root {
		--wp--admin-bar-offset: 46px;
	}
}

@media (max-width: 768px) {
	:root {
		--wp--preset--spacing--section-y: 4rem;
		--wp--preset--spacing--section-x: 1.5rem;
	}
}

@media (max-width: 670px) {
	:root {
		--wp--custom--header-height--top: 60px;
	}
}

/* ==========================================================================
Base styles
========================================================================== */

body {
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

html {
	scroll-behavior: smooth;
}

html.no-scroll,
body.no-scroll {
	overflow: hidden;
}

:focus:not(:focus-visible) {
	outline: none;
}

div[id],
section[id] {
	scroll-margin-top: var(--wp--preset--spacing--xxl);
}

.grecaptcha-badge {
	display: none !important;
}

/* Hide system scrollbars */
div {
	-ms-overflow-style: none;
	scrollbar-width: none;
}

/* Headings
========================================================================== */

.wp-block-heading:only-child {
	margin-bottom: 0 !important;
}

/* Paragraphs
========================================================================== */

p {
	margin-bottom: 1em;
}

p:only-of-type {
	margin-bottom: 0;
}

p:last-of-type {
	margin-bottom: 0;
}

/* Typography spacing
========================================================================== */

h1 ~ h2 {
	margin-top: var(--wp--preset--spacing--l);
}

h2 ~ h3 {
	margin-top: var(--wp--preset--spacing--l);
}

p ~ h2 {
	margin-top: var(--wp--preset--spacing--l);
}

p ~ h3 {
	margin-top: var(--wp--preset--spacing--l);
}

.is-style-eyebrow + .wp-block-heading {
	margin-top: 0;
}

.wp-block-heading ~ :is(figure, iframe, video, table) {
	margin-top: var(--wp--preset--spacing--l);
}

:is(figure, iframe, video, table) + .wp-block-heading {
	margin-top: var(--wp--preset--spacing--l);
}

.wp-block-heading ~ .wpcf7 {
	margin-top: var(--wp--preset--spacing--m);
}

/* Three and four column grid */
.qt-section :is(.grid-col-3, .grid-col-4) .wp-block-image + .wp-block-heading {
	margin-top: var(--wp--preset--spacing--s);
	margin-bottom: var(--wp--preset--spacing--xs);
}

/* Links
========================================================================== */

a:hover {
	opacity: 0.6;
}

/* Lists
========================================================================== */

:is(ul, ol),
.wp-block-list {
	list-style-position: outside;
	margin-left: 1em;
}

:is(ul, ol):not(.menu) li {
	margin-bottom: 0.5em;
	padding-left: 0.25em;
}

:is(ul, ol) :is(ul, ol),
.wp-block-list .wp-block-list {
	margin: 0.5em 0 0.5em 2em;
}

:is(ul, ol) + :is(ul, ol),
.wp-block-list + .wp-block-list {
	margin-top: 1em !important;
}

:is(ul, ol) + p,
.wp-block-list + p {
	margin-top: 1em;
}

p + :is(ul, ol),
p + .wp-block-list {
	margin-top: 1em;
}

:is(.wp-block-list, ul, ol) + .wp-block-heading {
	margin-top: var(--wp--preset--spacing--l);
}

/* Buttons
========================================================================== */

.wp-block-buttons {
	margin-top: var(--wp--preset--spacing--m);
}

.wp-block-button__link:hover {
	opacity: 0.6;
}

.wp-block-button__link:disabled,
button:disabled {
	opacity: 0.6;
}

/* Primary button (core) */

/* Secondary button */
.is-style-button-secondary .wp-block-button__link {
	background-color: var(--wp--preset--color--neutral-3);
	color: var(--wp--preset--color--black);
}

/* Outline button (core) */

/* Outline secondary button */

/* Text button */
.is-style-button-text .wp-block-button__link {
	background-color: transparent;
	padding: 0;
	text-decoration: underline;
	text-underline-position: under;
	text-decoration-skip-ink: none;
}

/* Button on background */

/* Button on background inverted */

/* Inputs
========================================================================== */

label,
button,
select,
summary,
[type="radio"],
[type="submit"],
[type="checkbox"] {
	cursor: pointer;
}

/* Label */
label {
	display: block;
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 400;
	margin-bottom: var(--wp--preset--spacing--xxs);
}

/* Input fields */
input,
textarea,
select {
	width: 100%;
	box-sizing: border-box;
	padding: var(--wp--preset--spacing--xs) var(--wp--preset--spacing--xs);
	border: 1px solid var(--wp--preset--color--neutral-2);
	border-radius: 0;
	background-color: transparent;
	color: var(--wp--preset--color--black);
	font-size: inherit;
	font-family: inherit;
}

/* Select */
select {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	cursor: pointer;
	background-image: url(../images/icon-select-dropdown.svg);
	background-repeat: no-repeat;
	background-position: right 16px center;
	background-size: 12px;
}

/* Checkbox & radio button */
[type="radio"],
[type="checkbox"] {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	cursor: pointer;
	position: relative;
	box-sizing: border-box;
	width: 20px;
	height: 20px;
	margin: 0;
	padding: 0;
	border: 1px solid var(--wp--preset--color--neutral-2);
	background-color: transparent;
}

[type="checkbox"] {
	border-radius: 0;
}

[type="radio"] {
	border-radius: 50px;
}

[type="checkbox"]:checked,
[type="checkbox"]:not(:disabled):checked {
	background-color: transparent;
	background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="10" height="10" viewBox="0 0 32 32" xml:space="preserve"><path style="fill: %23163039" d="M11.941,28.877l-11.941-11.942l5.695-5.696l6.246,6.246l14.364-14.364L32,8.818"/></svg>');
	background-size: 12px 12px;
	background-repeat: no-repeat;
	background-position: center;
}

[type="radio"]:checked,
[type="radio"]:not(:disabled):checked {
	background-color: transparent;
	background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 32 32"><circle cx="16" cy="16" r="8" style="fill: %23163039"/></svg>');
	background-size: 20px 20px;
	background-repeat: no-repeat;
	background-position: center;
}

/* Focus and active statements */
:is(select, input, textarea, radio, checkbox):is(:focus, :checked) {
	background-color: inherit;
	border: 1px solid var(--wp--preset--color--black);
	outline: none;
	box-shadow: none;
}

/* Acceptance */
.acceptance {
	font-size: var(--wp--preset--font-size--xs);
}

/* Submit */
[type="submit"] {
	width: auto;
	padding: var(--wp--preset--spacing--xs) var(--wp--preset--spacing--m);
	background-color: var(--wp--preset--color--black);
	color: var(--wp--preset--color--white);
	border-radius: 0;
	border: 1px solid transparent;
	font-family: var(--wp--preset--font-family--button);
	font-size: var(--wp--preset--font-size--s);
	font-style: normal;
	font-weight: 500;
	letter-spacing: normal;
	line-height: 1;
	text-transform: none;
	transition: all 150ms linear;
}

[type="submit"]:hover {
	opacity: 0.55;
}

/* Contact form 7
========================================================================== */

.wpcf7-form {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	grid-gap: var(--wp--preset--spacing--m);
}

.wpcf7-form p {
	margin-bottom: 0;
}

.wpcf7-form-control-wrap {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--xs);
}

span.wpcf7-spinner {
	display: none;
}

.wpcf7-form p:has(.wpcf7-validates-as-required) label::after {
	content: "";
	margin: 0 0.2em 0;
	padding: 0.15em;
	background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128"><path fill="%23000000" d="M110 16 76 57v1l51-10v32l-51-9-1 1 35 39-28 17-18-50-1 1-18 49-28-17 34-40-50 9V48l50 10v-1L17 17 46 1l17 48h1L82 1l28 15z"/></svg>')
		no-repeat 0 25%;
}

:is(input, textarea, select).wpcf7-not-valid {
	border-color: var(--wp--custom--color--error);
}

.wpcf7-not-valid-tip {
	font-size: var(--wp--preset--font-size--xxs);
}

.wpcf7 form.sent .wpcf7-response-output,
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
	font-size: var(--wp--preset--font-size--xxs);
	border: 1px solid currentColor;
	padding: 0.5em 0.75em;
	grid-column: 1 / -1;
	margin: 0;
}

.wpcf7-not-valid-tip,
.wpcf7 form.invalid .wpcf7-response-output {
	color: var(--wp--custom--color--error);
}

.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
	color: var(--wp--custom--color--warning);
}

.wpcf7 form.sent .wpcf7-response-output {
	color: var(--wp--custom--color--success);
}

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

.wpcf7-radio,
.wpcf7-checkbox,
.wpcf7-acceptance {
	display: flex;
	grid-gap: var(--wp--preset--spacing--xs);
	flex-direction: column;
}

.wpcf7-radio label,
.wpcf7-checkbox label,
.wpcf7-acceptance label {
	display: flex;
	gap: var(--wp--preset--spacing--xs);
	align-items: center;
	margin: 0;
	font-size: var(--wp--preset--font-size--s);
}

/* Media
========================================================================== */

/* Images */
.wp-block-image,
picture {
	font-size: 0;
	line-height: 0;
}

.wp-block-image img {
	box-sizing: border-box;
	max-width: 100%;
	height: auto;
}

/* Video */

/* Iframe & embedded */
.embed-container {
	position: relative;
	width: 100%;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
}

.embed-container iframe,
.embed-container object,
.embed-container embed {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.embed-container:not(:last-of-type) {
	margin-bottom: var(--wp--style--block-gap);
}

/* ==========================================================================
Layout
========================================================================== */

.is-layout-flow > *,
.is-layout-constrained > * {
	margin-block-start: unset;
	margin-block-end: unset;
}

/* Paddings and margins
========================================================================== */

main {
	margin-top: var(--wp--custom--header-height--total);
}

.qt-section {
	padding: 0 var(--wp--preset--spacing--m) var(--wp--preset--spacing--xxl);
}

main > .qt-section:first-of-type:not(.is-style-breadcrumbs),
.entry-content > .qt-section:not(.has-background):first-of-type {
	padding-top: var(--wp--preset--spacing--xxl);
}

.is-style-breadcrumbs + .entry-content > .qt-section:first-of-type:not(.has-background) {
	padding-top: 0;
}

.qt-section .qt-section {
	padding: 0 !important;
}

.qt-section.has-background,
.qt-section__inner.has-background {
	padding: var(--wp--preset--spacing--xl) var(--wp--preset--spacing--m);
}

.qt-section.container-fullwidth {
	padding: 0;
}

.qt-section.container-fullwidth,
.qt-section.has-background {
	margin-bottom: var(--wp--preset--spacing--xxl);
}

.qt-container.has-background {
	padding: var(--wp--preset--spacing--l);
}

.qt-section:last-of-type:is(.has-background) {
	margin-bottom: 0;
}

/* Max widths
========================================================================== */

.qt-section {
	max-width: unset !important;
	margin: unset;
}

.qt-section :is(.container-xs, .container-s, .container-m, .container-default, .container-l, .container-xl) {
	margin: 0 auto;
	width: 100%;
}

.qt-section__inner {
	margin: 0 auto;
	max-width: var(--wp--custom--maxwidth--default);
	z-index: 2 !important;
}

.container-default,
.container-default > .qt-section__inner {
	max-width: var(--wp--custom--maxwidth--default);
}

.container-xs,
.container-xs > .qt-section__inner {
	max-width: var(--wp--custom--maxwidth--xs);
}

.container-s,
.container-s > .qt-section__inner {
	max-width: var(--wp--custom--maxwidth--s);
}

.container-m,
.container-m > .qt-section__inner {
	max-width: var(--wp--custom--maxwidth--m);
}

.container-l,
.container-l > .qt-section__inner {
	max-width: var(--wp--custom--maxwidth--l);
}

.container-xl,
.container-xl > .qt-section__inner {
	max-width: var(--wp--custom--maxwidth--xl);
}

.container-fullwidth,
.container-fullwidth > .qt-section__inner {
	max-width: var(--wp--custom--maxwidth--none);
}

/* Grids
========================================================================== */

.grid {
	display: grid;
	grid-gap: var(--wp--style--block-gap);
}

@media screen and (max-width: 1200px) {
	.grid-col-5,
	.grid-col-6,
	.columns-5,
	.columns-6 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media screen and (max-width: 980px) {
	.grid-col-4,
	.grid-col-5,
	.grid-col-6,
	.columns-4,
	.columns-5,
	.columns-6 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media screen and (max-width: 768px) {
	.grid-col-3,
	.grid-col-4,
	.grid-col-5,
	.grid-col-6,
	.columns-3,
	.columns-4,
	.columns-5,
	.columns-6 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	
	/* Text left, image right */
	.qt-section .grid-col-2 .is-style-image-column {
		grid-row: -1;
	}
	
	/* Image left, text right */
	.qt-section .grid-col-2 .is-style-image-column {
		grid-row: 1;
	}
}

@media screen and (max-width: 670px) {
	.grid.columns-2 {
		grid-gap: var(--wp--preset--spacing--l);
	}

	.grid-col-2,
	.columns-2 {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media screen and (max-width: 510px) {
	.grid-col-3,
	.grid-col-4,
	.grid-col-5,
	.grid-col-6,
	.columns-3,
	.columns-4,
	.columns-5,
	.columns-6 {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ==========================================================================
Announcement bar
========================================================================== */

.announcement-bar {
	background-color: var(--wp--preset--color--black);
	color: var(--wp--preset--color--white);
	display: flex;
	flex-direction: column;
	justify-content: center;
	margin: 0;
	align-items: center;
	padding: var(--wp--preset--spacing--xs) var(--wp--preset--spacing--xl) var(--wp--preset--spacing--xs)
		var(--wp--preset--spacing--m);
	min-height: var(--wp--custom--header-height--announcement-bar);
	overflow: hidden;
	transition: height 0.2s ease;
	text-align: center;
	position: relative;
}

.announcement-bar__inner {
	max-width: var(--wp--custom--maxwidth--default);
}

.announcement-bar p,
.announcement-bar a {
	color: var(--wp--preset--color--white);
	font-size: var(--wp--preset--font-size--xs);
}

.announcement-bar p {
	margin: 0;
	font-family: var(--wp--preset--font-family--paragraph);
	line-height: 1.15;
}

.announcement-bar__close {
	position: absolute;
	right: var(--wp--preset--spacing--xs);
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	appearance: none;
	background: transparent;
	border: 0;
	cursor: pointer;
}

.announcement-bar__close path {
	fill: var(--wp--preset--color--white);
}

/* ==========================================================================
Top bar
========================================================================== */

.top-bar {
	display: flex;
	align-items: center;
	padding: var(--wp--preset--spacing--xs) var(--wp--preset--spacing--m);
	height: var(--wp--custom--header-height--top-bar);
	border-bottom: 1px solid var(--wp--preset--color--neutral-2);
}

.top-bar__inner {
	max-width: var(--wp--custom--maxwidth--default);
	width: 100%;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.top-bar__item {
	font-size: var(--wp--preset--font-size--xs);
	text-transform: uppercase;
}

@media (max-width: 768px) {
	.top-bar {
		display: none;
	}
}

/* ==========================================================================
Header
========================================================================== */

.admin-bar header.wp-block-template-part {
	top: var(--wp--admin-bar-offset);
}

header.wp-block-template-part {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	background-color: var(--wp--preset--color--white);
	z-index: 2;
}

.is-style-header-top {
	height: var(--wp--custom--header-height--top);
	padding: 0 var(--wp--preset--spacing--m);
	background-color: var(--wp--preset--color--white);
	border-bottom: 1px solid var(--wp--preset--color--neutral-2);
}

.is-style-header-top .qt-container:has(.user-toolbar) {
	display: flex;
	justify-content: center;
	align-items: center;
	border: none;
	gap: 0;
}

.is-style-header-top .qt-section__inner {
	height: 100%;
}

.is-style-header-top .grid {
	grid-template-columns: auto 1fr auto;
	gap: calc(2 * var(--wp--style--block-gap));
}

.is-style-header-top .qt-container:has(.mega-menu:not(.mega-menu-mobile)) {
	display: flex;
	align-items: center;
	gap: var(--wp--style--block-gap);
	justify-content: flex-start;
}

.is-style-header-bottom {
	height: var(--wp--custom--header-height--bottom);
	padding: var(--wp--preset--spacing--s) var(--wp--preset--spacing--l);
	background-color: var(--wp--preset--color--white);
}

/* If announcement bar or top bar is visible
========================================================================== */
.admin-bar:has(.announcement-bar, .top-bar) main {
	margin-top: 0;
}

body:has(.announcement-bar, .top-bar) main {
	margin-top: 0;
}
body:has(.announcement-bar, .top-bar) header.wp-block-template-part {
	top: 0;
	position: sticky;
}

.admin-bar:has(.announcement-bar, .top-bar) header.wp-block-template-part {
	top: var(--wp--admin-bar-offset);
}

@media (min-width: 769px) {
	.admin-bar.is-scrolled header.wp-block-template-part {
		top: var(--wp--admin-bar-offset);
	}
}

/* Desktop menu
========================================================================== */

header .mega-menu {
	gap: var(--wp--preset--spacing--m);
}

header .menu .menu-item {
	margin: 0;
}

header .menu-item,
header .menu-item a {
	text-decoration: none;
	color: inherit;
	font-weight: inherit;
}

/* 
* Show sub menu on hover
* Only for dropdowns where trigger is <a>, mega menu is not active
*/
@media (min-width: 1201px) {
	header .menu .menu-item > a + .sub-menu {
		display: none;
		position: absolute;
		left: auto;
		background-color: var(--wp--preset--color--white);
		list-style: none;
		width: 250px;
		max-height: calc(100vh - var(--wp--custom--header-height--total));
		padding: var(--wp--preset--spacing--m) var(--wp--preset--spacing--m);
		box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.1);
		z-index: 1;
		border-radius: 0;
		margin: 0 -1.5rem;
	}

	header .menu .menu-item > a:hover + .sub-menu,
	header .menu .menu-item:hover > a + .sub-menu {
		display: flex;
		flex-direction: column;
		gap: var(--wp--preset--spacing--xs);
	}

	header .menu > .menu-item {
		height: var(--wp--custom--header-height--top);
	}

	header .menu .menu-item a,
	header .menu .menu-item span {
		height: 100%;
		display: flex;
		align-items: center;
		cursor: pointer;
	}
}

/* Site logo */
.wp-block-site-logo a:hover {
	opacity: 1;
}

@media (max-width: 670px) {
	.wp-block-site-logo img {
		max-width: 120px;
	}
}

/* Header button */
@media (max-width: 1100px) {
	.qt-container:has(.hamburger) .wp-block-buttons {
		margin-right: var(--wp--preset--spacing--s);
	}
}

@media (max-width: 768px) {
	header .wp-block-buttons {
		display: none;
	}
}

@media (max-width: 670px) {
	.is-style-header-top .qt-container:has(.mega-menu:not(.mega-menu-mobile)) {
		display: none;
	}

	.is-style-header-top .grid {
		grid-template-columns: auto 1fr;
		grid-gap: var(--wp--preset--spacing--s);
	}

	.is-style-header-top .qt-container:has(.user-toolbar) {
		justify-content: flex-end;
	}
}

/* Hamburger icon
========================================================================== */

#toggle-hamburger {
	width: 40px;
	height: 40px;
}

.hamburger-icon {
	position: relative;
	height: 2px;
	width: 24px;
	background-color: var(--wp--preset--color--black);
}

.hamburger-icon::before {
	top: 9px;
	background-color: var(--wp--preset--color--black);
}

.hamburger-icon::after {
	bottom: 9px;
	background-color: var(--wp--preset--color--black);
}

/* User toolbar
========================================================================== */

.qt-container:has(.user-toolbar) {
	display: flex;
	align-items: center;
	grid-gap: 0;
}

.user-toolbar {
	display: flex;
	gap: var(--wp--preset--spacing--tiny);
}

.user-toolbar__item {
	padding: 0;
	position: relative;
}

.user-toolbar ~ .wp-block-buttons {
	margin-left: var(--wp--preset--spacing--s);
}

.user-toolbar__button,
.user-toolbar__button:hover {
	background-color: transparent;
	border: 0;
	opacity: 1;
}

.user-toolbar__button,
.user-toolbar__icon {
	background-color: transparent;
	border: 0;
	height: 40px;
	width: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.user-toolbar__icon svg {
	width: 34px;
}

.user-toolbar__icon.search svg {
	width: 32px;
}

@media (min-width: 1101px) {
	.qt-container:has(.user-toolbar) {
		grid-gap: 0;
	}
}

@media (max-width: 1100px) {
	.user-toolbar {
		margin-right: var(--wp--preset--spacing--s);
	}
}

/* Search bar
========================================================================== */

header:has(.announcment-bar) #header-search-bar {
	top: calc(var(--wp--custom--header-height--announcment-bar) + var(--wp--custom--header-height--top));
}

#header-search-bar {
	position: absolute;
	width: 100%;
	left: 0;
	top: 0;
	background-color: var(--wp--preset--color--white);
	padding: 0 var(--wp--preset--spacing--m);
	height: var(--wp--custom--header-height--bottom);
	display: flex;
	flex-direction: column;
	justify-content: center;
	z-index: -1;
	border-bottom: 1px solid var(--wp--preset--color--neutral-2);
	opacity: 0;
	transition: opacity 0.25s ease, top 0.25s ease;
}

#header-search-bar.is-visible {
	top: var(--wp--custom--header-height--top);
	opacity: 1;
}

#header-search-bar .wp-block-search__input {
	padding-left: 0;
	padding-right: 0;
	border: 0;
}

header .wp-block-search {
	width: 100%;
	max-width: var(--wp--custom--maxwidth--default);
	margin: 0 auto;
}

header .wp-block-search__inside-wrapper {
	border: 0;
}

header .wp-block-search__button {
	background-color: transparent;
}

header .wp-block-search__button svg {
	fill: var(--wp--preset--color--black);
	min-height: 30px;
	min-width: 30px;
}

/* ==========================================================================
Footer
========================================================================== */

footer .is-style-social-icons {
	display: flex;
	gap: var(--wp--preset--spacing--s);
}

footer .is-style-social-icons p {
	margin-bottom: 0;
}

/* Navigation
========================================================================== */

/* ==========================================================================
Utility classes
========================================================================== */

.qt-container.is-horizontally-stretched {
	grid-column: 1 / -1;
}

.qt-container.is-style-vertically-aligned-space-between {
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	grid-gap: var(--wp--preset--spacing--l);
}

.qt-container.is-horizontally-aligned-left {
	margin-left: 0;
}

.qt-container.is-horizontally-aligned-center {
	margin-left: auto;
	margin-right: auto;
}

.qt-container.is-horizontally-aligned-right {
	margin-right: 0;
}

/* ==========================================================================
Components and modules
========================================================================== */

/* Card */
.card {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--s);
}

/* Content with read more
========================================================================== */
[data-readmore-content] {
	max-height: 75px;
	overflow: hidden;
	position: relative;
	transition: max-height 0.2s linear;
}

[data-readmore-content]::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 2rem;
	background: linear-gradient(0deg, var(--wp--preset--color--white), rgba(255, 255, 255, 0));
	transition: max-height 0.2s linear;
}

.is-open[data-readmore-content]::after {
	display: none;
}

[data-readmore-button] {
	background-color: transparent;
	box-shadow: none;
	border: none;
	margin-top: 1em;
	transition: all 150ms linear;
	cursor: pointer;
	text-decoration: underline;
	text-underline-position: under;
	text-decoration-skip-ink: none;

	font-size: var(--wp--preset--font-size--s);
	color: inherit;
	font-family: inherit;
	font-weight: 400;
}

[data-readmore-button]:hover {
	opacity: 0.6;
}

@media (max-width: 510px) {
	[data-readmore-content] {
		max-height: 100px;
	}

	[data-readmore-content]::after {
		height: 2rem;
		background: linear-gradient(0deg, var(--wp--preset--color--white), rgba(255, 255, 255, 0.25));
	}
}

/* Breadcrumbs
========================================================================== */

.is-style-breadcrumbs {
	padding-top: var(--wp--preset--spacing--m);
	padding-bottom: var(--wp--preset--spacing--xl);
	font-size: var(--wp--preset--font-size--xs);
}

.is-style-breadcrumbs:has(+ .entry-content > .qt-section.has-background:first-of-type) {
	padding-bottom: var(--wp--preset--spacing--m);
}

.rank-math-breadcrumb a,
.rank-math-breadcrumb .separator {
	color: var(--wp--preset--color--neutral-1);
}

.rank-math-breadcrumb a:not(:hover) {
	text-decoration: none;
}

@media (max-width: 768px) {
	.is-style-breadcrumbs {
		padding-top: var(--wp--preset--spacing--s);
	}

	.is-style-breadcrumbs:has(+ .entry-content > .qt-section.has-background:first-of-type) {
		padding-bottom: var(--wp--preset--spacing--s);
	}
}

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

.pagination {
	grid-column: 1 / -1;
	display: flex;
	justify-content: center;
	margin-top: var(--wp--preset--spacing--l);
}

.pagination .pagination-numbers {
	display: inline-flex;
	gap: var(--wp--preset--spacing--s);
}

:is(.wp-block-query-pagination, .pagination) .page-numbers {
	text-decoration: none;
}

/* Current, hover */
:is(.wp-block-query-pagination, .pagination) .page-numbers.current,
:is(.wp-block-query-pagination, .pagination) .page-numbers:hover {
	background-color: var(--wp--preset--color--black);
	border-color: transparent;
	color: var(--wp--preset--color--white);
	opacity: 1;
}

.wp-block-query-pagination-previous:hover,
.wp-block-query-pagination-next:hover {
	background-color: var(--wp--preset--color--black);
	color: var(--wp--preset--color--white);
	opacity: 1;
}

/* Prev, next */
.pagination .page-numbers,
.wp-block-query-pagination .page-numbers {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--wp--preset--color--neutral-3);
	border: 1px solid transparent;
	border-radius: 0;
	color: inherit;
}

.pagination .page-numbers path {
	fill: var(--wp--preset--color--black);
}

.pagination .page-numbers:hover path {
	fill: var(--wp--preset--color--black);
}

.pagination .page-numbers:is(.prev, .next):hover {
	background-color: var(--wp--preset--color--black);
	color: var(--wp--preset--color--white);
	border: 1px solid transparent;
}

.wp-block-query-pagination .wp-block-query-pagination-previous,
.wp-block-query-pagination .wp-block-query-pagination-next,
.pagination .page-numbers.prev,
.pagination .page-numbers.next {
	background-color: var(--wp--preset--color--neutral-3);
	color: var(--wp--preset--color--black);
	border-radius: 0;
	border: 1px solid transparent;
}

.page-numbers :is(.next, .prev) {
	width: fit-content;
	font-size: 0;
}

/* Google map
========================================================================== */

.acf-map {
	width: 100%;
	height: 450px;
}

.acf-map img {
	max-width: inherit !important;
}

/* Accordion
========================================================================== */

.accordion-item {
	height: fit-content;
	cursor: pointer;
}

.accordion-item:last-of-type {
	margin-bottom: 0;
}

/* Accordion heading */
.accordion-item__heading * {
	pointer-events: none;
}

.accordion-item__heading {
	display: grid;
	grid-template-columns: repeat(2, auto);
	justify-content: space-between;
	align-items: center;
	grid-gap: var(--wp--style--block-gap);
	cursor: pointer;
	line-height: normal;
	margin-bottom: 0;
}

.accordion-item__heading h2 {
	line-height: normal;
	font-size: var(--wp--preset--font-size--m);
	margin: 0;
}

/* Accordion content */
.accordion-item__content {
	max-height: 0;
	transition: max-height 150ms linear;
	overflow: hidden;
	max-width: 100%;
	height: fit-content;
}

.accordion-item__content * {
	font-size: var(--wp--preset--font-size--s);
}

.accordion-content__inner {
	padding-top: var(--wp--preset--spacing--s);
}

/* Accordion icon */
.accordion-item__icon {
	position: relative;
	width: 14px;
	height: 14px;
	cursor: pointer;
}

.accordion-item__icon:before,
.accordion-item__icon:after {
	content: "";
	display: block;
	background-color: var(--wp--preset--color--black);
	position: absolute;
	top: 50%;
	left: 0;
	transition: all 150ms linear;
	width: 100%;
	height: 2px;
}

.accordion-item__icon:before {
	transform: translatey(-50%);
}

.accordion-item.is-open .accordion-item__icon:before {
	transform: translatey(-50%) rotate(-90deg);
	opacity: 0;
}

.accordion-item__icon:after {
	transform: translatey(-50%) rotate(90deg);
}
.accordion-item.is-open .accordion-item__icon:after {
	transform: translatey(-50%) rotate(0);
}

/* Tabs
========================================================================== */
.tabs__navigation {
	display: flex;
	gap: var(--wp--preset--spacing--m);
	flex-wrap: nowrap;
	overflow-x: auto;
	overflow-y: hidden;
	white-space: nowrap;
	-ms-overflow-style: none;
	scrollbar-width: none;
	border-bottom: 1px solid var(--wp--preset--color--neutral-2);
}

.tabs__navigation-button {
	background-color: transparent;
	border: none;
	border-bottom: 3px solid transparent;
	color: var(--wp--preset--color--black);
	font-size: var(--wp--preset--font-size--m);
	font-family: inherit;
	font-weight: 400;
	padding: var(--wp--preset--spacing--s) 0;
	cursor: pointer;
	margin-bottom: 0;
}

.tabs__navigation-button.active,
.tabs__navigation-button:hover {
	border-color: var(--wp--preset--color--neutral-2);
}

.tabs__panels-content:not(.active) {
	display: none;
}

.tabs__panels-content {
	padding-top: var(--wp--style--block-gap);
}

.tabs__panels-content table {
	width: 100%;
}

/* Splide slider
========================================================================== */

.splide .splide__arrow {
	min-height: 40px;
	min-width: 40px;
	background-color: var(--wp--preset--color--white);
	border: 0;
	opacity: 1;
	border-radius: 50px;
	filter: drop-shadow(rgba(0, 0, 0, 0.1) 0px 2px 4px) drop-shadow(rgba(0, 0, 0, 0.05) 0px 2px 8px);
	transition: all 150ms linear;
}

.splide .splide__arrow svg {
	width: 1.5rem;
	height: 1.5rem;
}

.splide .splide__arrow:disabled {
	opacity: 0;
}

.splide__arrow:hover:not(:disabled) {
	opacity: 1;
	background-color: var(--wp--preset--color--neutral-3);
}

.splide__arrow--prev {
	left: 0;
}

.splide__arrow--next {
	right: 0;
}

/* Slider header */
.slider-heading .wp-block-heading {
	margin-bottom: 0;
}

/* ==========================================================================
Styles for pages, sections, blocks and others.
========================================================================== */

/* Page: Search results 
========================================================================== */

.search-results .wp-block-search__inside-wrapper {
	border: 0;
}

.search-results .wp-block-post-excerpt__more-text {
	margin-top: var(--wp--preset--spacing--s);
}

.search-results .wp-block-post {
	padding-bottom: var(--wp--preset--spacing--l);
	border-bottom: 1px solid var(--wp--preset--color--neutral-2);
}

.search-results .wp-block-post .wp-block-post-excerpt__more-link {
	text-decoration: underline;
}
.search-results .wp-block-post .wp-block-post-excerpt__more-link:hover {
	opacity: 0.6;
}

:root :where(.wp-block-search .wp-block-search__input) {
	padding: var(--wp--preset--spacing--xxs) var(--wp--preset--spacing--xs);
	border: 1px solid var(--wp--preset--color--neutral-2);
}

/* Section: Hero
========================================================================== */

/* Section: Subhero
========================================================================== */

/* Section: Stacked boxes
========================================================================== */

.is-style-stacked-boxes .grid-col-2.has-background {
	padding: 0;
}

.is-style-stacked-boxes .is-style-image-column .wp-block-image {
	height: 100%;
	width: 100%;
}

.is-style-stacked-boxes .is-style-image-column img {
	height: 100%;
	width: 100%;
	object-fit: cover;
}

.is-style-stacked-boxes .is-style-text-column.has-background,
.is-style-text-column {
	padding: var(--wp--preset--spacing--l) var(--wp--preset--spacing--m);
}

@media (min-width: 769px) {
	.is-style-stacked-boxes .grid-col-2 {
		grid-gap: 0;
	}

	.is-style-stacked-boxes .is-style-text-column {
		padding: 0 var(--wp--preset--spacing--l);
	}
}

@media (max-width: 768px) {
	.is-style-text-column:not(.has-background) {
		padding: 0;
	}

	.is-style-stacked-boxes > .grid {
		grid-gap: var(--wp--preset--spacing--l);
	}

	.is-style-stacked-boxes .grid-col-2 {
		grid-template-columns: minmax(0, 1fr);
	}

	.is-style-stacked-boxes .qt-container:nth-of-type(even) .qt-section .qt-container:first-of-type {
		grid-row: 2;
	}
}

/* Slider - Logos
========================================================================== */

.slider-logos .splide__slide {
	display: flex;
	align-items: center;
}

.slider-logos .splide__list {
	gap: var(--wp--preset--spacing--l) !important;
}

.slider-logos .splide__slide img {
	max-width: 100px;
	height: 40px;
	object-fit: contain;
	object-position: center;
	filter: grayscale(1);
}

/* Archive: Category
========================================================================== */

.wp-block-query-title {
	margin-bottom: 0;
}

/* Articles
========================================================================== */

/* Card */
.article {
	text-decoration: none;
	opacity: 1;
}

.article .card__image:has(.article__date) {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--xs);
}

.article .card__image .wp-block-image {
	aspect-ratio: var(--wp--custom--aspect-ratio--landscape);
	overflow: hidden;
}

.article .card__image img {
	object-fit: cover;
	height: 100%;
	width: 100%;
}

.article__date {
	font-size: var(--wp--preset--font-size--xs);
}

.article__title {
	font-size: var(--wp--preset--font-size--m);
	font-weight: 700;
	color: var(--wp--preset--color--black);
	margin-bottom: 0.25em;
}

.article__excerpt {
	font-size: var(--wp--preset--font-size--s);
}

/* Single: Article
========================================================================== */

.single .wp-block-post-featured-image img {
	aspect-ratio: 3/2;
	object-fit: cover;
}

.single .post-meta {
	margin-top: var(--wp--preset--spacing--s);
	display: flex;
	gap: var(--wp--preset--spacing--tiny);
	color: var(--wp--preset--color--neutral-1);
}

.single .post-meta__categories::before {
	content: "|";
}

.single .post-meta__categories {
	display: flex;
	gap: var(--wp--preset--spacing--tiny);
	list-style-type: none;
	margin-left: 0;
}

/* Employees
========================================================================== */

.employee .card__content [class*="card__"] {
	margin-bottom: 0.5em;
}

.employee__name {
	font-size: var(--wp--preset--font-size--m);
	font-weight: 700;
	color: var(--wp--preset--color--black);
}

.employee .card__image img {
	aspect-ratio: var(--wp--custom--aspect-ratio--portrait);
	object-fit: cover;
}

/* Testimonial slider
========================================================================== */

.slider-testimonials .splide__arrows {
	position: absolute;
	width: 110px;
	right: 0;
	height: fit-content;
	top: -3em;
}

.slider-testimonials .splide__arrow--next {
	right: 0;
}

.slider-testimonials .splide__arrow--prev {
	left: 1em;
}

.slider-testimonials .splide__track {
	margin-left: auto;
	margin-right: auto;
}

.slider-testimonials .splide__slide[aria-hidden="true"] {
	height: 0px;
	transition: all 250ms linear;
	overflow: hidden;
}

/* Testimonial card */
.testimonial {
	height: 100%;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--l);
}

.testimonial__author-content {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--s);
}

.testimonial__author-image img {
	height: 50px;
	width: 50px;
	object-fit: cover;
}

.testimonial__author {
	font-weight: 600;
	color: var(--wp--preset--color--black);
	display: flex;
	flex-direction: column;
}

.testimonial__author-subheadline {
	font-weight: 400;
	font-size: var(--wp--preset--font-size--xs);
	color: var(--wp--preset--color--neutral-1);
}

/* Image gallery with lightbox
========================================================================== */

/* FAQ
========================================================================== */

.faq {
	display: grid;
	grid-gap: var(--wp--preset--spacing--s);
}

.faq .accordion-item {
	padding: var(--wp--preset--spacing--s);
	background-color: var(--wp--preset--color--neutral-3);
}

.faq .accordion-item__heading {
	align-items: flex-start;
}
