/* ========================================
   ARTISTS DIRECTORY PAGE
   photo + name card grid linking through
   to artist.html detail pages.
   Matches behind-the-scenes directory shell
   (League Spartan, white page, footer)
   ======================================== */

.artists-page {
    min-height: 0;
    background: #ffffff;
    font-family:
        'League Spartan',
        sans-serif;
    color: #1a1a1a;
}

html:has(body.artists-page) {
    background: #ffffff;
}

/* ---------- Top bar (same as siblings) ---------- */

.artists-topbar {
    background: #000000;
    padding: .8rem 1rem;
}

.artists-topbar-inner {
    width: min(1020px, 94vw);
    margin: 0 auto;
}

.artists-back-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: .95rem;
    letter-spacing: .5px;
}

.artists-back-link:hover {
    text-decoration: underline;
}

/* ---------- Layout ---------- */

.artists-main {
    width: min(1020px, 94vw);
    margin: 0 auto;
    padding: 2.5rem 0 3rem;
}

.artists-intro {
    margin: 0 0 1.5rem;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #2b2b2b;
    max-width: 70ch;
}

/* ---------- Card grid ----------
   Cards reuse .artist-frame / .artist-name
   from artists.css; the grid only handles
   layout, hover lift, and keyboard focus. */

.artists-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.artists-grid .artist-frame {
    width: 100%;
    transition:
        transform .3s ease,
        box-shadow .3s ease;
}

.artists-grid .artist-frame:hover {
    transform: translateY(-4px);
    box-shadow:
        0 16px 32px rgba(2, 132, 199, .30);
}

.artists-grid .artist-frame:focus-visible {
    outline: 3px solid #0ea5e9;
    outline-offset: 3px;
}

/* ---------- Facilitators subsection ---------- */

/* ---------- Facilitators subsection header ----------
   No bar: dark-blue DM Sans caps straight on the
   page, light-blue wave ribbon behind (overrides
   the shared .artists-title ribbon). */

.artists-subhead {
    margin: 3rem 0 1.25rem;

    font-family:
        'DM Sans',
        sans-serif;

    font-weight: 700;

    font-size:
        clamp(
            1.3rem,
            3vw,
            2rem
        );

    letter-spacing: 2px;

    text-transform: uppercase;

    color: #004a98;

    text-shadow: none;

    padding: 0;
}

.artists-subhead::before {
    width: 100%;

    min-width: 0;

    transform:
        translate(-40%, -30%)
        rotate(180deg);

    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 120' preserveAspectRatio='none'%3E%3Cpath d='M-10,49 C60,16 125,19 175,41 C225,64 265,56 310,29 L310,89 C250,110 205,107 155,94 C105,76 55,79 -10,99 Z' fill='%23004a98' fill-opacity='0.25'/%3E%3C/svg%3E")
        no-repeat
        center /
        100% 100%;
}

/* ---------- Facilitator cards (open modal) ---------- */

.facilitator-card {
    cursor: pointer;
    font: inherit;
    text-align: inherit;
    color: inherit;
}

/* ---------- Facilitator modal ---------- */

.fac-modal {
    position: fixed;
    inset: 0;
    z-index: 300;

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

    padding: 1rem;

    background: rgba(0, 0, 0, .72);
}

.fac-modal[hidden] {
    display: none;
}

.fac-modal-inner {
    position: relative;

    width: min(720px, 94vw);
    max-height: 90vh;

    overflow: auto;

    background: #111111;
    color: #ffffff;

    border-radius: 16px;

    display: grid;
    grid-template-columns: 240px 1fr;
}

.fac-modal-close {
    position: absolute;
    top: .6rem;
    right: .6rem;
    z-index: 2;

    width: 40px;
    height: 40px;

    border: 0;
    border-radius: 50%;

    background: rgba(0, 0, 0, .6);
    color: #ffffff;

    font-size: 1.4rem;
    line-height: 1;

    cursor: pointer;
}

.fac-modal-close:hover {
    background: #245f9c;
}

.fac-modal-photo {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    object-position: center top;
    background: #000000;

    grid-row: 1 / span 4;
    grid-column: 1;
}

.fac-modal-role,
.fac-modal-name,
.fac-modal-bio,
.fac-modal-links {
    grid-column: 2;
    min-width: 0;
}

.fac-modal-role {
    margin: 1.25rem 1.5rem 0;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #38bdf8;
}

.fac-modal-name {
    margin: .4rem 1.5rem 0;
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.1;
}

.fac-modal-bio {
    margin: 0;
    padding: .9rem 1.5rem 0;
}

.fac-modal-bio p {
    margin: 0 0 .9rem;
    font-size: 1rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, .92);
}

.fac-modal-links {
    padding: .25rem 1.5rem 1.5rem;
}

.fac-modal-links[hidden] {
    display: none;
}

.fac-link {
    display: inline-block;
    margin: 0 .5rem .5rem 0;
    padding: .35rem .8rem;
    border: 2px solid #38bdf8;
    border-radius: 999px;
    color: #38bdf8;
    font-weight: 800;
    font-size: .8rem;
    letter-spacing: .5px;
    text-decoration: none;
}

.fac-link:hover {
    background: #38bdf8;
    color: #111111;
}

/* ---------- Responsive ---------- */

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

    .fac-modal-inner {
        display: block;
    }

    .fac-modal-photo {
        height: 260px;
        min-height: 0;
    }
}

@media (max-width: 400px) {
    .artists-grid {
        grid-template-columns: 1fr;
    }
}
