.navigation-icons .header-theme {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    box-sizing: border-box;
    width: 64px;
    height: 44px;
    margin: 0 8px;
    padding: 0 8px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.header-theme::before {
    content: "";
    position: absolute;
    inset: 6px 0;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: inherit;
    background: #566579;
    transition: background 160ms ease;
}

.header-theme[aria-checked="true"]::before {
    background: #2563a6;
}

.header-theme__thumb {
    position: absolute;
    top: 10px;
    left: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    transition: transform 160ms ease;
}

.header-theme[aria-checked="true"] .header-theme__thumb {
    transform: translateX(32px);
}

.navigation-icons .header-theme i {
    position: relative;
    width: 16px;
    margin: 0;
    font-size: 16px;
    line-height: 1;
    text-align: center;
    pointer-events: none;
}

.header-theme__sun {
    color: #f2ae22;
}

.header-theme__moon {
    color: #fff;
}

.header-theme[aria-checked="true"] .header-theme__moon {
    color: #2563a6;
}

.navigation-icons .header-theme:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .header-theme::before,
    .header-theme__thumb {
        transition: none;
    }
}
