/* ── 1280px ── */
@media (max-width: 1280px) {
    .footer__columns {
        gap: var(--s-24);
    }
}

/* ── 1024px ── */
@media (max-width: 1024px) {
    /* Header: show hamburger, hide desktop nav */
    .header__nav {
        display: none;
    }

    .header__hamburger {
        display: block;
    }

    /* Mobile nav at >=1024 stays hidden */
    .header__mobile-nav {
        /* Note: rule G3 -- desktop 1024px: display: none !important */
    }

    /* Hero: stack */
    .hero__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__content {
        max-width: 100%;
    }

    .hero .cta-row {
        justify-content: center;
    }

    /* Grids */
    .grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid--55-45,
    .grid--60-40 {
        grid-template-columns: 1fr;
        gap: var(--s-32);
    }

    /* Footer */
    .footer__columns {
        grid-template-columns: 1fr 1fr;
    }

    /* Database sidebar */
    .database-layout {
        grid-template-columns: 1fr;
    }

    .database-sidebar {
        position: static;
        border-bottom: 1px solid var(--c-border);
        padding-bottom: var(--s-16);
        margin-bottom: var(--s-24);
    }

    .database-sidebar__list {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .database-sidebar__link {
        border-left: none;
        border-bottom: 2px solid transparent;
    }

    .database-sidebar__link--active {
        border-bottom-color: var(--c-accent);
    }
}

/* ── Below 1024px: show mobile nav ── */
@media (min-width: 1025px) {
    .header__mobile-nav {
        display: none !important;
    }
}

/* ── 768px ── */
@media (max-width: 768px) {
    .section {
        padding: var(--s-48) 0;
    }

    .grid--2,
    .grid--3 {
        grid-template-columns: 1fr;
    }

    .grid--4 {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer__columns {
        grid-template-columns: 1fr;
        gap: var(--s-32);
    }

    .footer__partners-inner {
        flex-direction: column;
        gap: var(--s-16);
    }

    .footer__partners-logos {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Tables */
    .stat-table-wrap {
        margin-left: calc(var(--s-24) * -1);
        margin-right: calc(var(--s-24) * -1);
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    /* Hero */
    .hero {
        padding: var(--s-48) 0 var(--s-32);
    }

    .hero--small {
        padding: var(--s-32) 0 var(--s-24);
    }

    /* Match-score card */
    .match-score-card__stats {
        grid-template-columns: 1fr;
        gap: var(--s-8);
    }

    /* Filter pills scroll */
    .filter-bar {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: var(--s-8);
    }

    .filter-pill {
        white-space: nowrap;
    }

    /* Tabs scroll */
    .tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tab {
        white-space: nowrap;
    }
}
