/* Directory and profile summaries share typography across both themes. */
.banner.team-hero {
    position: relative;
    display: block;
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    isolation: isolate;
}
.banner.team-hero > img {
    display: block;
    width: 100%;
    height: clamp(300px, 32vw, 480px);
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
}
.banner.team-hero .banner_cont {
    position: absolute;
    border-radius: 0;
    inset: 0;
    display: flex;
    align-items: center;
    padding: 0;
    background: linear-gradient(90deg, rgba(243,237,231,.94), rgba(243,237,231,.65) 38%, transparent 75%);
}
.banner.team-hero .banner_cont .container {
    width: 100%;
    max-width: calc(var(--container) + 2 * var(--gutter));
    padding: 0 var(--gutter);
}
.banner.team-hero h1,
.banner.team-hero p.ff-banner-title { font-size: clamp(2.5rem, 5vw, 4.5rem); color: var(--espresso); }
.banner.team-hero p { margin: 16px 0 0; color: var(--espresso); font-size: clamp(1rem, 1.5vw, 1.25rem); }
.our-team .row { row-gap: 28px; align-items: stretch; }
.our-team .row > .col-md-4 { display: flex; width: 100%; }
.our-team .list { display: flex; width: 100%; margin: 0; }
.our-team .list > a {
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--sand-deep);
    border-radius: 18px;
    background: var(--warm-white);
    transition: box-shadow .2s ease, border-color .2s ease;
}
.our-team .list > a:hover { border-color: var(--blue-ink); box-shadow: 0 10px 28px rgba(45,31,23,.08); }
.our-team .list > a:focus-visible { outline: 3px solid var(--blue-ink); outline-offset: 4px; }
.our-team .list figure { margin: 0; border: 0; border-radius: 0 0 18px 18px; overflow: hidden; aspect-ratio: 4 / 4.5; }
.our-team .list img { border-bottom-left-radius: 18px; border-bottom-right-radius: 18px; }
.our-team .list .team-identity { padding: 22px 22px 8px; }
.our-team .list .team-name, .team-details .team-name {
    margin: 0 0 10px;
    font-size: 1.25rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}
.team-details .team-name { font-size: 1.65rem; }
.team-identity .team-role { margin: 0 0 14px; color: var(--blue-ink); font-weight: 700; font-size: .95rem; line-height: 1.5; }
.team-identity .team-label { margin: 0 0 6px; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-soft); }
.team-identity .team-credentials { padding-top: 14px; margin: 0 0 14px; border-top: 1px solid var(--sand-deep); }
.team-identity .team-credentials ul, .team-details .cont .team-credentials ul { list-style: none; padding: 0; margin: 0; border: 0; }
.team-identity .team-credentials li { color: var(--text-soft); font-size: .875rem; line-height: 1.65; padding: 0; }
.team-identity .team-description { font-size: .9rem; line-height: 1.6; color: var(--text-soft); margin: 0 0 10px; }
.our-team .list .team-card-link { display: flex; justify-content: space-between; margin: auto 22px 0; padding: 16px 0 20px; border-top: 1px solid var(--sand-deep); font-size: .85rem; font-weight: 700; color: var(--blue-ink); }
.team-details .cont { position: static; }
.team-details .cont .team-identity { padding: 0; }
@media (min-width: 576px) { .our-team .row > .col-md-4 { width: 50%; } }
@media (min-width: 992px) { .our-team .row > .col-md-4 { width: 33.333333%; } }
@media (max-width: 575px) {
    .banner.team-hero > img { height: 320px; object-position: 60% center; }
    .banner.team-hero .banner_cont { background: linear-gradient(90deg, rgba(243,237,231,.94), rgba(243,237,231,.55)); }
    .our-team .list figure { aspect-ratio: 4 / 4; }
    .team-details .cont figure { max-width: none; }
}
@media (prefers-reduced-motion: reduce) { .our-team .list > a, .our-team .list img { transition: none; } }
body section:has(> .team-hero) { padding: 0; margin-inline: 0; border-radius: 0; }

