/* Leadership pages — row layout inspired by ConocoPhillips leadership team page */

.leadership-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 70px 40px 90px;
}

.leadership-intro {
    max-width: 760px;
    margin: 0 0 30px;
}

.leadership-intro h2 {
    font-size: var(--h2-section);
    line-height: 1.2;
    font-weight: 700;
    color: #1a2332;
    margin: 0 0 16px;
    letter-spacing: -0.5px;
}

.leader-row {
    display: grid;
    grid-template-columns: 1fr 180px;
    gap: 40px;
    align-items: center;
    padding: 40px 0;
    border-top: 1px solid #e6e9ed;
}

.leader-row:last-child {
    border-bottom: 1px solid #e6e9ed;
}

.leader-name {
    font-size: 2rem;
    font-weight: 700;
    color: #1a2332;
    margin: 0 0 12px;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.leader-role {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: #C95F1F;
    margin: 0 0 22px;
    line-height: 1.5;
}

.leader-desc {
    font-size: 1.08rem;
    line-height: 1.75;
    color: #4a5568;
    margin: 0 0 28px;
    max-width: 600px;
}

.leader-biolink {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #1a2332;
    background: none;
    border: none;
    border-bottom: 2px solid #E06C2A;
    padding: 0 0 5px;
    cursor: pointer;
    transition: color 0.2s ease, gap 0.3s ease;
    font-family: inherit;
    text-decoration: none;
}

.leader-biolink:hover {
    color: #E06C2A;
    gap: 14px;
}

.leader-biolink svg {
    transition: transform 0.3s ease;
}

.leader-biolink:hover svg {
    transform: translateX(4px);
}

.leader-photo {
    overflow: hidden;
    background: #eef3f8;
    aspect-ratio: 3 / 4;
    box-shadow: 0 16px 38px rgba(16, 24, 38, 0.13);
}

.leader-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.6s ease;
}

.leader-row:hover .leader-photo img {
    transform: scale(1.04);
}

/* Alternate the portrait side for visual rhythm */
.leader-row:nth-child(even) {
    grid-template-columns: 180px 1fr;
}

.leader-row:nth-child(even) .leader-photo {
    order: -1;
}

@media (max-width: 860px) {
    .leadership-wrap {
        padding: 50px 22px 70px;
    }

    .leader-row,
    .leader-row:nth-child(even) {
        grid-template-columns: 1fr;
        gap: 26px;
        padding: 44px 0;
    }

    .leader-photo,
    .leader-row:nth-child(even) .leader-photo {
        order: -1;
        max-width: 170px;
    }

    .leader-name {
        font-size: 1.7rem;
    }

}


/* ============================================================
   Individual leader profile pages
   ============================================================ */

.bio-profile {
    max-width: 1200px;
    margin: 0 auto;
    padding: 64px 40px 90px;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    align-items: start;
}

.bio-profile-photo {
    position: sticky;
    top: 110px;
}

.bio-profile-photo img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: top center;
    display: block;
    background: #eef3f8;
    box-shadow: none;
    border: 1px solid #e6e9ed;
}

/* Typography, colour and the 44px tap box come from .link-cta (my.css); this keeps the original 50px footprint. */
.bio-back {
    margin: -10px 0 16px;
}

.bio-back svg {
    transition: transform 0.3s ease;
}

.bio-back:hover svg {
    transform: translateX(-4px);
}

.bio-profile-name {
    font-size: 2.6rem;
    font-weight: 700;
    color: #1a2332;
    margin: 0 0 14px;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.bio-profile-role {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: #E06C2A;
    line-height: 1.6;
    margin: 0 0 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e6e9ed;
}

.bio-profile-body {
    font-size: 1rem;
    line-height: 1.85;
    color: #4a5568;
}

.bio-profile-body .bio-text {
    font-size: 1rem;
    line-height: 1.85;
    color: #4a5568;
}

/* English profile reading layout. Keep language-specific until CN sign-off. */
html[lang="en"] .bio-profile {
    padding: 72px 40px 96px;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 56px;
}

html[lang="en"] .bio-profile-main {
    min-width: 0;
}

html[lang="en"] .bio-profile-body {
    max-width: 62ch;
    font-size: 1rem;
    color: #4a5568;
}

html[lang="en"] .bio-profile-body::before {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    margin-bottom: 24px;
    background: #C95F1F;
}

/* Override theme.css's global p line-height and bio.css's margin reset. */
html[lang="en"] .bio-profile-body p {
    margin: 0 0 20px;
    font-size: inherit;
    font-weight: 400;
    line-height: 1.85;
    color: inherit;
}

html[lang="en"] .bio-profile-body p:first-child {
    font-size: 1rem;
    line-height: 1.85;
    color: #1a2332;
}

html[lang="en"] .bio-profile-body p:last-child {
    margin-bottom: 0;
}

/* P2-25: 641-860px keeps a narrow photo column beside the text; the single column starts at 640px. */
@media (max-width: 860px) {
    .bio-profile,
    html[lang="en"] .bio-profile {
        grid-template-columns: 200px minmax(0, 1fr);
        gap: 32px;
        padding: 44px 22px 70px;
    }

    .bio-profile-name {
        font-size: 2rem;
    }
}

@media (max-width: 640px) {
    .bio-profile {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 44px 22px 70px;
    }

    html[lang="en"] .bio-profile {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 44px 22px 70px;
    }

    .bio-profile-photo {
        position: static;
        max-width: 230px;
    }
}

/* Leadership sub-nav (Board of Directors / Senior management tabs) */
.leader-subnav-link {
    transition: color 0.2s ease, border-color 0.2s ease;
}

.leader-subnav-link:hover {
    color: #C95F1F !important;
}


/* Refined editorial rhythm for English leadership biographies. */
html[lang="en"] .bio-profile-body {
    max-width: 720px;
}

html[lang="en"] .bio-profile-body::before {
    width: 56px;
    height: 2px;
    margin-bottom: 28px;
}

html[lang="en"] .bio-profile-body > p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.85;
    color: #4a5568;
}

