nav#floating-menu {
    display: flex;
    position: sticky;
    top: 5rem;
    align-self: flex-start;
    flex-direction: column;
    width: 20%;

    i {
        margin-right: var(--margin-left-right);
    }

    ul {
        list-style: none;
        margin: 0;
        padding: 0;

        li:first-of-type {
            margin-bottom: var(--margin-top-bottom);
        }
    }

    .tags {
        margin-top: var(--margin-top-bottom);
        font-size: 0.95rem;

        li:first-of-type {
            margin-bottom: 0;
        }
    }
}

/* The #container prefix keeps the mobile menu above the page-level #container #floating-menu rules */
#container nav#floating-menu {
    @media (max-width: 991.98px) {
        display: none;
    }

    &.active {
        @media (max-width: 991.98px) {
            display: flex;
            position: fixed;
            background: white;
            padding: 2rem;
            width: 75%;
            height: 100vh;
            margin-left: 24%;
            right: 0;
            top: 4rem;
        }

        @media (max-width: 575.98px) {
            width: 100%;
        }
    }
}
