.team-page {
    --red: #b81920;
    --ink: #202123;
    --muted: #5c5e60;
    --paper: #f4f3f0;
    --line: #dedcd8;
}

.team-page *, .team-page *::before, .team-page *::after {
    box-sizing: border-box;
}

.team-page {
    margin: 0;
    background: #ffffff;
    color: var(--ink);
    font: 400 17px/1.65 Lato, "Segoe UI", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.team-page img {
    max-width: 100%;
}

.team-page a:focus-visible, .team-page button:focus-visible {
    outline: 2px solid #d42a32;
    outline-offset: 5px;
}

.team-page .skip {
    position: absolute;
    left: 20px;
    top: -100px;
    z-index: 100;
    background: #fff;
    padding: 12px;
}

.team-page .skip:focus {
    top: 10px;
}

.team-page .msj-header-spacer {
    display: none;
}

.team-page .msj-header:not(.is-docked) {
    position: absolute;
    top: 0;
}

.team-banner-wrap {
    width: min(1360px, calc(100% - 112px));
    margin-inline: auto;
}

.team-banner {
    position: relative;
    isolation: isolate;
    min-height: clamp(400px, 53vh, 550px);
    display: grid;
    align-items: center;
    padding: 140px 0 68px;
    background: #303438;
    color: #fff;
}

.team-banner-photo, .team-banner::after {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.team-banner-photo {
    object-fit: cover;
    object-position: center 48%;
}

.team-banner::after {
    content: "";
    background: linear-gradient(90deg, rgba(17,20,23,.85), rgba(17,20,23,.52) 58%, rgba(17,20,23,.22));
}

.team-banner-eyebrow {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--red);
}

.team-banner-eyebrow::before {
    content: "";
    width: 25px;
    height: 2px;
    background: currentColor;
}

.team-banner .team-banner-eyebrow {
    color: #fff;
}

.team-banner .team-banner-eyebrow::before {
    background: #e54b50;
}

.team-banner h1 {
    font-size: clamp(40px, 4.2vw, 64px);
    line-height: 1.12;
    font-weight: 700;
    margin: 0 0 20px;
}

.team-banner p:not(.team-banner-eyebrow) {
    max-width: 610px;
    color: #f0f0f0;
    font-size: clamp(17px, 1.4vw, 20px);
    margin: 0 0 22px;
}

.team-banner a {
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    border-bottom: 1px solid #ffffff80;
    padding-bottom: 5px;
}

@media (max-width:760px) {
    .team-banner-wrap {
        width: calc(100% - 40px);
    }

    .team-banner {
        min-height: 400px;
        padding: 125px 0 60px;
    }

}

/* MSJ Team: shared typography, portraits and controls. */
.team-section {
    --team-red: #b81920;
    --team-muted: #606367;
    padding: clamp(52px, 5vw, 88px) 0;
    color: #202123;
    background: #fff;
}

.team-section--dark {
    --team-red: #ff8c90;
    --team-muted: #c9c9cb;
    background: #242526;
    color: #fff;
}

.team-wrap {
    width: min(1360px, calc(100% - 112px));
    margin: 0 auto;
}

.team-section--dark .team-wrap {
    width: min(1200px, calc(100% - 72px));
}

.team-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
    margin-bottom: 32px;
}

.team-kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--team-red);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .075em;
    text-transform: uppercase;
    margin: 0 0 14px;
}

.team-kicker::before {
    content: "";
    width: 24px;
    height: 2px;
    background: currentColor;
}

.team-heading h2 {
    margin: 0 0 12px;
    font-size: clamp(30px, 3.1vw, 42px);
    line-height: 1.2;
    color: inherit;
}

.team-heading p:not(.team-kicker) {
    color: var(--team-muted);
    max-width: 570px;
    margin: 0;
}

.team-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 48px;
    border: 1px solid #838486;
    border-radius: 3px;
    padding: 12px 20px;
    color: inherit;
    font: 700 14px/1.4 Lato, "Segoe UI", Arial, sans-serif;
    text-decoration: none;
    white-space: nowrap;
    background: transparent;
    cursor: pointer;
}

.team-action:hover {
    background: #ffffff13;
    border-color: currentColor;
}

.team-action--red {
    background: #b81920;
    color: #fff;
    border-color: #b81920;
}

.team-action--red:hover {
    background: #8e1319;
}

