/* ioann-presnya person card preview — Figma node 1:2103 */

.person-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 36px;
    padding: 28px 36px;
    background: #ffffff;
    border-top: 1px solid #cecece;
    width: 100%;
}
.person-card:last-child {
    border-bottom: 1px solid #cecece;
}

/* Media — round photo wrapper */
.person-card__media {
    flex: 0 0 172px;
    width: 172px;
    height: 172px;
    display: block;
    border-radius: 50%;
    overflow: hidden;
    background: #e6e6e6; /* neutral grey fallback */
    text-decoration: none;
}
.person-card__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.person-card__photo--placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: #e6e6e6;
}

/* Body */
.person-card__body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.person-card__name {
    margin: 0;
    font-family: var(--ip-font-title);
    font-weight: 700;
    font-size: 32px;
    line-height: 1;
    color: var(--ip-text);
    word-break: break-word;
}
.person-card__name a {
    color: inherit;
    text-decoration: none;
}
.person-card__name a:hover {
    color: #af4409;
}

.person-card__role {
    margin: 0;
    font-family: var(--ip-font-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.3;
    color: #333333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.person-card__button {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 20px;
    border: 1px solid #ddb6a6;
    border-radius: 5px;
    color: #af4409;
    font-family: var(--ip-font-body);
    font-weight: 500;
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
    background: transparent;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.person-card__button:hover {
    background: #ddb6a6;
    color: #ffffff;
}

/* ioann-presnya person_list block — Figma node 1:2099 */
.person-list {
    display: block;
    width: 100%;
}
.person-list__items {
    display: flex;
    flex-direction: column;
    gap: 0; /* cards' shared 1px border handles separation */
    max-width: var(--ip-content-max);
    margin: 0 auto;
}
.person-list__empty {
    max-width: var(--ip-content-max);
    margin: 0 auto;
    padding: 28px 0;
    font-family: var(--ip-font-body);
    font-size: 16px;
    line-height: 1.3;
    color: #a4a4a4;
    text-align: center;
}

/* Screen-reader-only utility scoped to the person_list heading.
   Hides visually but keeps the H1 in the accessibility tree. */
.person-list__title.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Stacked layout < 768px (mobile) */
@media (max-width: 767.99px) {
    .person-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 16px;
        gap: 16px;
    }
    .person-card__media {
        flex: 0 0 auto;
        width: 140px;
        height: 140px;
    }
    .person-card__name {
        font-size: 26px;
    }
    .person-card__role {
        white-space: normal; /* allow wrapping on narrow screens */
    }
    .person-card__button {
        align-self: stretch;
        min-height: 44px;
    }
}

/* ioann-presnya person_featured — Figma 1:1615 + 1:1618 */
/* Task 206: restyled from flex-row to centered column layout matching Figma. */

.person-featured {
    max-width: var(--ip-content-max);
    margin: 0 auto 60px;
    padding: 0 var(--ip-side-padding, 0);
    background: #f4f1ec;
    border-radius: 8px;
    overflow: hidden;
}

/* Section heading above the card — centered to match Figma */
.person-featured__title {
    font-family: var(--ip-font-title);
    font-weight: 700;
    font-size: 28px;
    line-height: 1;
    color: var(--ip-text);
    margin: 0 0 24px;
    padding: 60px 60px 0;
    text-align: center;
}

/* Centered single-column card (Figma 1:1618) — mirrors teachers-grid card layout */
.person-featured__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    padding: 60px;
}

/* When section_title is present, reduce top padding of card since title already has padding */
.person-featured__title + .person-featured__card {
    padding-top: 40px;
}

/* Round photo wrapper — centered, 200px */
.person-featured__media {
    width: 200px;
    height: 200px;
    display: block;
    border-radius: 50%;
    overflow: hidden;
    background: #e6e6e6;
    text-decoration: none;
    flex-shrink: 0;
}

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

.person-featured__photo--placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: #e6e6e6;
}

/* Serif name — mirrors teachers-grid__name */
.person-featured__name {
    margin: 0;
    font-family: 'Cormorant', serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 1;
    color: #1b1b1b;
    word-break: break-word;
}

.person-featured__name a {
    color: inherit;
    text-decoration: none;
}

.person-featured__name a:hover {
    color: #af4409;
}

.person-featured__role {
    margin: 0;
    font-family: 'Golos Text', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.3;
    color: #333333;
}

/* Contacts container — stacked centered links (email + phone) */
.person-featured__contacts {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-family: 'Golos Text', sans-serif;
    font-size: 16px;
    line-height: 1.3;
    color: #333333;
}

/* Individual contact link (email / phone) */
.person-featured__contact {
    font-family: 'Golos Text', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.3;
    color: #333333;
    text-decoration: none;
}

.person-featured__contact:hover {
    text-decoration: underline;
}

/* Legacy raw-HTML contacts fallback path */
.person-featured__contacts a {
    color: #af4409;
    text-decoration: underline;
}

/* CTA button — mirrors teachers-grid__cta / .person-card__button */
.person-featured__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 20px;
    border: 1px solid #ddb6a6;
    border-radius: 5px;
    color: #af4409;
    font-family: 'Golos Text', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
    background: transparent;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.person-featured__cta:hover {
    background: #ddb6a6;
    color: #ffffff;
}

/* Responsive — centered column is already single-column on mobile; adjust sizing only */
@media (max-width: 767.99px) {
    /* Drop block-level side padding so the tinted card is only inset by .content (16px each side). */
    .person-featured {
        padding-left: 0;
        padding-right: 0;
        margin-bottom: 40px;
    }

    .person-featured__title {
        padding: 32px 16px 0;
        font-size: 22px;
        margin-bottom: 16px;
    }

    .person-featured__card {
        padding: 32px 16px;
        gap: 16px;
    }

    .person-featured__title + .person-featured__card {
        padding-top: 16px;
    }

    /* Fluid circle portrait: scales with viewport width, capped at 180px. */
    .person-featured__media {
        width: clamp(120px, 45vw, 180px);
        height: clamp(120px, 45vw, 180px);
    }

    .person-featured__name {
        font-size: 28px;
    }

    /* Minimum tap target height for accessibility */
    .person-featured__cta {
        min-height: 44px;
    }
}