html[lang="en"] .bio-profile-body > p + p {
    margin-top: 1.55rem;
    padding-top: 1.45rem;
    border-top: 1px solid #e6e9ed;
}

/* Management and Board profile bios: keep natural paragraph rhythm without rules. */
html[lang="en"] .bio-back[href="../management"] ~ .bio-profile-body > p + p,
html[lang="en"] .bio-back[href="../board"] ~ .bio-profile-body > p + p {
    padding-top: 0;
    border-top: 0;
}

html[lang="en"] .bio-profile-body > .bio-profile-lead {
    font-size: 1.18rem;
    font-weight: 500;
    line-height: 1.62;
    letter-spacing: -0.01em;
    color: #1a2332;
}

html[lang="en"] .bio-profile-body > .bio-profile-lead + p {
    margin-top: 1.75rem;
}

@media (max-width: 860px) {
    html[lang="en"] .bio-profile-body {
        max-width: none;
    }

    html[lang="en"] .bio-profile-body > p {
        font-size: 1rem;
        line-height: 1.8;
    }

    html[lang="en"] .bio-profile-body > .bio-profile-lead {
        font-size: 1.1rem;
        line-height: 1.65;
    }
}

/* Keep all English biography paragraphs at one consistent reading size. */
html[lang="en"] .bio-profile-body > p,
html[lang="en"] .bio-profile-body > p:first-child,
html[lang="en"] .bio-profile-body > .bio-profile-lead {
    font-size: 1.02rem;
    font-weight: 400;
    line-height: 1.86;
    letter-spacing: normal;
    color: #4a5568;
}

html[lang="en"] .bio-profile-body > .bio-profile-lead + p {
    margin-top: 1.55rem;
}

@media (max-width: 860px) {
    html[lang="en"] .bio-profile-body > p,
    html[lang="en"] .bio-profile-body > p:first-child,
    html[lang="en"] .bio-profile-body > .bio-profile-lead {
        font-size: 1rem;
        line-height: 1.8;
    }
}

/* Refined editorial rhythm for Chinese leadership biographies. */
html[lang="zh-CN"] .bio-profile-body {
    max-width: 38em;
    letter-spacing: 0.015em;
}

html[lang="zh-CN"] .bio-profile-body::before {
    content: "";
    display: block;
    width: 56px;
    height: 2px;
    margin-bottom: 28px;
    background: #C95F1F;
}

html[lang="zh-CN"] .bio-profile-body > p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.95;
    color: #4a5568;
}

html[lang="zh-CN"] .bio-profile-body > p + p {
    margin-top: 1.55rem;
    padding-top: 1.45rem;
    border-top: 1px solid #e6e9ed;
}

html[lang="zh-CN"] .bio-profile-body > .bio-profile-lead {
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.68;
    letter-spacing: 0;
    color: #1a2332;
}

html[lang="zh-CN"] .bio-profile-body > .bio-profile-lead + p {
    margin-top: 1.75rem;
}

@media (max-width: 860px) {
    html[lang="zh-CN"] .bio-profile-body {
        max-width: none;
    }

    html[lang="zh-CN"] .bio-profile-body > p {
        font-size: 1rem;
        line-height: 1.88;
    }

    html[lang="zh-CN"] .bio-profile-body > .bio-profile-lead {
        font-size: 1.12rem;
        line-height: 1.68;
    }
}