/* Two beige surfaces keep the team pages calm; existing dark CTAs remain. */
body:has(.site-header[data-section="team"]) {
    --team-beige-light: #F1ECE3;
    --team-beige-dark: #E7DBCD;
    --team-beige-line: #D6C6B6;
    --section-tint: var(--team-beige-light);
    --tile: var(--team-beige-light);
    --sand-deep: var(--team-beige-line);
    --field-0: #F1ECE3;
    --field-1: #E7DBCD;
    --field-2: #EDE3D7;
    --field-3: #F1ECE3;
    --field-4: #D6C6B6;
    --field-5: #E7DBCD;
    background: var(--team-beige-light);
}
body:has(.site-header[data-section="team"]) .our-team,
body:has(.site-header[data-section="team"]) .team-details {
    background: var(--team-beige-light);
}
.our-team .list > a,
body:has(.site-header[data-section="team"]) .team-details .cont {
    background: var(--team-beige-dark);
    border-color: var(--team-beige-line);
}
.our-team .list figure,
body:has(.site-header[data-section="team"]) .team-details .cont figure {
    background: var(--team-beige-dark);
}
.our-team .subLinks ul { background: var(--team-beige-dark); }
.our-team .subLinks a:hover { background: var(--team-beige-light); }
.our-team .subLinks a.active { background: var(--espresso); color: var(--warm-white); }
.team-identity .team-role,
.our-team .list .team-card-link,
body:has(.site-header[data-section="team"]) .team-details .cont h2,
body:has(.site-header[data-section="team"]) .team-profiles-dis a {
    color: var(--espresso);
}
.our-team .list > a:hover { border-color: var(--espresso); }
.our-team .list > a:focus-visible { outline-color: var(--espresso); }
body:has(.site-header[data-section="team"]) .profile-details section {
    background: var(--team-beige-dark);
    border-color: var(--team-beige-line);
    padding: 22px;
    border-radius: 14px;
}
body:has(.site-header[data-section="team"]) .team-profiles-dis li::before { background: var(--espresso); }
.banner.team-hero .banner_cont {
    background: linear-gradient(90deg,
        rgba(241, 236, 227, .72) 0%,
        rgba(241, 236, 227, .32) 28%,
        transparent 52%);
}
@media (max-width: 575px) {
    /* .banner.team-hero .banner_cont { background: linear-gradient(90deg, rgba(241,236,227,.94), rgba(241,236,227,.55)); } */
}

/* Profile reading layout: roomy summary column and a restrained text measure. */
.team-details > .container > .row { row-gap: 32px; }
.team-details .team-profiles-dis { padding-top: 0; }
.team-details .team-profiles-dis > p,
.team-details .team-profiles-dis > blockquote { max-width: 68ch; font-size: 1rem; line-height: 1.85; margin-bottom: 20px; }
.team-details .profile-heading { margin: 34px 0 14px; font-size: 1.35rem; line-height: 1.4; font-weight: 600; }
.team-details .profile-heading:first-child { margin-top: 0; }
.team-details .team-profiles-dis .profile-quote {
    margin: 28px 0;
    padding: 22px 26px;
    background: var(--team-beige-dark);
    border-left: 3px solid var(--espresso);
    border-radius: 0 14px 14px 0;
    color: var(--espresso);
}
.team-details .profile-details { display: grid; gap: 20px; margin-top: 32px !important; }
.team-details .profile-details section { max-width: none; margin: 0 !important; }
.team-details .profile-details h2 { font-size: 1.1rem; line-height: 1.45; margin-bottom: 14px !important; }
.team-details .profile-details p { max-width: 68ch; font-size: .95rem; line-height: 1.8; margin-bottom: 12px; }
.team-details .profile-details p:last-child { margin-bottom: 0; }
.team-details .profile-details ul { margin: 0; padding: 0; list-style: none; }
.team-details .profile-details li { max-width: none; font-size: .95rem; line-height: 1.7; padding: 5px 0 5px 20px; }
.team-details .profile-details li::before { top: 16px; }
.team-details .cont .team-identity { padding: 4px 10px 0; }
.team-details .cont .team-credentials li { line-height: 1.8; }
.team-details .cont .team-label { font-size: .75rem; color: var(--text); }
@media (min-width: 768px) {
    .team-details > .container > .row { display: grid; grid-template-columns: minmax(250px, 32%) minmax(0, 1fr); gap: 40px; margin-inline: 0; }
    .team-details .team-profiles-pic,
    .team-details .team-profiles-dis { width: auto; min-width: 0; padding-inline: 0 !important; }
}
@media (max-width: 767px) {
    .team-details .profile-heading { font-size: 1.25rem; }
    .team-details .team-profiles-dis > p,
    .team-details .team-profiles-dis > blockquote { line-height: 1.75; }
    .team-details .cont figure { max-width: none; }
}

