:root {
	--kx-brand-blue: #0164c9;
	--kx-brand-blue-hover: #0057b0;
	--kx-control-border: #0164c9;
	--kx-control-hover-bg: #eef6ff;
	--kx-control-focus: #7db7f0;
	--kx-page-bg-dark: #0b1120;
	--kx-surface-dark: #111827;
	--kx-surface-raised-dark: #172033;
	--kx-border-dark: #2b3a52;
	--kx-text-dark: #e5edf8;
	--kx-text-muted-dark: #aab9cc;
	--kx-link-dark: #79b8ff;
}

.inside-header {
	align-items: center;
}

.kx-header-controls {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-left: auto;
	padding-left: 18px;
	flex: 0 0 auto;
	line-height: 1;
}

.kx-control {
	appearance: none;
	-webkit-appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	height: 38px;
	min-width: 38px;
	margin: 0;
	padding: 0;
	border: 1px solid var(--kx-control-border);
	background: #fff;
	color: var(--kx-brand-blue);
	font: inherit;
	line-height: 1;
	cursor: pointer;
	box-shadow: none;
	transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 120ms ease;
}

.kx-language-control {
	gap: 9px;
	min-width: 116px;
	padding: 0 14px;
	border-radius: 14px;
}

.kx-theme-control {
	width: 44px;
	border-radius: 14px;
}

.kx-control:hover {
	border-color: var(--kx-brand-blue-hover);
	background: var(--kx-control-hover-bg);
	color: var(--kx-brand-blue-hover);
}

.kx-control:active {
	transform: translateY(1px);
}

.kx-control:focus-visible {
	outline: 3px solid rgba(125, 183, 240, 0.58);
	outline: 3px solid color-mix(in srgb, var(--kx-control-focus) 58%, transparent);
	outline-offset: 2px;
}

.kx-control:disabled {
	cursor: not-allowed;
	opacity: 0.5;
	transform: none;
}

.kx-control__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	line-height: 1;
}

.kx-control__label {
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0.01em;
	white-space: nowrap;
}

.kx-theme-icon--sun {
	display: none;
}

