/* Loaded only by the 2027 person profile. The shared shell and article list retain their behavior. */
body:has(.person-profile) {
    --person-profile-accent: #39758d;
}

body:has(.person-profile) #header.accentColor,
body:has(.person-profile) #header .accentColor {
    color: #fff !important;
    background-color: var(--person-profile-accent) !important;
}

body:has(.person-profile) #header .headerImageNormal.accentColor {
    display: none !important;
}

body:has(.person-profile) #header .headerImageWhite.accentColor {
    display: block !important;
}

body:has(.person-profile) #header #menu > ul > li > a {
    color: #fff !important;
}

#page .person-profile {
    box-sizing: border-box;
    max-width: var(--content-pattern-max-width, 1120px);
    margin: 0 auto;
    padding: 4rem var(--content-pattern-gutter, 2rem);
    color: var(--code-color-heading);
    font-family: var(--code-font-ui);
    text-align: left;
}

#page .person-profile *,
#page .person-profile *::before,
#page .person-profile *::after {
    box-sizing: border-box;
}

#page .person-profile :is(h1, h2, h3, p, ul, dl, dd) {
    padding: 0;
    text-align: left;
}

#page .person-profile :is(h1, h2, h3) {
    color: var(--code-color-heading);
    font-family: var(--code-font-heading);
    font-weight: var(--code-font-weight-bold);
    line-height: var(--code-line-height-heading);
    text-transform: none;
}

#page .person-profile :is(.person-profile-hero, .person-profile-body, .person-profile-articles, .person-profile-posts) {
    scroll-margin-top: calc(var(--code-header-height-expanded, 140px) + 2rem);
}

#page .person-profile :is(#biography, #articles) {
    scroll-margin-top: calc(var(--code-header-height-expanded, 140px) + 2rem);
}

#page .person-profile-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 17rem;
    grid-template-rows: auto 1fr;
    column-gap: 4rem;
    row-gap: 1.5rem;
    padding-bottom: 3.5rem;
    border-bottom: 1px solid #dfe3e6;
}

#page .person-profile-identity {
    grid-column: 1 / -1;
    min-width: 0;
}

#page .person-profile-eyebrow {
    margin: 0 0 1rem;
    color: var(--person-profile-accent);
    font-size: .875rem;
    font-weight: var(--code-font-weight-bold);
    line-height: 1.5;
    letter-spacing: .035em;
    text-transform: uppercase;
}

#page .person-profile-eyebrow::before {
    display: block;
    width: 3rem;
    height: 4px;
    margin-bottom: 1.25rem;
    background: var(--code-color-action);
    content: "";
}

#page .person-profile h1 {
    margin: 0;
    font-size: clamp(2.25rem, 4vw, 3.5rem);
    letter-spacing: -.035em;
    overflow-wrap: anywhere;
}

#page .person-profile-role {
    margin: .75rem 0 0;
    color: var(--person-profile-accent);
    font-size: 1.25rem;
    font-weight: var(--code-font-weight-semibold);
    line-height: 1.5;
}

#page .person-profile-photo {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    display: block;
    width: 100%;
    height: auto;
    max-height: 24rem;
    border-radius: 3px;
    object-fit: contain;
    object-position: top;
}

#page .person-profile-introduction {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
}

#page .person-profile-introduction p {
    margin: 0 0 1.25rem;
    font-size: var(--code-font-size-content, 1.125rem);
    line-height: var(--code-line-height-reading, 1.7);
}

#page .person-profile-jump-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    margin-top: 1.5rem;
}

#page .person-profile-jump-links a {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    min-height: 44px;
    border-bottom: 2px solid #b5bdc2;
    color: var(--code-color-heading);
    font-size: 1rem;
    font-weight: var(--code-font-weight-semibold);
    line-height: 1.5;
    text-decoration: none;
}

#page .person-profile-jump-links a:first-child {
    border-bottom-color: var(--code-color-action);
}

#page .person-profile a:focus-visible {
    outline: 2px solid var(--person-profile-accent);
    outline-offset: 4px;
}

#page .person-profile-body {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    align-items: start;
    gap: 4rem;
    padding-top: 3.5rem;
}

#page .person-profile-biography {
    min-width: 0;
    overflow-wrap: anywhere;
}

#page .person-profile :is(.person-profile-biography, .person-profile-articles, .person-profile-posts) > h2 {
    margin: 0 0 1.5rem;
    font-size: var(--content-pattern-title-size, 2rem);
    letter-spacing: -.025em;
}

#page .person-profile-biography :is(p, ul, ol, blockquote) {
    margin: 0 0 1.5rem;
    font-size: var(--code-font-size-content, 1.125rem);
    line-height: var(--code-line-height-reading, 1.7);
}

#page .person-profile-biography :is(ul, ol) {
    padding-left: 1.5rem;
}