/* One continuous directory avoids empty rows between small specialties. */
.compact-team { padding-bottom: 40px; }
.compact-team .subLinks { padding: 12px 0; margin: 0 0 16px; }
.compact-team .subLinks ul { border-radius: 16px; }
.compact-team .subLinks a { font-size: .82rem; padding: 9px 12px; }
.compact-team .team-directory-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.compact-team .team-directory-heading h2 { margin: 0 !important; font-size: 1.5rem; }
.compact-team .team-directory-heading p { margin: 0; font-size: .85rem; font-weight: 600; color: var(--team-heading, #76513B); text-align: right; }
.compact-team .team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; scroll-margin-top: calc(var(--header-h) + 90px); }
.compact-team .team-member { display: flex; min-width: 0; scroll-margin-top: calc(var(--header-h) + 90px); }
.compact-team .list figure { aspect-ratio: auto; height: 210px; flex-shrink: 0; }
.compact-team .list img { object-position: 50% 22%; }
.compact-team .list .team-specialty { margin: 14px 16px 0; padding: 5px 8px; align-self: flex-start; border: 1px solid var(--team-beige-line); border-radius: 6px; font-size: .7rem; line-height: 1.35; font-weight: 600; color: var(--espresso); background: var(--team-beige-light); }
.compact-team .list .team-identity { padding: 12px 16px 4px; }
.compact-team .list .team-name { font-size: 1.05rem; margin-bottom: 6px; line-height: 1.35; }
.compact-team .team-role { font-size: .82rem; line-height: 1.5; margin-bottom: 10px; }
.compact-team .team-credentials { padding-top: 10px; margin-bottom: 10px; }
.compact-team .team-credentials li { font-size: .8rem; line-height: 1.55; }
.compact-team .team-label { font-size: .65rem; }
.compact-team .team-description { font-size: .8rem; line-height: 1.5; margin-bottom: 8px; }
.compact-team .list .team-card-link { margin-inline: 16px; padding: 12px 0 14px; font-size: .8rem; }
@media (min-width: 992px) { .compact-team .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1400px) { .compact-team .team-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 575px) {
    .compact-team .team-grid { grid-template-columns: 1fr; gap: 14px; }
    .compact-team .team-directory-heading { display: flex; align-items: flex-end; }
    .compact-team .team-directory-heading p { max-width: 48%; margin: 0; font-size: .78rem; line-height: 1.35; }
    .compact-team .list figure { height: 240px; }
}
/* The banner leaves more room for the directory on the first screen. */
.banner.team-hero > img { height: clamp(260px, 23vw, 360px); object-position: 50% 35%; }
.banner.team-hero h1,
.banner.team-hero p.ff-banner-title { font-size: clamp(2.3rem, 4vw, 3.5rem); }
@media (max-width: 575px) { .banner.team-hero > img { height: 260px; object-position: 60% 35%; } }
/* Keep the complete portrait visible in the shorter image area. */
.compact-team .list img { width: auto; max-width: 100%; height: 100%; display: block; margin: 0 auto; object-fit: contain; object-position: center; border-bottom-left-radius: 18px; border-bottom-right-radius: 18px; }

/* A sticky summary stays below the header and remains usable on short screens. */
@media (min-width: 992px) {
    .team-details .team-profiles-pic { align-self: stretch; }
    .team-details .cont {
        position: sticky;
        top: calc(var(--header-h) + 20px);
        max-height: calc(100dvh - var(--header-h) - 40px);
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: var(--team-beige-line) transparent;
    }
    .team-details .cont figure { aspect-ratio: auto; height: clamp(180px, 35vh, 320px); }
    .team-details .cont figure img { width: 100%; object-fit: contain; object-position: center; }
}
@media (max-width: 991px) {
    .team-details > .container > .row { display: flex; margin-inline: -10px; gap: 0; row-gap: 24px; }
    .team-details .team-profiles-pic,
    .team-details .team-profiles-dis { width: 100%; padding-inline: 10px !important; }
    .team-details .team-profiles-pic { margin-bottom: 0 !important; }
    .team-details .cont { position: static; max-height: none; overflow: visible; }
    .team-details .cont figure { aspect-ratio: auto; height: 300px; margin-bottom: 16px; }
    .team-details .cont figure img { width: 100%; object-fit: contain; object-position: center; }
    .team-details .team-name { font-size: 1.45rem; overflow-wrap: break-word; }
    .team-details .profile-details { gap: 14px; margin-top: 24px !important; }
    .team-details .profile-details section { padding: 18px; }
    .team-details .profile-quote { padding: 18px 20px !important; }
}
@media (max-width: 767px) {
    .compact-team .subLinks { position: static; }
    .compact-team .subLinks ul { overflow-x: auto; max-width: 100%; padding: 5px; scrollbar-width: thin; }
    .compact-team .subLinks a { min-height: 44px; display: flex; align-items: center; padding: 10px 14px; }
    .compact-team .team-grid,
    .compact-team .team-member { scroll-margin-top: calc(var(--header-h) + 16px); }
    .team-details .q-link ul { flex-wrap: wrap; }
}
@media (max-width: 575px) {
    .compact-team .list > a { display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: 12px; padding: 12px; border-radius: 14px; }
    .compact-team .list figure { grid-column: 1; grid-row: 1 / 3; height: 130px; margin: 0; border-radius: 14px; overflow: hidden; align-self: start; }
    .compact-team .list img { border-radius: 14px; }
    .compact-team .list .team-specialty { grid-column: 2; margin: 0 0 8px; align-self: start; justify-self: start; }
    .compact-team .list .team-identity { grid-column: 2; padding: 0; }
    .compact-team .list .team-name { font-size: 1rem; overflow-wrap: break-word; }
    .compact-team .team-role,
    .compact-team .team-description,
    .compact-team .team-credentials li { font-size: .85rem; }
    .compact-team .list .team-card-link { grid-column: 1 / -1; margin: 10px 0 0; padding: 12px 0 2px; min-height: 44px; }
    .compact-team .list .team-card-link span { align-self: center; }
    .team-details .cont figure { height: 280px; }
    .team-details .profile-heading { margin-top: 26px; }
    .banner.team-hero p { max-width: 22ch; line-height: 1.5; }
}

/* Filters use the page surface, distinct from the darker beige cards. */
.compact-team .subLinks { background: var(--team-beige-light); }
.compact-team .subLinks ul { background: var(--team-beige-light); box-shadow: none; border: 1px solid var(--team-beige-line); gap: 4px; }
.compact-team .subLinks button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 14px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--espresso);
    font: inherit;
    font-size: .82rem;
    line-height: 1.3;
    cursor: pointer;
    white-space: nowrap;
}
.compact-team .subLinks button:hover { background: var(--team-beige-dark); }
.compact-team .subLinks button.active { background: var(--espresso); color: var(--warm-white); }
.compact-team .subLinks button:focus-visible { outline: 2px solid var(--espresso); outline-offset: 2px; }
.compact-team .team-member[hidden] { display: none; }

