/**
 * Theme switcher — header sun/moon + clean mobile tool row.
 */

.axil-header .header-wrap {
	position: relative;
}

.axil-header .header-wrap > .row {
	display: flex !important;
	align-items: center !important;
	flex-wrap: nowrap !important;
	width: 100%;
}

.axil-header .header-wrap > .row > [class*='col-']:first-child {
	flex: 1 1 auto !important;
	width: auto !important;
	max-width: none !important;
	min-width: 0 !important;
}

/* Tools: moon · menu · search — flush to header's right edge */
.axil-header .sv-header-tools {
	--sv-tool: 42px;
	--sv-tool-gap: 10px;
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	justify-content: flex-end !important;
	gap: var(--sv-tool-gap) !important;
	column-gap: var(--sv-tool-gap) !important;
	row-gap: 0 !important;
	flex: 0 0 auto !important;
	order: 99 !important;
	margin: 0 !important;
	margin-left: auto !important;
	padding: 0 !important;
	position: relative !important;
	z-index: 30 !important;
	isolation: isolate;
}

/* Pull tools to the visual right edge on tablet/phone (theme pads header 30px) */
@media (max-width: 1199.98px) {
	.axil-header {
		padding-right: 12px !important;
		padding-left: 16px !important;
	}

	.axil-header .sv-header-tools {
		margin-right: 0 !important;
	}
}

@media (max-width: 575.98px) {
	.axil-header {
		padding-right: 10px !important;
		padding-left: 14px !important;
	}
}

.axil-header .header-wrap > .row.sv-header-tools-active > .axil-mainmenu-withbar,
.axil-header .header-wrap > .row.sv-header-tools-active > .mobile-search-wrapper,
.axil-header .header-wrap > .row.sv-header-tools-active > .d-none.d-sm-block {
	display: none !important;
	width: 0 !important;
	max-width: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	overflow: hidden !important;
	border: 0 !important;
}

/* Each tool is exactly one circle slot */
.axil-header .sv-header-tools > #my_switcher,
.axil-header .sv-header-tools > .hamburger-menu,
.axil-header .sv-header-tools > .header-search {
	flex: 0 0 var(--sv-tool) !important;
	width: var(--sv-tool) !important;
	min-width: var(--sv-tool) !important;
	max-width: var(--sv-tool) !important;
	height: var(--sv-tool) !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	position: relative !important;
	left: auto !important;
	right: auto !important;
	top: auto !important;
	transform: none !important;
	line-height: 0 !important;
	overflow: visible !important;
}

.axil-header .sv-header-tools > .hamburger-menu {
	margin-left: 0 !important;
	text-align: center !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
}

.axil-header .sv-header-tools .hamburger-inner {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: var(--sv-tool) !important;
	height: var(--sv-tool) !important;
	margin: 0 !important;
}

.axil-header .sv-header-tools .hamburger-menu .hamburger-inner .icon,
.axil-header .sv-header-tools .search-mobile-icon,
.axil-header .sv-header-tools .setColor {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: var(--sv-tool) !important;
	height: var(--sv-tool) !important;
	min-width: var(--sv-tool) !important;
	margin: 0 !important;
	padding: 0 !important;
	border-radius: 999px !important;
	border: 1.5px solid rgba(26, 26, 26, 0.16) !important;
	background: #fff !important;
	box-shadow: none !important;
	line-height: 1 !important;
	box-sizing: border-box !important;
}

.axil-header .sv-header-tools .search-mobile-icon {
	background: #fff !important;
}

.axil-header .sv-header-tools .search-mobile-icon button {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	color: #1a1a1a !important;
	line-height: 1 !important;
}

.axil-header .sv-header-tools > .header-search {
	display: block !important;
}

body.active-dark-mode .axil-header .sv-header-tools .hamburger-menu .hamburger-inner .icon,
body.active-dark-mode .axil-header .sv-header-tools .search-mobile-icon,
body.active-dark-mode .axil-header .sv-header-tools .setColor {
	background: #1a1a1a !important;
	border-color: rgba(255, 255, 255, 0.28) !important;
	color: #f2f2f2 !important;
}

body.active-dark-mode .axil-header .sv-header-tools .search-mobile-icon button,
body.active-dark-mode .axil-header .sv-header-tools .search-mobile-icon button i {
	color: #f2f2f2 !important;
}

