/* =========================================================
   CSCT SINGLE PEOPLE - NEW DESIGN
========================================================= */

:root {
    --csct-profile-navy: #0f2d3a;
    --csct-profile-green: #7f9800;
    --csct-profile-green-dark: #526600;
    --csct-profile-soft: #f4f6ef;
    --csct-profile-soft-green: #eef2e5;
    --csct-profile-border: #dce2d6;
    --csct-profile-muted: #667277;
    --csct-profile-white: #fff;
}


/* ---------------------------------------------------------
   QODE PAGE OVERRIDES
--------------------------------------------------------- */

body.single-people .qodef-page-title {
    display: none;
}

body.single-people #qodef-page-inner {
    width: 100%;
    max-width: none;
    padding: 0;
}

body.single-people .qodef-content-grid {
    width: 100%;
    max-width: none;
}


/* ---------------------------------------------------------
   BASE
--------------------------------------------------------- */

.csct-profile {
    color: var(--csct-profile-navy);
    background: #fff;
}

.csct-profile *,
.csct-profile *::before,
.csct-profile *::after {
    box-sizing: border-box;
}

.csct-profile-wrap {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}


/* ---------------------------------------------------------
   BACK LINK
--------------------------------------------------------- */

.csct-profile-back {
    padding-top: 30px;
    padding-bottom: 22px;
}

.csct-profile-back a {
    display: inline-flex;
    align-items: center;
    color: var(--csct-profile-green-dark);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.csct-profile-back a:hover {
    text-decoration: underline;
}


/* ---------------------------------------------------------
   HERO
--------------------------------------------------------- */

.csct-profile-hero {
    padding: 0 0 70px;
}

.csct-profile-hero__grid {
    display: grid;
    grid-template-columns: minmax(280px, 380px) 1fr;
    min-height: 460px;
    background: var(--csct-profile-soft-green);
    overflow: hidden;
}

.csct-profile-hero__photo {
    position: relative;
    min-height: 460px;
    background: #e6e9e2;
}

.csct-profile-hero__image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 460px;
    object-fit: cover;

    /*
     * Portrait crop biased toward the top, as with
     * the main People directory.
     */
    object-position: center 25%;
}

.csct-profile-hero__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 460px;

    color: rgba(15, 45, 58, .25);
    font-size: 110px;
    font-weight: 700;
}

.csct-profile-hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 58px 64px;
}