.kx-translation-engine {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

html[data-kx-theme="dark"] {
	color-scheme: dark;
}

html[data-kx-theme="dark"] body {
	background-color: var(--kx-page-bg-dark);
	color: var(--kx-text-dark);
}

html[data-kx-theme="dark"] .site-header,
html[data-kx-theme="dark"] .inside-header,
html[data-kx-theme="dark"] .site-content,
html[data-kx-theme="dark"] .site-main,
html[data-kx-theme="dark"] .site-footer {
	color: var(--kx-text-dark);
}

html[data-kx-theme="dark"] .site-header,
html[data-kx-theme="dark"] .inside-header,
html[data-kx-theme="dark"] .inside-article,
html[data-kx-theme="dark"] .page-header,
html[data-kx-theme="dark"] .paging-navigation,
html[data-kx-theme="dark"] .comments-area,
html[data-kx-theme="dark"] .widget,
html[data-kx-theme="dark"] .footer-widgets,
html[data-kx-theme="dark"] .site-info,
html[data-kx-theme="dark"] .wp-block-table,
html[data-kx-theme="dark"] .search-modal-form {
	background-color: var(--kx-surface-dark);
	color: var(--kx-text-dark);
}

html[data-kx-theme="dark"] .main-navigation,
html[data-kx-theme="dark"] .main-navigation ul ul {
	background-color: #064b91;
}

html[data-kx-theme="dark"] .main-navigation .main-nav ul li a,
html[data-kx-theme="dark"] .main-navigation .menu-toggle,
html[data-kx-theme="dark"] .main-navigation .menu-bar-item > a {
	color: #f4f8ff;
}

html[data-kx-theme="dark"] .main-navigation .main-nav ul li[class*="current-menu-"] > a,
html[data-kx-theme="dark"] .main-navigation .main-nav ul li[class*="current_page_"] > a,
html[data-kx-theme="dark"] .main-navigation .main-nav ul li:hover > a,
html[data-kx-theme="dark"] .main-navigation .main-nav ul li:focus-within > a {
	background-color: #29364a;
	color: #fff;
}

html[data-kx-theme="dark"] .main-title a,
html[data-kx-theme="dark"] .site-description,
html[data-kx-theme="dark"] h1,
html[data-kx-theme="dark"] h2,
html[data-kx-theme="dark"] h3,
html[data-kx-theme="dark"] h4,
html[data-kx-theme="dark"] h5,
html[data-kx-theme="dark"] h6,
html[data-kx-theme="dark"] .widget-title,
html[data-kx-theme="dark"] .entry-title a {
	color: var(--kx-text-dark);
}

html[data-kx-theme="dark"] .main-title a,
html[data-kx-theme="dark"] a {
	color: var(--kx-link-dark);
}

html[data-kx-theme="dark"] a:hover,
html[data-kx-theme="dark"] a:focus {
	color: #a8d2ff;
}

html[data-kx-theme="dark"] .entry-meta,
html[data-kx-theme="dark"] .post-navigation,
html[data-kx-theme="dark"] .site-info,
html[data-kx-theme="dark"] figcaption,
html[data-kx-theme="dark"] .wp-block-image figcaption,
html[data-kx-theme="dark"] .kx-meta,
html[data-kx-theme="dark"] .kx-meta-item {
	color: var(--kx-text-muted-dark);
}

html[data-kx-theme="dark"] .kx-article-title a {
	color: var(--kx-link-dark);
}

html[data-kx-theme="dark"] .kx-excerpt,
html[data-kx-theme="dark"] .kx-card-copy,
html[data-kx-theme="dark"] .kx-card-copy p {
	color: #d6e0ee;
}

html[data-kx-theme="dark"] .kx-article,
html[data-kx-theme="dark"] .kx-card-footer {
	border-color: var(--kx-border-dark);
}

html[data-kx-theme="dark"] .kx-read-more,
html[data-kx-theme="dark"] .kx-read-more:hover,
html[data-kx-theme="dark"] .kx-read-more:focus {
	background-color: var(--kx-brand-blue);
	color: #fff;
}

html[data-kx-theme="dark"] input,
html[data-kx-theme="dark"] select,
html[data-kx-theme="dark"] textarea,
html[data-kx-theme="dark"] .search-field {
	border-color: var(--kx-border-dark);
	background: #0d1525;
	color: var(--kx-text-dark);
}

html[data-kx-theme="dark"] input::placeholder,
html[data-kx-theme="dark"] textarea::placeholder {
	color: #8292a9;
}

html[data-kx-theme="dark"] table,
html[data-kx-theme="dark"] th,
html[data-kx-theme="dark"] td,
html[data-kx-theme="dark"] blockquote,
html[data-kx-theme="dark"] hr,
html[data-kx-theme="dark"] .comment-content {
	border-color: var(--kx-border-dark);
}

html[data-kx-theme="dark"] pre,
html[data-kx-theme="dark"] code,
html[data-kx-theme="dark"] kbd,
html[data-kx-theme="dark"] samp,
html[data-kx-theme="dark"] .wp-block-code {
	background-color: #09101c;
	color: #dce8f8;
}

html[data-kx-theme="dark"] .kx-control {
	border-color: #5aa7f4;
	background: transparent;
	color: #89c2ff;
}

html[data-kx-theme="dark"] .kx-control:hover {
	border-color: #8ec7ff;
	background: #162b45;
	color: #b8dcff;
}

html[data-kx-theme="dark"] .kx-theme-icon--moon {
	display: none;
}

html[data-kx-theme="dark"] .kx-theme-icon--sun {
	display: inline-flex;
}

@media (max-width: 768px) {
	.kx-header-controls {
		gap: 7px;
		padding-left: 8px;
	}

	.kx-control {
		height: 36px;
		min-width: 36px;
	}

	.kx-language-control {
		gap: 6px;
		min-width: 96px;
		padding: 0 10px;
		border-radius: 12px;
	}

	.kx-theme-control {
		width: 40px;
		border-radius: 12px;
	}

	.kx-control__icon {
		font-size: 18px;
	}

	.kx-control__label {
		font-size: 13px;
	}
}

@media (max-width: 420px) {
	.inside-header {
		padding-left: 20px;
		padding-right: 20px;
	}

	.kx-header-controls {
		gap: 6px;
	}

	.kx-language-control {
		min-width: 82px;
		padding: 0 8px;
	}

	.kx-control__label {
		font-size: 12px;
	}
}

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