#site_footer {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    color: var(--site-light-color);
    border-top: 5px solid rgba(0, 0, 0, 0.25);
    background-color: var(--primary-site-color);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.35);

    .limited-width.content-wrapper {
        flex-wrap: nowrap;
        padding: calc(var(--base-padding) * 2) var(--base-padding);
    }
    .section {
        display: inline-flex;
        margin: 0;
        padding: var(--base-padding);
        flex: 1;
        /* align-items: center; */
        justify-content: center;
        flex-direction: column;

        &.footer-links {   
            flex-direction: column;
            
            ul {
                list-style: none;
                padding: 0;
                margin: 0;
            }
        }
        &.footer-links {
            /* text-align: left; */
            /* font-size: 0.9em; */

            /* > :first-child {
                justify-content: flex-start;
            } */
            .separator {
                border-bottom: 1px solid rgb(from var(--site-light-color) r g b / 0.35);
                margin: calc(var(--base-padding) / 2) 0;
                width: 10em;
            }
        }
        &.site-info {
            text-align: center;
            flex-direction: unset;
            justify-content: center;
            flex-grow: 0;
            /* flex-grow: 2; */
            /* flex: 2; */
            /* flex: 1 0 content; */
            opacity: 0.75;

            > .content-container {
                flex-direction: column;
            }
            
            /* > * {
                justify-content: center;
            } */
            .credits-tag {
                font-family: var(--site-alt-font-family);
                white-space: nowrap;
                /* flex: 1 0 100%; */
                /* flex-grow: 0; */
                /* flex-shrink: 0; */
                /* flex-basis: 100%; */
                /* width: 100%; */
                .icon {
                    font-size: 1.15em;

                    &.fa-heart {
                        color: fuchsia;
                        transform: rotate(-15deg);
                    }
                    &.fa-mug-hot {
                        color: gold;
                        transform: rotate(15deg) translateX(10%);
                    }
                }
            }
            .subtitle {
                display: flex;
                justify-content: space-between;
                margin-top: calc(var(--base-padding) / 4);
                width: 100%;

                /* .site-version {
                    opacity: 0.5 !important;
                } */
            }
        }
    }
}

#site_footer :is(a, button.link-button):not(.dark-highlight-link) {
    color: inherit;
    transition: opacity 0.25s ease-in-out;
}
#site_footer :is(a, button.link-button):not(.dark-highlight-link):visited {
    color: inherit;
}
#site_footer :is(a, button.link-button):not(:hover):not(:focus):not(:active) {
    text-decoration: none;
    opacity: 0.75;
}
#site_footer :is(a, button.link-button):is(:hover, :focus) :is(dt, dd) {
    text-decoration: underline;
}
#site_footer :is(a, button.link-button):active {
    opacity: 0.65;
}

#site_footer .section.site-info .info.site-version {
    /* display: flex;
    justify-content: center;
    flex-direction: column;
    flex-wrap: wrap; */
}
#site_footer .section.site-info :is(dt, dd) {
    display: inline-block;
    padding: 0;
    margin: 0;
}
#site_footer .section.site-info dt::after {
    content: ':';
}
#site_footer .section.site-info dd {
    font-weight: bold;
    /* width: 100%; */
}

/* #site_footer .user-prefs {
    flex-direction: column;
    flex-wrap: wrap;
    align-items: flex-end;
} */
#site_footer .user-prefs fieldset.preference {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: flex-end;
    border: none;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
}
#site_footer .user-prefs .preference legend {
    /* float: left;
    margin-right: 6px; */
    position: absolute;
    visibility: hidden;
}
#site_footer .user-prefs .preference legend::after {
    content: ':';
}
#site_footer .user-prefs .preference .radio-switch {
    display: flex;
    width: 50px;
    border-radius: 20px;
    background-color: rgb(from var(--site-light-color) r g b / 0.5);
    box-sizing: content-box;
    /* transform: scale(125%); */
}
#site_footer .user-prefs .preference :is(.radio-switch, .radio-switch .radio input) {
    border: 2px solid;
    border-color: transparent;
}
body:not([class="light-mode"]):not([class="dark-mode"])
#site_footer .user-prefs .preference .radio-switch {
    border-color: rgb(from var(--site-background-color) r g b / 0.75);
}
body:not([class="light-mode"]):not([class="dark-mode"])
#site_footer .user-prefs .preference .radio-switch .radio input {
    /* border-color: rgb(from var(--site-light-color) r g b / 0.85); */
    /* border-color: inherit; */
    /* border-color: rgb(from var(--site-dark-color) r g b / 0.75); */
}
#site_footer .user-prefs .preference .radio-switch:has(input:is(:active, :focus)) .radio input {
    border-color: inherit;
}
#site_footer .user-prefs .preference .radio-switch .radio {
    display: inline-flex;
    position: relative;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.25s ease-in, transform 0.25s ease-in;
}
#site_footer .user-prefs .preference .radio-switch .icon {
    display: inline-flex;
    position: relative;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    z-index: 1;
}
#site_footer .user-prefs .preference .radio-switch input[type="radio"] {
    appearance: none;
    position: absolute;
    height: 125%;
    width: 125%;
    padding: 0;
    margin: 0;
    border-radius: 20px;
}
#site_footer .user-prefs .preference .radio-switch :is(label, input) {
    cursor: pointer;
}
#site_footer .user-prefs .preference .radio-switch .light-mode {
    color: var(--site-dark-color);
}
#site_footer .user-prefs .preference .radio-switch .dark-mode {
    color: var(--site-light-color);
}
#site_footer .user-prefs .preference .radio-switch .light-mode input[type="radio"] {
    background-color: var(--site-light-color);
}
#site_footer .user-prefs .preference .radio-switch .dark-mode input[type="radio"] {
    background-color: var(--site-dark-color);
}
#site_footer .user-prefs .preference .sync-with-system {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
    width: 100%;
    font-size: 0.9em;
    padding: 8px;
    text-decoration: none;
}
#site_footer .user-prefs .preference .sync-with-system label {
    opacity: 0.75;
}
#site_footer .user-prefs .preference .sync-with-system label:hover:not(:has(+ input:checked)) {
    cursor: pointer;
    opacity: 1;
}
#site_footer .user-prefs .preference .sync-with-system input {
    position: absolute;
    visibility: hidden;
}

