/* Layout */
.content {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
}

.markdown-section {
    flex: 1 1 0%;
    margin: 0 48px;
}

.nav {
    align-self: flex-start;
    flex: 0 0 auto;
    margin-top: 48px;
    width: var(--toc-width, 200px);
}

aside.nav.nothing {
    width: 0;
}

.page-toc {
    border-image-slice: 1;
    border-left-color: rgba(0, 0, 0, 0.12);
    border-left-style: solid;
    border-left-width: 1px;
    padding: 0 0 0 15px;
    position: fixed;
}


/* Inactive link (base style)
 * Not the <a> tag, the container for the <a> */
.toc-link {
    border-left: 2px solid transparent;
    padding-left: 15px;
}

/* Active link
 * Not the <a> tag, the container for the <a> */
.toc-active {
    border-left: 2px solid #53a688 !important;
}


/* Contents title */
.page-toc p._title {
    font-size: 1em;
    font-weight: bold;
    margin: 0;
    padding-bottom: 10px;
    text-transform: uppercase;
}


/* Contents <a> tags */
.page-toc div[class^='lv'] a:hover span {
    color: var(--text-color-nav-highlight, #42856d);
}

.page-toc div[class^='lv'] a {
    color: var(--text-color-base, #333);
    font-weight: 300;
    line-height: 1.8em;
    text-decoration: none;
}

/* <a> text truncating */
.page-toc div[class^='lv'] a span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: calc(var(--toc-width, 300px) - 50px);
}


/* Indent higher h tags */
.page-toc div.lv3 span {
    padding-left: 10px;
}

.page-toc div.lv4 span {
    padding-left: 20px;
}

.page-toc div.lv5 span {
    padding-left: 30px;
}


/* Hide on small screens, adjust layout */
@media screen and (max-width: 1300px) {
    .page-toc {
        display: none;
    }

    .nav {
        margin: 0 auto;
        width: 800px;
    }

    .content {
        display: block;
    }

    .markdown-section {
        margin: 0 auto;
    }
}