/* Only the compact filter shell sticks; cards remain visible around it. */
.compact-team .subLinks {
    position: sticky;
    top: calc(var(--header-h) + 8px);
    z-index: 100;
    max-width: none;
    padding: 0;
    margin: 12px var(--gap, 12px) 20px;
    background: transparent;
}
.compact-team .team-filter-shell {
    display: flex;
    align-items: center;
    max-width: 100%;
    padding: 5px;
    border: 1px solid var(--team-beige-line);
    border-radius: 16px;
    background: var(--team-beige-light);
    box-shadow: 0 4px 14px rgba(45,31,23,.06);
}
.compact-team .subLinks ul {
    display: flex;
    flex-wrap: nowrap;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    border: 0;
    border-radius: 0;
    background: transparent;
}
.compact-team .subLinks ul::-webkit-scrollbar { display: none; }
.compact-team .subLinks li { flex: 0 0 auto; }
.compact-team .subLinks .team-filter-arrow {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--espresso);
}
.compact-team .subLinks .team-filter-arrow svg {
    width: 30px;
    height: 30px;
    display: block;
    color: var(--espresso);
    transition: transform .15s ease;
}
.compact-team .subLinks .team-filter-arrow:not(:disabled):hover svg {
    transform: scale(1.08);
}
.compact-team .subLinks .team-filter-arrow:disabled { opacity: .3; cursor: default; background: transparent; }
.compact-team .subLinks .team-filter-arrow[hidden] { display: none; }

.our-team .list .team-card-link svg,
.our-team .list .team-card-link .home-arrow-circle {
    width: 22px;
    height: 22px;
    color: var(--espresso);
    flex-shrink: 0;
    transition: transform .2s ease;
}
.our-team .list > a:hover .team-card-link svg,
.our-team .list > a:hover .team-card-link .home-arrow-circle {
    transform: translateX(3px);
}
@media (max-width: 767px) {
    .compact-team .subLinks { top: calc(var(--header-h) + 6px); }
    .compact-team .subLinks button { font-size: .85rem; padding-inline: 12px; }
}
.compact-team .subLinks { scroll-margin-top: calc(var(--header-h) + 8px); }

/* Short, gentle reveals reuse the shared observer and never move sticky bars. */
@keyframes team-content-enter {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
    .compact-team .team-directory-heading,
    .team-details .cont .team-identity {
        animation: team-content-enter .5s cubic-bezier(.22, 1, .36, 1) both;
    }
    .compact-team .list.rv,
    .team-profiles-dis .rv {
        transform: translateY(10px);
        transition: opacity .45s ease var(--rv-delay, 0ms), transform .55s cubic-bezier(.22, 1, .36, 1) var(--rv-delay, 0ms);
    }
    .compact-team .list.rv.is-in,
    .team-profiles-dis .rv.is-in { transform: none; }
    .compact-team .team-member:nth-child(4n+1) .list { --rv-delay: 0ms !important; }
    .compact-team .team-member:nth-child(4n+2) .list { --rv-delay: 45ms !important; }
    .compact-team .team-member:nth-child(4n+3) .list { --rv-delay: 90ms !important; }
    .compact-team .team-member:nth-child(4n+4) .list { --rv-delay: 135ms !important; }
    .team-profiles-dis .rv { --rv-delay: 0ms !important; }
}
@media (max-width: 575px) {
    .compact-team .team-member .list { --rv-delay: 0ms !important; }
}
@media (prefers-reduced-motion: reduce), print {
    .team-hero .banner_cont .container,
    .compact-team .team-directory-heading,
    .team-details .cont .team-identity { animation: none; }
}
/* The filter bar spans the same width as the floating header; the
   specialties share that width evenly rather than bunching at one end. */
@media (min-width: 768px) {
    .compact-team .subLinks ul { flex: 1; }
    .compact-team .subLinks li { flex: 1 1 auto; }
    .compact-team .subLinks button { width: 100%; }
}

