/* =========================================================
   TEAM-PROFILE.CSS — Single team member (Figma 1839:1865)
   ========================================================= */

/* Hero: intro text must stay readable on navy */
.hero-section--profile .hero-content-main > p:not(.hero-profile-role) { color: var(--color-white); font-size: var(--font-size-p3); line-height: 28px; font-weight: var(--font-weight-regular, 400); max-width: 860px; }

/* Figma: section intros run the full 1398px content width on one line */
.page-team-details .title-split .col-right { max-width: none; }
.hero-section--profile .h1 { font-weight: var(--font-weight-medium); line-height: 56px; }
/* Figma: name → role → intro are 12px apart */
.hero-section--profile .hero-content-main { gap: 12px; }
.hero-section--profile .hero-content-main .hero-profile-role { margin-bottom: 0; font-size: var(--font-size-p3); line-height: 28px; }
/* Figma 1839:1865: 40px under the intro, 50px under the 264×284 portrait (568px banner) */
@media (min-width: 992px) {
    .hero-section--profile { padding-bottom: 40px; }
    .hero-section--profile .hero-profile-media { margin-bottom: 10px; }
}
@media (max-width: 991px) { .hero-section--profile .h1 { line-height: 1.3; } }

/* At a glance: gold-dot rows with hairline separators (Figma P1 24/36, dot inset 20px, text at 48px) */
.team-glance-section { background-color: var(--color-white); }
.team-glance-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(3, 8, 50, 0.15); }
.team-glance-list li {
    position: relative;
    padding: 16px 0 16px 48px;
    border-bottom: 1px solid rgba(3, 8, 50, 0.15);
    font-size: 24px;
    line-height: 36px;
}
.team-glance-list li::before {
    content: "";
    position: absolute;
    left: 20px;
    top: calc(16px + 11.5px);
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background-color: var(--color-primary);
}

/* Profile timeline: gold chevron markers on a dashed line, white cards */
.team-timeline-section { background-color: var(--color-offwhite); }
.team-timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 15px; }
.team-timeline-item { position: relative; display: grid; grid-template-columns: 30px 1fr; gap: 32px; align-items: center; }
.team-timeline-item::before {
    content: "";
    position: absolute;
    left: 14.5px;
    top: 0;
    bottom: -15px;
    border-left: 1px dashed rgba(3, 8, 50, 0.4);
}
.team-timeline-item:first-child::before { top: 50%; }
.team-timeline-item:last-child::before { bottom: 50%; }
.team-timeline-marker {
    position: relative;
    z-index: 1;
    width: 30px;
    height: 30px;
    background-color: var(--color-primary);
    color: var(--color-white);
}
.team-timeline-card { padding: 15px; background-color: var(--color-white); }
.team-timeline-card p { font-size: var(--font-size-p3); line-height: 28px; }
.team-timeline-card p + p { margin-top: 10px; }

/* Where helps / Selected expertise reuse the Integration layout */
.team-helps-section .integration-list li { font-size: var(--font-size-p3); line-height: 28px; padding-top: 16px; padding-bottom: 16px; }
.team-helps-section .integration-list li:first-child { padding-top: 7px; }
.team-helps-section .integration-list li::before { top: calc(16px + 7.5px); }
.team-helps-section .integration-list li:first-child::before { top: calc(7px + 7.5px); }
.team-expertise-section { background-color: var(--color-offwhite); }
/* Figma: Selected expertise is its own offwhite band (full top spacing) with the image on the left,
   unlike consecutive Integration blocks elsewhere (integration.css alternates them). */
.integration-section + .integration-section.team-expertise-section { padding-top: var(--section-padding); }
.integration-section + .integration-section.team-expertise-section .integration-visual { order: 0; }
.team-expertise-list { list-style: none; margin: 0; padding: 0; }
.team-expertise-list li { padding: 16px 0; border-bottom: 1px solid rgba(3, 8, 50, 0.15); }
.team-expertise-list li:first-child { padding-top: 0; }
.team-expertise-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.team-expertise-list .h3 {
    position: relative;
    padding-left: 28px;
    margin: 0;
    font-size: 24px;
    line-height: 32px;
    font-weight: var(--font-weight-medium);
}
.team-expertise-list .h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9.5px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background-color: var(--color-primary);
}
/* integration.css gives .integration-content .h3 a bottom margin; Figma spaces title → text by 10px only */
.integration-section .integration-content .team-expertise-list .h3 { margin: 0; }
.team-expertise-list .h3 a { color: inherit; }
.team-expertise-list .h3 a:hover { color: var(--color-primary); }
.team-expertise-list p { margin-top: 10px; font-size: var(--font-size-p3); line-height: 28px; }
.integration-section .no-visual { grid-template-columns: 1fr; }

@media (max-width: 767px) {
    .team-glance-list li { font-size: 18px; line-height: 28px; padding-left: 28px; }
    .team-glance-list li::before { left: 0; top: calc(16px + 7.5px); }
    .team-timeline-item { gap: 16px; }
    .team-timeline-card p { font-size: 16px; line-height: 24px; }
    .team-expertise-list .h3 { font-size: 21px; line-height: 30px; }
}
