.main-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.toc {
    flex: 1 1 250px;
    max-width: 250px;
    background: var(--color-surface);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    height: fit-content;
    position: sticky;
    top: 90px;
}

.toc h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

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

.toc li {
    margin-bottom: 0.75rem;
}

.toc a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.toc a:hover {
    color: var(--color-border);
}

.-content {
    flex: 3 1 700px;
}

/* Hide sidebar when screen width is below 1024px */
@media (max-width: 1130px) {
  .toc {
    display: none;
  }
}