body:not([class="light-mode"]):not([class="dark-mode"]) 
#site_footer .user-prefs .preference .sync-with-system {
    opacity: 0.65;
    font-style: italic;
}

#site_footer .user-prefs .preference[name="color-mode"] button.sync-with-system {
    color: inherit;
}
#site_footer .user-prefs .preference[name="color-mode"] button.sync-with-system:not(:disabled) .selected-content,
#site_footer .user-prefs .preference[name="color-mode"] button.sync-with-system:disabled .deselected-content {
    display: none;
}
@keyframes dark-mode-selected {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}
@keyframes light-mode-selected {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@media (prefers-color-scheme: light) {
    body:not([class="light-mode"]):not([class="dark-mode"]) #site_footer .user-prefs .preference .radio-switch .radio.light-mode {
        opacity: 1;
    }
    body:not([class="light-mode"]):not([class="dark-mode"]) #site_footer .user-prefs .preference .radio-switch.checked .radio.light-mode {
        animation: light-mode-selected 0.25s ease-in;
    }
    body:not([class="light-mode"]):not([class="dark-mode"]) #site_footer .user-prefs .preference .radio-switch.checked .radio.dark-mode {
        animation: dark-mode-selected 0.25s ease-in reverse;
    }
    body:not([class="light-mode"]):not([class="dark-mode"])
    #site_footer .user-prefs .preference .radio-switch {
        border-color: rgb(from var(--site-background-color) r g b / 0.35);
    }
}
@media (prefers-color-scheme: dark) {
    body:not([class="light-mode"]):not([class="dark-mode"]) #site_footer .user-prefs .preference .radio-switch .radio.dark-mode {
        opacity: 1;
    }
    body:not([class="light-mode"]):not([class="dark-mode"]) #site_footer .user-prefs .preference .radio-switch.checked .radio.dark-mode {
        animation: dark-mode-selected 0.25s ease-in;
    }
    body:not([class="light-mode"]):not([class="dark-mode"]) #site_footer .user-prefs .preference .radio-switch.checked .radio.light-mode {
        animation: light-mode-selected 0.25s ease-in reverse;
    }
    body:not([class="light-mode"]):not([class="dark-mode"])
    #site_footer .user-prefs .preference .radio-switch {
        border-color: rgb(from var(--site-background-color) r g b / 0.65);
    }
}
body[class="light-mode"] #site_footer .user-prefs .preference .radio-switch .radio.light-mode,
body[class="dark-mode"] #site_footer .user-prefs .preference .radio-switch .radio.dark-mode {
    opacity: 1;
}
body[class="light-mode"] #site_footer .user-prefs .preference .radio-switch.checked .radio.light-mode {
    animation: light-mode-selected 0.25s ease-in;
}
body[class="light-mode"] #site_footer .user-prefs .preference .radio-switch.checked .radio.dark-mode {
    animation: dark-mode-selected 0.25s ease-in reverse;
}
body[class="dark-mode"] #site_footer .user-prefs .preference .radio-switch.checked .radio.dark-mode {
    animation: dark-mode-selected 0.25s ease-in;
}
body[class="dark-mode"] #site_footer .user-prefs .preference .radio-switch.checked .radio.light-mode {
    animation: light-mode-selected 0.25s ease-in reverse;
}

