html {
    scroll-behavior: smooth;
}

.static-head {
    padding: 10vh 0;
    background: var(--key-500) url("../../images/back.jpg") no-repeat center / cover;
}

.static-head h1 {
    color: var(--light);
    font-size: 40px;
    margin-bottom: 10px;
}

.static-content {
    min-height: 100vh;
    color: var(--text);
    line-height: 1.5em;
    font-size: 20px;
    word-break: break-word;
}

.static-content * {
    line-height: inherit;
}

.static-head p {
    color: var(--light);
    font-size: 16px;
    opacity: 0.9;
}

.static-page .wrapper {
    max-width: 1200px;
}

.static-body h1,
.static-body h2,
.static-body h3,
.static-body h4,
.static-body h5,
.static-body h6 {
    margin: 30px 0 10px;
}

.static-wrapper.wrapper {
    display: flex;
    align-items: flex-start;
    gap: 100px;
    padding: 10vh 0;
}

.page-sidebar {
    position: sticky;
    top: 150px;
    width: 300px;
    flex-shrink: 0;
    max-height: calc(90vh - 100px);
    overflow: hidden auto;
}

.page-sidebar ul {
    font-size: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

aside.page-sidebar ul li.active a {
    font-weight: bold;
}


select.mob-toc {
    width: 100%;
    padding: 20px;
    border: 1px solid var(--shade-500);
    border-radius: 5px;
    display: none;
}

@media screen and (max-width: 768px) {
    .static-wrapper.wrapper {
        flex-direction: column;
        gap: 30px
    }

    aside.page-sidebar {
        position: static;
        max-height: 100%;
        width: 100%
    }

    aside.page-sidebar ul {
        display: none;
    }

    select.mob-toc {
        display: block;
    }
}