body {
    display: flex;
    min-height: 100vh;
}

.layout {
    display: flex;
    width: 100%;
}

.sidebar {
    flex: 0 0 16%;
    padding: 20px;
    align-self: flex-start;
}

.sidebar-title {
    display: block;
    border-bottom: 1px dotted #808080;
    margin-bottom: 0.25em;
    font-size: 110%;
    font-weight: 700;
}
.sidebar-subtitle {
    color: #676767;
    font-size: 90%;
    margin-bottom: 1em;
}

.content {
    flex: 0 0 74%;
    padding: 20px;
    margin-bottom: 20px;
    background: var(--bg);
}

.callout-permalink {
    color: -webkit-link;
}


.side-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}
.side-tree,
.side-tree ul {
    list-style: none;
    margin: 0;
    padding-left: 0;
}
.side-tree ul {
    margin-left: 0.8em;
}
.side-tree summary {
    cursor: pointer;
    user-select: none;
}
.side-tree summary::marker {
    color: #676767;
}
.side-tree .dir {
    margin-top: 0.3em;
}

.side-nav li {
    margin-top: 0.3em;
}

.side-nav .d1 { margin-left: 0.5em; }
.side-nav .d2 { margin-left: 1em; }
.side-nav .d3 { margin-left: 1.5em; }
.side-nav .d4 { margin-left: 2em; }

.side-nav a {
    text-decoration: none;
}

.side-nav a.thisPage {
    font-weight: 700;
    text-decoration: underline;
}

@media (max-width: 900px) {
    body, .layout {
        flex-direction: column;
    }

    .sidebar,
    .content {
        flex: 0 0 auto;
        width: 100%;
    }

    .content {
        margin-bottom: 0;
    }
}
