/* Menu overlay and the phone bar */
.menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 60;
    background: var(--bg);
    color: var(--ink);
    padding: 96px 32px 120px;
    font-family: var(--head);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.6;
    overflow-y: auto;
}
.menu a {
    display: block;
    text-decoration: none;
}
.menu .x {
    position: absolute;
    top: 22px;
    right: 32px;
    padding: 8px 0;
    background: none;
    border: 0;
    font-family: var(--body);
    font-size: 15px;
    font-weight: 600;
    color: inherit;
    cursor: pointer;
}
body.menu-open .menu {
    display: block;
}
.mobilebar {
    display: none;
}

@media (max-width: 980px) {
    #nav {
        --logo: 36px;
        --logo-big: clamp(56px, calc((100vw - 110px) / 4.1), 72px);
    }
    /* photo-hero pages on phones: the big logo and the burger share the row; the bottom bar carries Schedule */
    #nav.over .btn.small {
        display: none;
    }
    #nav .links,
    #nav .phone {
        display: none;
    }
    #nav .right {
        gap: 14px;
    }
    #nav .logo {
        top: 4px;
    }
    #nav.over:not(.solid) .logo {
        top: 0;
    }
    #nav,
    #nav.over,
    #nav.over.solid {
        padding: 16px 0;
    }
    .burger {
        display: block;
    }
    .mobilebar {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 55;
        background: var(--bg);
        border-top: 1px solid var(--line);
        box-shadow: 0 -6px 20px rgba(0, 0, 0, .06);
    }
    .mobilebar a {
        flex: 1;
        padding: 16px;
        text-align: center;
        font-weight: 700;
        font-size: 17px;
        text-decoration: none;
    }
    .mobilebar a + a {
        background: var(--accent);
        color: #fff;
    }
    body {
        padding-bottom: 58px;
    }
}
@media (max-width: 600px) {
    #nav .logo {
        left: 22px;
    }
    #nav .wrap {
        padding-left: 22px;
        padding-right: 22px;
    }
}
