#main {
    margin-top: 160px;
}

.content-container {
    display: grid;
    grid-template-columns: 4fr 8fr;
    gap: 24px;
    margin-block: 40px;
    margin-inline: auto;
}

.content-sidebar .accordion-btn {
    display: block;
    padding-block: 14px;
    padding-inline: 18px;
    background: #f0f0f0;
    text-decoration: none;
    color: #353535;
    transition: background-color 0.2s;
    border-block-end: 1px dotted #ccc;
}

.content-sidebar .accordion-btn h2 {
    display: inline;
    margin: 0;
    font-size: 17px;
    font-weight: 600;
}

.content-sidebar .accordion-btn:hover {
    background-color: #e0e0e0;
    text-decoration: underline;
}

.content-sidebar .accordion-btn.open {
    background-color: #a3d3ff;
}

.content-sidebar .accordion-btn::after {
    content: '\002B'; /* + */
    color: #777;
    font-weight: bold;
    float: inline-end;
}

.content-sidebar .accordion-btn.open::after {
    content: '\2212'; /* − */
}

.content-sidebar .accordion-panel {
    display: none;
    background: #fff;
}

.content-sidebar .accordion-panel.open {
    display: block;
}

.content-sidebar .accordion-panel a {
    display: block;
    padding-block: 10px;
    padding-inline: 18px;
    border-block-end: 1px solid #eee;
    text-decoration: none;
    color: #353535;
}

.content-sidebar .accordion-panel a:hover {
    background: #f7f7f7;
}

.content-sidebar .accordion-panel a.active {
    font-weight: bold;
    background: #e4f1fd;
    border-inline-start: 3px solid #7BBAED;
}

.content-body {
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
    overflow: hidden;
    line-height: 1.75;
    color: #2d2d2d;
    font-family: Heebo, sans-serif;
}

.content-body :where(*) {
    all: revert;
    font-family: inherit;
    line-height: inherit;
    color: inherit;
}

.content-title {
    font-size: 1.6em;
    font-weight: 700;
    line-height: 1.25;
    color: #1a1a1a;
}
.content-body h1 {
    font-size: 1.6em;
    font-weight: 700;
    margin-block: 0.8em 0.4em;
    line-height: 1.25;
    color: #1a1a1a;
}

.content-body h2 {
    font-size: 1.5em;
    font-weight: 700;
    margin-block: 1.2em 0.4em;
    line-height: 1.3;
    color: #1a1a1a;
}

.content-body h3 {
    font-size: 1.25em;
    font-weight: 600;
    margin-block: 1em 0.3em;
    line-height: 1.35;
    color: #1a1a1a;
}

.content-body h4 {
    font-size: 1.1em;
    font-weight: 600;
    margin-block: 0.8em 0.3em;
    color: #1a1a1a;
}

.content-body h5,
.content-body h6 {
    font-size: 1em;
    font-weight: 600;
    margin-block: 0.6em 0.2em;
    color: #1a1a1a;
}

.content-body p {
    margin-block: 0.75em;
}

.content-body a {
    color: #2563eb;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.content-body a:hover {
    color: #1d4ed8;
}

.content-body strong,
.content-body b {
    font-weight: 700;
}

.content-body em,
.content-body i {
    font-style: italic;
}

.content-body ul,
.content-body ol {
    margin-block: 0.75em;
    padding-inline-start: 2em !important;
}

.content-body ul {
    list-style-type: disc;
}

.content-body ol {
    list-style-type: decimal;
}

.content-body li {
    margin-block: 0.3em;
}

.content-body li::marker {
    color: #6b7280;
}

.content-body blockquote {
    margin-block: 1em;
    margin-inline: 0;
    padding-inline-start: 1em;
    border-inline-start: 4px solid #d1d5db;
    color: #4b5563;
    font-style: italic;
}

.content-body hr {
    margin-block: 1.5em;
    border: none;
    border-block-start: 1px solid #e5e7eb;
}

.content-body details {
    margin-block: 0.5em;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
}

.content-body details + details {
    margin-block-start: -1px;
}

.content-body summary {
    padding: 0.75em 1em;
    font-weight: 600;
    cursor: pointer;
    background: #f9fafb;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.content-body summary::-webkit-details-marker {
    display: none;
}

.content-body summary::after {
    content: '+';
    font-size: 1.2em;
    font-weight: 700;
    color: #6b7280;
    flex-shrink: 0;
    margin-inline-start: 0.5em;
}

.content-body details[open] > summary::after {
    content: '−';
}

.content-body summary:hover {
    background: #f3f4f6;
}

.content-body details > :not(summary) {
    padding-inline: 1em;
    padding-block-start: 0.75em;
    padding-block-end: 0.75em;
}

.content-body code {
    font-family: monospace !important;
    font-size: 0.9em;
    background: #f3f4f6;
    padding: 0.15em 0.35em;
    border-radius: 3px;
}

.content-body pre {
    margin-block: 1em;
    padding: 1em;
    background: #1e293b;
    color: #e2e8f0;
    border-radius: 6px;
    overflow-x: auto;
    font-size: 0.9em;
    line-height: 1.5;
}

.content-body pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.content-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-block: 1em;
    border-radius: 6px;
}

.content-body figure {
    margin-block: 1em;
    margin-inline: 0;
}

.content-body figcaption {
    font-size: 0.875em;
    color: #6b7280;
    margin-block-start: 0.4em;
    text-align: center;
}

.content-body table {
    max-width: 100%;
    width: 100%;
    border-collapse: collapse;
    margin-block: 1em;
    display: table;
    overflow-x: auto;
}

.content-body th,
.content-body td {
    padding: 0.6em 0.8em;
    border: 1px solid #e5e7eb;
    text-align: start;
}

.content-body th {
    background: #f9fafb;
    font-weight: 600;
}

.content-body tr:nth-child(even) {
    background: #fafafa;
}

@media (max-width: 768px) {
    #main {
        margin-top: 60px;
    }

    .content-container {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-block: 20px;
    }

    .content-sidebar {
        border-block-end: 1px solid #e0e0e0;
        padding-block-end: 16px;
    }
}
