/* ─────────────────────────────────────────
   team.css  –  Team-page-specific styles
   Reuses CSS variables from main.css
───────────────────────────────────────── */

/* ── Shared ── */

.team-page {
    flex: 1;
    width: 100%;
}

/* Section headings match the original: near-black, not orange */
.team-section-heading {
    color: #0f0f0f;
    font-weight: 800;
    font-size: 20px;
    margin: 0;
    letter-spacing: -0.2px;
}

.team-divider {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    margin: 0 auto;
}

.team-divider--narrow  { width: min(70%, 300px); margin-top: 16px; }
.team-divider--wide    { width: min(90%, 480px); margin-top: 20px; }

.team-logo {
    width: 120px;
    border-radius: 4px;
    margin-top: 6px;
}

.team-caution a {
    color: var(--font-text);
    text-decoration: underline;
    text-underline-offset: 2px;
}


/* ─────────────────────────────────────────
   DESKTOP  (≥ 1050px)
───────────────────────────────────────── */

@media only screen and (min-width: 1050px) {

    /* Outer wrapper — full viewport width, clears floated children */
    .team-desktop {
        width: 100%;
        padding-top: 30px;
        overflow: hidden;
    }

    .team-desktop::after {
        content: '';
        display: table;
        clear: both;
    }

    /* LEFT column (55 %) — photos floated right inside it so they sit
       near the horizontal centre of the page, matching the original */
    .team-left {
        width: 55%;
        height: 700px;
        float: left;
        margin-top: 0;
    }

    /* Inner photo+name block floated to the RIGHT of the left column */
    .team-photo-block {
        width: 450px;
        float: right;
    }

    /* Heading row inside photo block */
    .team-photo-block > .team-section-heading {
        margin-left: 5px;
    }

    /* Stack of photos */
    .team-photo-col {
        width: 200px;
        float: left;
    }

    .team-photo-col img {
        width: 200px;
        margin-top: 15px;
        border-radius: 10px;
        filter: drop-shadow(0px 0px 15px rgba(109, 109, 109, 0.81));
        object-fit: cover;
        display: block;
    }

    /* Name + link column beside the photos */
    .team-name-col {
        width: 240px;
        float: right;
    }

    .team-name-col h3 {
        color: var(--font-text);
        font-size: 18px;
        font-weight: 600;
        margin: 0;
        line-height: 1.3;
    }

    .team-name-col h3:first-child   { margin-top: 40px; }
    .team-name-col h3:last-of-type  { margin-top: 285px; }

    .team-name-col a {
        display: block;
        color: var(--font-text);
        font-size: 15px;
        font-weight: 500;
        margin-left: 0px;
        margin-top: 8px;
        text-decoration: underline;
        text-underline-offset: 2px;
        transition: color var(--transition-fast);
    }

    .team-name-col a:hover {
        color: var(--color-signal);
    }

    /* RIGHT column (45 %) — text only, indented with margin-left */
    .team-right {
        width: 45%;
        float: left;
        margin-top: 30px;
    }

    .team-section-heading--spaced {
        margin-top: 60px;
    }

    /* Each text-only person entry */
    .team-text-row {
        margin-top: 15px;
        margin-left: 120px;
    }

    .team-text-row h3 {
        color: var(--font-text);
        font-size: 18px;
        font-weight: 600;
        margin: 0 0 2px;
        line-height: 1.3;
    }

    .team-right .team-section-heading {
        margin-left: 120px;
    }

    .team-text-row a {
        color: var(--font-text);
        font-size: 15px;
        font-weight: 500;
        text-decoration: underline;
        text-underline-offset: 2px;
        transition: color var(--transition-fast);
    }

    .team-text-row a:hover {
        color: var(--color-signal);
    }

    /* Caution block — full width below both columns */
    .team-caution-hr {
        width: 750px;
        margin: 0 auto;
        clear: both;
    }

    .team-caution--desktop {
        width: 400px;
        margin: 16px auto;
        text-align: center;
        font-weight: 500;
    }

    .team-caution--desktop p {
        color: var(--font-text);
        font-size: 15px;
        font-weight: 500;
        line-height: 1.6;
        margin: 0 0 10px;
    }
}


/* ─────────────────────────────────────────
   MOBILE  (< 1050px)
───────────────────────────────────────── */

@media only screen and (max-width: 1049px) {

    .team-mobile {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-bottom: 20px;
    }

    .team-section-heading {
        margin-top: 24px;
        font-size: 18px;
        text-align: center;
    }

    /* Member card — stacked vertically */
    .team-member-card {
        width: 95%;
        max-width: 400px;
        margin: 16px auto 0;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }

    .team-member-card img:not(.team-logo) {
        border-radius: 12px;
        filter: drop-shadow(0px 0px 15px rgba(109, 109, 109, 0.81));
        width: min(65%, 260px);
        aspect-ratio: 1 / 1;
        object-fit: cover;
    }

    .team-member-card h3 {
        color: var(--font-headline);
        font-size: 17px;
        font-weight: 700;
        margin: 4px 0 0;
        line-height: 1.3;
    }

    .team-member-card a {
        color: var(--font-text);
        font-size: 14px;
        font-weight: 500;
        text-decoration: none;
    }

    .team-member-card a:hover {
        color: var(--color-signal);
        text-decoration: underline;
    }

    /* Caution note */
    .team-caution {
        width: min(90%, 400px);
        margin: 0 auto;
        text-align: center;
    }

    .team-caution p {
        color: var(--font-text);
        font-size: 15px;
        font-weight: 500;
        line-height: 1.6;
        margin: 0 0 10px;
    }
}
