/* Search button appended to nav menus. Inherits the menu's color; the theme can refine it in context. */

.hls_menu_item {
	display: flex;
	align-items: center;
}

.hls_menu_button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 24px;
	min-height: 24px;
	margin: 0;
	padding: 0;
	color: inherit;
	font: inherit;
	line-height: 1;
	background: transparent;
	border: 0;
	border-radius: 3px;
	box-shadow: none;
	cursor: pointer;
	transition: color 160ms ease;
}

/* The theme dims every button on hover (button:hover { opacity: .8 }) — opt out. */
.hls_menu_button:hover,
.hls_menu_button:focus,
.hls_menu_button:active {
	opacity: 1;
}

.hls_menu_button:hover,
.hls_menu_button[aria-expanded="true"] {
	color: #d92128;
}

.hls_menu_button:focus-visible {
	outline: 2px solid #d92128;
	outline-offset: 2px;
}

.hls_menu_button__icon {
	display: block;
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
}

/* Icon-only by default; the label stays for screen readers. The theme can show it in context. */
.hls_menu_button__label {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (prefers-reduced-motion: reduce) {
	.hls_menu_button {
		transition: none;
	}
}