.team-carousel {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 72px) / 4);
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.team-carousel::-webkit-scrollbar {
    display: none;
}

.team-directory-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 36px 26px;
}

.team-person {
    min-width: 0;
    scroll-snap-align: start;
}

.team-portrait {
    position: relative;
    aspect-ratio: 4 / 4.4;
    overflow: hidden;
    background: #e6e3df;
}

.team-portrait img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.team-portrait .team-photo-fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #8f9195;
}

.team-photo-fallback svg {
    width: 42%;
    height: 42%;
}

.team-portrait img:not([hidden]) {
    position: relative;
    z-index: 1;
}

.team-person-info {
    padding: 17px 0 0;
}

.team-person h3 {
    font-size: 21px;
    line-height: 1.2;
    margin: 0 0 6px;
    color: inherit;
}

.team-person-info p {
    color: var(--team-muted);
    font-size: 14px;
    margin: 0;
    line-height: 1.6;
}

.team-person-info .team-nmls {
    font-size: 12px;
    margin-top: 4px;
}

.team-person-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-top: 1px solid #dedbd7;
    padding-top: 12px;
    margin-top: 15px;
}

.team-section--dark .team-person-actions {
    border-color: #4a4b4d;
}

.team-profile-link {
    border: 0;
    padding: 3px 0;
    color: var(--team-red);
    font: 700 14px/1.5 Lato, "Segoe UI", Arial, sans-serif;
    background: transparent;
    cursor: pointer;
}

.team-profile-link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.team-contact-icons {
    display: flex;
    gap: 13px;
    align-items: center;
}

.team-icon {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.team-contact-icons button {
    color: inherit;
    border: 0;
    padding: 4px;
    background: transparent;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.team-contact-icons button:hover {
    color: var(--team-red);
}

.team-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 28px;
}

.team-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--team-muted);
    font-size: 12px;
}

.team-progress-track {
    height: 3px;
    width: 94px;
    background: #5c5d5e;
}

.team-progress-fill {
    display: block;
    height: 100%;
    width: 50%;
    background: #e54b50;
    transition: width .2s;
}

.team-arrows {
    display: flex;
    gap: 10px;
}

.team-arrow {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid #777;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.team-arrow:hover:not(:disabled) {
    background: #b81920;
    border-color: #b81920;
    color: #fff;
}

.team-arrow:disabled {
    opacity: .35;
    cursor: default;
}

.team-preview-note {
    color: var(--team-muted);
    font-size: 12px;
    margin-top: 18px;
}

.team-filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(170px, .38fr) minmax(150px, .32fr);
    gap: 16px;
    padding: 24px;
    background: #f4f3f0;
    border: 1px solid #e3e0dc;
    margin-bottom: 20px;
}

.team-filter-bar label {
    display: block;
    color: #202123;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 7px;
}

.team-filter-bar input, .team-filter-bar select {
    width: 100%;
    min-width: 0;
    height: 48px;
    padding: 10px 13px;
    border: 1px solid #ccc9c5;
    border-radius: 3px;
    background: white;
    color: #202123;
    font: 400 15px/1.4 Lato, "Segoe UI", Arial, sans-serif;
}

.team-results {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    color: #606367;
    font-size: 14px;
}

.team-results button {
    background: transparent;
    border: 0;
    color: #b81920;
    font: inherit;
    cursor: pointer;
    font-weight: 700;
}

.team-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 38px;
    flex-wrap: wrap;
}

.team-pagination button {
    min-width: 42px;
    height: 42px;
    padding: 0 10px;
    background: white;
    border: 1px solid #d5d2ce;
    color: #202123;
    font: 700 14px Lato, Arial, sans-serif;
    cursor: pointer;
}

.team-pagination button[aria-current="page"] {
    background: #b81920;
    color: white;
    border-color: #b81920;
}

.team-pagination button:disabled {
    opacity: .4;
    cursor: default;
}

.team-empty {
    padding: 45px 20px;
    text-align: center;
    color: #606367;
    background: #f4f3f0;
    grid-column: 1 / -1;
}

.team-dialog {
    width: min(460px, calc(100% - 32px));
    max-height: 90vh;
    border: 1px solid #dedbd7;
    padding: 28px;
    color: #202123;
    background: #fff;
}

.team-dialog::backdrop {
    background: #0009;
}

