/* People Groups - "The People Behind the Weekend" (crop 08-people.png)
 * On white. Categories stack vertically; people within each category run
 * horizontally as clickable cards that open a bio pop-up. All rules
 * scoped under .module--people-groups / .person-modal. */

.module--people-groups {
    background: var(--c-white);
}

.module--people-groups .people-groups__heading {
    font-family: var(--ff-head);
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.05;
    color: var(--c-ink);
    margin: 0 0 clamp(28px, 3vw, 48px);
}

.module--people-groups .people-groups__list {
    display: flex;
    flex-direction: column;
    gap: clamp(28px, 3vw, 40px);
}

.module--people-groups .people-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.module--people-groups .people-group__title {
    font-family: var(--ff-body);
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.3;
    color: var(--c-muted);
    margin: 0;
}

.module--people-groups .people-group__row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.module--people-groups .person-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--c-cream);
    border: 0;
    border-radius: 4px;
    padding: 16px 22px;
    min-height: 92px;
    flex: 1 1 260px;
    max-width: 340px;
    text-align: left;
    cursor: default;
    font: inherit;
    color: inherit;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.module--people-groups .person-card--has-bio {
    cursor: pointer;
}

.module--people-groups .person-card--has-bio:hover,
.module--people-groups .person-card--has-bio:focus-visible {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
    outline: none;
}

.module--people-groups .person-card:disabled {
    opacity: 1;
}

.module--people-groups .person-card__photo {
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--c-white);
}

.module--people-groups .person-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.module--people-groups .person-card__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.module--people-groups .person-card__role {
    align-self: flex-start;
    background: var(--c-crimson);
    color: var(--c-white);
    font-family: var(--ff-body);
    font-weight: 500;
    font-size: 0.78rem;
    line-height: 1.3;
    letter-spacing: 0.01em;
    padding: 3px 9px;
    border-radius: 3px;
}

.module--people-groups .person-card__name {
    font-family: var(--ff-head);
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1.2;
    color: var(--c-ink);
}

.module--people-groups .people-groups__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(24px, 4vw, 56px);
    margin-top: clamp(40px, 5vw, 72px);
}

.module--people-groups .people-groups__link {
    font-family: var(--ff-head);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--c-crimson);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.module--people-groups .people-groups__link:hover,
.module--people-groups .people-groups__link:focus-visible {
    color: var(--c-maroon);
}

@media (max-width: 560px) {
    .module--people-groups .person-card {
        flex: 1 1 100%;
        max-width: none;
    }
    .module--people-groups .person-card__name {
        font-size: 1.1rem;
    }
}

/* Bio pop-up modal */
.person-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

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

.person-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(20, 12, 12, 0.6);
}

.person-modal__dialog {
    position: relative;
    background: var(--c-white);
    border-radius: 6px;
    max-width: 520px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: clamp(28px, 4vw, 44px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.person-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: var(--c-cream);
    color: var(--c-ink);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.person-modal__close:hover,
.person-modal__close:focus-visible {
    background: var(--c-crimson);
    color: var(--c-white);
    outline: none;
}

.person-modal__photo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 18px;
}

.person-modal__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.person-modal__name {
    font-family: var(--ff-head);
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--c-ink);
    margin: 0 0 6px;
}

.person-modal__role {
    font-family: var(--ff-body);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--c-crimson);
    margin: 0 0 18px;
}

.person-modal__bio {
    font-family: var(--ff-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--c-ink);
    margin: 0;
    white-space: pre-line;
}
