#Menu{
    --color-text: var(--color-text-inverted);
    background: var(--color-accent);
    position:fixed;
    top:0;
    right:0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    z-index:2;

    &:has(details[open]){
        inset:0;
    }

    summary{
        list-style: none;
        pointer-events: all;
        width: 100%;
        max-width:var(--content-width);
        position: fixed;
        margin: 0 auto;
        left: 0;
        right: 0;
        top:2.1739rem; /* 50px */
        &::-webkit-details-marker {
            display: none;
        }

        >span{
            position: absolute;
            right:0;
            width: var(--ch-big-text);
            height: var(--ch-big-text);
            border-radius: 50%;
            background: var(--color-accent);
            cursor: pointer;
            display: flex;
            align-items: start;
            justify-content: center;
            display:block;
            >img{
                filter: invert(1);
                display: none;
                width:100%;
                height:100%;
            }
        }

    }

    details{
        &[open]{
            summary {
                background: transparent;
                >span>img{
                    display: block;
                }
            }
        }
    }

    ul{
        margin-top:calc((var(--ch-big-text) * 2) + 0.8rem);
        pointer-events: all;
        display: flex;
        flex-flow: column;
        align-items: center;
    }

    a,
    a:visited{
        color: #fff;
    }

    @media all and (max-width: 900px) {

        details:not([open]){
            summary {
                >span{
                    body.scrolled & {
                        transform: translateY(-300%);
                    }
                    body.scrolling-up & {
                        transform: translateY(0);
                    }
                }
            }
        }

        summary{
            position: fixed;
            top:19px;
            >span{
                width: 28px;
                height: 28px;
                transition: transform .5s;
            }
        }

        ul{
            margin-top:104px;
            display:flex;
            flex-direction: column;
            font-size: 32px;
            line-height: 48px;

            /* text-box-trim not working. work-around works as long as every item sits on one line only*/
            gap: calc(24px + 1em);
            >li{
                display:flex;
                >a{
                    line-height: 0;
                }
            }
        }

    }

}