.team-dialog h2 {
    font-size: 25px;
    margin: 0 0 12px;
}

.team-dialog p {
    margin: 0 0 16px;
    color: #606367;
}

.team-dialog .team-action {
    color: #202123;
}

.team-dialog .team-action--red {
    color: #fff;
}

.team-section [hidden] {
    display: none !important;
}

@media (max-width: 1050px) {
    .team-carousel {
        grid-auto-columns: calc((100% - 48px) / 3);
    }

    .team-directory-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .team-wrap {
        width: calc(100% - 64px);
    }

}

@media (max-width: 760px) {
    .team-heading {
        align-items: start;
        flex-direction: column;
    }

    .team-carousel {
        grid-auto-columns: calc((100% - 18px) / 2);
        gap: 18px;
    }

    .team-directory-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 18px;
    }

    .team-wrap, .team-section--dark .team-wrap {
        width: calc(100% - 40px);
    }

    .team-filter-bar {
        grid-template-columns: 1fr 1fr;
        padding: 17px;
        gap: 12px;
    }

    .team-filter-search {
        grid-column: 1 / -1;
    }

}

@media (max-width: 460px) {
    .team-carousel {
        grid-auto-columns: 100%;
    }

    .team-directory-grid {
        grid-template-columns: 1fr;
    }

    .team-filter-bar {
        grid-template-columns: 1fr;
    }

    .team-person h3 {
        font-size: 20px;
    }

    .team-portrait {
        aspect-ratio: 4 / 3.8;
    }

}

@media (prefers-reduced-motion: reduce) {
    .team-progress-fill {
        transition: none;
    }

}

/* Team directory tabs and standalone profile pages */
.team-tabs {
    display: flex;
    gap: 32px;
    border-bottom: 1px solid #dedbd7;
    margin-bottom: 26px;
}

.team-tabs button {
    border: 0;
    border-bottom: 2px solid transparent;
    padding: 12px 0 15px;
    margin-bottom: -1px;
    color: #606367;
    background: transparent;
    font: 700 16px/1.4 Lato, Arial, sans-serif;
    cursor: pointer;
}

.team-tabs button[aria-pressed="true"] {
    border-color: #b81920;
    color: #b81920;
}

.team-tabs small {
    font-size: 12px;
    color: #606367;
    margin-left: 5px;
}

.team-profile-link {
    text-decoration: none;
}

.team-contact-icons a {
    display: grid;
    place-items: center;
    color: inherit;
    padding: 4px;
}

.team-contact-icons a:hover {
    color: var(--team-red);
}

.team-profile-layout {
    display: grid;
    grid-template-columns: minmax(250px, .8fr) minmax(0, 1.8fr);
    gap: clamp(36px, 5vw, 85px);
    align-items: start;
}

.team-profile-aside {
    border-bottom: 1px solid #dedbd7;
    padding-bottom: 28px;
}

.team-profile-aside .team-portrait {
    aspect-ratio: 4 / 4.2;
    max-width: 420px;
}

.team-profile-aside h2 {
    font-size: 25px;
    line-height: 1.25;
    margin: 22px 0 5px;
}

.team-profile-aside p {
    font-size: 15px;
    color: #606367;
    margin: 4px 0;
}

.team-profile-contact {
    padding: 20px 0;
    margin: 20px 0 0;
    border-top: 1px solid #dedbd7;
    display: grid;
    gap: 9px;
}

.team-profile-contact a {
    color: #b81920;
    text-decoration: none;
    font-weight: 700;
}

.team-profile-buttons {
    display: grid;
    gap: 10px;
}

.team-profile-copy h2 {
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.2;
    margin: 0 0 18px;
}

.team-profile-copy p {
    color: #606367;
    max-width: 780px;
}

.team-profile-copy h3 {
    font-size: 23px;
    margin: 0 0 15px;
}

.team-profile-block {
    border-top: 1px solid #dedbd7;
    margin-top: 30px;
    padding-top: 26px;
}

.team-docs {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 0 24px;
}

.team-docs button {
    text-align: left;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #dedbd7;
    padding: 13px 0;
    color: #b81920;
    font: 700 14px/1.5 Lato, Arial, sans-serif;
    cursor: pointer;
}

.team-tools {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 16px;
}

.team-tool {
    padding: 22px;
    border: 1px solid #dedbd7;
    background: #f4f3f0;
}

