/* Global styles that can't be done via theme.json
---------------------------------------------------------------------------- */

/* Overwrite Astra theme root font-size. */
html {
	font-size: 100% !important;
}

html:focus-within {
	scroll-behavior: smooth;
}

#back-to-top:focus {
	outline: none !important;
}

body:not(.has-no-blocks, .wp-admin, .block-editor-iframe__body) :focus,
body.has-no-blocks header :focus,
body.has-no-blocks footer :focus,
#back-to-top:focus-visible {
	outline: 2px solid var(--wp--preset--color--black) !important;
	outline-offset: 2px !important;
}

body:not(.has-no-blocks, .wp-admin, .block-editor-iframe__body)
	.has-black-background-color
	:focus,
body.has-no-blocks header.has-black-background-color :focus,
body.has-no-blocks footer.has-black-background-color :focus {
	outline: 2px solid var(--wp--preset--color--white) !important;
}

body:not(.wp-admin, .block-editor-iframe__body)
	.has-black-background-color
	.wp-block-ollie-mega-menu__menu-container
	:focus {
	outline: 2px solid var(--wp--preset--color--black) !important;
}

body:not(.wp-admin, .block-editor-iframe__body)
	.has-black-background-color
	.wp-block-ollie-mega-menu__menu-container:focus {
	outline: none !important;
}

body:not(.has-no-blocks) a:where(:not(.wp-element-button)),
body.has-no-blocks header a:where(:not(.wp-element-button)),
body.has-no-blocks footer a:where(:not(.wp-element-button)) {
	text-decoration-thickness: 1px;
	transition: text-decoration-thickness 0.3s ease;
}

body:not(.has-no-blocks) a:where(:not(.wp-element-button)):focus,
body.has-no-blocks header a:where(:not(.wp-element-button)):focus,
body.has-no-blocks footer a:where(:not(.wp-element-button)):focus {
	outline-offset: 0;
}

body:not(.has-no-blocks) a:where(:not(.wp-element-button)):hover,
body.has-no-blocks header a:where(:not(.wp-element-button)):hover,
body.has-no-blocks footer a:where(:not(.wp-element-button)):hover {
	text-decoration-thickness: 2px;
}

/* Alignment
--------------------------------------------- */

body:not(.has-no-blocks, .block-editor-iframe__body)
	.wp-site-blocks
	> :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
	max-width: var(--wp--style--global--content-size);
	margin-left: auto !important;
	margin-right: auto !important;
}

body:not(.has-no-blocks) .wp-site-blocks > .alignwide {
	max-width: var(--wp--style--global--wide-size);
}

/* Vertical Gap
--------------------------------------------- */

body:not(.has-no-blocks) .wp-site-blocks :where(.is-layout-flow) > * {
	margin-block-start: var(--wp--preset--spacing--16);
	margin-block-end: 0;
}

body:not(.has-no-blocks) .wp-site-blocks :where(.is-layout-flow) > :first-child {
	margin-block-start: 0;
}

/* Colors
--------------------------------------------- */

[class*="-trn-background-color"] {
	backdrop-filter: blur(8px);
}

/* Header & Footer
--------------------------------------------- */

body.has-no-blocks header *,
body.has-no-blocks footer * {
	transition: none;
	-webkit-font-smoothing: initial;
	-moz-osx-font-smoothing: initial;
}

body.has-no-blocks footer {
	color: var(--wp--preset--color--shark);
}

body.has-no-blocks footer .wp-block-button .wp-block-button__link {
	color: var(--wp--preset--color--black);
}

/* Language Switcher
--------------------------------------------- */

header.has-black-background-color .language-switcher a.gt_switcher-popup {
	color: var(--wp--preset--color--porcelain);
	display: block;
	height: 20px;
	width: 20px;
}

header.has-black-background-color .language-switcher a.gt_switcher-popup svg path {
	fill: currentColor;
}

.gt_white_content {
	background-color: var(--wp--preset--color--black);
	border: 1px solid var(--wp--preset--color--emerald);
	border-radius: 8px;
	box-sizing: initial;
	color: var(--wp--preset--color--white);
	display: flex;
	align-items: center;
}

.gt_white_content a.glink {
	border-bottom: 1px solid rgba(125, 125, 125, 0.5);
	color: var(--wp--preset--color--white);
	padding: 10px;
}

.gt_white_content a.glink,
.gt_white_content a.glink:hover {
	text-decoration: none;
}

.gt_white_content a.glink:hover {
	transform: none;
}

.gt_white_content a.glink:hover,
.gt_white_content a.glink.gt-current-lang {
	color: var(--wp--preset--color--emerald);
}

.gt_white_content a.glink:focus {
	outline-offset: -2px;
}

/* Back-to-Top Button
--------------------------------------------- */

#back-to-top {
	background-color: var(--wp--preset--color--emerald);
	background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 26 16"><path d="m25.101 12.948-12.5-12.5-12.5 12.5 2.5 2.5 10-10 10 10z"/></svg>');
	background-position: 50%;
	background-repeat: no-repeat;
	background-size: 20px 20px;
	border: none;
	border-radius: 4px;
	bottom: var(--wp--preset--spacing--24);
	cursor: pointer;
	display: none;
	height: 42px;
	opacity: 0.5;
	padding: var(--wp--preset--spacing--16);
	position: fixed;
	right: var(--wp--preset--spacing--24);
	width: 42px;
	z-index: 99;
}

#back-to-top:focus,
#back-to-top:hover {
	opacity: 1;
}

/* Utility Classes
--------------------------------------------- */

@media screen and (min-width: 960px) {
	.hide-desktop {
		display: none !important;
	}
}

@media screen and (max-width: 959px) {
	.hide-mobile {
		display: none !important;
	}
}

/* Sidebar Layout */
.sidebar-layout {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sidebar-gap, 0);
}

.sidebar-layout > :first-child {
	flex-basis: 400px;
	flex-grow: 1;
}

.sidebar-layout > :last-child {
	flex-basis: 0;
	flex-grow: 999;
	min-inline-size: 50%;
}
