/* =========================================================
   MUSIC ARCHIVE
   Editorial archive styling
========================================================= */


/* =========================================================
   ARCHIVE CONTENT
========================================================= */

.editorial-archive-content {
    min-width: 0;
}


/* =========================================================
   TOOLBAR
========================================================= */

.editorial-archive-toolbar {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 30px;

    margin-bottom: 30px;

    padding-bottom: 18px;

    border-bottom:
        1px solid
        var(--editorial-border, #e7e5e9);
}


.editorial-archive-toolbar-copy {
    min-width: 0;
}


/* =========================================================
   KICKER
========================================================= */

.editorial-section-kicker {
    display: block;

    margin-bottom: 7px;

    color:
        var(
            --editorial-accent,
            #7652a8
        );

    font-family:
        var(
            --font-sans,
            Arial,
            sans-serif
        );

    font-size: 10px;

    font-weight: 800;

    line-height: 1.2;

    letter-spacing: 0.14em;

    text-transform: uppercase;
}


/* =========================================================
   HEADING
========================================================= */

.editorial-archive-toolbar h2 {
    margin: 0;

    color:
        var(
            --editorial-black,
            #17151a
        );

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 32px;

    font-weight: 700;

    line-height: 1.05;

    letter-spacing: -0.8px;
}


/* =========================================================
   RESULT COUNT
========================================================= */

.editorial-archive-count {
    flex: 0 0 auto;

    padding-bottom: 3px;

    color:
        var(
            --editorial-muted,
            #77727c
        );

    font-family:
        var(
            --font-sans,
            Arial,
            sans-serif
        );

    font-size: 12px;

    font-weight: 700;

    white-space: nowrap;
}


.editorial-archive-count span {
    margin-left: 3px;

    color:
        var(
            --editorial-muted,
            #77727c
        );

    font-weight: 400;
}


/* =========================================================
   MUSIC GRID
========================================================= */

.editorial-music-archive-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap:
        34px
        24px;

    align-items: start;
}


/*
|--------------------------------------------------------------------------
| Make the existing Phase 3 music card work naturally
| inside the archive.
|--------------------------------------------------------------------------
*/

.editorial-music-archive-grid
.editorial-music-card {
    min-width: 0;
}


/* =========================================================
   EMPTY STATE
========================================================= */

.editorial-archive-empty {
    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    min-height: 300px;

    padding: 50px 25px;

    border-top:
        1px solid
        var(
            --editorial-border,
            #e7e5e9
        );

    border-bottom:
        1px solid
        var(
            --editorial-border,
            #e7e5e9
        );

    text-align: center;
}


.editorial-archive-empty-mark {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 54px;
    height: 54px;

    margin-bottom: 18px;

    border-radius: 50%;

    background:
        var(
            --editorial-accent,
            #7652a8
        );

    color: #ffffff;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 24px;
}


.editorial-archive-empty h2 {
    margin: 0 0 8px;

    color:
        var(
            --editorial-black,
            #17151a
        );

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 25px;

    font-weight: 700;
}


.editorial-archive-empty p {
    max-width: 440px;

    margin: 0;

    color:
        var(
            --editorial-muted,
            #77727c
        );

    font-size: 13px;

    line-height: 1.6;
}


/* =========================================================
   PAGINATION WRAPPER
========================================================= */

.editorial-archive-pagination {
    margin-top: 48px;
}


/*
|--------------------------------------------------------------------------
| The existing shared pagination partial is retained.
| These rules simply give it the editorial spacing.
|--------------------------------------------------------------------------
*/

.editorial-archive-pagination
.archive-pagination {
    margin-top: 0;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .editorial-music-archive-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

        gap:
            30px
            22px;
    }

}


/* =========================================================
   SMALL TABLET
========================================================= */

@media (max-width: 850px) {

    .editorial-archive-toolbar {
        margin-bottom: 25px;
    }

    .editorial-archive-toolbar h2 {
        font-size: 29px;
    }

    .editorial-music-archive-grid {
        gap:
            28px
            20px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .editorial-archive-toolbar {
        align-items: flex-end;

        gap: 15px;

        margin-bottom: 5px;

        padding-bottom: 15px;
    }


    .editorial-archive-toolbar h2 {
        font-size: 26px;

        letter-spacing: -0.5px;
    }


    .editorial-section-kicker {
        margin-bottom: 6px;

        font-size: 9px;
    }


    .editorial-archive-count {
        font-size: 10px;
    }


    /*
    |--------------------------------------------------------------------------
    | One-column archive on phones.
    |
    | The Phase 3 music card already contains its own compact
    | mobile treatment.
    |--------------------------------------------------------------------------
    */

    .editorial-music-archive-grid {
        display: flex;

        flex-direction: column;

        gap: 0;
    }


    .editorial-music-archive-grid
    .editorial-music-card {
        width: 100%;
    }


    .editorial-archive-empty {
        min-height: 240px;

        padding:
            40px
            18px;
    }


    .editorial-archive-empty-mark {
        width: 48px;
        height: 48px;

        margin-bottom: 15px;

        font-size: 21px;
    }


    .editorial-archive-empty h2 {
        font-size: 22px;
    }


    .editorial-archive-empty p {
        font-size: 12px;
    }


    .editorial-archive-pagination {
        margin-top: 32px;
    }

}


/* =========================================================
   VERY SMALL PHONES
========================================================= */

@media (max-width: 380px) {

    .editorial-archive-toolbar h2 {
        font-size: 23px;
    }

    .editorial-archive-count {
        font-size: 9px;
    }

}