.team-tool h4 {
    font-size: 18px;
    margin: 0 0 8px;
}

.team-tool p {
    font-size: 14px;
    margin: 0 0 14px;
}

.team-tool a {
    color: #b81920;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
}

.team-banner.team-profile-banner {
    min-height: clamp(280px, 37vh, 390px);
}

.team-banner.team-profile-banner h1 {
    font-size: clamp(36px, 4vw, 56px);
}

.team-profile-banner a {
    border: 0;
}

.team-preview-note {
    line-height: 1.5;
}

@media (max-width: 760px) {
    .team-profile-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .team-profile-aside .team-portrait {
        max-width: 340px;
    }

    .team-tabs {
        gap: 20px;
    }

    .team-tabs button {
        font-size: 14px;
    }

}

@media (max-width: 460px) {
    .team-docs, .team-tools {
        grid-template-columns: 1fr;
    }

    .team-tabs small {
        display: block;
        margin: 0;
    }

}

/* Shared team refinements */
.team-section, .team-section * {
    box-sizing: border-box;
}

.team-section {
    font: 400 16px/1.65 Lato, "Segoe UI", Arial, sans-serif;
}

.team-section h2, .team-section h3 {
    letter-spacing: normal;
}

.team-section a {
    text-decoration: none;
}

.team-section a:focus-visible, .team-section button:focus-visible {
    outline: 2px solid #e54b50;
    outline-offset: 4px;
}

.team-carousel > .team-empty {
    grid-column: 1 / -1;
    width: 100%;
}

.team-section--dark .team-empty {
    background: #343638;
    color: #eee;
}

.team-docs a {
    border-bottom: 1px solid #dedbd7;
    padding: 13px 0;
    color: #b81920;
    font-weight: 700;
    font-size: 14px;
}