/* Keep all Chinese biography paragraphs at one consistent reading size. */
html[lang="zh-CN"] .bio-profile-body > p + p {
    padding-top: 0;
    border-top: 0;
}

html[lang="zh-CN"] .bio-profile-body > p,
html[lang="zh-CN"] .bio-profile-body > p:first-child,
html[lang="zh-CN"] .bio-profile-body > .bio-profile-lead {
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.95;
    letter-spacing: inherit;
    color: #4a5568;
}

html[lang="zh-CN"] .bio-profile-body > .bio-profile-lead + p {
    margin-top: 1.55rem;
}

@media (max-width: 860px) {
    html[lang="zh-CN"] .bio-profile-body > p,
    html[lang="zh-CN"] .bio-profile-body > p:first-child,
    html[lang="zh-CN"] .bio-profile-body > .bio-profile-lead {
        font-size: 1rem;
        line-height: 1.88;
    }
}

/* ============================================================
   Leadership card grid (Board / Senior management)
   Portrait cards: photo 4:5, name, role, short summary, bio link.
   The whole card is the link. Board = 3 columns, management = 4.
   ============================================================ */
.leader-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 28px;
    margin-top: 40px;
}
.leader-grid--4 {
    grid-template-columns: repeat(4, 1fr);
    gap: 28px 24px;
}
/* Management page: wider gutters between the four columns. */
.leader-grid--airy {
    column-gap: 40px;
}
.leader-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e6e9ed;
    color: inherit;
    text-decoration: none;
    box-shadow: none;
    transition: border-color 0.2s ease;
}
.leader-card:hover,
.leader-card:focus-visible {
    border-color: #1a2332;
    color: inherit;
    text-decoration: none;
}
.leader-card-photo {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #eef3f8;
}
.leader-card-photo::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: #C95F1F;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.leader-card:hover .leader-card-photo::after,
.leader-card:focus-visible .leader-card-photo::after {
    transform: scaleX(1);
}
.leader-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.6s ease;
}
.leader-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px 24px 24px;
}
.leader-grid .leader-name {
    font-size: 1.3rem;
    letter-spacing: -0.2px;
    line-height: 1.25;
    margin: 0 0 8px;
}
.leader-grid .leader-role {
    font-size: 0.75rem;
    letter-spacing: 1.2px;
    margin: 0 0 14px;
}
.leader-grid .leader-desc {
    font-size: 0.92rem;
    line-height: 1.65;
    color: #5a6b7b;
    margin: 0 0 18px;
    max-width: none;
}
.leader-card-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #1a2332;
    border-bottom: 2px solid #C95F1F;
    padding-bottom: 4px;
    transition: color 0.2s ease, gap 0.3s ease;
}
.leader-card:hover .leader-card-link {
    color: #C95F1F;
    gap: 12px;
}
/* P2-24: role lines run 1-3 lines; a 3-line floor (3 x 1.5em) keeps the descriptions in a row level. Phones use the horizontal card, so no floor there. */
@media (min-width: 561px) {
    .leader-grid .leader-role { min-height: 4.5em; }
}
.leader-grid--4 .leader-name { font-size: 1.15rem; }
.leader-grid--4 .leader-card-body { padding: 20px 20px 22px; }

@media (max-width: 1100px) {
    .leader-grid--4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
    .leader-grid,
    .leader-grid--4 { grid-template-columns: repeat(2, 1fr); gap: 24px 20px; }
}
/* Phones: compact horizontal card (portrait left, text right) */
@media (max-width: 560px) {
    .leader-grid,
    .leader-grid--4 { grid-template-columns: 1fr; gap: 16px; }
    .leader-card { flex-direction: row; }
    .leader-card-photo { flex: 0 0 120px; aspect-ratio: 4 / 5; align-self: flex-start; }
    .leader-card-body,
    .leader-grid--4 .leader-card-body { padding: 16px 16px 18px; }
    .leader-grid .leader-name,
    .leader-grid--4 .leader-name { font-size: 1.08rem; }
    .leader-grid .leader-role { margin-bottom: 10px; }
    .leader-grid .leader-desc { display: none; }
    .leader-grid .leader-role { margin-bottom: 14px; }
}

/* Management page: horizontal cards on desktop (portrait photo left, full text right), two per row. Photos keep their full frame. */
@media (min-width: 861px) {
    .leader-grid--airy {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 40px;
        row-gap: 24px;
    }
    .leader-grid--airy .leader-card {
        flex-direction: row;
    }
    .leader-grid--airy .leader-card-photo {
        flex: 0 0 230px;
        align-self: stretch;
        aspect-ratio: auto;
    }
    .leader-grid--airy .leader-card-body {
        padding: 22px 26px 22px;
    }
    .leader-grid--airy .leader-card-link {
        margin-top: 14px;
    }
}