/* Floating navigation inherits each venue's palette, including dark themes. */
.venue-body .site-footer {
    /* Leave room for the fixed control so footer links stay reachable at the bottom. */
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
}

.menu-return-top {
    position: fixed;
    inset-inline-end: max(20px, env(safe-area-inset-right));
    bottom: calc(20px + env(safe-area-inset-bottom) + var(--menu-notice-height, 0px));
    z-index: 40;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 48px;
    padding: 11px 17px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    color: var(--ink);
    box-shadow: 0 4px 22px rgba(0, 0, 0, .15);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s;
}

.menu-return-top[hidden] {
    display: none;
}

.menu-return-top svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
}

.menu-return-top:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 26px rgba(0, 0, 0, .23);
}

.menu-return-top:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .menu-return-top {
        transition: none;
    }
}

@media print {
    .menu-return-top {
        display: none;
    }
}