/* Search panel anchored to tools (right edge) */
.axil-header .sv-header-tools .large-mobile-blog-search {
	position: absolute !important;
	top: calc(100% + 10px) !important;
	right: 0 !important;
	left: auto !important;
	width: min(calc(100vw - 1.25rem), 300px) !important;
	max-width: 300px !important;
	margin: 0 !important;
	padding: 0 !important;
	opacity: 0 !important;
	visibility: hidden !important;
	pointer-events: none !important;
	z-index: 10080 !important;
	transition: opacity 0.2s ease, visibility 0.2s ease;
	display: block !important;
}

.axil-header .sv-header-tools .large-mobile-blog-search.active {
	opacity: 1 !important;
	visibility: visible !important;
	pointer-events: auto !important;
}

.axil-header .sv-header-tools .axil-search-mobile.form-group {
	position: relative !important;
	top: auto !important;
	right: auto !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 10px !important;
	background: #fff !important;
	border: 1.5px solid rgba(26, 26, 26, 0.12) !important;
	border-radius: 12px !important;
	box-shadow: 0 14px 36px rgba(20, 20, 20, 0.14) !important;
	box-sizing: border-box !important;
}

body.active-dark-mode .axil-header .sv-header-tools .axil-search-mobile.form-group {
	background: #1a1a1a !important;
	border-color: rgba(255, 255, 255, 0.16) !important;
	box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45) !important;
}

.axil-header .sv-header-tools .axil-search-mobile.form-group input {
	width: 100% !important;
	height: 42px !important;
	margin: 0 !important;
	padding: 0 44px 0 14px !important;
	border: 1.5px solid rgba(26, 26, 26, 0.12) !important;
	border-radius: 999px !important;
	background: #f7f7f5 !important;
	box-shadow: none !important;
	font-size: 14px !important;
	line-height: 42px !important;
}

body.active-dark-mode .axil-header .sv-header-tools .axil-search-mobile.form-group input {
	background: #121212 !important;
	border-color: rgba(255, 255, 255, 0.14) !important;
	color: #f2f2f2 !important;
}

.axil-header .sv-header-tools .axil-search-mobile.form-group button.search-button {
	position: absolute !important;
	top: 50% !important;
	right: 8px !important;
	left: auto !important;
	width: 36px !important;
	height: 36px !important;
	transform: translateY(-50%) !important;
	background: transparent !important;
	border: 0 !important;
	color: #1a1a1a !important;
}

body.active-dark-mode .axil-header .sv-header-tools .axil-search-mobile.form-group button.search-button {
	color: #f2f2f2 !important;
}

/* Desktop: search field + theme toggle — same vertical center, larger icon */
.axil-header .header-search.sv-has-theme-switcher {
	--sv-tool: 42px;
	display: flex !important;
	align-items: center !important;
	justify-content: flex-end !important;
	gap: 12px !important;
	flex-wrap: nowrap !important;
}

.axil-header .header-search.sv-has-theme-switcher .blog-search,
.axil-header .header-search.sv-has-theme-switcher .axil-search {
	flex: 1 1 auto !important;
	min-width: 0 !important;
	max-width: 220px !important;
}

#my_switcher.my_switcher.sv-theme-switcher--in-header,
.my_switcher.sv-theme-switcher--in-header {
	position: static !important;
	top: auto !important;
	right: auto !important;
	left: auto !important;
	bottom: auto !important;
	transform: none !important;
	z-index: 5 !important;
	margin: 0 !important;
	padding: 0 !important;
	flex: 0 0 var(--sv-tool, 42px) !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: var(--sv-tool, 42px) !important;
	height: var(--sv-tool, 42px) !important;
	min-width: var(--sv-tool, 42px) !important;
	min-height: var(--sv-tool, 42px) !important;
	overflow: hidden !important;
	box-sizing: border-box !important;
}

body > #my_switcher.my_switcher:not(.sv-theme-switcher--in-header) {
	position: fixed !important;
	top: 14px !important;
	right: 14px !important;
	transform: none !important;
	z-index: 10060 !important;
	width: var(--sv-tool, 42px) !important;
	height: var(--sv-tool, 42px) !important;
	min-width: var(--sv-tool, 42px) !important;
	min-height: var(--sv-tool, 42px) !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	overflow: visible !important;
	pointer-events: auto !important;
}

body.admin-bar > #my_switcher.my_switcher:not(.sv-theme-switcher--in-header) {
	top: 46px !important;
}

/* Fixed-size slot — only one icon in layout (no stacked hit-targets) */
.my_switcher ul {
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	width: 100% !important;
	height: 100% !important;
	position: relative !important;
}

.my_switcher ul li {
	position: static !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	width: 100% !important;
	height: 100% !important;
}