.csct-profile-eyebrow {
    margin-bottom: 13px;
    color: var(--csct-profile-green-dark);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.csct-profile-hero h1 {
    max-width: 720px;
    margin: 0 0 18px;

    color: var(--csct-profile-navy);
    font-size: clamp(38px, 4.5vw, 64px);
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -.035em;
}

.csct-profile-hero__cohort {
    margin-bottom: 8px;
    color: var(--csct-profile-green-dark);
    font-size: 17px;
    font-weight: 600;
}

.csct-profile-hero__position {
    margin-top: 4px;
    color: var(--csct-profile-navy);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
}

.csct-profile-hero__department {
    margin-top: 5px;
    color: var(--csct-profile-muted);
    font-size: 16px;
}

.csct-profile-hero__themes {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 18px;
}

.csct-profile-hero__themes span {
    display: inline-flex;
    padding: 6px 10px;

    border: 1px solid rgba(82, 102, 0, .22);
    border-radius: 2px;

    background: rgba(255, 255, 255, .55);

    color: var(--csct-profile-green-dark);
    font-size: 12px;
    font-weight: 600;
}


/* ---------------------------------------------------------
   ALUMNI CURRENT POSITION
--------------------------------------------------------- */

.csct-profile-current {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    max-width: 520px;
    margin-top: 27px;
    padding-top: 22px;

    border-top: 1px solid rgba(15, 45, 58, .13);
}

.csct-profile-current__label {
    margin-bottom: 5px;
    color: var(--csct-profile-green-dark);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.csct-profile-current strong {
    color: var(--csct-profile-navy);
    font-size: 18px;
    line-height: 1.35;
}

.csct-profile-current span {
    margin-top: 3px;
    color: var(--csct-profile-muted);
    font-size: 14px;
}


/* ---------------------------------------------------------
   HERO LINKS
--------------------------------------------------------- */

.csct-profile-hero__links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.csct-profile-hero__links a {
    display: inline-flex;
    align-items: center;

    padding: 9px 15px;

    border: 1px solid var(--csct-profile-green);
    border-radius: 2px;

    color: var(--csct-profile-green-dark);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.csct-profile-hero__links a:hover {
    background: var(--csct-profile-green);
    color: #fff;
}

.csct-profile-updated {
    margin-top: 18px;
    color: var(--csct-profile-muted);
    font-size: 12px;
}


/* ---------------------------------------------------------
   SECTIONS
--------------------------------------------------------- */

.csct-profile-section {
    padding: 72px 0;
}

.csct-profile-section--soft {
    background: var(--csct-profile-soft);
}

.csct-profile-section__heading {
    margin-bottom: 32px;
}

.csct-profile-section__heading > span {
    display: block;
    margin-bottom: 6px;

    color: var(--csct-profile-green-dark);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.csct-profile-section__heading h2 {
    margin: 0;

    color: var(--csct-profile-navy);
    font-size: clamp(29px, 3vw, 40px);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -.02em;
}


/* ---------------------------------------------------------
   ABOUT
--------------------------------------------------------- */

.csct-profile-prose {
    max-width: 850px;

    color: #33464e;
    font-size: 17px;
    line-height: 1.8;
}

.csct-profile-prose > *:first-child {
    margin-top: 0;
}

.csct-profile-prose > *:last-child {
    margin-bottom: 0;
}

.csct-profile-prose a {
    color: var(--csct-profile-green-dark);
}


/* ---------------------------------------------------------
   CAREER JOURNEY
--------------------------------------------------------- */

.csct-career-timeline {
    position: relative;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;

    max-width: 980px;
    margin-top: 10px;
}

.csct-career-timeline::before {
    content: "";
    position: absolute;
    top: 9px;
    left: 8px;
    right: 8px;

    height: 2px;
    background: #ccd5bc;
}

.csct-career-step {
    position: relative;
    z-index: 1;

    padding-right: 34px;
}

.csct-career-step__marker {
    width: 20px;
    height: 20px;
    margin-bottom: 20px;

    border: 4px solid var(--csct-profile-soft);
    border-radius: 50%;

    background: var(--csct-profile-green);
    box-shadow: 0 0 0 2px var(--csct-profile-green);
}

.csct-career-step__label {
    margin-bottom: 7px;

    color: var(--csct-profile-green-dark);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.csct-career-step strong {
    display: block;

    color: var(--csct-profile-navy);
    font-size: 17px;
    line-height: 1.4;
}

.csct-career-step span {
    display: block;
    margin-top: 4px;

    color: var(--csct-profile-muted);
    font-size: 14px;
    line-height: 1.45;
}


/* ---------------------------------------------------------
   AWARDS
--------------------------------------------------------- */

.csct-awards-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.csct-award-card {
    position: relative;
    padding: 28px 30px 28px 72px;
    border: 1px solid var(--csct-profile-border);
    border-top: 3px solid var(--csct-profile-green);
    background: #fff;
}

.csct-award-card::before {
    content: "★";
    position: absolute;
    left: 28px;
    top: 28px;
    color: var(--csct-profile-green);
    font-size: 24px;
    line-height: 1;
}

.csct-award-card__year {
    margin-bottom: 8px;

    color: var(--csct-profile-green-dark);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
}

.csct-award-card h3 {
    margin: 0 0 9px;

    color: var(--csct-profile-navy);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.35;
}

.csct-award-card p {
    margin: 0;

    color: var(--csct-profile-muted);
    font-size: 14px;
    line-height: 1.6;
}


/* ---------------------------------------------------------
   PROJECT CARDS
--------------------------------------------------------- */

.csct-project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.csct-project-card,
.csct-phd-card {
    padding: 31px 32px;

    border: 1px solid var(--csct-profile-border);
    background: #fff;
}

.csct-project-card__label {
    margin-bottom: 12px;

    color: var(--csct-profile-green-dark);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.csct-project-card h3,
.csct-phd-card h3 {
    margin: 0 0 26px;

    color: var(--csct-profile-navy);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.45;
}

.csct-project-card__meta {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 15px;

    padding-top: 15px;
    margin-top: 15px;

    border-top: 1px solid var(--csct-profile-border);

    color: var(--csct-profile-muted);
    font-size: 14px;
    line-height: 1.55;
}

.csct-project-card__meta strong {
    color: var(--csct-profile-navy);
    font-size: 13px;
    font-weight: 600;
}

.csct-project-card__meta a {
    color: var(--csct-profile-green-dark);
    font-weight: 600;
    text-decoration: none;
}

.csct-project-card__meta a:hover {
    text-decoration: underline;
}

.csct-profile-project__dept {
    display: block;
    margin-top: 2px;

    color: var(--csct-profile-muted);
    font-size: 12px;
}


/* ---------------------------------------------------------
   PHD
--------------------------------------------------------- */

.csct-phd-card {
    max-width: 900px;
}

.csct-phd-card__secondary {
    margin-top: 30px;
    padding-top: 28px;

    border-top: 1px solid var(--csct-profile-border);
}

.csct-phd-card__secondary h3 {
    margin-bottom: 0;
}

.csct-profile-notice {
    display: inline-flex;
    margin-top: 24px;
    padding: 8px 12px;

    background: #f5e9e5;

    color: #86452f;
    font-size: 13px;
    font-weight: 600;
}


/* ---------------------------------------------------------
   RESEARCH OUTPUTS
--------------------------------------------------------- */

.csct-profile-section--outputs {
    background: var(--csct-profile-navy);
}

.csct-profile-section--outputs
.csct-profile-section__heading > span {
    color: #c4d576;
}

.csct-profile-section--outputs
.csct-profile-section__heading h2 {
    color: #fff;
}

.csct-output-card {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 30px;
    align-items: center;

    max-width: 760px;

    color: #fff;
}

.csct-output-card__count {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100px;
    height: 100px;

    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 50%;

    color: #fff;
    font-size: 34px;
    font-weight: 600;
}

.csct-output-card strong {
    display: block;

    color: #fff;
    font-size: 18px;
}

.csct-output-card p {
    margin: 6px 0 13px;

    color: rgba(255, 255, 255, .72);
    font-size: 14px;
    line-height: 1.6;
}

.csct-output-card a {
    color: #d0df88;
    font-weight: 600;
    text-decoration: none;
}

.csct-output-card a:hover {
    text-decoration: underline;
}


/* ---------------------------------------------------------
   PROFILE UPDATE
--------------------------------------------------------- */

.csct-profile-update {
    padding: 45px 0;
    background: var(--csct-profile-soft-green);
}

.csct-profile-update__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.csct-profile-update__inner strong {
    display: block;

    color: var(--csct-profile-navy);
    font-size: 18px;
}

.csct-profile-update__inner p {
    margin: 4px 0 0;

    color: var(--csct-profile-muted);
    font-size: 14px;
}

.csct-profile-update__inner > a {
    flex: 0 0 auto;

    display: inline-flex;
    padding: 12px 18px;

    border: 1px solid var(--csct-profile-green);
    border-radius: 2px;

    color: var(--csct-profile-green-dark);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.csct-profile-update__inner > a:hover {
    background: var(--csct-profile-green);
    color: #fff;
}


/* ---------------------------------------------------------
   RESPONSIVE
--------------------------------------------------------- */

@media (max-width: 900px) {

    .csct-profile-hero__grid {
        grid-template-columns: 300px 1fr;
    }

    .csct-profile-hero__content {
        padding: 42px 36px;
    }

    .csct-profile-hero h1 {
        font-size: 42px;
    }

    .csct-project-grid,
    .csct-awards-grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 700px) {

    .csct-profile-wrap {
        width: min(100% - 32px, 1180px);
    }

    .csct-profile-back {
        padding-top: 20px;
        padding-bottom: 16px;
    }

    .csct-profile-hero {
        padding-bottom: 45px;
    }

    .csct-profile-hero__grid {
        display: block;
        min-height: 0;
    }

    .csct-profile-hero__photo {
        min-height: 0;
        aspect-ratio: 4 / 3;
    }

    .csct-profile-hero__image {
        min-height: 0;
        aspect-ratio: 4 / 3;
    }

    .csct-profile-hero__placeholder {
        min-height: 0;
        aspect-ratio: 4 / 3;
    }

    .csct-profile-hero__content {
        padding: 34px 26px 38px;
    }

    .csct-profile-hero h1 {
        font-size: 38px;
    }

    .csct-profile-section {
        padding: 52px 0;
    }

    .csct-career-timeline {
        display: block;
    }

    .csct-career-timeline::before {
        top: 8px;
        bottom: 8px;
        left: 9px;
        right: auto;

        width: 2px;
        height: auto;
    }

    .csct-career-step {
        padding: 0 0 34px 42px;
    }

    .csct-career-step:last-child {
        padding-bottom: 0;
    }

    .csct-career-step__marker {
        position: absolute;
        top: 0;
        left: 0;
    }

    .csct-project-card,
    .csct-phd-card {
        padding: 25px 22px;
    }

    .csct-project-card__meta {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .csct-output-card {
        grid-template-columns: 1fr;
    }

    .csct-profile-update__inner {
        display: block;
    }

    .csct-profile-update__inner > a {
        margin-top: 20px;
    }
}

/* ---------------------------------------------------------
   INDUSTRY PARTNER
--------------------------------------------------------- */

.csct-profile-partner {
    display: flex;
    align-items: center;
    gap: 22px;
}

.csct-profile-partner__link {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.csct-profile-partner__logo {
    display: block;
    width: auto;
    max-width: 220px;
    max-height: 72px;
    object-fit: contain;
    object-position: left center;
}

.csct-profile-partner__meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.csct-profile-partner__name {
    color: var(--csct-profile-navy);
    font-size: 15px;
    font-weight: 600;
}

.csct-profile-partner__website {
    color: var(--csct-profile-green-dark);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.csct-profile-partner__website:hover {
    text-decoration: underline;
}