:root {
	--dea-font-scale: 1;
	--dea-green: #176b4d;
	--dea-green-dark: #0e4f38;
	--dea-focus: #ffbf47;
	--dea-panel-background: #ffffff;
	--dea-panel-text: #17221d;
	--dea-menu-font-size: 16px;
	--dea-header-offset: 9rem;
	--dea-header-primary-height: 7rem;
}

html {
	scroll-padding-top: var(--dea-header-offset);
}

/* Remove the 75px spacer left by the former fixed-header snippet. */
html body {
	padding-top: 0 !important;
}

:where([id], h1, h2, h3, h4, h5, h6) {
	scroll-margin-top: var(--dea-header-offset);
}

html[data-dea-font-scale] .dea-scalable-text {
	max-width: 100%;
	font-size: var(--dea-scaled-font-size) !important;
	overflow-wrap: anywhere;
}

html[data-dea-font-scale] .dea-scalable-text.dea-scalable-line-height {
	line-height: var(--dea-scaled-line-height) !important;
}

.hostinger-ai-site-title a,
.hostinger-ai-site-title a:hover {
	color: #2f7136 !important;
}

.dea-smart-header {
	position: sticky !important;
	top: 0 !important;
	z-index: 9999;
	-webkit-transform: none !important;
	transform: none !important;
	transition: transform 180ms ease, box-shadow 180ms ease;
}

/* Neutralise older snippets that fixed the inner green menu to the viewport. */
html body .dea-smart-header > .dea-smart-header-content {
	position: relative !important;
	top: auto !important;
	right: auto !important;
	bottom: auto !important;
	left: auto !important;
	width: auto !important;
	z-index: auto !important;
}