/* Hide inactive icon completely so it cannot steal clicks */
body:not(.active-dark-mode) .my_switcher ul li:has(a.setColor.light),
body.active-dark-mode .my_switcher ul li:has(a.setColor.dark) {
	display: none !important;
}

body:not(.active-dark-mode) .my_switcher .setColor.light,
body.active-dark-mode .my_switcher .setColor.dark {
	display: none !important;
}

.my_switcher ul li a.setColor {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	position: relative !important;
	z-index: 6 !important;
	width: 100% !important;
	height: 100% !important;
	min-width: var(--sv-tool, 42px) !important;
	min-height: var(--sv-tool, 42px) !important;
	padding: 0 !important;
	margin: 0 !important;
	border-radius: 999px !important;
	border: 1.5px solid rgba(26, 26, 26, 0.16) !important;
	background: #fff !important;
	box-shadow: none !important;
	font-size: 0 !important;
	line-height: 0 !important;
	overflow: hidden !important;
	box-sizing: border-box !important;
	pointer-events: auto !important;
	cursor: pointer !important;
	-webkit-tap-highlight-color: transparent;
}

.my_switcher ul li a.setColor span {
	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;
	border: 0 !important;
}

.my_switcher ul li a.setColor::before {
	content: '' !important;
	display: block !important;
	width: 22px !important;
	height: 22px !important;
	flex: 0 0 22px !important;
	pointer-events: none !important;
	background-repeat: no-repeat !important;
	background-position: center !important;
	background-size: 22px 22px !important;
}

.my_switcher ul li a.setColor.dark::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 14.5A8.5 8.5 0 0 1 9.5 3 7 7 0 1 0 21 14.5z'/%3E%3C/svg%3E") !important;
}

.my_switcher ul li a.setColor.light::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M4.93 19.07l1.41-1.41M17.66 6.34l1.41-1.41'/%3E%3C/svg%3E") !important;
}

body.active-dark-mode .my_switcher ul li a.setColor {
	background: #1a1a1a !important;
	border-color: rgba(255, 255, 255, 0.28) !important;
}

body.active-dark-mode .my_switcher ul li a.setColor.light::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2f2f2' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M4.93 19.07l1.41-1.41M17.66 6.34l1.41-1.41'/%3E%3C/svg%3E") !important;
}

.page-id-12985 .my_switcher,
body.active-dark-mode.page-id-12985 .my_switcher,
.single-sv_case .my_switcher {
	right: auto !important;
	left: auto !important;
	transform: none !important;
}

/* Ensure header search never covers the toggle */
.axil-header .header-search.sv-has-theme-switcher #my_switcher {
	position: relative !important;
	z-index: 8 !important;
	flex-shrink: 0 !important;
}

/* Language switcher — same 42px circle as moon / menu / search on tablet+phone */
@media (max-width: 1199.98px) {
	.axil-header .sv-header-tools > #svml-lang-switcher {
		flex: 0 0 var(--sv-tool, 42px) !important;
		width: var(--sv-tool, 42px) !important;
		min-width: var(--sv-tool, 42px) !important;
		max-width: var(--sv-tool, 42px) !important;
		height: var(--sv-tool, 42px) !important;
		margin: 0 !important;
		padding: 0 !important;
		order: -1 !important;
	}

	.axil-header .sv-header-tools #svml-lang-switcher .svml-switcher__toggle {
		display: inline-flex !important;
		align-items: center !important;
		justify-content: center !important;
		width: var(--sv-tool, 42px) !important;
		height: var(--sv-tool, 42px) !important;
		min-width: var(--sv-tool, 42px) !important;
		padding: 0 !important;
		gap: 0 !important;
		border-radius: 999px !important;
		border: 1.5px solid rgba(26, 26, 26, 0.16) !important;
		background: #fff !important;
		box-sizing: border-box !important;
	}

	body.active-dark-mode .axil-header .sv-header-tools #svml-lang-switcher .svml-switcher__toggle {
		background: #1a1a1a !important;
		border-color: rgba(255, 255, 255, 0.28) !important;
	}

	.axil-header .sv-header-tools #svml-lang-switcher .svml-switcher__label,
	.axil-header .sv-header-tools #svml-lang-switcher .svml-switcher__chev {
		display: none !important;
	}

	.axil-header .sv-header-tools #svml-lang-switcher .svml-switcher__flag {
		width: 26px !important;
		height: 18px !important;
		flex: 0 0 26px !important;
	}

	.axil-header .sv-header-tools #svml-lang-switcher .svml-switcher__flag img {
		width: 26px !important;
		height: 18px !important;
		object-fit: cover !important;
	}
}
