.biovela-header {
	position: fixed;
	inset: 0 0 auto;
	z-index: 1030;
	color: #fff;
	background: #283986;
}

.admin-bar .biovela-header {
	top: 32px;
}

.biovela-header__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: center;
	gap: 1rem;
	min-height: 85px;
}

.biovela-header__brand {
	display: block;
	justify-self: start;
}

.biovela-header__brand img {
	display: block;
	width: 132px;
	height: auto;
}

.biovela-header__nav ul {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(1.25rem, 3vw, 2.75rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.biovela-header__nav a {
	display: block;
	padding-block: 0.625rem;
	color: inherit;
	text-decoration: none;
	white-space: nowrap;
}

.biovela-header__nav a:hover {
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.biovela-header__actions {
	display: flex;
	align-items: center;
	justify-self: end;
	gap: 0.75rem;
}

.biovela-header__search {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 32px;
	width: 136px;
	min-height: 28px;
	border-radius: 999px;
	background: #fff;
	color: #283986;
}

.biovela-header__search input[type="search"],
.biovela-header__search button {
	min-width: 0;
	margin: 0;
	border: 0;
	border-radius: inherit;
	background: transparent;
	color: inherit;
}

.biovela-header__search input[type="search"] {
	width: 100%;
	padding: 0 0 0 0.75rem;
	line-height: 1.25;
}

.biovela-header__search button {
	display: grid;
	place-items: center;
	padding: 0;
	cursor: pointer;
}

.biovela-header__search button span {
	position: relative;
	width: 13px;
	height: 13px;
	margin: 0 3px 3px 0;
	border: 2px solid currentColor;
	border-radius: 50%;
}

.biovela-header__search button span::after {
	position: absolute;
	top: 8px;
	left: 8px;
	width: 7px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	content: "";
	transform: rotate(45deg);
	transform-origin: left center;
}

.biovela-header__search input[type="search"]:focus,
.biovela-header__search button:focus {
	outline: none;
	box-shadow: none;
}

.biovela-header__search button:focus-visible {
	background: #e5e9f6;
}

.biovela-header a:focus-visible,
.biovela-header__languages summary:focus-visible,
.biovela-header__search:focus-within {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.biovela-header__languages {
	position: relative;
}

.biovela-header__languages summary {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	cursor: pointer;
	padding: 0.5rem 0;
	list-style: none;
	white-space: nowrap;
}

.biovela-header__languages summary::-webkit-details-marker {
	display: none;
}

.biovela-header__languages summary::after {
	width: 0.55rem;
	height: 0.55rem;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	content: "";
	transform: translateY(-2px) rotate(45deg);
}

.biovela-header__languages[open] summary::after {
	transform: translateY(2px) rotate(225deg);
}

.biovela-header__languages ul {
	position: absolute;
	inset-block-start: 100%;
	inset-inline-end: 0;
	min-width: 5rem;
	margin: 0;
	padding: 0.25rem;
	border-radius: 0.375rem;
	background: #fff;
	color: #283986;
	box-shadow: 0 4px 16px #0003;
	list-style: none;
	text-transform: uppercase;
}

.biovela-header__languages a {
	display: block;
	padding: 0.375rem 0.625rem;
	border-radius: 0.25rem;
	color: inherit;
	text-decoration: none;
	white-space: nowrap;
}

.biovela-header__languages a:hover,
.biovela-header__languages a[aria-current="page"] {
	background: #e5e9f6;
}

.biovela-header__languages a:focus-visible {
	outline-color: currentColor;
	outline-offset: -2px;
}

@media (min-width: 768px) and (max-width: 782px) {
	.admin-bar .biovela-header {
		top: 46px;
	}
}

