/* Katy Modern Header - front end */
.kmh-header,
.kmh-header * {
	box-sizing: border-box;
}

.kmh-header {
	--kmh-accent: #b4232a;
	--kmh-ink: #1d2733;
	--kmh-muted: #5f6b78;
	--kmh-line: #e8edf2;
	--kmh-soft: #f6f8fa;
	position: relative;
	z-index: 9998;
	width: 100%;
	background: rgba(255, 255, 255, 0.98);
	border-bottom: 1px solid var(--kmh-line);
	box-shadow: 0 1px 0 rgba(20, 31, 44, 0.02);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: var(--kmh-ink);
}

.kmh-header.kmh-is-sticky {
	position: sticky;
	top: 0;
}

body.admin-bar .kmh-header.kmh-is-sticky {
	top: 32px;
}

.kmh-shell {
	min-height: 72px;
	max-width: 1480px;
	margin: 0 auto;
	padding: 0 24px;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 26px;
}

.kmh-brand-wrap,
.kmh-actions {
	display: flex;
	align-items: center;
}

.kmh-brand {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	color: var(--kmh-ink);
	min-width: 110px;
}

.kmh-logo-img {
	display: block;
	width: auto;
	height: auto;
	max-width: 210px;
	max-height: 50px;
}

.kmh-site-title {
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1;
}

.kmh-nav {
	min-width: 0;
	justify-self: center;
}

.kmh-menu,
.kmh-menu ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.kmh-menu {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 2px;
}

.kmh-menu > li {
	position: relative;
}

.kmh-menu > li > a {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 72px;
	padding: 0 11px;
	font-size: 15px;
	font-weight: 650;
	line-height: 1.2;
	letter-spacing: -0.012em;
	white-space: nowrap;
	text-decoration: none;
	color: var(--kmh-ink);
	transition: color .18s ease, background-color .18s ease;
}

.kmh-menu > li > a::after {
	content: "";
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: 0;
	height: 3px;
	background: var(--kmh-accent);
	transform: scaleX(0);
	transform-origin: center;
	transition: transform .2s ease;
	border-radius: 3px 3px 0 0;
}

.kmh-menu > li:hover > a,
.kmh-menu > li:focus-within > a,
.kmh-menu > li.current-menu-item > a,
.kmh-menu > li.current-menu-ancestor > a {
	color: var(--kmh-accent);
}

.kmh-menu > li:hover > a::after,
.kmh-menu > li:focus-within > a::after,
.kmh-menu > li.current-menu-item > a::after,
.kmh-menu > li.current-menu-ancestor > a::after {
	transform: scaleX(1);
}

.kmh-menu .menu-item-has-children > a {
	padding-right: 25px;
}

.kmh-menu .menu-item-has-children > a::before {
	content: "";
	position: absolute;
	right: 10px;
	top: 50%;
	width: 6px;
	height: 6px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: translateY(-65%) rotate(45deg);
	opacity: .65;
}

.kmh-menu .sub-menu {
	position: absolute;
	top: calc(100% - 1px);
	left: 0;
	z-index: 30;
	min-width: 235px;
	max-width: 330px;
	padding: 9px;
	background: #fff;
	border: 1px solid var(--kmh-line);
	border-radius: 13px;
	box-shadow: 0 18px 48px rgba(27, 39, 52, .14);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

.kmh-menu .sub-menu .sub-menu {
	top: -9px;
	left: calc(100% + 8px);
}

.kmh-menu li:hover > .sub-menu,
.kmh-menu li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.kmh-menu .sub-menu a {
	display: block;
	padding: 10px 12px;
	border-radius: 9px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none;
	color: var(--kmh-ink);
	transition: background-color .16s ease, color .16s ease;
}

.kmh-menu .sub-menu a:hover,
.kmh-menu .sub-menu a:focus-visible {
	background: var(--kmh-soft);
	color: var(--kmh-accent);
	outline: none;
}

.kmh-hide-icons .kmh-nav a > i,
.kmh-hide-icons .kmh-nav a > svg,
.kmh-hide-icons .kmh-nav a > .dashicons,
.kmh-hide-icons .kmh-nav a > .fa,
.kmh-hide-icons .kmh-nav a > .fas,
.kmh-hide-icons .kmh-nav a > .far,
.kmh-hide-icons .kmh-nav a > .fab {
	display: none !important;
}

.kmh-actions {
	gap: 10px;
	justify-content: flex-end;
}

.kmh-search-toggle,
.kmh-mobile-toggle {
	appearance: none;
	border: 0;
	background: transparent;
	color: var(--kmh-ink);
	cursor: pointer;
	margin: 0;
	box-shadow: none;
}

.kmh-search-toggle {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	display: inline-grid;
	place-items: center;
	transition: background-color .16s ease, color .16s ease;
}

.kmh-search-toggle:hover,
.kmh-search-toggle:focus-visible {
	background: var(--kmh-soft);
	color: var(--kmh-accent);
	outline: 2px solid transparent;
}

.kmh-search-toggle svg,
.kmh-mobile-toggle svg {
	width: 22px;
	height: 22px;
}

.kmh-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0 18px;
	border-radius: 999px;
	background: var(--kmh-accent);
	color: #fff !important;
	font-size: 14px;
	font-weight: 750;
	line-height: 1;
	text-decoration: none !important;
	box-shadow: 0 6px 16px color-mix(in srgb, var(--kmh-accent) 20%, transparent);
	transition: transform .16s ease, filter .16s ease, box-shadow .16s ease;
}

