.amt-header {
	position: relative;
	z-index: 1000;
	background: #fff;
	border-bottom: 1px solid rgba(20, 35, 30, 0.08);
	box-shadow: 0 10px 28px rgba(16, 63, 51, 0.12);
}

.amt-header--sticky {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
}

.amt-header__inner {
	width: 100%;
	max-width: none;
	margin: 0 auto;
	padding: 10px 30px;
	display: flex;
	align-items: center;
	gap: 28px;
}

.amt-header__brand {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	min-height: 44px;
	color: var(--amt-text);
	font-weight: var(--amt-weight-semibold);
	text-decoration: none;
}

.amt-header__logo-img {
	max-height: 66px;
	width: auto;
	display: block;
}

.amt-header__nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	flex: 1 1 auto;
	margin-left: auto;
}

.amt-header__item {
	position: relative;
}

.amt-header__item > a,
.amt-header__actions a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 8px 10px;
	color: var(--amt-text);
	text-decoration: none;
	font-weight: var(--amt-weight-medium);
}

.amt-header__dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 280px;
	max-height: min(70vh, 560px);
	display: none;
	padding: 8px;
	border: 1px solid var(--amt-border);
	border-radius: 8px;
	background: #fff;
	box-shadow: var(--amt-shadow);
	overflow-y: auto;
	z-index: 30;
}

.amt-header__item:focus-within .amt-header__dropdown,
.amt-header__item:hover .amt-header__dropdown {
	display: grid;
}

.amt-header__dropdown a {
	padding: 10px;
	color: var(--amt-text);
	text-decoration: none;
}

.amt-header__actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
}

.amt-menu-toggle,
.amt-mobile-menu__close,
.amt-mobile-menu__parent {
	min-width: 44px;
	min-height: 44px;
	border: 1px solid var(--amt-border);
	border-radius: 8px;
	background: #fff;
	color: var(--amt-text);
}

.amt-mobile-menu[hidden],
.amt-mobile-menu__children[hidden] {
	display: none !important;
}

.amt-menu-toggle {
	display: none;
	flex-direction: column;
	gap: 4px;
	justify-content: center;
	align-items: center;
}

.amt-menu-toggle span:not(.screen-reader-text) {
	width: 22px;
	height: 2px;
	background: var(--amt-text);
}

.amt-mobile-menu {
	position: fixed;
	inset: 0;
	z-index: 1001;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 18px;
	background: #fff;
	overflow: auto;
}

.amt-mobile-menu a,
.amt-mobile-menu__parent {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 48px;
	padding: 12px;
	color: var(--amt-text);
	text-decoration: none;
	font-weight: 700;
	text-align: left;
}

.amt-mobile-menu__children {
	display: grid;
	padding-left: 12px;
	border-left: 3px solid var(--amt-accent);
}

.amt-mobile-menu__close {
	align-self: flex-end;
	padding: 8px 14px;
}

@media (max-width: 1180px) and (min-width: 981px) {
	.amt-header__inner {
		padding-left: 18px;
		padding-right: 18px;
		gap: 16px;
	}

	.amt-header__nav {
		gap: 4px;
	}

	.amt-header__item > a,
	.amt-header__actions a {
		padding-left: 8px;
		padding-right: 8px;
	}
}

@media (max-width: 980px) {
	.amt-header__inner {
		justify-content: space-between;
		gap: 12px;
		padding: 8px 16px;
	}

	.amt-header__logo-img {
		max-height: 46px;
	}

	.amt-header__nav,
	.amt-header__actions > a {
		display: none;
	}

	.amt-header__actions {
		margin-left: auto;
	}

	.amt-menu-toggle {
		display: inline-flex;
	}
}

@media (min-width: 981px) {
	.amt-mobile-menu {
		display: none !important;
	}
}
