:root {
	--ml-header-height: 96px;
	--ml-gutter: clamp(20px, 4vw, 40px);
}

.ic-header {
	position: sticky;
	top: 0;
	z-index: 40;
	box-sizing: border-box;
	margin-bottom: calc(-1 * var(--ml-header-height));
	padding: 16px clamp(16px, 3vw, 32px) 0;
	pointer-events: none;
}

body.admin-bar .ic-header {
	top: var(--wp-admin--admin-bar--height, 0);
}

.ic-header__bar {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	max-width: var(--wp--style--global--wide-size, 1120px);
	margin: 0 auto;
	padding: 16px 22px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--xlarge);
	background: rgba(255, 255, 255, 0.86);
	box-shadow: 0 10px 30px rgba(7, 10, 77, 0.07);
	pointer-events: auto;
	-webkit-backdrop-filter: blur(18px) saturate(180%);
	backdrop-filter: blur(18px) saturate(180%);
}

.ic-header__brand {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	text-decoration: none;
}

.ic-header__logo {
	display: block;
	width: auto;
	height: 30px;
}

.ic-header__name {
	color: var(--wp--preset--color--heading);
	font-size: 20px;
	font-weight: 600;
	letter-spacing: -0.4px;
}

.ic-header__nav {
	display: flex;
	align-items: center;
	gap: 30px;
	font-size: 15px;
}

.ic-header__link,
.ic-header__link:hover {
	color: var(--wp--preset--color--body);
	text-decoration: none;
}

.ic-header__link[aria-current="page"] {
	color: var(--wp--preset--color--heading);
	font-weight: 600;
}

.ic-header__actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.ic-header__cta.ml-btn {
	min-height: 0;
	padding: 11px 20px;
	border-radius: 10px;
}

.ic-header__toggle {
	display: none;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid #e1e4ef;
	border-radius: var(--wp--custom--radius--medium);
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--heading);
	cursor: pointer;
}

.ic-header__toggle .ml-icon {
	width: 22px;
	height: 22px;
}

.ic-header__toggle-close,
.ic-header.is-open .ic-header__toggle-open {
	display: none;
}

.ic-header.is-open .ic-header__toggle-close {
	display: inline-flex;
}

.ic-header__menu {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	left: 0;
	display: flex;
	flex-direction: column;
	padding: 10px 16px 18px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 22px;
	background: var(--wp--preset--color--base);
	box-shadow: 0 24px 60px rgba(7, 10, 77, 0.16);
	animation: ic-menu-in 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ic-header__menu[hidden] {
	display: none;
}

.ic-header__menu-link,
.ic-header__menu-link:hover {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 48px;
	padding: 0 6px;
	border-bottom: 1px solid #eef0f6;
	color: var(--wp--preset--color--heading);
	font-size: 17px;
	font-weight: 600;
	text-decoration: none;
}

.ic-header__menu-link .ml-icon {
	width: 18px;
	height: 18px;
	color: #8a90a2;
}

.ic-header__menu-cta.ml-btn {
	margin-top: 14px;
}

@keyframes ic-menu-in {

	from {
		opacity: 0;
		transform: translateY(-8px) scale(0.98);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@media (max-width: 900px) {

	.ic-header__nav {
		display: none;
	}

	.ic-header__toggle {
		display: inline-flex;
	}
}

@media (min-width: 901px) {

	.ic-header__menu {
		display: none;
	}
}

@media (max-width: 640px) {

	.ic-header {
		padding-right: 12px;
		padding-left: 12px;
	}

	.ic-header__bar {
		padding: 12px 12px 12px 18px;
		border-radius: 20px;
	}

	.ic-header__cta {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {

	.ic-header__menu {
		animation: none;
	}
}

.ic-main {
	padding-top: calc(var(--ml-header-height) + var(--wp--preset--spacing--40));
	padding-bottom: var(--wp--preset--spacing--50);
}

.wp-site-blocks {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100dvh;
}

body.admin-bar .wp-site-blocks {
	min-height: calc(100dvh - var(--wp-admin--admin-bar--height, 0px));
}

.wp-site-blocks > .wp-block-template-part:has(> .ic-header) {
	display: contents;
}

.wp-site-blocks > .wp-block-template-part:has(> .ic-footer) {
	margin-top: auto;
}