#page .person-profile-biography img {
    max-width: 100%;
    height: auto;
}

#page .person-profile-biography :is(pre, table) {
    max-width: 100%;
    overflow-x: auto;
}

#page .person-profile-details {
    min-width: 0;
    padding: 1.75rem;
    background: #edf4f6;
}

#page .person-profile-details > section + section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #cdd7dc;
}

#page .person-profile-details h2 {
    margin: 0 0 1.5rem;
    font-size: 1.5rem;
    letter-spacing: -.02em;
}

#page .person-profile-contact dl {
    margin: 0;
}

#page .person-profile-contact dl > div {
    position: relative;
    padding-left: 2.25rem;
}

#page .person-profile-contact dl > div + div {
    margin-top: 1.5rem;
}

#page .person-profile-contact dt {
    color: #59636b;
    font-size: .875rem;
    line-height: 1.5;
}

#page .person-profile-contact dt i {
    position: absolute;
    top: .25rem;
    left: 0;
    color: var(--person-profile-accent);
    font-size: 1.25rem;
}

#page .person-profile-contact dd {
    margin: .125rem 0 0;
    font-size: 1rem;
    font-weight: var(--code-font-weight-semibold);
    line-height: 1.6;
    overflow-wrap: anywhere;
}

#page .person-profile-contact a {
    display: inline-block;
    padding-block: .25rem;
    color: var(--person-profile-accent);
    text-decoration: none;
}

#page .person-profile-contact a:hover {
    text-decoration: underline;
}

#page .person-profile .socialMedia {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

#page .person-profile .socialMedia li {
    float: none;
    margin: 0;
    padding: 0;
    list-style: none;
}

#page .person-profile .socialMedia a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--person-profile-accent);
}

#page .person-profile .socialMediaSvg {
    display: block;
    width: 36px;
    height: 36px;
    fill: #fff;
}

#page .person-profile-recognition {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

#page .person-profile-recognition li {
    max-width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

#page .person-profile-recognition img {
    display: block;
    width: 170px;
    height: 80px;
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
}

#page .person-profile-articles,
#page .person-profile-posts {
    margin-top: 3.5rem;
    padding-top: 3rem;
    border-top: 1px solid #dfe3e6;
}

#page .person-profile-posts li {
    margin-bottom: 1rem;
    font-size: 1.125rem;
    line-height: 1.6;
}

#page .person-profile-posts a,
#page .person-profile-biography a {
    color: var(--person-profile-accent);
    text-decoration: underline;
    text-underline-offset: .2em;
}

#page .person-profile-hero-no-photo,
#page .person-profile-body-no-aside,
#page .person-profile-body-no-biography {
    grid-template-columns: minmax(0, 1fr);
}

#page .person-profile-body-no-biography .person-profile-details {
    max-width: 40rem;
}

#page .person-profile-empty {
    padding-block: 6rem 10rem;
}

@media (max-width: 800px) {
    #page .person-profile {
        padding: 2rem 1.5rem 3rem;
    }

    #page .person-profile-hero {
        display: flex;
        flex-direction: column;
        gap: 1.75rem;
        padding-bottom: 2.5rem;
    }

    #page .person-profile h1 {
        font-size: 2.125rem;
    }

    #page .person-profile-eyebrow {
        margin-bottom: .75rem;
    }

    #page .person-profile-role {
        margin-top: .5rem;
        font-size: 1.0625rem;
    }

    #page .person-profile-photo {
        width: 100%;
        max-width: 15rem;
        height: auto;
        max-height: none;
        align-self: flex-start;
    }

    #page .person-profile-introduction p,
    #page .person-profile-biography :is(p, ul, ol, blockquote) {
        font-size: 1.0625rem;
        line-height: 1.7;
    }

    #page .person-profile-body {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.5rem;
        padding-top: 2.5rem;
    }

    #page .person-profile-details {
        padding: 2rem 0 0;
        border-top: 1px solid #dfe3e6;
        background: transparent;
    }

    #page .person-profile-details h2 {
        font-size: 1.5rem;
    }

    #page .person-profile-contact dl > div {
        padding-bottom: 1rem;
        border-bottom: 1px solid #e5e8eb;
    }

    #page .person-profile-contact dd {
        font-size: 1.0625rem;
    }

    #page .person-profile-contact a {
        min-height: 32px;
    }

    #page .person-profile-articles,
    #page .person-profile-posts {
        margin-top: 2.5rem;
        padding-top: 2rem;
    }

    #page .person-profile :is(.person-profile-biography, .person-profile-articles, .person-profile-posts) > h2 {
        font-size: 1.75rem;
    }

    #page .person-profile :is(#biography, #articles) {
        scroll-margin-top: calc(var(--code-header-height-compact, 50px) + 1.5rem);
    }
}
