body {
    font-family: system-ui, sans-serif;
    margin: 0 auto;
    max-width: 800px;
    padding: 0 20px;
    line-height: 1.7;
    color: #222;
}

.page-layout {
    display: flex;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
}

.sidebar {
    width: 240px;
    min-width: 240px;
    padding: 20px;
    border-right: 1px solid #ddd;
    box-sizing: border-box;
    position: sticky;
    top: 0; /* Sticks to top while scrolling */
    height: calc(100vh - 0px);
    overflow-y: auto;
}

.sidebar-section {
    margin-bottom: 40px;
}

.sidebar .logo {
    margin: auto;
    display: block;
    padding-bottom: 20px;
}

.sidebar h2 {
    margin-top: 0;
    font-size: 18px;
    color: #222;
    border-bottom: 1px solid #ddd;
    padding-bottom: 6px;
}

.toc {
    list-style: none;
    margin: 0;
    padding: 0;
}

.toc li {
    margin: 6px 0;
}

.toc a {
    color: #444;
    text-decoration: none;
}

.toc a:hover {
    text-decoration: underline;
}

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

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #ddd;
        height: auto;
        position: static;
    }
}

.container {
    flex: 1;
    max-width: 80%;
    margin: 0 auto;
    padding: 24px 20px;
}

header {
    color: #222;                    /* dark neutral text */
    padding: 24px 40px;
    border-bottom: 1px solid #d0d0d0;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 26px;
    font-weight: 600;
    color: #222;                    /* ensure consistent text tone */
}

header p {
    margin: 1px 0 0;
    font-size: 0.8rem;
    opacity: 0.9;
}

.breadcrumb {
    padding: 20px 40px;
    font-size: 12px;
    text-align: right;
}

.breadcrumb a {
    color: #444;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: #111;
}

main {
    padding: 2px 40px;
    max-width: 900px;
    margin: auto;
}

pre {
    background: #f6f8fa;
    padding: 12px;
    border-radius: 6px;
    overflow-x: auto;
    border: 1px solid #e1e4e8;
}

code {
    background: #f6f8fa;
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 0.8em;
}

a {
    color: #0366d6;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    font-size: 10px;
    color: #555;
    text-align: right;
}

.footer a {
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}