body {
    margin: 0;
    line-height: 1.5;
    background: #eee;
    color: #555;
    font-family: sans-serif;
    word-wrap: break-word;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

nav {
    background: #fff;
    border-bottom: 1px solid #ddd;
    margin-bottom: 1rem;
}

nav .container {
    margin: 0 auto;
    padding: 1rem;
    max-width: 72rem;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
}

nav .title {
    font-size: 1.25rem;
}

nav .links {
    display: flex;
    gap: 1rem;
}

nav a:hover {
    text-decoration: none;
}

.outer {
    flex: 1 0 auto;
    margin: 0 auto;
    padding: 0 1rem;
    max-width: 72rem;
    box-sizing: border-box;
    display: flex;
    width: 100%;
    gap: 1rem;
}

@media screen and (max-width: 56rem) {
    .outer {
        display: block;
    }
}

main {
    flex: 1 1 56rem;
}

main section {
    padding: 0 1rem;
    background-color: #fff;
    border: 1px solid #ddd;
    margin-bottom: 1rem;
}

main section.more {
    text-align: center;
}

aside {
    flex: 0 0 16rem;
    font-size: .9rem;
}

aside section {
    padding: 0 1rem;
    background-color: #ddd;
    border: 1px solid #ccc;
    margin-bottom: 1rem;
}

footer {
    margin: 0 1rem;
    text-align: center;
    font-size: .9rem;
    color: #999999;
    line-height: normal;
}

.toc {
    position: fixed;
    overflow-y: scroll;
    scrollbar-width: thin;
    width: 16rem;
    height: calc(100vh - 8rem)
}

aside ul {
    padding-left: 1rem;
}

.toc li {
    margin-top: .5rem;
}

header h1 {
    margin-bottom: 0;
}

a {
    color: #258fb8;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

blockquote {
    text-align: center;
}

pre {
    overflow: auto;
    padding: 1rem;
    background: #eee;
}

pre > code {
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
}

code {
    padding: .2rem .4rem;
    background: #eee;
}

table {
    max-width: 100%;
}

p:has(img) {
    text-align: center;
}

img {
    max-width: 100%;
    max-height: 100vh;
}
