/* ============================================
   TEXTSCORE RESOURCE HUB - Responsive Styles
   Created: March 2026
   Scope: Responsive breakpoints for resource
   hub sidebar, search, breadcrumbs, content.
   Extracted from media.css + new rules.
   ============================================ */

/* ----- Devices Below 991px ----- */

@media (max-width: 991px) {
    .resource-hub__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .related-resources__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ----- Devices Below 768px ----- */

@media (max-width: 767px) {
    .resources {
        background-color: var(--white);
        padding-top: 20px;
        padding-bottom: 35px;
    }

    .resources__row {
        display: block;
    }

    .resources__toc {
        position: fixed;
        top: 0;
        left: 0;
        width: 300px;
        max-width: 85%;
        height: 100vh;
        background: var(--white);
        z-index: 95;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        padding: 24px 16px;
        box-shadow: 4px 0 16px rgba(12, 12, 12, 0.1);
    }

    .resource-drawer-toggle {
        display: flex;
    }

    .content_block-wrap {
        margin-bottom: 50px;
    }

    .resources__content-head {
        margin-bottom: 40px;
    }

    .resources__content-head .heading-style-h3 {
        font-size: 18px;
        line-height: 24px;
    }

    .resources__desc {
        font-size: 16px;
        line-height: 24px;
        font-weight: 400;
    }

    .resources__desc.lg {
        font-size: 16px;
        line-height: 24px;
    }

    .accordion__title {
        font-size: 16px;
    }

    .accordion__head {
        padding: 12px 17px;
        border-left: 5px solid;
    }

    .accordion__body-inner {
        padding: 20px;
    }

    .resource-hub__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .resource-hub__filters {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        width: 100%;
        max-width: 100%;
        overflow-x: visible;
        padding-bottom: 0;
    }

    .resource-hub__filter-pill {
        white-space: normal;
        max-width: 100%;
    }

    .resource-breadcrumbs {
        font-size: 13px;
    }

    /* Mobile breadcrumb truncation: hide middle segments, show ellipsis */
    .resource-breadcrumbs__middle {
        display: none;
    }

    .resource-breadcrumbs__middle.is-expanded {
        display: inline-flex;
    }

    .resource-breadcrumbs__ellipsis {
        display: inline;
    }

    /* Mobile on-this-page: show collapsible version below breadcrumbs */
    .resource-on-this-page-mobile {
        display: block;
        margin-bottom: 16px;
    }

    .related-resources__grid {
        grid-template-columns: 1fr;
    }

    .dropdown__link {
        font-size: 16px;
        padding: 12px 16px 12px 40px;
    }

    .dropdown__btn {
        font-size: 16px;
        padding: 12px;
    }

    /* Hide sidebar on-this-page on mobile (relocated to mobile container above) */
    .resource-on-this-page {
        display: none;
    }
}

/* ----- Devices Below 580px ----- */

@media (max-width: 580px) {
    .resource-hub__card {
        padding: 20px;
    }

    .resource-hub__category-title {
        font-size: 18px;
    }
}