/* Warm brown headings distinguish names and sections within the beige palette. */
body:has(.site-header[data-section="team"]) { --team-heading: #76513B; }

.banner.team-hero h1,
.compact-team .team-directory-heading h2,
.our-team .list .team-name,
.team-details .team-name,
.team-details .team-profiles-dis h2,
.team-details .team-profiles-dis h3,
.banner.team-hero p.ff-banner-title {
    color: var(--team-heading);
}
.compact-team .list img {
    width: auto;
    max-width: 100%;
    height: 100%;
    display: block;
    margin: 5px auto;
    object-fit: contain;
    object-position: center;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    border-radius: 18px;
}

/* =========================================
   FAMILY FIRST - GLOBAL BANNER FIX
   ========================================= */

body .banner {
    position: relative !important;
    width: 100%;
     height: 450px !important;
    min-height: 450px !important;
    max-height: 450px !important;
    overflow: hidden !important;
    padding: 0 !important;
}

/* Make the image cover the entire banner */
body .banner > img {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block;
}

/* Keep the heading above the image */
body .banner .banner_cont {
    position: absolute !important;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
}

/* Tablet */
@media (max-width: 991px) {
    body .banner {
        height: 400px !important;
        min-height: 400px !important;
        max-height: 400px !important;
    }
}

/* Mobile */
@media (max-width: 767px) {
    body .banner {
        height: 300px !important;
        min-height: 300px !important;
        max-height: 300px !important;
    }

    body .banner > img {
        object-position: 65% center !important;
    }
}

@media (max-width: 767px) {

    /* remove heavy blurry overlay */
    .ff-article-refresh .banner::before,
    .ff-article-refresh .banner .banner_cont {
        background: linear-gradient(
    90deg,
    rgba(241, 236, 227, 0.35) 0%,
    rgba(241, 236, 227, 0.10) 28%,
    transparent 55%
) !important;
        /* backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        filter: none !important; */
    }

    /* keep image crisp */
    .ff-article-refresh .banner img {
        width: 100%;
        height: 220px; /* adjust if needed */
        object-fit: cover;
        object-position: center;
        display: block;
        /* filter: none !important; */
    }

    /* keep heading readable */
    .ff-article-refresh .banner .banner_cont {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        z-index: 2;
        padding: 0 24px;
    }

    .ff-article-refresh .banner .banner_cont h1,
.ff-article-refresh .banner .banner_cont p.ff-banner-title {
        font-size: 22px;
        line-height: 1.2;
        color: #8B5E3C;
        max-width: 70%;
        margin: 0;
    }
}


/* =========================================
   familyFIRST - EAP PAGE
   External styles inside ff-team.css
   Scoped to body.eap-refresh
   ========================================= */

body.eap-refresh {
    background-color: #F1ECE3 !important;
}

body.eap-refresh .ff-eap-page {
    --espresso: #2D1F17;
    --sage: #859F7D;
    --terracotta: #C96F56;
    --blue: #7CA5C7;
    --sand: #EDE8DF;
    --beige: #D6C6B6;
    --pink: #E4C7C3;
    --lavender: #E8DFF7;

    color: var(--espresso);
}

body.eap-refresh .ff-eap-page *,
body.eap-refresh .ff-eap-page *::before,
body.eap-refresh .ff-eap-page *::after {
    box-sizing: border-box;
}


/* =========================================
   EAP HERO BANNER
   ========================================= */

body.eap-refresh .banner.team-hero.ff-eap-hero {
    position: relative !important;
    width: 100% !important;
    height: 450px !important;
    min-height: 450px !important;
    max-height: 450px !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Image fills banner without distortion */

body.eap-refresh .banner.team-hero.ff-eap-hero > img {
    position: absolute !important;
    inset: 0;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;

    object-fit: cover !important;
    object-position: center center !important;

    filter: none !important;
    opacity: 1 !important;
    transform: none !important;
}

/* Remove the shared beige gradient and blur */

body.eap-refresh .banner.team-hero.ff-eap-hero .banner_cont {
    position: absolute !important;
    inset: 0;
    z-index: 2;

    display: flex;
    align-items: center;
    padding: 0;

    background: transparent !important;
    background-image: none !important;

    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    filter: none !important;
    opacity: 1 !important;
}



/* Heading layout */

body.eap-refresh .ff-eap-hero .banner_cont .container {
    width: 100%;
    position: relative;
    z-index: 3;
}

body.eap-refresh .ff-eap-hero h1,
body.eap-refresh .ff-eap-hero p.ff-banner-title {
    color: #76513B !important;
    font-size: clamp(32px, 4vw, 56px);
    font-weight: 600;
    line-height: 1.15;
    max-width: 760px;
    margin: 0;
}


/* =========================================
   INTRODUCTION
   ========================================= */

body.eap-refresh .ff-eap-intro {
    padding: clamp(65px, 8vw, 110px) 0;
    background: #FFFFFF;
}

body.eap-refresh .ff-eap-intro-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr) minmax(0, 1.1fr);
    gap: clamp(35px, 6vw, 90px);
    align-items: center;
}

body.eap-refresh .ff-eap-intro-content {
    min-width: 0;
}

body.eap-refresh .ff-eap-eyebrow {
    display: block;
    color: #96513E;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

body.eap-refresh .ff-eap-intro p {
    font-size: 17px;
    line-height: 1.85;
    color: #665F59;
    margin: 0 0 20px;
}

body.eap-refresh .ff-eap-intro p:last-child {
    margin-bottom: 0;
}

body.eap-refresh .ff-eap-photo {
    position: relative;
    padding: 0 0 20px 20px;
    margin: 0;
}

body.eap-refresh .ff-eap-photo::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 79%;
    height: 73%;
    background: #EDE8DF;
    border-radius: 12px;
}

body.eap-refresh .ff-eap-photo img {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}


/* =========================================
   SERVICES
   ========================================= */

body.eap-refresh .ff-eap-services {
    background: var(--sand);
    padding: clamp(70px, 8vw, 105px) 0;
}

