/* ==========================================================================
   RESPONSIVE — Media Queries
   ========================================================================== */

/* ── Mobile (< 768px) ── */
@media (max-width: 767px) {
    .grid--2,
    .grid--3,
    .grid--4,
    .grid--6,
    .grid--8-4,
    .grid--4-8,
    .grid--7-5,
    .grid--5-7 {
        grid-template-columns: 1fr;
    }

    .content-layout--sidebar {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

    .hero__actions {
        flex-direction: column;
        width: 100%;
    }

    .hero__actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hero__media-img,
    .hero__image > img {
        aspect-ratio: 16 / 10;
        max-height: 280px;
    }

    .hero__caption,
    .hero__badge {
        bottom: var(--space-xs);
        left: var(--space-xs);
        max-width: calc(100% - var(--space-sm));
    }

    .hero__caption-badge {
        padding: 4px 10px;
        gap: 6px;
    }

    .hero__caption-desc,
    .hero__caption-sep {
        display: none;
    }

    /* Section spacing */
    .section {
        padding-block: var(--space-3xl);
    }

    /* Hide desktop-only elements */
    .hide-mobile {
        display: none;
    }

    /* Timeline */
    .timeline--horizontal {
        flex-direction: column;
    }

    .timeline--horizontal::before {
        top: 0;
        bottom: 0;
        left: 6px;
        right: auto;
        width: 2px;
        height: auto;
    }

    .timeline--horizontal .timeline__item {
        width: auto;
        text-align: left;
        padding-top: 0;
        padding-left: var(--space-2xl);
        padding-bottom: var(--space-xl);
    }

    .timeline--horizontal .timeline__item::before {
        top: 4px;
        left: 0;
        transform: none;
    }

    /* Faculty grid */
    .faculty-section__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .faculty-card__name {
        font-size: var(--text-body);
    }
}

/* ── Small Mobile (< 540px) ── */
@media (max-width: 540px) {
    .faculty-section__grid,
    .faculty-archive__grid {
        grid-template-columns: 1fr;
    }

    .cta-banner__actions {
        flex-direction: column;
        width: 100%;
    }

    .cta-banner__actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ── Tablet (768px – 1023px) ── */
@media (min-width: 768px) and (max-width: 1023px) {
    .grid--4,
    .grid--6 {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .hide-tablet {
        display: none;
    }
}

/* ── Desktop (1024px+) ── */
@media (min-width: 1024px) {
    .hide-desktop {
        display: none;
    }
}

/* ── Print ── */
@media print {
    .site-header,
    .site-footer,
    .mobile-toggle,
    .mobile-nav,
    .search-overlay,
    .cta-banner,
    .pagination,
    .filter-bar,
    .btn {
        display: none;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }

    .site-main {
        padding-top: 0;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
}
