footer.footer {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(34rem 8rem at 50% 120%, rgba(45, 92, 128, .18), transparent 72%),
        linear-gradient(104deg, #080e14, #0e1923 52%, #0a1118) !important;
    color: var(--o3d-muted) !important;
    border-top: 1px solid rgba(255, 150, 73, .43) !important;
    padding: .92rem 0;
    text-align: center;
    font-size: .95rem;
    box-shadow: 0 -1.15rem 2.5rem rgba(0, 0, 0, .26);
}

footer.footer::before {
    position: absolute;
    z-index: 0;
    top: 0;
    left: 50%;
    width: min(18rem, 58vw);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 166, 93, .8), transparent);
    content: "";
    transform: translateX(-50%);
}

footer.footer a {
    color: rgba(224, 235, 244, .74) !important;
    text-decoration: none;
    transition: color .2s ease;
}

footer.footer a:hover {
    color: var(--o3d-accent-soft) !important;
    text-decoration: none;
}

footer.footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    /* Hidden by default so a page can never flash the footer before its
       scroll state has been calculated. */
    transform: translateY(100%);
    transition: transform .35s ease;
    will-change: transform;
    /* Override Bootstrap spacing. */
    margin-top: 0 !important;
}

footer.footer .container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .7rem;
    flex-wrap: wrap;
}

.site-footer-links {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: .7rem;
}

.site-footer-links a + a {
    position: relative;
    padding-left: .7rem;
}

.site-footer-links a + a::before {
    position: absolute;
    left: 0;
    color: rgba(255, 255, 255, .24);
    content: "•";
}

footer.footer.footer-hidden {
    transform: translateY(100%);
}

footer.footer.footer-visible {
    transform: translateY(0);
}

/* Public site: the footer is fixed, so reserve scrollable space inside the
   page content itself. This keeps the final product row above the footer. */
:root {
    --fixed-footer-clearance: 5.75rem;
}

main[role="main"] {
    padding-bottom: calc(var(--fixed-footer-clearance) + 1.5rem) !important;
}

@media (max-width: 576px) {
    :root {
        --fixed-footer-clearance: 6.5rem;
    }

    footer.footer .container {
        gap: .3rem .6rem;
    }

    .site-footer-links {
        gap: .25rem .6rem;
    }
}

/* Admin dashboard */
.admin-content {
    padding-bottom: 140px;
}