.hostinger-ai-menu-wrapper.dea-header-layout {
	display: flex !important;
	flex-direction: column;
	align-items: stretch;
	gap: 0 !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

.dea-header-primary {
	display: flex !important;
	width: 100%;
	max-height: none;
	min-height: 0;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	box-sizing: border-box;
	padding-top: 0.65rem;
	padding-bottom: 0.65rem;
	overflow: visible;
	visibility: visible;
	opacity: 1;
	-webkit-transform: none;
	transform: none;
	transition: none;
}

.dea-site-identity {
	display: flex !important;
	min-width: 0;
	align-items: center;
	flex: 1 1 auto;
	flex-wrap: nowrap !important;
	gap: 0.75rem;
}

.dea-header-primary .wp-block-site-logo {
	flex: 0 0 auto;
}

.dea-header-primary .wp-block-site-logo img {
	width: 56px !important;
	height: auto !important;
}

.dea-header-primary .hostinger-ai-site-title {
	min-width: 0;
}

.dea-header-primary > .dea-header-tools,
.dea-header-primary > .dea-accessibility {
	flex: 0 0 auto;
	margin-inline-start: auto;
}

.dea-header-tools {
	display: flex;
	position: relative;
	align-items: center;
	justify-content: flex-end;
	gap: 0.5rem;
	font-size: var(--dea-menu-font-size);
	line-height: 1.2;
}

.dea-language-switcher,
.dea-language-list,
.dea-language-item {
	margin: 0;
	padding: 0;
}

.dea-language-list {
	display: flex;
	align-items: center;
	gap: 0.2rem;
	list-style: none;
}

.dea-language-link {
	display: inline-flex;
	width: 44px;
	min-width: 44px;
	height: 44px;
	min-height: 44px;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	padding: 0.35rem;
	color: var(--wp--preset--color--color2, var(--dea-green-dark));
	text-decoration: none;
	background: rgb(255 255 255 / 20%);
	border: 2px solid currentColor;
	border-radius: 0.45rem;
	font-size: 16px;
	font-weight: 800;
	line-height: 1;
	transition: color 160ms ease, background-color 160ms ease;
}

.dea-language-link:hover {
	color: #ffffff;
	background: var(--dea-green-dark);
}

.dea-language-link[aria-current="page"] {
	color: #ffffff;
	text-decoration: underline;
	text-decoration-thickness: 0.14em;
	text-underline-offset: 0.15em;
	background: var(--dea-green);
	box-shadow: inset 0 -3px 0 #ffffff;
}

.dea-header-navigation-row {
	display: flex !important;
	width: 100%;
	min-width: 0;
	min-height: 3.25rem;
	align-items: center;
	justify-content: space-between !important;
	flex-wrap: nowrap !important;
	gap: 0.75rem;
	box-sizing: border-box;
	padding-top: 0.35rem;
	padding-bottom: 0.35rem;
	border-top: 1px solid rgb(14 79 56 / 22%);
}

.dea-header-navigation-row .hostinger-ai-site-navigation {
	width: 100%;
	min-width: 0;
	flex: 1 1 auto;
}

.dea-header-navigation-row .wp-block-navigation__container {
	width: 100%;
	justify-content: center;
	column-gap: clamp(0.75rem, 2vw, 1.75rem);
	row-gap: 0.5rem;
}

.dea-nav-toggle-label {
	font-weight: 750;
	line-height: 1.2;
}

.dea-smart-header.dea-header-hidden {
	-webkit-transform: translate3d(0, calc(0px - var(--dea-header-primary-height)), 0) !important;
	transform: translate3d(0, calc(0px - var(--dea-header-primary-height)), 0) !important;
	box-shadow: 0 0.25rem 0.75rem rgb(0 0 0 / 12%);
}

.dea-smart-header.dea-header-hidden .dea-header-primary {
	max-height: none !important;
	padding-top: 0.65rem !important;
	padding-bottom: 0.65rem !important;
	overflow: visible !important;
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
	-webkit-transform: none;
	transform: none;
	transition: none;
}

.admin-bar .dea-smart-header {
	top: 32px !important;
}

.dea-accessibility {
	position: relative;
	z-index: 10000;
	font-size: var(--dea-menu-font-size);
	line-height: 1.5;
}

.dea-trigger,
.dea-close,
.dea-font-step,
.dea-option,
.dea-reset {
	font: inherit;
	touch-action: manipulation;
}

.dea-trigger {
	display: inline-flex;
	position: relative;
	width: 44px;
	min-width: 44px;
	height: 44px;
	min-height: 44px;
	align-items: center;
	justify-content: center;
	padding: 8px;
	color: var(--wp--preset--color--color2, var(--dea-green-dark));
	background: transparent;
	border: 2px solid currentColor;
	border-radius: 50%;
	cursor: pointer;
	font-weight: 700;
}

.dea-trigger:hover {
	background: rgb(255 255 255 / 16%);
}

.dea-trigger-tooltip {
	position: absolute;
	z-index: 2;
	top: calc(100% + 0.55rem);
	right: 0;
	width: max-content;
	max-width: min(18rem, calc(100vw - 2rem));
	padding: 0.4em 0.65em;
	visibility: hidden;
	color: #ffffff;
	font-size: 0.875em;
	line-height: 1.3;
	white-space: normal;
	background: #17221d;
	border-radius: 0.35rem;
	box-shadow: 0 0.35rem 1rem rgb(0 0 0 / 25%);
	opacity: 0;
	pointer-events: none;
	transform: translateY(-0.2rem);
	transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.dea-trigger:hover .dea-trigger-tooltip,
.dea-trigger:focus-visible .dea-trigger-tooltip {
	visibility: visible;
	opacity: 1;
	transform: translateY(0);
}

.dea-trigger[aria-expanded="true"] .dea-trigger-tooltip {
	display: none;
}

.dea-trigger-icon {
	flex: 0 0 auto;
	width: 24px;
	height: 24px;
}

.dea-panel {
	position: absolute;
	top: calc(100% + 0.75rem);
	right: 0;
	width: min(23rem, calc(100vw - 2rem));
	max-height: min(42rem, calc(100vh - 7rem));
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 1.1rem;
	color: var(--dea-panel-text);
	background: var(--dea-panel-background);
	border: 2px solid var(--dea-green);
	border-radius: 0.75rem;
	box-shadow: 0 1rem 2.5rem rgb(0 0 0 / 25%);
	-webkit-overflow-scrolling: touch;
}

.dea-panel[hidden] {
	display: none !important;
}

.dea-panel-header,
.dea-font-label-row,
.dea-option {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.dea-panel-header {
	margin-bottom: 1rem;
}

.dea-panel-title {
	margin: 0;
	color: inherit;
	font-size: 1.2em;
	line-height: 1.3;
	font-weight: 800;
}

.dea-close {
	display: inline-grid;
	min-width: 2.75rem;
	min-height: 2.75rem;
	place-items: center;
	padding: 0;
	color: inherit;
	background: transparent;
	border: 2px solid transparent;
	border-radius: 0.45rem;
	cursor: pointer;
	font-size: 1.8em;
	line-height: 1;
}

.dea-close:hover {
	background: #eef5f1;
}

.dea-font-control {
	padding: 0.85rem 0;
	border-top: 1px solid #cad7d0;
	border-bottom: 1px solid #cad7d0;
}

.dea-font-label-row {
	font-weight: 700;
}

.dea-font-adjuster {
	display: grid;
	grid-template-columns: 44px minmax(6rem, 1fr) 44px;
	align-items: center;
	gap: 0.6rem;
	margin-top: 0.45rem;
}

.dea-font-step {
	display: inline-grid;
	width: 44px;
	min-width: 44px;
	height: 44px;
	min-height: 44px;
	place-items: center;
	padding: 0;
	color: var(--dea-green-dark);
	background: #f2f7f4;
	border: 2px solid var(--dea-green);
	border-radius: 0.45rem;
	cursor: pointer;
	font-weight: 800;
	line-height: 1;
}

.dea-font-step:hover:not(:disabled) {
	color: #ffffff;
	background: var(--dea-green);
}

.dea-font-step:disabled {
	cursor: not-allowed;
	opacity: 0.45;
}

.dea-font-range {
	width: 100%;
	min-height: 2.75rem;
	margin: 0;
	accent-color: var(--dea-green);
	cursor: pointer;
}

.dea-option-list {
	display: grid;
	gap: 0.35rem;
	padding: 0.8rem 0;
}

.dea-option {
	width: 100%;
	min-height: 3rem;
	padding: 0.55rem 0.25rem;
	color: inherit;
	text-align: left;
	background: transparent;
	border: 0;
	border-bottom: 1px solid #e1e8e4;
	cursor: pointer;
}

.dea-option:hover {
	color: var(--dea-green-dark);
	background: #f2f7f4;
}

.dea-switch {
	position: relative;
	flex: 0 0 auto;
	width: 2.8rem;
	height: 1.55rem;
	background: #67756e;
	border: 2px solid transparent;
	border-radius: 999px;
	transition: background-color 160ms ease;
}

.dea-switch::after {
	position: absolute;
	top: 0.15rem;
	left: 0.15rem;
	width: 1rem;
	height: 1rem;
	content: "";
	background: #ffffff;
	border-radius: 50%;
	transition: transform 160ms ease;
}

.dea-option[aria-pressed="true"] .dea-switch {
	background: var(--dea-green);
}

.dea-option[aria-pressed="true"] .dea-switch::after {
	transform: translateX(1.2rem);
}

.dea-reset {
	width: 100%;
	min-height: 2.75rem;
	padding: 0.6rem 0.8rem;
	color: #ffffff;
	background: var(--dea-green);
	border: 2px solid var(--dea-green);
	border-radius: 0.5rem;
	cursor: pointer;
	font-weight: 800;
}

.dea-reset:hover {
	background: var(--dea-green-dark);
	border-color: var(--dea-green-dark);
}

html body :where(
	a[href],
	button,
	input:not([type="hidden"]),
	select,
	textarea,
	summary,
	[tabindex]:not([tabindex="-1"])
):focus-visible {
	outline: 3px solid var(--dea-focus) !important;
	outline-offset: 3px !important;
	box-shadow: 0 0 0 6px #111111 !important;
}

.dea-sr-only {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* User preference: heavier body text. */
html.dea-bold-text body {
	font-weight: 700;
}

html.dea-bold-text body :where(p, li, dt, dd, a, button, label, input, textarea, select, blockquote, figcaption, td, th) {
	font-weight: 700 !important;
}

/* User preference: increase spacing for easier tracking while reading. */
html.dea-readable-spacing body :where(main, footer) :where(p, li, dt, dd, blockquote, figcaption, td, th) {
	line-height: 1.75 !important;
	letter-spacing: 0.06em !important;
	word-spacing: 0.12em !important;
}

html.dea-readable-spacing body :where(main, footer) p {
	margin-block-end: 1.5em !important;
}

/* User preference: hide content images while preserving the site logo and UI icons. */
html.dea-hide-images main :where(img, picture),
html.dea-hide-images main .wp-block-cover__image-background,
html.dea-hide-images main .wp-block-post-featured-image img {
	display: none !important;
}

html.dea-hide-images main :where(.wp-block-cover, [style*="background-image"]) {
	background-image: none !important;
}

/* User preference: stronger black, white and yellow contrast scheme. */
html.dea-high-contrast body,
html.dea-high-contrast .wp-site-blocks {
	color: #ffffff !important;
	background: #000000 !important;
}

html.dea-high-contrast :where(header, main, footer, section, article, aside, nav, .wp-block-group, .has-background) {
	color: #ffffff !important;
	background-color: #000000 !important;
	border-color: #ffffff !important;
}

html.dea-high-contrast :where(.wp-block-cover, [style*="background-image"]) {
	background-image: none !important;
}

html.dea-high-contrast .wp-block-cover__image-background {
	opacity: 0 !important;
}

html.dea-high-contrast a:not(.wp-element-button):not(.wp-block-button__link) {
	color: #ffeb3b !important;
}

html.dea-high-contrast :where(.wp-element-button, .wp-block-button__link) {
	color: #000000 !important;
	background: #ffeb3b !important;
	border-color: #ffffff !important;
}

html.dea-high-contrast :where(button, input, select, textarea) {
	color: #ffffff !important;
	background-color: #000000 !important;
	border-color: #ffffff !important;
}

html.dea-high-contrast :where(input, textarea)::placeholder {
	color: #ffffff !important;
	opacity: 1;
}

html.dea-high-contrast .dea-panel {
	color: #ffffff !important;
	background: #000000 !important;
	border-color: #ffffff !important;
}

html.dea-high-contrast .dea-option:hover,
html.dea-high-contrast .dea-close:hover {
	color: #ffeb3b !important;
	background: #171717 !important;
}

html.dea-high-contrast .dea-reset {
	color: #000000 !important;
	background: #ffeb3b !important;
}

html.dea-high-contrast .dea-trigger-tooltip {
	color: #000000 !important;
	background: #ffeb3b !important;
	border: 2px solid #ffffff;
}

html.dea-high-contrast .dea-language-link {
	color: #ffeb3b !important;
	background: #000000 !important;
	border-color: #ffffff !important;
}

html.dea-high-contrast .dea-language-link[aria-current="page"] {
	color: #000000 !important;
	background: #ffeb3b !important;
	box-shadow: inset 0 -3px 0 #ffffff !important;
}

html.dea-high-contrast .dea-option[aria-pressed="true"] .dea-switch {
	background: #ffeb3b !important;
}

html.dea-high-contrast .dea-option[aria-pressed="true"] .dea-switch::after {
	background: #000000 !important;
}

html.dea-high-contrast ::selection {
	color: #000000;
	background: #00ffff;
}

/* User preference: make text links easier to identify. */
html.dea-underline-links a:not(.wp-element-button):not(.wp-block-button__link) {
	text-decoration: underline !important;
	text-decoration-thickness: 0.12em !important;
	text-underline-offset: 0.2em !important;
}

/* User preference: stop non-essential movement. */
html.dea-reduce-motion *,
html.dea-reduce-motion *::before,
html.dea-reduce-motion *::after {
	scroll-behavior: auto !important;
	animation-duration: 0.01ms !important;
	animation-iteration-count: 1 !important;
	transition-duration: 0.01ms !important;
}

@media (max-width: 600px) {
	.dea-smart-header {
		transition: none !important;
	}

	.hostinger-ai-menu-wrapper.dea-header-layout {
		display: flex !important;
		align-items: stretch;
		gap: 0 !important;
		padding-top: 0 !important;
		padding-bottom: 0 !important;
	}

	.dea-header-primary {
		gap: 0.5rem;
		padding-top: 0.5rem;
		padding-bottom: 0.5rem;
		transition: none !important;
	}

	.dea-header-tools {
		gap: 0.35rem;
	}

	.dea-language-list {
		gap: 0.1rem;
	}

	/* On narrow screens the visible code is always the language to switch to. */
	.dea-language-link[aria-current="page"] {
		display: none;
	}

	.dea-smart-header.dea-header-hidden .dea-header-primary {
		padding-top: 0.5rem !important;
		padding-bottom: 0.5rem !important;
		transition: none !important;
	}

	.dea-site-identity {
		min-width: 0;
		gap: 0.5rem;
	}

	.hostinger-ai-menu .wp-block-site-logo {
		flex: 0 0 auto;
	}

	.hostinger-ai-menu .wp-block-site-logo img {
		width: 44px !important;
		height: auto !important;
	}

	.hostinger-ai-site-title {
		min-width: 0;
		font-size: 1rem !important;
		line-height: 1.25 !important;
	}

	.hostinger-ai-site-title a {
		overflow-wrap: anywhere;
	}

	.dea-header-navigation-row {
		width: 100%;
		min-height: 3rem;
		flex-wrap: nowrap !important;
		justify-content: space-between !important;
		gap: 0.4rem;
		padding-top: 0.2rem;
		padding-bottom: 0.2rem;
	}

	.dea-header-navigation-row .hostinger-ai-site-navigation {
		width: 100% !important;
		flex: 1 1 100%;
	}

	html body .dea-header-navigation-row .wp-block-navigation__responsive-container-open {
		display: flex !important;
		width: 100% !important;
		min-width: 44px;
		min-height: 44px;
		align-items: center;
		justify-content: center;
		gap: 0.55rem;
		padding: 0.45rem 0.75rem;
		color: var(--wp--preset--color--color2, var(--dea-green-dark));
		background: rgb(255 255 255 / 24%);
		border: 2px solid transparent;
		border-radius: 0.45rem;
		font: inherit;
		font-weight: 750;
	}

	html body .dea-header-navigation-row .wp-block-navigation__responsive-container-open:hover {
		background: rgb(255 255 255 / 42%);
	}

	.dea-header-navigation-row .wp-block-navigation__responsive-container-close {
		display: inline-grid;
		min-width: 44px;
		min-height: 44px;
		place-items: center;
	}

	.dea-panel {
		position: fixed;
		top: max(1rem, env(safe-area-inset-top));
		right: max(1rem, env(safe-area-inset-right));
		left: max(1rem, env(safe-area-inset-left));
		width: auto;
		max-height: calc(100vh - 2rem);
		max-height: calc(100dvh - 2rem - env(safe-area-inset-top) - env(safe-area-inset-bottom));
	}
}

@media (max-width: 782px) {
	.admin-bar .dea-smart-header {
		top: 46px !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dea-smart-header {
		transition: none !important;
	}

	.dea-header-primary,
	.dea-smart-header.dea-header-hidden .dea-header-primary {
		transition: none !important;
	}

	.dea-header-tools *,
	.dea-header-tools *::before,
	.dea-header-tools *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}

@media (forced-colors: active) {
	html body :where(
		a[href],
		button,
		input:not([type="hidden"]),
		select,
		textarea,
		summary,
		[tabindex]:not([tabindex="-1"])
	):focus-visible {
		outline-color: Highlight !important;
		box-shadow: none !important;
	}

	.dea-trigger,
	.dea-language-link,
	.dea-panel,
	.dea-font-step,
	.dea-option,
	.dea-reset {
		border-color: ButtonText;
	}
}

@media print {
	.dea-header-tools,
	.dea-accessibility {
		display: none !important;
	}

	.dea-smart-header {
		position: static !important;
		-webkit-transform: none !important;
		transform: none !important;
	}

	.dea-smart-header.dea-header-hidden .dea-header-primary {
		max-height: none !important;
		padding-top: 0.65rem !important;
		padding-bottom: 0.65rem !important;
		visibility: visible !important;
		opacity: 1 !important;
		-webkit-transform: none !important;
		transform: none !important;
	}
}
