:root {
    color-scheme: light dark;
    --hygeia-bg: #ffffff;
    --hygeia-text: #111111;
    --hygeia-link: #719ebc;
    --hygeia-header-bg: transparent;
    --hygeia-surface: #f6f6f6;
    --hygeia-toggle-track: #d1d7dc;
    --hygeia-toggle-thumb: #ffffff;
    --hygeia-toggle-shadow: rgba(0, 0, 0, 0.2);
}

.dark-mode {
    --hygeia-bg: #0f1418;
    --hygeia-text: #e8edf2;
    --hygeia-link: #9cc4de;
    --hygeia-header-bg: #0f1418;
    --hygeia-surface: #1a2229;
    --hygeia-toggle-track: #6c8fa8;
    --hygeia-toggle-thumb: #0f1418;
    --hygeia-toggle-shadow: rgba(0, 0, 0, 0.45);
}

body {
    background: var(--hygeia-bg);
    color: var(--hygeia-text);
}

.dark-mode body {
    background: var(--hygeia-bg);
    color: var(--hygeia-text);
}

a {
    color: var(--hygeia-link);
}

.dark-mode .site-header {
    background: var(--hygeia-header-bg);
}

.hygeia-theme-toggle__text {
    display: inline-flex;
    align-items: center;
    flex-direction: column;
    gap: 8px;
    text-decoration: none;
    color: var(--hygeia-link);
    opacity: 0.95;
    font-weight: 600;
    line-height: 1;
}

.hygeia-theme-toggle__text:hover {
    opacity: 1;
}

.hygeia-theme-toggle__text:focus-visible {
    outline: 2px solid var(--hygeia-link);
    outline-offset: 4px;
    border-radius: 2px;
}

.hygeia-theme-toggle__track {
    width: 50px;
    height: 25px;
    border-radius: 999px;
    background: var(--hygeia-toggle-track);
    position: relative;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
    transition: background 0.2s ease, box-shadow 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
}

.hygeia-theme-toggle__icon {
    font-size: 16px;
    line-height: 1;
    color: var(--hygeia-toggle-thumb);
    opacity: 1;
    width: 15px;
    height: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hygeia-theme-toggle__icon.fa {
    font-family: FontAwesome;
}

.hygeia-theme-toggle__thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--hygeia-toggle-thumb);
    position: absolute;
    top: 4px;
    left: 3px;
    box-shadow: 0 2px 6px var(--hygeia-toggle-shadow);
    transition: transform 0.2s ease, background 0.2s ease;
}

.dark-mode .hygeia-theme-toggle__thumb {
    transform: translateX(27px);
}

.dark-mode .main-navigation .inside-navigation {
    background-color: var(--hygeia-header-bg);
}

.dark-mode #primary-menu ul li.current-menu-item a:before,
.dark-mode #primary-menu ul li a:hover:before {
    background-color: #60925f;
}

.dark-mode #primary-menu ul li a {
    color: var(--hygeia-link);
}

.dark-mode #primary-menu ul li.current-menu-item a,
.dark-mode #primary-menu ul li a:hover {
    color: var(--hygeia-link);
}

.dark-mode .inside-article {
    background-color: var(--hygeia-surface) !important;
    color: var(--hygeia-text);
}

.dark-mode section.fixed-bg {
    background: none var(--hygeia-surface) !important;
}

.dark-mode section.fixed-bg::after {
    display: none !important;
}

.dark-mode .hcs-nav-icon {
    filter: invert(97%) sepia(4%) saturate(675%) hue-rotate(179deg) brightness(100%) contrast(91%);
}

.dark-mode .hcs-nav-title {
    color: var(--hygeia-text);
}

.dark-mode .hcs-nav-link {
    color: var(--hygeia-text);
    border-color: var(--hygeia-text);
}

.dark-mode .wp-block-column.contact-left > * {
    color: var(--hygeia-text);
}

.dark-mode .wp-block-column.contact-left .contact-details a {
    color: var(--hygeia-text);
}

.dark-mode .ha-block {
    background-color: var(--hygeia-surface) !important;
}

.dark-mode .ha-block.no-image {
    background: none var(--hygeia-surface) !important;
}

.dark-mode .ha-block.no-image .ha-headline {
    color: var(--hygeia-text);
    text-shadow: 4px 5px var(--hygeia-toggle-thumb);
}

.dark-mode .footer-widgets .footer-widgets-container .inside-footer-widgets .footer-widget-2 aside figure img {
    filter: invert(1);
}

.hygeia-theme-toggle__label {
    display: inline-block;
}