.team-profile-copy .team-bio {
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.team-profile-contact {
    overflow-wrap: anywhere;
}

.team-person h3, .team-person p {
    overflow-wrap: anywhere;
}

.team-profile-aside .team-action--red {
    color: #fff;
}

.team-section button {
    font-family: inherit;
}

/* ==========================================================
   Compact Team Directory Cards
   ========================================================== */

.team-directory-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.team-directory-grid .team-person {
    display: flex;
    flex-direction: column;
    padding: 24px;
    border: 1px solid #dedcd8;
    border-radius: 4px;
    background: #ffffff;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.team-directory-grid .team-person:hover {
    border-color: #b8b6b3;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

/* Profile photograph and information */

.team-card-header {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
    min-width: 0;
}

.team-card-header > a {
    flex: 0 0 90px;
    width: 90px;
}

.team-directory-grid .team-portrait {
    width: 90px;
    height: 90px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: #eeedeb;
}

.team-directory-grid .team-portrait img {
    object-fit: cover;
    object-position: center 30%;
}

.team-directory-grid .team-person-info {
    flex: 1;
    min-width: 0;
    padding: 0;
}

.team-directory-grid .team-person h3 {
    font-size: 19px;
    line-height: 1.35;
    margin: 0 0 6px;
}

.team-directory-grid .team-person-info p {
    font-size: 13px;
    line-height: 1.6;
}

.team-directory-grid .team-nmls {
    font-size: 12px;
}

.team-phone-inline {
    margin-top: 8px;
    color: #606367;
    font-size: 13px;
    font-weight: 700;
}

/* Initials fallback */

.team-directory-grid .team-photo-fallback {
    color: #77787b;
    font-size: 25px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Profile and contact links */

.team-directory-grid .team-person-actions {
    margin-top: 22px;
    padding-top: 14px;
    border-top: 1px solid #e4e2df;
}

.team-directory-grid .team-profile-link {
    font-size: 13px;
    text-decoration: none;
}

/* Tablet layout */

@media (max-width: 1050px) {
    .team-directory-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

/* Mobile layout */

@media (max-width: 680px) {
    .team-directory-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .team-directory-grid .team-person {
        padding: 20px;
    }

    .team-card-header {
        gap: 15px;
    }

    .team-card-header > a {
        flex-basis: 76px;
        width: 76px;
    }

    .team-directory-grid .team-portrait {
        width: 76px;
        height: 76px;
    }

    .team-directory-grid .team-person h3 {
        font-size: 18px;
    }
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {
    .team-directory-grid .team-person {
        transition: none;
    }
}

/* Profile breadcrumb: mirrors the public navigation hierarchy. */
.team-profile-crumb { margin-bottom: .65rem; font-size: .875rem; line-height: 1.5; }
.team-banner .team-profile-crumb a { color: inherit; text-decoration: underline; text-underline-offset: 3px; border: 0; padding: 0; font-size: inherit; font-weight: 400; }

/* Expanded Support Team cards, scoped to the support directory only. */
.team-directory-grid.team-directory-grid--support {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}
.team-directory-grid .team-support-card {
    padding: 24px;
    min-width: 0;
}
.team-support-card .team-card-header {
    flex: 0 0 auto;
    min-height: 88px;
    gap: 16px;
}
.team-support-card .team-card-header > a {
    flex-basis: 82px;
    width: 82px;
}
.team-directory-grid .team-support-card .team-portrait {
    width: 82px;
    height: 82px;
}
.team-directory-grid .team-support-card h3 {
    font-size: 18px;
    margin-bottom: 4px;
}
.team-directory-grid .team-support-card .team-person-info p {
    font-size: 14px;
}
/* Grouped contact details and scheduled availability. */
.team-support-status {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 7px;
    color: #6a6254;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere;
}
.team-support-status-dot {
    flex: 0 0 7px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}
.team-support-status--available { color: #287747; }
.team-support-status--outside { color: #66686c; }
.team-support-status--notice { color: #8a601e; }
.team-support-section {
    margin-top: 17px;
    padding-top: 15px;
    border-top: 1px solid #e4e2df;
}
.team-support-label {
    margin: 0 0 10px;
    color: #606367;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    line-height: 1.4;
    text-transform: uppercase;
}
.team-support-contact-list { display: grid; gap: 8px; }
.team-support-contact {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 14px;
    line-height: 1.45;
    min-width: 0;
}
.team-support-contact-icon { flex: 0 0 17px; color: #606367; display: grid; place-items: center; }
.team-support-contact-icon .team-icon { width: 17px; height: 17px; margin-top: 2px; }
.team-support-contact a { min-width: 0; color: #202123; overflow-wrap: anywhere; }
.team-support-contact a:hover { color: #b81920; text-decoration: underline; }
.team-support-schedule { display: grid; gap: 9px; }
.team-support-days { margin: 0 0 2px; font-size: 14px; font-weight: 700; color: #202123; }
.team-support-hours-row { display: flex; justify-content: space-between; align-items: baseline; gap: 7px 12px; flex-wrap: wrap; font-size: 13px; line-height: 1.45; }
.team-support-zone { color: #606367; }
.team-support-zone small { display: block; font-size: 11px; }
.team-support-time { font-weight: 700; color: #202123; }
.team-support-legacy-hours { margin: 0; font-size: 13px; overflow-wrap: anywhere; }
.team-directory-grid .team-support-card .team-person-actions {
    margin-top: auto;
    padding-top: 13px;
    border-top: 1px solid #e4e2df;
}
.team-directory-grid .team-support-card .team-person-actions::before { content: none; }
.team-directory-grid .team-support-card .team-support-section:has(+ .team-person-actions) { margin-bottom: 18px; }
.team-directory-grid .team-support-card .team-profile-link { font-size: 13px; color: #b81920; }
.team-directory-grid .team-support-card .team-contact-icons { gap: 8px; }
@media (max-width: 1280px) {
    .team-directory-grid.team-directory-grid--support { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
    .team-directory-grid.team-directory-grid--support { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
    .team-directory-grid.team-directory-grid--support { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .team-directory-grid .team-support-card { padding: 20px; }
    .team-support-card .team-card-header { min-height: 80px; gap: 14px; }
    .team-support-card .team-card-header > a { flex-basis: 72px; width: 72px; }
    .team-directory-grid .team-support-card .team-portrait { width: 72px; height: 72px; }
    .team-directory-grid .team-support-card h3 { font-size: 18px; }
}

/* Individual member profiles only. Directory and homepage cards are untouched. */
.team-member-profile { background: #f4f3f0; }
.team-member-profile .team-profile-layout {
    grid-template-columns: minmax(280px, 355px) minmax(0, 1fr);
    gap: 28px;
    max-width: 1200px;
}
.team-member-profile .team-profile-aside,
.team-member-profile .team-profile-copy { display: grid; gap: 22px; min-width: 0; align-content: start; }
.team-member-profile .team-profile-aside { border: 0; padding: 0; }
.team-member-profile .profile-panel { background: #fff; border: 1px solid #dedcd8; padding: clamp(20px, 2.3vw, 32px); border-radius: 4px; min-width: 0; }
.team-member-profile .profile-panel h2 { font-size: clamp(21px, 2vw, 26px); margin: 0 0 16px; line-height: 1.3; overflow-wrap: anywhere; }
.team-member-profile .profile-identity .team-portrait { width: min(100%, 230px); aspect-ratio: 1; margin: 0 auto 25px; border-radius: 50%; }
.team-member-profile .profile-identity .team-photo-fallback { font-size: 48px; font-weight: 700; }
.team-member-profile .profile-identity .team-kicker { font-size: 11px; color: #b81920; margin: 0 0 10px; }
.team-member-profile .profile-identity h2 { margin: 0 0 6px; }
.team-member-profile .profile-role { font-size: 16px; color: #202123; overflow-wrap: anywhere; }
.team-member-profile .profile-department { overflow-wrap: anywhere; }
.team-member-profile .team-profile-buttons { margin-top: 22px; }
.team-member-profile .team-profile-buttons .team-action { justify-content: center; text-align: center; }
.team-member-profile .profile-back-link { color: #b81920; font-size: 14px; font-weight: 700; text-align: center; padding: 8px; }
.team-member-profile .profile-details { margin: 0; }
.team-member-profile .profile-detail { display: grid; grid-template-columns: minmax(90px, .65fr) minmax(0, 1.35fr); gap: 8px 16px; padding: 12px 0; border-bottom: 1px solid #e4e2df; font-size: 15px; line-height: 1.5; }
.team-member-profile .profile-contact-panel .profile-detail { grid-template-columns: 1fr; gap: 4px; }
.team-member-profile .profile-detail:last-child { border-bottom: 0; }
.team-member-profile .profile-detail dt { color: #606367; }
.team-member-profile .profile-detail dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.team-member-profile .profile-detail a { color: #b81920; }
.team-member-profile .profile-detail a:hover, .team-member-profile .profile-back-link:hover { text-decoration: underline; }
.team-member-profile .profile-availability { display: flex; align-items: baseline; gap: 9px; font-weight: 700; margin: 0 0 8px; overflow-wrap: anywhere; }
.team-member-profile .profile-availability-dot { flex: 0 0 9px; height: 9px; border-radius: 50%; background: #777; }
.team-member-profile .profile-availability-dot--available { background: #287747; }
.team-member-profile .profile-note { color: #606367; font-size: 14px; margin: 0 0 8px; }
.team-member-profile .team-bio { line-height: 1.8; margin: 0; }
.team-member-profile .team-tool h3 { font-size: 18px; margin: 0 0 8px; }
.team-member-profile .team-kicker { color: #b81920; }
.team-member-profile .profile-panel > .team-profile-link { display: inline-block; margin-top: 14px; }
@media (max-width: 860px) {
    .team-member-profile .team-profile-layout { grid-template-columns: minmax(0,1fr); }
    .team-member-profile .profile-identity .team-portrait { width: min(100%, 190px); margin-left: 0; }
}
@media (max-width: 480px) {
    .team-member-profile .profile-detail { grid-template-columns: 1fr; gap: 4px; }
    .team-member-profile .profile-panel { padding: 20px; }
}
.team-member-profile--support .profile-contact-panel .profile-detail { grid-template-columns: minmax(90px,.65fr) minmax(0,1.35fr); gap: 8px 16px; }
@media (max-width: 480px) {
    .team-member-profile--support .profile-contact-panel .profile-detail { grid-template-columns: 1fr; gap: 4px; }
}

/* Optional directory geography filters: do not change team card layouts. */
.team-filter-bar > [hidden], .team-geography-note[hidden] { display: none !important; }
.team-filter-bar--geography { grid-template-columns: repeat(auto-fit, minmax(min(165px, 100%), 1fr)); }
.team-filter-bar--geography .team-filter-search { grid-column: 1 / -1; }
.team-geography-note { margin: -8px 0 18px; color: #606367; font-size: 13px; line-height: 1.5; }
@media (max-width: 460px) { .team-filter-bar--geography { grid-template-columns: 1fr; } }
