/**
 * Native Site Editor header. Every selector is scoped so the registered,
 * unreferenced classic renderer remains an exact rollback source.
 */

.jeo-native-header {
	--jeo-header-control-bg: #f5f5f5;
	--jeo-header-control-fg: #191e23;
	--jeo-header-panel-bg: #fff;
	color: #191e23;
	font-family: var(--primary-font, "Open Sans Condensed", "Open Sans", sans-serif);
	margin: 0;
	position: relative;
	z-index: 100;
}

.jeo-native-header > .wp-block-group,
.jeo-native-header .wp-block-template-part {
	margin-block: 0;
}

.jeo-native-header .jeo-native-header__inner {
	box-sizing: border-box;
	margin-inline: auto;
	max-width: 90%;
	width: 1200px;
}

.jeo-native-header__top {
	background: var(--primary, #59811a);
	color: #fff;
	min-height: 35px;
}

.jeo-native-header__top-inner {
	min-height: 35px;
}

.jeo-native-header__social {
	gap: 0.35rem;
	margin: 0;
}

.jeo-native-header__social .wp-social-link,
.jeo-native-header__social .wp-social-link-anchor {
	background: transparent;
	color: #fff !important;
}

.jeo-native-header__middle {
	background: var(--jeo-header-panel-bg);
	min-height: 116px;
}

.jeo-native-header__middle-inner {
	min-height: 116px;
}

.jeo-native-header__logos {
	margin: 0;
}

.jeo-native-header__logos .wp-block-site-logo,
.jeo-native-header__logos .wp-block-image {
	margin: 0;
}

.jeo-native-header__logos img {
	height: auto;
	max-height: 92px;
	max-width: 260px;
	width: auto;
}

.jeo-native-header__dark-logo {
	display: none;
}

.jeo-native-header__search {
	margin: 0;
	position: relative;
}

.jeo-native-header__search > summary {
	align-items: center;
	background: transparent;
	border: 0;
	border-radius: 999px;
	box-sizing: border-box;
	color: inherit;
	cursor: pointer;
	display: inline-flex;
	font-size: 0;
	font-weight: 700;
	height: 52px;
	justify-content: center;
	list-style: none;
	min-height: 44px;
	min-width: 52px;
	padding: 0;
	text-transform: uppercase;
}

.jeo-native-header__search > summary::marker,
.jeo-native-header__font-size > summary::marker,
.jeo-native-header .is-style-jeo-native-share > summary::marker {
	content: "";
}

.jeo-native-header__search > summary::before {
	background: currentColor;
	content: "";
	height: 28px;
	mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M10 4a6 6 0 1 0 3.87 10.59L19.28 20 21 18.28l-5.41-5.41A6 6 0 0 0 10 4zm0 2a4 4 0 1 1 0 8 4 4 0 0 1 0-8z%27/%3E%3C/svg%3E") center/contain no-repeat;
	width: 28px;
}

.jeo-native-header__search[open] > summary::before {
	mask-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27m6.4 5 5.6 5.6L17.6 5 19 6.4 13.4 12l5.6 5.6-1.4 1.4-5.6-5.6L6.4 19 5 17.6l5.6-5.6L5 6.4z%27/%3E%3C/svg%3E");
}

.jeo-native-header__search > .jeo-native-header__search-prompt,
.jeo-native-header__search > .wp-block-search {
	background: #333;
	box-sizing: border-box;
	color: #fff;
	left: 0;
	margin: 0;
	position: fixed;
	right: 0;
	top: var(--jeo-search-panel-top, 196px);
	width: 100vw;
	z-index: 1002;
}

.jeo-native-header__search > .jeo-native-header__search-prompt {
	color: #a7adb4;
	font-size: 1.125rem;
	font-weight: 700;
	padding: clamp(2rem, 8vh, 6.25rem) max(5vw, calc((100vw - 700px) / 2)) 1rem;
	text-transform: uppercase;
}

.jeo-native-header__search > .wp-block-search {
	bottom: 0;
	display: block;
	overflow: auto;
	padding: 0 max(5vw, calc((100vw - 700px) / 2)) 2rem;
	top: calc(var(--jeo-search-panel-top, 196px) + clamp(5rem, 14vh, 9rem));
}

.jeo-native-header__search .wp-block-search__input {
	background: transparent;
	border: 2px solid #767676;
	border-radius: 10px 0 0 10px;
	color: #fff;
	min-height: 56px;
}

.jeo-native-header__search .wp-block-search__button {
	background: var(--primary, #59811a);
	border-radius: 0 10px 10px 0;
	color: #fff;
	min-height: 56px;
}

.jeo-native-header__navigation-band {
	background: var(--secondary, #333);
	color: #fff;
	min-height: 45px;
	position: sticky;
	top: 0;
	z-index: 1000;
}

.jeo-native-header__navigation-inner {
	min-height: 45px;
}

.jeo-native-header__navigation,
.jeo-native-header__navigation .wp-block-navigation__container {
	color: #fff;
	font-size: 0.875rem;
	font-weight: 700;
	gap: 1.25rem;
	text-transform: uppercase;
}

.jeo-native-header__navigation {
	flex: 1 1 auto;
	min-width: 0;
}

.jeo-native-header__navigation .wp-block-navigation-item__content {
	color: inherit;
	padding-block: 0.65rem;
}

.jeo-native-header__navigation .wp-block-navigation__submenu-container {
	background: var(--secondary, #333);
	border: 0;
	color: #fff;
}

.jeo-native-header__discovery .wp-block-button__link {
	background: var(--primary, #59811a);
	border-radius: 999px;
	color: #fff;
	font-size: 0.875rem;
	font-weight: 700;
	min-height: 32px;
	padding: 0.35rem 1.5rem;
	text-transform: uppercase;
}

.jeo-native-header__discovery {
	flex: 0 0 auto;
}

.jeo-native-header > .jeo-native-header__toolbar {
	display: none;
}

.jeo-native-navigation-overlay {
	background: var(--jeo-header-panel-bg, #fff);
	box-sizing: border-box;
	color: var(--jeo-header-control-fg, #191e23);
	height: 100dvh;
	inset: 0;
	min-height: 100dvh !important;
	overflow-y: auto;
	padding: 4.5rem max(5vw, 1.25rem) 5rem;
	position: fixed;
	width: 100vw;
}

.jeo-native-navigation-overlay__close {
	left: 5%;
	margin: 0;
	position: absolute;
	top: 3px;
	z-index: 2;
}

.admin-bar .jeo-native-navigation-overlay__close {
	top: 49px;
}

.jeo-native-navigation-overlay__close .wp-block-navigation-overlay-close {
	align-items: center;
	background: transparent;
	border: 0;
	color: inherit;
	display: inline-flex;
	height: 44px;
	justify-content: center;
	width: 44px;
}

.jeo-native-navigation-overlay .jeo-native-header__overlay-navigation,
.jeo-native-navigation-overlay .wp-block-navigation__container {
	align-items: stretch;
	color: inherit;
	font-size: 1.125rem;
	gap: 0.75rem;
	text-transform: uppercase;
}

.jeo-native-navigation-overlay__discovery {
	margin-block-start: 1.5rem;
}

.jeo-native-navigation-overlay__discovery .wp-block-button__link {
	background: var(--primary, #59811a);
	border-radius: 999px;
	color: #fff;
	font-weight: 700;
	min-height: 44px;
	padding: 0.65rem 1.5rem;
	text-transform: uppercase;
}

.jeo-native-header__navigation .wp-block-navigation__responsive-container.is-menu-open {
	box-sizing: border-box;
	inset: 0;
	max-width: none;
	width: 100vw;
}

.jeo-native-language-shell {
	display: inline-flex;
	max-width: 100%;
}

.jeo-native-language-toggle {
	display: none;
}

.jeo-native-language-selector {
	align-items: center;
	color: #fff;
	display: inline-flex;
	max-width: 100%;
}

.jeo-native-language-selector::before,
.jeo-native-language-toggle::before {
	background: currentColor;
	content: "";
	display: block;
	flex: 0 0 22px;
	height: 22px;
	mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M17.5 10h-1.7l-3.7 10.5h1.7l.9-2.6h3.9l.9 2.6h1.7L17.5 10zm-2.2 6.3 1.4-4 1.4 4h-2.8zm-4.8-3.8c1.6-1.8 2.9-3.6 3.7-5.7H16V5.2h-5.8V3H8.8v2.2H3v1.5h9.6c-.7 1.6-1.8 3.1-3.1 4.6C8.6 10.2 7.8 9 7.2 8H5.6c.6 1.4 1.7 2.9 2.9 4.4l-2.4 2.4c-.3.4-.7.8-1.1 1.2l1 1 1.2-1.2c.8-.8 1.6-1.5 2.3-2.3.8.9 1.7 1.7 2.5 2.5l.6-1.5c-.7-.6-1.4-1.3-2.1-2z%27/%3E%3C/svg%3E") center/contain no-repeat;
	width: 22px;
}

.jeo-native-language-selector::before {
	margin-inline-end: 0.45rem;
}

.jeo-native-language-selector ul {
	align-items: center;
	display: flex;
	gap: 1.1rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.jeo-native-language-selector li {
	list-style: none;
	margin: 0;
	padding: 0;
}

.jeo-native-language-selector a,
.jeo-native-language-selector [aria-current="page"],
.jeo-native-language-selector [aria-disabled="true"] {
	color: inherit;
	display: inline-flex;
	font-size: 0.875rem;
	min-height: 35px;
	align-items: center;
	text-decoration: none;
}

.jeo-native-language-selector [aria-current="page"] {
	border-bottom: 2px solid currentColor;
	font-weight: 700;
}

.jeo-native-header :is(a, button, summary):focus-visible {
	outline: 3px solid #f0a202;
	outline-offset: 2px;
}

.dark-theme .jeo-native-header,
html.jeo-dark-theme .jeo-native-header {
	--jeo-header-control-bg: #23282d;
	--jeo-header-control-fg: #f5f5f5;
	--jeo-header-panel-bg: #191e23;
	color: #fff;
}

.dark-theme .jeo-native-header__site-logo,
.dark-theme .jeo-native-header__light-logo,
html.jeo-dark-theme .jeo-native-header__site-logo,
html.jeo-dark-theme .jeo-native-header__light-logo {
	display: none;
}

.dark-theme .jeo-native-header__dark-logo,
html.jeo-dark-theme .jeo-native-header__dark-logo {
	display: block;
}

@media (min-width: 783px) and (max-width: 1100px) {
	.jeo-native-header__navigation-inner {
		gap: 1rem;
	}

	.jeo-native-header__navigation {
		flex: 0 0 44px;
		height: 45px;
		width: 44px;
	}

	.jeo-native-header__navigation .wp-block-navigation__responsive-container:not(.is-menu-open) {
		display: none;
	}

	.jeo-native-header__navigation .wp-block-navigation__responsive-container-open {
		align-items: center;
		color: inherit;
		display: inline-flex !important;
		height: 45px;
		justify-content: center;
		min-height: 44px;
		min-width: 44px;
	}
}

@media (max-width: 782px) {
	.jeo-native-header {
		min-height: 50px;
	}

	.jeo-native-header__top {
		background: transparent;
		min-height: 0;
	}

	.jeo-native-header__top-inner {
		min-height: 0;
	}

	.jeo-native-header__social,
	.jeo-native-header__discovery {
		display: none;
	}

	.jeo-native-header__middle {
		box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
		left: 0;
		min-height: 50px;
		position: fixed;
		top: 0;
		width: 100%;
		z-index: 1000;
	}

	.admin-bar .jeo-native-header__middle {
		top: 46px;
	}

	.jeo-native-header__navigation-band {
		background: transparent;
		color: inherit;
		left: 5%;
		min-height: 0;
		position: fixed;
		top: 0;
		width: 44px;
		z-index: 1001;
	}

	.admin-bar .jeo-native-header__navigation-band {
		top: 46px;
	}

	.jeo-native-header .jeo-native-header__navigation-inner {
		display: block;
		margin: 0;
		max-width: none;
		min-height: 50px;
		width: 44px;
	}

	.jeo-native-header__navigation {
		height: 50px;
		width: 44px;
	}

	.jeo-native-header__navigation .wp-block-navigation__responsive-container:not(.is-menu-open) {
		display: none;
	}

	.jeo-native-header__navigation .wp-block-navigation__responsive-container-open {
		align-items: center;
		display: inline-flex;
		height: 50px;
		justify-content: center;
		min-height: 44px;
		min-width: 44px;
	}

	.jeo-native-header .jeo-native-header__middle-inner {
		display: grid;
		gap: 0.5rem;
		grid-template-columns: minmax(44px, 1fr) auto minmax(44px, 1fr);
		min-height: 50px;
	}

	.jeo-native-header__logos img {
		max-height: 40px;
		max-width: 150px;
	}

	.jeo-native-header__overlay {
		display: block;
		justify-self: start;
		order: -1;
		width: 44px;
	}

	.jeo-native-header__logos {
		grid-column: 2;
		justify-self: center;
	}

	.jeo-native-header__search {
		grid-column: 3;
		justify-self: end;
		padding: 0;
		width: 44px;
	}

	.jeo-native-header__search > summary {
		font-size: 0;
		min-width: 44px;
		padding-inline: 0.5rem;
	}

	.jeo-native-header__search > summary::before {
		font-size: 1.5rem;
		margin: 0;
	}

	.jeo-native-header__search > .wp-block-search {
		padding-inline: 5%;
		top: calc(var(--jeo-search-panel-top, 50px) + 5rem);
		width: 100vw;
	}

	.jeo-native-header__search > .jeo-native-header__search-prompt {
		padding: 1.5rem 5% 0.75rem;
		top: var(--jeo-search-panel-top, 50px);
	}

	.jeo-native-header > .jeo-native-header__toolbar {
		align-items: stretch;
		background: var(--jeo-header-control-bg);
		bottom: 0;
		box-shadow: 2px 0 3px rgba(0, 0, 0, 0.3);
		display: flex;
		height: 60px;
		justify-content: space-evenly;
		left: 0;
		position: fixed;
		width: 100%;
		z-index: 1001;
	}

	.jeo-native-header:has(.jeo-native-language-shell) .jeo-native-header__toolbar {
		left: 25%;
		width: 75%;
	}

	.jeo-native-header__toolbar > * {
		align-items: stretch;
		display: flex;
		flex: 1 1 0;
		justify-content: center;
		margin: 0;
		max-width: 25vw;
		position: relative;
	}

	.jeo-native-header__toolbar .wp-block-button,
	.jeo-native-header__toolbar .wp-block-button__link,
	.jeo-native-header__toolbar summary {
		align-items: center;
		background: transparent;
		border: 0;
		border-radius: 0;
		box-sizing: border-box;
		color: var(--jeo-header-control-fg);
		display: flex;
		font-size: 0.75rem;
		font-weight: 700;
		height: 60px;
		justify-content: center;
		line-height: 1.15;
		margin: 0;
		min-width: 44px;
		padding: 0.5rem;
		text-align: center;
		text-transform: uppercase;
		width: 100%;
	}

	.jeo-native-header__font-size,
	.jeo-native-header .is-style-jeo-native-share {
		margin: 0;
		position: static;
	}

	.jeo-native-header .is-style-jeo-native-share {
		position: relative;
	}

	.jeo-native-header__font-size > .wp-block-buttons,
	.jeo-native-header .is-style-jeo-native-share > .jeo-sharing__links {
		background: var(--jeo-header-control-bg);
		border-radius: 14px;
		bottom: 70px;
		box-shadow: 2px 0 3px rgba(0, 0, 0, 0.3);
		box-sizing: border-box;
		color: var(--jeo-header-control-fg);
		gap: 0.25rem;
		min-width: 132px;
		padding: 0.5rem;
		position: absolute;
	}

	.jeo-native-header__font-size .wp-block-button__link {
		border-radius: 999px;
		font-size: 1rem;
		height: 44px;
	}

	.jeo-native-font-status {
		clip: rect(1px, 1px, 1px, 1px);
		clip-path: inset(50%);
		height: 1px;
		overflow: hidden;
		position: absolute;
		width: 1px;
	}

	.jeo-native-header .is-style-jeo-native-share > .jeo-sharing__links {
		align-items: center;
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: center;
		left: 50%;
		transform: translateX(-50%);
		width: 132px;
	}

	.jeo-native-header .is-style-jeo-native-share .wp-social-link {
		background: var(--primary, #59811a);
	}

	.jeo-native-header .is-style-jeo-native-share > summary {
		flex-direction: column;
		gap: 0.15rem;
	}

	.jeo-native-header .is-style-jeo-native-share > summary::before {
		background: currentColor;
		content: "";
		height: 20px;
		mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M18 16.1c-.8 0-1.5.3-2 .8L8.9 12.7c.1-.2.1-.5.1-.7s0-.5-.1-.7L16 7.1c.5.5 1.2.8 2 .8a3 3 0 1 0-3-3c0 .2 0 .5.1.7L8 9.8A3 3 0 1 0 8 14.2l7.1 4.2c-.1.2-.1.4-.1.7a3 3 0 1 0 3-3z%27/%3E%3C/svg%3E") center/contain no-repeat;
		width: 20px;
	}

	.jeo-native-navigation-overlay {
		padding-bottom: 5rem;
		padding-top: 4.5rem;
	}

	.jeo-native-header__language {
		align-items: stretch;
		background: var(--jeo-header-control-bg);
		bottom: 0;
		color: var(--jeo-header-control-fg);
		display: flex;
		height: 60px;
		justify-content: center;
		left: 0;
		position: fixed;
		width: 25%;
		z-index: 1002;
	}

	.jeo-native-language-shell {
		align-items: stretch;
		display: flex;
		position: static;
		width: 100%;
	}

	.jeo-native-language-toggle {
		align-items: center;
		background: transparent;
		border: 0;
		box-sizing: border-box;
		color: inherit;
		cursor: pointer;
		display: flex;
		flex-direction: column;
		font: inherit;
		font-size: 0.75rem;
		font-weight: 700;
		gap: 0.15rem;
		height: 60px;
		justify-content: center;
		padding: 0.35rem;
		text-transform: uppercase;
		width: 100%;
	}

	.jeo-native-language-toggle::before {
		height: 20px;
		width: 20px;
	}

	.jeo-native-language-selector {
		background: var(--jeo-header-control-bg);
		border-radius: 14px;
		bottom: 70px;
		box-shadow: 2px 0 3px rgba(0, 0, 0, 0.3);
		color: var(--jeo-header-control-fg);
		display: block;
		min-width: 180px;
		padding: 0.5rem;
		position: absolute;
	}

	.jeo-native-language-selector[hidden] {
		display: none !important;
	}

	.jeo-native-language-selector::before {
		display: none;
	}

	.jeo-native-language-selector ul {
		align-items: stretch;
		flex-direction: column;
		gap: 0;
	}

	.jeo-native-language-selector li,
	.jeo-native-language-selector a,
	.jeo-native-language-selector [aria-current="page"],
	.jeo-native-language-selector [aria-disabled="true"] {
		box-sizing: border-box;
		justify-content: center;
		min-height: 44px;
		width: 100%;
	}

	.jeo-native-language-selector [aria-current="page"] {
		border: 0;
		font-weight: 700;
	}

	body {
		padding-bottom: 60px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.jeo-native-header *,
	.jeo-native-header *::before,
	.jeo-native-header *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
