header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    box-shadow: 0 0 16px 0 #0002;
    border-bottom: 1px solid #0001;
    background-color: #fff;
    z-index: 100;
    position: sticky;
    top: 0;
    nav {
        display: flex;
        align-items: center;
        gap: 12px;
        a,summary {
            text-wrap: nowrap;
            &:hover {
                font-weight: bold;
            }
            &.line {
                background-color: #06C755;
                color: #fff;
                display: flex;
                align-items: center;
                padding: 8px 10px;
                border-radius: 8px;
                gap: 4px;
            }
        }
        details {
            position: relative;
            summary {
                display: flex;
                align-items: center;
                gap: 2px;
                list-style: none;
                &::-webkit-details-marker {
                display: none;
                }
            }
            div {
                position: absolute;
                top: calc(100% + 20px);
                left: 0;
                background-color: #fff;
                display: flex;
                align-items: start;
                flex-direction: column;
                border-radius: 12px;
                box-shadow: 0 0 8px 0 #0002;
                overflow: hidden;
                a {
                    border-top: 1px solid #0002;
                    width: 100%;
                    padding: 8px 16px;
                    &:hover {
                        background-color: #0002;
                    }
                }
            }
        }
        details[open] img {
            rotate: 180deg;
        }
    }
    .mobile-menu {
        display: none;
    }
}


@media only screen and (max-width:1000px) {
    header {
        z-index: 100;
        nav {
            display: none;
        }
        .mobile-menu {
            display: unset;
            summary {
                display: flex;
                align-items: center;
                gap: 2px;
                list-style: none;
                &::-webkit-details-marker {
                display: none;
                }
            }
            aside {
                display: flex;
                align-items: start;
                flex-direction: column;
                position: fixed;
                top: 70px;
                right: 0;
                background-color: #fff;
                height: calc(100dvh - 70px);
                min-width: 60vw;
                border-left: 1px solid #0002;
                a,details {
                    border-top: 1px solid #0001;
                    width: 100%;
                    padding: 8px 16px;
                    &:not(details):hover {
                        background-color: #0002;
                    }
                    div {
                        display: flex;
                        align-items: start;
                        flex-direction: column;
                    }
                    &.line {
                        display: flex;
                        align-items: center;
                        gap: 4px;
                    }
                }
            }
        }
    }
}