/* Shared visitor appearance selector and background modes. */
body.appearance-light #bg {
    background-image: url('/images/index/tw_bker_3.jpg') !important;
}

body.appearance-dark #bg {
    background-image: url('/images/index/tw_bker_4.jpg') !important;
}

body.appearance-light:not(.homepage-body) {
    background-image: url('/images/index/tw_bker_3.jpg') !important;
}

body.appearance-dark:not(.homepage-body) {
    background-image: url('/images/index/tw_bker_4.jpg') !important;
}

.appearance-switcher {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 3px;
    flex: 0 0 auto;
    width: max-content;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.appearance-option {
    appearance: none;
    border: 0;
    border-radius: 6px;
    padding: 3px 8px;
    background: none;
    color: rgba(255, 255, 255, .8);
    font: 500 .82rem/normal 'Segoe UI', 'PingFang TC', sans-serif;
    white-space: nowrap;
    cursor: pointer;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .6);
    transition: color .2s;
}

.appearance-option:hover {
    color: #f0a500;
    background: none;
}

.appearance-option[aria-pressed="true"] {
    color: #f0a500;
    background: none;
    box-shadow: none;
}

.appearance-option:focus-visible {
    outline: 2px solid #f0a500;
    outline-offset: 2px;
}

@media (max-width: 599px) {
    .appearance-switcher {
        gap: 1px;
    }

    .appearance-option {
        padding-inline: 3px;
        font-size: .7rem;
    }

    .sf-lang-row {
        gap: 1px !important;
        overflow-x: auto;
        justify-content: flex-start !important;
        scrollbar-width: none;
    }

    .sf-lang-row::-webkit-scrollbar {
        display: none;
    }

    .sf-lang-row .fl-btn {
        padding-inline: 3px;
        font-size: .7rem;
        flex: 0 0 auto;
    }

    .sf-lang-row .fl-sep {
        flex: 0 0 auto;
    }
}
