header nav a[disabled] {
    cursor: not-allowed;
    background-color: var(--bg);
    color: var(--border);
}

header nav a:hover[disabled] {
  border-color: var(--border);
}

body {
    grid-template-columns: 1fr 90% 1fr;
}

body > header, body > footer {
    padding: 1rem 0.5rem 1rem 0.5rem;
}

sidebar-and-content {
    padding-top: 1.5rem;
}

sidebar-and-content > nav, sidebar-and-content > main {
    padding-top: 0
}

sidebar-and-content nav ol, sidebar-and-content nav ul {
    list-style-type: none;
}

auto-scroll {
    display: block;
    width: 100%;
    overflow-x: auto;
}

auto-scroll > * {
    width: 100%;
    margin: 0;
}

code {
    word-wrap: break-word;
}

.hljs {
    background: none !important;
}

@media only screen and (min-width: 1280px) {
    sidebar-and-content {
        display: flex;
        flex-direction: row-reverse;
        justify-content: center;
    }

    sidebar-and-content > nav {
        position: sticky;
        align-self: flex-start;
        top: 1.5rem;
        font-size: 1rem;
        overflow: auto;
        max-height: calc(100vh - 3rem);
    }

    sidebar-and-content > main {
        min-width: 0;
        max-width: 67%;
    }
}

@media only screen and (max-width: 1280px) {
    header nav a {
        padding: 0.1rem 1rem;
        line-height: 2;
        text-decoration: none;
        border: var(--border-width) solid var(--border);
    }

    aside {
        width: 100%;
        float: none;
        margin-inline-start: 0;
    }
}