.kmh-cta:hover,
.kmh-cta:focus-visible {
	transform: translateY(-1px);
	filter: brightness(.94);
	box-shadow: 0 9px 22px color-mix(in srgb, var(--kmh-accent) 25%, transparent);
	outline: none;
}

.kmh-search-panel {
	border-top: 1px solid var(--kmh-line);
	background: #fff;
}

.kmh-search-panel[hidden] {
	display: none !important;
}

.kmh-search-inner {
	max-width: 920px;
	margin: 0 auto;
	padding: 18px 24px 22px;
}

.kmh-search-form {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 10px;
}

.kmh-search-form input[type="search"] {
	width: 100%;
	height: 48px;
	padding: 0 16px;
	border: 1px solid #d8dfe6;
	border-radius: 10px;
	background: #fff;
	font: inherit;
	font-size: 16px;
	color: var(--kmh-ink);
	box-shadow: none;
}

.kmh-search-form input[type="search"]:focus {
	border-color: var(--kmh-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--kmh-accent) 12%, transparent);
	outline: none;
}

.kmh-search-form button {
	min-width: 100px;
	height: 48px;
	padding: 0 18px;
	border: 0;
	border-radius: 10px;
	background: var(--kmh-accent);
	color: #fff;
	font: inherit;
	font-weight: 750;
	cursor: pointer;
}

.kmh-mobile-toggle,
.kmh-submenu-toggle {
	display: none;
}

.kmh-header .screen-reader-text {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

@media (max-width: 1200px) {
	.kmh-shell {
		gap: 15px;
		padding: 0 18px;
	}

	.kmh-menu > li > a {
		padding-left: 8px;
		padding-right: 8px;
		font-size: 14px;
	}

	.kmh-menu .menu-item-has-children > a {
		padding-right: 21px;
	}

	.kmh-menu .menu-item-has-children > a::before {
		right: 7px;
	}
}

@media (max-width: 1024px) {
	body.admin-bar .kmh-header.kmh-is-sticky {
		top: 32px;
	}

	.kmh-shell {
		min-height: 68px;
		grid-template-columns: auto 1fr auto;
	}

	.kmh-mobile-toggle {
		display: inline-grid;
		place-items: center;
		justify-self: end;
		width: 42px;
		height: 42px;
		border-radius: 10px;
	}

	.kmh-mobile-toggle:hover,
	.kmh-mobile-toggle:focus-visible {
		background: var(--kmh-soft);
		outline: none;
	}

	.kmh-nav {
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		z-index: 40;
		padding: 10px 18px 18px;
		background: #fff;
		border-bottom: 1px solid var(--kmh-line);
		box-shadow: 0 20px 40px rgba(27, 39, 52, .13);
		display: none;
		max-height: calc(100vh - 90px);
		overflow-y: auto;
	}

	.kmh-nav.is-open {
		display: block;
	}

	.kmh-menu {
		display: block;
	}

	.kmh-menu > li {
		border-bottom: 1px solid #edf1f4;
	}

	.kmh-menu > li:last-child {
		border-bottom: 0;
	}

	.kmh-menu > li > a {
		min-height: 50px;
		padding: 0 44px 0 6px;
		font-size: 16px;
	}

	.kmh-menu > li > a::after,
	.kmh-menu .menu-item-has-children > a::before {
		display: none;
	}

	.kmh-menu .sub-menu,
	.kmh-menu .sub-menu .sub-menu {
		position: static;
		min-width: 0;
		max-width: none;
		padding: 0 0 8px 12px;
		background: transparent;
		border: 0;
		border-radius: 0;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
		display: none;
	}

	.kmh-menu li.kmh-submenu-open > .sub-menu {
		display: block;
	}

	.kmh-menu .sub-menu a {
		padding: 9px 10px;
		font-size: 14px;
		font-weight: 600;
		color: var(--kmh-muted);
	}

	.kmh-submenu-toggle {
		display: grid;
		place-items: center;
		position: absolute;
		right: 3px;
		top: 5px;
		width: 40px;
		height: 40px;
		padding: 0;
		border: 0;
		border-radius: 9px;
		background: transparent;
		color: var(--kmh-ink);
		cursor: pointer;
	}

	.kmh-submenu-toggle::before {
		content: "";
		width: 7px;
		height: 7px;
		border-right: 1.7px solid currentColor;
		border-bottom: 1.7px solid currentColor;
		transform: translateY(-2px) rotate(45deg);
		transition: transform .16s ease;
	}

	.kmh-submenu-open > .kmh-submenu-toggle::before {
		transform: translateY(2px) rotate(225deg);
	}

	.kmh-actions {
		grid-column: 3;
		grid-row: 1;
	}

	.kmh-mobile-toggle {
		grid-column: 2;
		grid-row: 1;
	}
}

@media (max-width: 700px) {
	.kmh-shell {
		padding: 0 12px;
		gap: 8px;
	}

	.kmh-logo-img {
		max-width: 160px;
		max-height: 44px;
	}

	.kmh-site-title {
		font-size: 19px;
	}

	.kmh-search-toggle {
		width: 38px;
		height: 38px;
	}

	.kmh-cta {
		display: none;
	}

	.kmh-nav {
		padding-left: 12px;
		padding-right: 12px;
	}

	.kmh-search-inner {
		padding: 14px 12px 18px;
	}
}

@media (max-width: 782px) {
	body.admin-bar .kmh-header.kmh-is-sticky {
		top: 46px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.kmh-header *,
	.kmh-header *::before,
	.kmh-header *::after {
		scroll-behavior: auto !important;
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
	}
}
