
.header-bottom {
	border-top: 1px solid var(--wp--preset--color--secondary-gray);
	border-bottom: 1px solid var(--wp--preset--color--secondary-gray);
}

.header-top .wp-block-search {
	display: flex;
	align-items: center;
	gap: 15px;
}

.header-top .wp-block-search .wp-block-search__input {
	border: 2px solid var(--wp--preset--color--main-gray);
	border-radius: 0;
}

.header-top .wp-block-loginout a {
	position: relative;
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	gap: 5px;
	text-decoration: none;
}

.header-top .wp-block-loginout a::before {
	content: "";
	width: 20px;
	height: 20px;
	background-image: url("/wp-content/themes/blogs-helsinki-2026/assets/icons/login_icon.svg");
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}

.header-top .wp-block-loginout a:hover {
	text-decoration: underline;
}

.header-top-left .wp-block-site-tagline {
	max-width: 600px;
}

.header-center .cover-image .no-cover-image {
	display: none;
}

.header-bottom .wp-block-navigation li.current-menu-item,
.header-bottom .wp-block-navigation li.current-menu-item ul.wp-block-navigation-submenu li.current-menu-item {
	color: var(--wp--preset--color--main-blue);
}

.header-bottom .wp-block-navigation li {
	padding: 15px 0;
}

.header-bottom .wp-block-navigation .has-child .wp-block-navigation__submenu-container > .wp-block-navigation-item > .wp-block-navigation-item__content {
	padding: 0 10px;
}

.header-bottom .wp-block-navigation li a {
	text-decoration: none;
}

.header-bottom .wp-block-navigation li a:hover,
.header-bottom .wp-block-navigation li button:hover {
	text-decoration: underline;
	color: var(--wp--preset--color--hover-blue);
}

.header-bottom .wp-block-site-title {
	word-break: break-word;
}

header .header-breadcrumb {
	display: none;
}

header .header-breadcrumb ul.breadcrumb-list {
	padding: 8px var(--wp--preset--spacing--50);
}

.show-on-mobile {
	display: none !important;
}

.header-mobile-only button.open-mobile-search-popup-button {
	background: none;
	border: none;
	width: auto;
	height: 30px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	color: var(--wp--preset--color--main-black);
	font-size: 18px;
	font-weight: 600;
}

.header-mobile-only button.open-mobile-search-popup-button span.icon {
	width: 24px;
	height: 24px;
	background-image: url("/wp-content/themes/blogs-helsinki-2026/assets/icons/search_icon.svg");
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}

.header-mobile-only button.open-mobile-search-popup-button[aria-expanded="true"] span.icon {
	background-image: url("/wp-content/themes/blogs-helsinki-2026/assets/icons/close_icon.svg");
}

.header-mobile-only button.open-mobile-search-popup-button span.text {
	display: none;
}

.header-mobile-only button.open-mobile-search-popup-button[aria-expanded="true"] span.text {
	display: block;
}

.header-mobile-only button.open-mobile-search-popup-button:hover {
	background-color: transparent;
}

body.logged-in .header-mobile-only .mobile-search-popup {
	top: 106px;
}

.header-mobile-only .mobile-search-popup {
	display: none;
	position: fixed;
	top: 60px;
	left: 0;
	width: 100%;
	height: 100%;
	background: transparent !important;
	overflow: hidden;
	z-index: 9999999;
}

.header-mobile-only .mobile-search-popup.is-open {
	display: block;
}

.header-mobile-only .mobile-search-popup.is-open form.wp-block-search {
	background-color: var(--wp--preset--color--secondary-white);
	flex-direction: column;
	position: relative;
	padding: var(--wp--preset--spacing--50);
	border-top: 1px solid var(--wp--preset--color--secondary-gray);
}

.header-mobile-only .mobile-search-popup form.wp-block-search::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	height: 100vh;
	background-color: var(--wp--preset--color--main-black);
	opacity: 0.5;
}

.header-mobile-only .mobile-search-popup.is-open form.wp-block-search .wp-block-search__label {
	font-weight: 600;
}

.header-mobile-only .mobile-search-popup form.wp-block-search .wp-block-search__inside-wrapper {
	flex-direction: column;
	gap: 15px;
	width: 100%;
}

.header-mobile-only .mobile-search-popup form.wp-block-search .wp-block-search__inside-wrapper input,
.header-mobile-only .mobile-search-popup form.wp-block-search .wp-block-search__inside-wrapper button {
	width: 100%;
	margin: 0;
}

@media (max-width: 781px) {
	.header-top,
	.header-bottom {
		padding: 0;
	}
	header .cover-image .wp-block-cover {
		min-height: 500px !important;
		height: 500px !important;
	}
}

@media (max-width: 599px) {
	header.site-header {
		display: grid;
	}
	.header-top {
		grid-row: 1;
		grid-column: 1 / -1;
		border-bottom: 0;
		height: 60px;
	}
	.header-top-inner-group {
		height: 100%;
		padding: 0 var(--wp--preset--spacing--50) !important;
		gap: 12px;
	}
	.header-top-left {
		row-gap: 10px;
	}
	.header-center {
		grid-row: 4;
		grid-column: 1 / -1;
		padding-bottom: 0;
	}
	.header-bottom {
		grid-row: 2;
		grid-column: 1 / -1;
		box-shadow: 0px 2px 8px 2px rgba(204, 204, 204, 0.5);
	}
	.header-bottom-inner-group {
		width: 100%;
		height: auto;
		min-height: 40px;
		flex-wrap: nowrap;
		justify-content: space-between;
	}
	body:not(.home) header .header-breadcrumb {
		display: block;
		grid-row: 3;
	}
	header .cover-image .wp-block-cover {
		min-height: 350px !important;
		height: 350px !important;
	}
	.hide-on-mobile {
		display: none !important;
	}
	.show-on-mobile {
		display: flex !important;
	}
	.show-on-mobile .wp-block-loginout a {
		display: flex;
	}
}

@media (max-width: 480px) {
	.header-top-left .site-logo img {
		width: 80px;
	}
	.header-mobile-only button.open-mobile-search-popup-button {
		font-size: 16px;
	}
	.header-mobile-only button.open-mobile-search-popup-button span.icon {
		width: 20px;
		height: 20px;
	}
	.show-on-mobile {
		gap: 12px;
	}
}