body.eap-refresh .ff-eap-services-layout {
    display: grid;
    grid-template-columns:
        minmax(230px, .7fr) minmax(0, 1.3fr);
    gap: clamp(35px, 6vw, 95px);
}

body.eap-refresh .ff-eap-services-heading h2 {
    font-size: clamp(30px, 3.5vw, 46px);
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -.025em;
    color: var(--espresso);
    margin: 0 0 20px;
}

body.eap-refresh .ff-eap-services-list {
    display: grid;
    grid-template-columns: 1fr;
    list-style: none;
    padding: 0;
    margin: 0;
}

body.eap-refresh .ff-eap-services-list li {
    padding: 26px 0;
    margin: 0;
    list-style: none;
    border-top: 1px solid #CDBFB0;
}

body.eap-refresh .ff-eap-services-list li::before,
body.eap-refresh .ff-eap-services-list li::after {
    content: none !important;
}

body.eap-refresh .ff-eap-services-list li:last-child {
    border-bottom: 1px solid #CDBFB0;
}

body.eap-refresh .ff-eap-services-list .number {
    font-size: 15px;
    font-weight: 700;
    color: #96513E;
    line-height: 1.6;
}

body.eap-refresh .ff-eap-services-list p {
    font-size: clamp(17px, 1.7vw, 22px);
    line-height: 1.5;
    font-weight: 500;
    color: var(--espresso);
    margin: 0;
}


/* =========================================
   WHY familyFIRST FOR EAP
   ========================================= */

body.eap-refresh .ff-eap-why {
    padding: clamp(70px, 8vw, 110px) 0;
    background: #FFFFFF;
}

body.eap-refresh .ff-eap-why-heading {
    padding-bottom: 24px;
    border-bottom: 2px solid var(--sage);
    margin-bottom: 40px;
}

body.eap-refresh .ff-eap-why-heading h2 {
    font-size: clamp(30px, 3.5vw, 46px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -.025em;
    color: var(--espresso);
    margin: 0;
}

body.eap-refresh .ff-eap-why-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 24px;
}

body.eap-refresh .ff-eap-why-item {
    padding: 35px 30px;
    border-radius: 12px;
    min-height: 260px;
    border: 1px solid #EDE8DF;
}

body.eap-refresh .ff-eap-why-item:nth-child(1) {
    background: #EDF2EA;
}

body.eap-refresh .ff-eap-why-item:nth-child(2) {
    background: #EAF1F7;
}

body.eap-refresh .ff-eap-why-item:nth-child(3) {
    background: #F5E8E6;
}

body.eap-refresh .ff-eap-why-mark {
    display: block;
    width: 38px;
    height: 3px;
    background: var(--terracotta);
    margin-bottom: 30px;
}

body.eap-refresh .ff-eap-why-item h3 {
    font-size: 23px;
    line-height: 1.35;
    font-weight: 600;
    color: var(--espresso);
    margin: 0 0 18px;
}

body.eap-refresh .ff-eap-why-item p {
    font-size: 16px;
    line-height: 1.8;
    color: #665F59;
    margin: 0;
}


/* =========================================
   EAP HEADING COLOURS
   ========================================= */

body.eap-refresh .home-intro-clean h2,
body.eap-refresh .home-services-heading h1,
body.eap-refresh .home-services-heading h2 {
    color: #76513B !important;
}


/* =========================================
   TABLET: 768px - 991px
   ========================================= */

@media (min-width: 768px) and (max-width: 991px) {

    body.eap-refresh .banner.team-hero.ff-eap-hero {
        height: 400px !important;
        min-height: 400px !important;
        max-height: 400px !important;
    }

    body.eap-refresh .ff-eap-hero > img {
        object-position: 55% center !important;
    }

    body.eap-refresh .ff-eap-hero h1,
body.eap-refresh .ff-eap-hero p.ff-banner-title {
        font-size: clamp(30px, 4vw, 44px);
        max-width: 65%;
    }
}


/* =========================================
   TABLET AND MOBILE CONTENT
   ========================================= */

