/* ============================================================
   lib/styles/responsive/tablet.css — Fishermens Academy
   Breakpoint: 640px – 1023px (min-width: 640px, max-width: 1023px)
   Focus: Balanced 2-column grids for student portal and public site.
   ============================================================ */

@media screen and (min-width: 640px) and (max-width: 1023px) {

    /* 1. CSS Variable Overrides */
    :root {
        --container-padding: 32px;
        --fs-h1: 32px;
        --fs-h2: 26px;
        --fs-h3: 22px;
        --space-3xl: 48px;
    }

    /* 2. Layout & Grids (Two Column) */
    .card-grid,
    .form-grid,
    .grid-layout {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }

    /* Make odd final items span full width for balance */
    .card-grid>*:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    /* 3. Student Portal Layout */
    .portal-layout {
        display: grid;
        grid-template-columns: 240px 1fr;
        gap: var(--space-lg);
    }

    /* 4. Navigation */
    .navbar__mobile-menu {
        display: none !important;
    }

    .sidebar {
        display: flex;
    }

    /* 5. Utility Overrides */
    .hide-tablet {
        display: none !important;
    }

    .show-tablet {
        display: block !important;
    }

    .show-tablet-flex {
        display: flex !important;
    }
}