/* Tablet */
@media (max-width: 1024px) {
    .toc-sidebar {
        display: none;
    }
    #main-content {
        margin-left: 0;
    }
    .charts-row, .two-columns {
        grid-template-columns: 1fr;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    .main-nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 70px);
        background: white;
        box-shadow: 2px 0 8px rgba(0,0,0,0.1);
        transition: left 0.3s;
        padding: 2rem;
    }
    .main-nav.active {
        left: 0;
    }
    .main-nav ul {
        flex-direction: column;
        gap: 1rem;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }
    .cards-grid {
        grid-template-columns: 1fr;
    }
    .section {
        padding: 2rem 0;
    }
    h2 {
        font-size: 1.6rem;
    }
}