@media (max-width: 991px) {

    body.eap-refresh .ff-eap-intro-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    body.eap-refresh .ff-eap-photo img {
        aspect-ratio: 16 / 10;
    }

    body.eap-refresh .ff-eap-services-layout {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    body.eap-refresh .ff-eap-why-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
}


/* =========================================
   MOBILE HERO: UP TO 767px
   ========================================= */

@media (max-width: 767px) {

    body.eap-refresh .banner.team-hero.ff-eap-hero {
        height: 300px !important;
        min-height: 300px !important;
        max-height: 300px !important;
    }

    body.eap-refresh .banner.team-hero.ff-eap-hero > img {
        height: 100% !important;
        object-fit: cover !important;
        object-position: 60% center !important;
        filter: none !important;
    }

    body.eap-refresh .ff-eap-hero .banner_cont {
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    body.eap-refresh .ff-eap-hero h1,
body.eap-refresh .ff-eap-hero p.ff-banner-title {
        font-size: clamp(26px, 6vw, 34px);
        line-height: 1.2;
        max-width: 85%;
        overflow-wrap: break-word;
    }
}


/* =========================================
   MOBILE CONTENT: UP TO 680px
   ========================================= */

@media (max-width: 680px) {

    body.eap-refresh .ff-eap-intro {
        padding: 55px 0;
    }

    body.eap-refresh .ff-eap-intro p {
        font-size: 16px;
    }

    body.eap-refresh .ff-eap-photo {
        padding: 0 0 15px 15px;
    }

    body.eap-refresh .ff-eap-photo img {
        aspect-ratio: 4 / 3;
    }

    body.eap-refresh .ff-eap-services {
        padding: 60px 0;
    }

    body.eap-refresh .ff-eap-services-list li {
        padding: 22px 0;
    }

    body.eap-refresh .ff-eap-why {
        padding: 60px 0;
    }

    body.eap-refresh .ff-eap-why-grid {
        grid-template-columns: 1fr;
    }

    body.eap-refresh .ff-eap-why-item {
        min-height: 0;
        padding: 28px;
    }

    body.eap-refresh .ff-eap-why-item h3 {
        font-size: 21px;
    }
}


/* =========================================
   EAP RESPONSIVE BANNER - FINAL
   ========================================= */

body.eap-refresh .ff-eap-hero > picture {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

body.eap-refresh .ff-eap-hero > picture > img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    filter: none !important;
}

/* Keep the banner text above the image */
body.eap-refresh .ff-eap-hero .banner_cont {
    z-index: 2;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1199px) {
    body.eap-refresh .ff-eap-hero > picture > img {
        object-position: center;
    }
}

/* Mobile */
@media (max-width: 767px) {
    body.eap-refresh .ff-eap-hero > picture > img {
        object-position: 60% center;
    }

    body.eap-refresh .ff-eap-hero h1,
body.eap-refresh .ff-eap-hero p.ff-banner-title {
        font-size: clamp(24px, 6vw, 30px);
        max-width: 90%;
        line-height: 1.2;
    }
}
       /* =========================================
   FAMILY FIRST - GLOBAL BANNER FIX
   ========================================= */

body .banner {
    position: relative !important;
    width: 100%;
     height: 450px !important;
    min-height: 450px !important;
    max-height: 450px !important;
    overflow: hidden !important;
    padding: 0 !important;
}

/* Make the image cover the entire banner */
body .banner > img {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block;
}

/* Keep the heading above the image */
body .banner .banner_cont {
    position: absolute !important;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
}

/* Tablet */
@media (max-width: 991px) {
    body .banner {
        height: 400px !important;
        min-height: 400px !important;
        max-height: 400px !important;
    }
}

/* Mobile */
@media (max-width: 767px) {
    body .banner {
        height: 300px !important;
        min-height: 300px !important;
        max-height: 300px !important;
    }

    body .banner > img {
        object-position: 65% center !important;
    }
}

/* TABLET */
@media (min-width: 768px) and (max-width: 1199px) {

    body .banner.team-hero.ff-schools-hero {
        height: 360px !important;
        min-height: 360px !important;
        max-height: 360px !important;
    }

    body .ff-schools-hero > picture > img {
        object-position: center center;
    }

    body .ff-schools-hero h1,
body .ff-schools-hero p.ff-banner-title {
        font-size: clamp(32px, 4vw, 46px);
        max-width: 55%;
    }
}

/* MOBILE */
@media (max-width: 767px) {

    body .banner.team-hero.ff-schools-hero {
        height: 320px !important;
        min-height: 320px !important;
        max-height: 320px !important;
    }

    body .ff-schools-hero > picture > img {
        object-fit: cover;
        object-position: 65% center;
    }

    body .banner.team-hero.ff-schools-hero .banner_cont {
        align-items: flex-start;
        padding-top: 32px;
    }

    body .ff-schools-hero .banner_cont .container {
        padding-inline: 24px;
    }

    body .ff-schools-hero h1,
body .ff-schools-hero p.ff-banner-title {
        font-size: clamp(26px, 7vw, 34px);
        line-height: 1.2;
        max-width: 90%;
    }
}

/* =========================================
   SCHOOLS & NURSERIES - RESPONSIVE BANNER FIX
   ========================================= */

body .banner.team-hero.ff-schools-hero {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: 450px !important;
    min-height: 450px !important;
    max-height: 450px !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Full-width picture container */

body .banner.team-hero.ff-schools-hero > picture {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Image must fill entire banner */

body .banner.team-hero.ff-schools-hero > picture > img {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    object-fit: cover !important;
    object-position: center center !important;
    filter: none !important;
    opacity: 1 !important;
}

/* Remove inherited beige gradient */

body .banner.team-hero.ff-schools-hero .banner_cont {
    position: absolute !important;
    inset: 0 !important;
    z-index: 2 !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;

    background: none !important;
    background-image: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Remove other overlay layers */

body .banner.team-hero.ff-schools-hero::before,
body .banner.team-hero.ff-schools-hero::after,
body .banner.team-hero.ff-schools-hero .banner_cont::before,
body .banner.team-hero.ff-schools-hero .banner_cont::after {
    content: none !important;
}

/* Heading */

body .ff-schools-hero .banner_cont .container {
    position: relative;
    z-index: 3;
    width: 100%;
}

body .ff-schools-hero h1,
body .ff-schools-hero p.ff-banner-title {
    color: #76513B !important;
    font-size: clamp(34px, 4vw, 56px);
    font-weight: 600;
    line-height: 1.15;
    max-width: 600px;
    margin: 0;
}


/* =========================================
   TABLET
   ========================================= */

@media (min-width: 768px) and (max-width: 1199px) {

    body .banner.team-hero.ff-schools-hero {
        height: 360px !important;
        min-height: 360px !important;
        max-height: 360px !important;
    }

    body .ff-schools-hero > picture > img {
        object-position: 55% center !important;
    }

    body .ff-schools-hero h1,
body .ff-schools-hero p.ff-banner-title {
        font-size: clamp(30px, 4vw, 44px);
        max-width: 48%;
    }
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 767px) {

    body .banner.team-hero.ff-schools-hero {
        height: 320px !important;
        min-height: 320px !important;
        max-height: 320px !important;
    }

    body .ff-schools-hero > picture > img {
        object-position: 62% center !important;
    }

    body .banner.team-hero.ff-schools-hero .banner_cont {
        align-items: flex-start !important;
        padding-top: 30px !important;
    }

    body .ff-schools-hero .banner_cont .container {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }

    body .ff-schools-hero h1,
body .ff-schools-hero p.ff-banner-title {
        font-size: clamp(26px, 7vw, 34px);
        max-width: 90%;
        line-height: 1.2;
    }
}

/* ========================================
   FAMILY FIRST - RESPONSIVE TEAM BANNER
======================================== */

body .banner.team-hero.ff-team-banner {
    position: relative !important;
    width: 100%;
    height: 450px !important;
    min-height: 450px !important;
    max-height: 450px !important;
    overflow: hidden;
    isolation: isolate;
    padding: 0 !important;
}

/* Image wrapper */
body .ff-team-banner > picture {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 0;
}

/* Banner image */
body .ff-team-banner > picture > img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
}

/* Text overlay */
body .ff-team-banner .banner_cont {
    position: absolute !important;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    background: transparent !important;
    padding: 0 !important;
}

body .ff-team-banner .banner_cont .container {
    width: 100%;
}

body .ff-team-banner h1,
body .ff-team-banner p.ff-banner-title {
    color: #76513B !important;
    font-size: clamp(36px, 4vw, 58px);
    line-height: 1.15;
    margin-bottom: 20px;
}

body .ff-team-banner p {
    color: #2D1F17;
    font-size: clamp(16px, 1.5vw, 21px);
    line-height: 1.5;
}

/* TABLET */
@media (min-width: 601px) and (max-width: 1199px) {

    body .banner.team-hero.ff-team-banner {
        height: 400px !important;
        min-height: 400px !important;
        max-height: 400px !important;
    }

    body .ff-team-banner > picture > img {
        object-position: center center !important;
    }

    body .ff-team-banner h1,
body .ff-team-banner p.ff-banner-title {
        font-size: clamp(32px, 4vw, 46px);
    }
}

/* MOBILE */
@media (max-width: 600px) {

    body .banner.team-hero.ff-team-banner {
        height: 360px !important;
        min-height: 360px !important;
        max-height: 360px !important;
    }

    body .ff-team-banner > picture > img {
        object-fit: cover !important;
        object-position: center center !important;
    }

    body .ff-team-banner .banner_cont {
        align-items: flex-start;
        padding-top: 65px !important;
    }

    body .ff-team-banner .banner_cont .container {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }

    body .ff-team-banner h1,
body .ff-team-banner p.ff-banner-title {
        font-size: 30px;
        margin-bottom: 12px;
    }

    body .ff-team-banner p {
        font-size: 14px;
        max-width: 180px;
        line-height: 1.5;
    }
}

@media (max-width: 1199px) {
    body .banner.team-hero.ff-team-banner {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        aspect-ratio: 1400 / 740;
    }

    body .ff-team-banner > picture > img {
        object-fit: contain !important;
    }
}

@media (max-width: 600px) {
    body .banner.team-hero.ff-team-banner {
        aspect-ratio: 900 / 1050;
    }

    body .ff-team-banner .banner_cont {
        align-items: flex-start !important;
        padding-top: 60px !important;
    }
}
/* =========================================
   TEAM BANNER - HIDE DUPLICATE TEXT
   TABLET + MOBILE ONLY
========================================= */

@media (max-width: 1199px) {

    body .ff-team-banner .banner_cont {
        display: none !important;
    }

}

/* Desktop: Keep HTML text visible */
@media (min-width: 1200px) {

    body .ff-team-banner .banner_cont {
        display: flex !important;
    }

}
/* The team directory opens with its introduction rather than a collage. */
.ff-team-introduction { padding-block: clamp(36px, 5vw, 72px) 32px; }
.ff-team-introduction h1 { margin: 0 0 16px; font-size: clamp(36px, 4.5vw, 64px); line-height: 1.12; font-weight: 400; letter-spacing: -.035em; }
.ff-team-introduction p { margin: 0; color: var(--text-soft); font-size: clamp(17px, 1.5vw, 21px); line-height: 1.6; }
.ff-team-introduction + .our-team { margin-top: 0; }

/* Match the page titles used on every other inner page. */
.ff-team-introduction h1 { color: #76513B; }
