/* =====================================================================
   person.css — shared styling for the individual pages under /people/.
   Loaded by people/<name>/index.html. Faculty members do not need to
   touch this file; editing it changes every personal page at once.
   ===================================================================== */

.person-page {
    padding: 8.5rem 0 4.5rem;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.95) 0%, #ffffff 58%);
}

.person-back {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 1.75rem;
    color: #475569;
    font-size: 0.9rem;
    font-weight: 650;
    text-decoration: none;
}

.person-back:hover {
    color: #0d6efd;
}

/* ---------- name card ---------- */

.person-header {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding: 1.75rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1.25rem;
    background: #ffffff;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.06);
}

.person-photo {
    width: 210px;
    height: 210px;
    flex: 0 0 210px;
    object-fit: cover;
    /* The NewUU headshots are 3:4 portraits with the head close to the top
       edge. Anchoring the crop to the top keeps the whole head inside the
       circle; a centred crop cuts the forehead off. */
    object-position: center top;
    border: 4px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
}

.person-identity {
    min-width: 0;
}

.person-identity h1 {
    margin: 0 0 0.35rem;
    color: #0f172a;
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: 800;
    line-height: 1.15;
}

.person-position {
    margin-bottom: 0.15rem;
    color: #0d6efd;
    font-size: 1.05rem;
    font-weight: 700;
}

.person-affiliation {
    margin-bottom: 1rem;
    color: #64748b;
    font-weight: 600;
}

.person-facts {
    margin: 0;
    padding: 0;
    list-style: none;
}

.person-facts li {
    margin-bottom: 0.4rem;
    color: #475569;
    line-height: 1.5;
}

.person-facts li i {
    width: 1.25rem;
    margin-right: 0.35rem;
    color: #94a3b8;
    text-align: center;
}

.person-facts a {
    color: #1e293b;
    text-decoration: none;
    border-bottom: 1px solid rgba(13, 110, 253, 0.35);
}

.person-facts a:hover {
    color: #0d6efd;
}

/* ---------- content blocks ---------- */

.person-block {
    max-width: 62rem;
    margin-top: 2.75rem;
}

.person-block h2 {
    position: relative;
    margin-bottom: 1rem;
    padding-bottom: 0.55rem;
    color: #0f172a;
    font-size: 1.4rem;
    font-weight: 750;
}

.person-block h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 3rem;
    height: 3px;
    border-radius: 3px;
    background: #0d6efd;
}

.person-block h3 {
    margin: 1.75rem 0 0.65rem;
    color: #1e293b;
    font-size: 1.1rem;
    font-weight: 700;
}

.person-block p {
    color: #334155;
    line-height: 1.7;
}

.person-list {
    padding-left: 1.35rem;
    color: #334155;
}

.person-list li {
    margin-bottom: 0.6rem;
    line-height: 1.65;
}

.person-list a {
    color: #0d6efd;
    text-decoration: none;
    border-bottom: 1px solid rgba(13, 110, 253, 0.3);
}

.person-list a:hover {
    border-bottom-color: #0d6efd;
}

.person-publications li {
    margin-bottom: 0.85rem;
}

.person-links {
    padding-left: 0;
    list-style: none;
}

.person-links li {
    display: inline-block;
    margin: 0 0.75rem 0.6rem 0;
}

.person-links a {
    display: inline-block;
    padding: 0.4rem 0.95rem;
    border: 1px solid rgba(13, 110, 253, 0.25);
    border-radius: 999px;
    background: rgba(13, 110, 253, 0.05);
    font-weight: 650;
}

.person-links a:hover {
    border-color: #0d6efd;
    background: rgba(13, 110, 253, 0.1);
}

/* ---------- narrow screens ---------- */

@media (max-width: 767.98px) {
    .person-page {
        padding-top: 8rem;
    }

    .person-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.5rem;
    }

    .person-photo {
        width: 148px;
        height: 148px;
        flex-basis: 148px;
    }

    .person-facts li i {
        margin-right: 0.2rem;
    }

    .person-block h2::after {
        left: 0;
    }
}
