/**
 * Theme icons: img/icons SVGs (.ah-theme-icon / legacy .ah-isax).
 */
.ah-theme-icon,
.ah-isax {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	vertical-align: -0.15em;
	line-height: 1;
	flex-shrink: 0;
}

.ah-theme-icon img,
.ah-isax img,
.ah-isax svg {
	width: 1em;
	height: 1em;
	display: block;
}

.menu-icon .ah-theme-icon,
.menu-icon .ah-isax,
#mw_open_side_menu .ah-theme-icon,
#mw_open_side_menu .ah-isax,
.search-btn-wrapper .ah-theme-icon,
.search-btn-wrapper .ah-isax,
.theme-mode-switcher label span .ah-theme-icon,
.theme-mode-switcher label span .ah-isax {
	font-size: 1.1em;
}

.siteside-close.ah-theme-icon,
.siteside-close.ah-isax,
span.siteside-close .ah-theme-icon,
span.siteside-close .ah-isax {
	font-size: inherit;
}

.sharing .share-buttons-list a .ah-theme-icon,
.sharing .share-buttons-list a .ah-isax,
.ah-share-buttons .share-buttons-list a .ah-theme-icon,
.ah-share-buttons .share-buttons-list a .ah-isax {
	font-size: clamp(17px, 1.15vw, 19px);
	vertical-align: middle;
}

.header-buttons .ah-theme-icon,
.header-buttons .ah-isax {
	font-size: 1.15em;
}

.comment-vote .ah-theme-icon,
.comment-vote .ah-isax {
	font-size: 1rem;
}

@keyframes ah-theme-icon-spin {
	to {
		transform: rotate(360deg);
	}
}

.ah-ajax-search-spin .ah-theme-icon--spinner img,
.ah-ajax-search-spin .ah-isax-spinner img,
.ah-ajax-search-spin .ah-isax-spinner-svg {
	animation: ah-theme-icon-spin 0.85s linear infinite;
	transform-origin: center;
}

#goto-top .ah-gototop-icon-wrap .ah-theme-icon,
#goto-top .ah-gototop-icon-wrap .ah-isax,
#goto-top span .ah-theme-icon,
#goto-top span .ah-isax {
	color: inherit;
}

/* Theme icons are <img> SVGs with dark fills — force a white glyph on the colored button. */
#goto-top .ah-gototop-icon-wrap img,
#goto-top span.ah-gototop-icon-wrap .ah-theme-icon img,
#goto-top span.ah-gototop-icon-wrap .ah-isax img {
	filter: brightness(0) invert(1);
}

#mega_menu_plus .ah-theme-icon,
#mega_menu_plus .ah-isax {
	color: inherit;
}

.open-mobile-submenu .ah-theme-icon,
.open-mobile-submenu .ah-isax {
	color: inherit;
}
