.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1045;
    width: min(88vw, 360px);
    height: var(--mobile-nav-viewport-height, 100vh) !important;
    max-height: var(--mobile-nav-viewport-height, 100vh);
    background: var(--paper);
}

.mobile-nav .offcanvas-body {
    min-height: 0;
    flex: 1 1 auto;
    padding: 1rem 1rem 0 !important;
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
    background: var(--paper);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.mobile-nav .offcanvas-body::-webkit-scrollbar {
    display: none;
}

.mobile-nav-links {
    display: grid;
    gap: .35rem;
}

.mobile-nav-links a {
    padding: .85rem 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-size: 1.1rem;
    font-weight: 800;
    text-decoration: none;
}

.mobile-nav-intro {
    position: relative;
    flex: 0 0 auto;
    margin: 0 -1rem;
    margin-bottom: calc(-1 * env(safe-area-inset-bottom, 0px));
    padding: 1.25rem;
    padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
    background: var(--navy);
    color: #fff;
}

.mobile-nav-intro > * {
    position: relative;
    z-index: 1;
}

.mobile-nav-intro .pill {
    background: #edf4ef;
}

.mobile-nav-intro p {
    color: rgba(255, 255, 255, .72);
    font-size: .9rem;
}

.mobile-nav-plan {
    padding: .7rem .8rem;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 13px;
    background: rgba(255, 255, 255, .08);
    font-size: .84rem;
}

.mobile-nav-plan strong {
    font-size: 1rem;
}

.mobile-menu-toggle {
    display: grid;
    width: 42px;
    height: 42px;
    padding: 0;
    place-items: center;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
    box-shadow: none;
}

.mobile-menu-lines {
    display: grid;
    width: 25px;
    height: 18px;
    align-content: space-between;
}

.mobile-menu-lines span {
    display: block;
    width: 100%;
    height: 2.5px;
    border-radius: 99px;
    background: var(--ink);
}

@media (max-width: 767.98px) {
    .mobile-nav.offcanvas {
        top: 0;
        right: 0;
        bottom: auto;
        left: 0;
        --bs-offcanvas-width: auto;
        --bs-offcanvas-bg: var(--paper);
        --bs-offcanvas-border-width: 0;
        width: auto !important;
        max-width: none;
        height: var(--mobile-nav-viewport-height, 100dvh);
        max-height: var(--mobile-nav-viewport-height, 100dvh);
        border: 0;
        border-radius: 0;
        box-shadow: none;
        overflow: hidden;
    }

    .app-nav,
    .mobile-nav .offcanvas-header {
        min-height: 74px;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .app-nav .navbar-brand,
    .mobile-nav .offcanvas-header .brand {
        display: flex;
        align-items: center;
        font-size: 1.25rem;
        height: 42px;
        line-height: 1.2;
    }

    .app-nav .brand-mark,
    .mobile-nav .offcanvas-header .brand-mark {
        width: 42px;
        height: 42px;
        flex: 0 0 42px;
        margin-right: .65rem;
    }

    .mobile-nav .offcanvas-header {
        align-items: center;
        padding-right: .75rem;
        padding-left: .75rem;
    }
}

@media (max-width: 575.98px) {
    /* One compact header treatment for every public page, including auth. */
    .app-nav {
        min-height: 70px;
        padding-top: .7rem !important;
        padding-bottom: .7rem !important;
    }

    .app-nav .container {
        width: calc(100% - 2rem);
        max-width: none;
    }

    .app-nav .navbar-brand {
        min-width: 0;
        margin-right: auto;
        font-size: 1.1rem;
    }

    .app-nav .brand-mark {
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
        margin-right: .45rem;
        border-radius: 13px;
    }

    .app-nav .brand-mark .somi-mark {
        width: 23px;
        height: 23px;
    }

    .app-nav .brand-name {
        gap: .16em;
    }

    .app-nav .guest-nav {
        flex: 0 0 auto;
        gap: .1rem !important;
    }

    .app-nav .guest-plans-link {
        display: none;
    }

    .app-nav .guest-nav .btn {
        padding: .5rem .62rem;
        border-radius: 11px;
        font-size: .82rem;
        line-height: 1.2;
    }

    .app-nav .guest-nav .btn-link {
        padding-right: .4rem;
        padding-left: .4rem;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .mobile-nav {
        --bs-offcanvas-width: min(88vw, 360px);
    }
}

@media (min-width: 992px) {
    .app-nav .container {
        width: min(1320px, calc(100% - 3rem));
        max-width: none;
    }

    .mobile-nav {
        display: none !important;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .app-nav .container {
        width: calc(100% - 3rem);
        max-width: none;
    }
}
.site-primary-nav {
    align-items: center;
    gap: 1.5rem;
    margin-left: auto;
}

.site-primary-nav a,
.site-nav-logout {
    color: #5d6762;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
}

.site-primary-nav a:hover,
.site-nav-logout:hover,
.site-primary-nav a[aria-current="page"],
.mobile-nav-links a[aria-current="page"] {
    color: var(--coral);
}

.site-primary-nav .site-nav-register {
    padding: .75rem 1rem;
    border-radius: 14px;
    background: var(--coral);
    color: #fff;
}

.site-primary-nav .site-nav-register:hover,
.site-primary-nav .site-nav-register[aria-current="page"] {
    background: var(--coral-dark);
    color: #fff;
}

.site-nav-logout {
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.site-primary-nav a:focus-visible,
.site-nav-logout:focus-visible,
.mobile-nav-links a:focus-visible,
.mobile-menu-toggle:focus-visible {
    outline: 2px solid var(--coral);
    outline-offset: 4px;
    border-radius: .2rem;
}
