/* =====================================================================
   Meet Our Team public page (/meet-our-team)
   View: resources/views/Admin/Auth/team/index.blade.php   JS: assets/js/team-page.js
   Design: MHF_Meet_Our_Team_Complete_Developer_Package/Screen_1_Public_Team_Page.png (1536 x 1024).
   Header/footer come from homepage.css; everything here is scoped to .mh-team.
   ===================================================================== */

.mh-team {
    --t-navy: #042b5d;
    --t-maroon: #930727;
    --t-maroon-hover: #7a0520;
    --t-ink: #1b3c6b;
    --t-muted: #6b7686;
    --t-line: #d8dde6;
    --t-shadow: 0 4px 18px rgba(16, 38, 77, .07), 0 0 0 1px rgba(16, 38, 77, .035);
    background: #fefefe;
}

/* Page container: 1408px of content at 1536px and wider */
.mh-team__wrap {
    width: 100%;
    max-width: 1536px;
    margin: 0 auto;
    padding-left: clamp(24px, 4.167vw, 64px);
    padding-right: clamp(24px, 4.167vw, 64px);
}

/* ---------- Preview / not-launched notice (shared look with brill-library.css) ---------- */
.mh-team .mh-preview-bar {
    position: sticky; top: 0; z-index: 1100;
    min-height: 44px;
    background: #fff4d6; border-bottom: 1px solid #f0d48a;
    font-family: var(--mh-font);
}
.mh-team .mh-preview-bar__in {
    max-width: 1536px; margin: 0 auto; min-height: 43px;
    padding: 6px clamp(16px, 4.167vw, 64px);
    display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap;
}
.mh-team .mh-preview-bar__text {
    display: flex; align-items: center; gap: 8px;
    font-size: 14px; line-height: 20px; font-weight: 600; color: #4a3b00;
}
.mh-team .mh-preview-bar__text svg { flex: none; color: #8a6100; }
.mh-team .mh-preview-bar__back {
    display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px;
    border: 1px solid #8a6100; border-radius: 4px;
    font-size: 13px; font-weight: 600; color: #4a3b00; text-decoration: none; white-space: nowrap;
}
.mh-team .mh-preview-bar__back:hover { background: #fbe7b0; }
.mh-has-notice .mh-header { top: var(--mh-notice-h, 44px); }
html.mh-nav-drawer .mh-has-notice .mh-nav { top: calc(var(--mh-header-h) + 4px + var(--mh-notice-h, 44px)); }

/* ---------- Banner ---------- */
.mh-team__banner {
    position: relative;
    height: 290px;
    overflow: hidden;
    background: #eef1f5;
    font-family: Figtree, var(--mh-font);
}
.mh-team .mh-team__banner-img {
    position: absolute; inset: 0; z-index: 0;
    width: 100%; height: 100%; max-width: none;
    object-fit: cover; object-position: left center; /* keeps the photo's white fade under the text when cropped */
}
.mh-team__banner-in { position: relative; z-index: 2; }
.mh-team__banner-text { width: 644px; max-width: 100%; padding-left: 4px; }

.mh-team .mh-team__crumbs {
    display: flex; flex-wrap: wrap;
    margin: 0; padding: 25px 0 0;
    list-style: none;
    font-size: 16.5px; line-height: 22px;
    color: var(--t-muted);
}
.mh-team .mh-team__crumbs a { color: inherit; text-decoration: none; }
.mh-team .mh-team__crumbs a:hover { text-decoration: underline; }
.mh-team__sep { margin: 0 8px; color: #9ea4b0; }
.mh-team__crumb-current { color: var(--t-maroon); }

.mh-team .mh-team__title {
    margin: 25px 0 0 -2px;
    font: 800 81px/64px Figtree, var(--mh-font);
    letter-spacing: -.03em;
    color: var(--t-navy);
    overflow-wrap: anywhere;
}
.mh-team__title em { font-style: normal; color: var(--t-maroon); }
.mh-team__title-rule { display: block; width: 103px; height: 5px; margin: 19px 0 0 2px; background: var(--t-maroon); }
.mh-team .mh-team__intro {
    max-width: 620px;
    margin: 16px 0 0 2px;
    font-size: 20.5px; line-height: 26.4px; letter-spacing: -.008em;
    color: #183a68;
}

/* ---------- Filters ---------- */
.mh-team__directory { padding-bottom: 72px; }
.mh-team__filters {
    display: flex; gap: 14px;
    margin: 21px 0 0 3px;
    font-family: Figtree, var(--mh-font);
}
.mh-team__filters.is-disabled { opacity: .6; }
.mh-team__field { position: relative; min-width: 0; }
.mh-team__field--search { flex: 0 1 432px; }
.mh-team__field--dept { flex: 0 1 335px; }
.mh-team__field--loc { flex: 0 1 271px; }
.mh-team .mh-team__control {
    display: block; width: 100%; height: 45px; margin: 0;
    padding: 0 40px 0 12px;
    border: 1px solid var(--t-line); border-radius: 4px;
    background: #fff;
    font: 400 17.5px/43px Figtree, var(--mh-font);
    color: #30363d;
    -webkit-appearance: none; appearance: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.mh-team .mh-team__field--search .mh-team__control { padding: 0 12px 0 47px; }
.mh-team__control::placeholder { color: #9aa3b2; letter-spacing: -.05em; opacity: 1; }
.mh-team__control::-webkit-search-decoration { -webkit-appearance: none; }
.mh-team .mh-team__control:focus { outline: none; border-color: var(--t-navy); box-shadow: 0 0 0 3px rgba(4, 43, 93, .15); }
.mh-team .mh-team__control:disabled { cursor: not-allowed; background: #fff; }
.mh-team__mag { position: absolute; left: 12px; top: 11px; pointer-events: none; }
.mh-team__chev { position: absolute; right: 15px; top: 19px; pointer-events: none; }

/* ---------- Grid + cards ---------- */
.mh-team__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
    margin-top: 21px;
}

.mh-team__card {
    container-type: inline-size;
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--t-shadow);
    overflow: hidden;
    font-family: 'Nunito Sans', var(--mh-font);
    scroll-margin-top: calc(var(--mh-header-h) + var(--mh-notice-h, 0px) + 24px);
}
.mh-team__card[hidden] { display: none; }
.mh-team__top { display: flex; padding: 12px 14px 13px; }

.mh-team .mh-team__photo {
    flex: none;
    width: clamp(160px, 34.8%, 232px);
    height: auto;
    aspect-ratio: 232 / 262;
    border-radius: 6px;
    object-fit: cover; object-position: top;
    background: #a3a4a8;
}
.mh-team .mh-team__photo--initials {
    display: flex; align-items: center; justify-content: center;
    background: #e9edf2;
    font: 800 64px/1 'Nunito Sans', var(--mh-font);
    color: #9aa3b2;
}

.mh-team__body { flex: 1 1 auto; min-width: 0; padding: 13px 0 0 27px; }
.mh-team .mh-team__name {
    margin: 0;
    font: 800 26.5px/32px 'Nunito Sans', var(--mh-font);
    letter-spacing: -.025em;
    color: var(--t-navy);
    overflow-wrap: break-word;
}
.mh-team__rule { display: block; width: 54px; height: 4px; margin-top: 10px; background: var(--t-maroon); }
.mh-team .mh-team__role {
    margin: 13px 0 0;
    font: 800 21px/26px 'Nunito Sans', var(--mh-font);
    letter-spacing: -.005em;
    color: #8a031a;
    overflow-wrap: break-word;
}

.mh-team .mh-team__row {
    display: flex; align-items: flex-start; gap: 15px;
    margin: 15px 0 0;
    font-size: 16px; line-height: 22px; letter-spacing: -.03em;
    color: var(--t-ink);
}
.mh-team .mh-team__row + .mh-team__row { margin-top: 18px; }
.mh-team__ico { flex: none; display: block; }
.mh-team__row-text { min-width: 0; overflow-wrap: anywhere; }
.mh-team .mh-team__mail { color: inherit; text-decoration: none; }
.mh-team .mh-team__mail:hover,
.mh-team .mh-team__mail:focus-visible { text-decoration: underline; }

.mh-team .mh-team__toggle {
    display: inline-flex; align-items: center; justify-content: center; gap: 18px;
    min-height: 46px; max-width: 100%;
    margin-top: 24px;
    padding: 0 21px 0 22px;
    border: 0; border-radius: 4px;
    background: var(--t-maroon);
    color: #fff;
    font: 700 18.5px/1 'Nunito Sans', var(--mh-font);
    letter-spacing: .005em;
    text-align: left;
    cursor: pointer;
    transition: background-color .15s ease;
}
.mh-team .mh-team__toggle:hover { background: var(--t-maroon-hover); }
.mh-team .mh-team__toggle:focus-visible { outline: 3px solid rgba(147, 7, 39, .35); outline-offset: 2px; }
.mh-team__toggle-label { padding: 6px 0; overflow-wrap: anywhere; }
.mh-team__toggle-ico { flex: none; display: block; }
.mh-team__toggle[aria-expanded="true"] .mh-team__toggle-v { display: none; }

/* Biography panel */
.mh-team__bio {
    margin: 0 3px 3px;
    background: #f1f5fa;
    border-radius: 0 0 6px 6px;
    overflow: hidden;
}
.mh-team__bio.is-animating { transition: height .2s ease-out; }
.mh-team__bio-in { padding: 20px 29px 36px; }
.mh-team .mh-team__bio-title {
    margin: 0;
    font: 800 24.5px/26px 'Nunito Sans', var(--mh-font);
    letter-spacing: -.05em;
    color: #032458;
    overflow-wrap: anywhere;
}
.mh-team__bio-text {
    font-size: 16.5px; line-height: 22.9px; letter-spacing: -.018em;
    color: #2a4470;
    overflow-wrap: break-word;
}
.mh-team .mh-team__bio-text > * { margin: 11px 0 0; }
.mh-team .mh-team__bio-text h3,
.mh-team .mh-team__bio-text h4 { margin-top: 18px; font-size: 18.5px; line-height: 24px; font-weight: 800; letter-spacing: -.02em; color: #032458; }
.mh-team .mh-team__bio-text ul,
.mh-team .mh-team__bio-text ol { padding-left: 22px; }
.mh-team .mh-team__bio-text ul { list-style: disc; }
.mh-team .mh-team__bio-text li + li { margin-top: 4px; }
.mh-team .mh-team__bio-text a { color: var(--t-maroon); text-decoration: underline; }
.mh-team .mh-team__bio-text img { height: auto; }

/* Empty state + no results */
.mh-team__panel {
    grid-column: 1 / -1;
    padding: 56px 24px;
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--t-shadow);
    text-align: center;
    font-family: 'Nunito Sans', var(--mh-font);
}
.mh-team__panel[hidden] { display: none; }
.mh-team__panel-ico { display: block; margin: 0 auto; color: #b5bdc9; }
.mh-team .mh-team__panel-title { margin: 14px 0 0; font: 800 26px/32px 'Nunito Sans', var(--mh-font); color: var(--t-navy); }
.mh-team .mh-team__panel-text { max-width: 560px; margin: 8px auto 0; font-size: 16.5px; line-height: 24px; color: #2a4470; }
.mh-team .mh-team__clear {
    min-height: 44px; margin-top: 20px; padding: 0 20px;
    border: 1px solid var(--t-maroon); border-radius: 4px;
    background: #fff; color: var(--t-maroon);
    font: 700 16.5px/1 'Nunito Sans', var(--mh-font);
    cursor: pointer;
    transition: background-color .15s ease;
}
.mh-team .mh-team__clear:hover { background: #fbf1f3; }
.mh-team .mh-team__clear:focus-visible { outline: 3px solid rgba(147, 7, 39, .35); outline-offset: 2px; }

/* ---------- Narrow card (< 600px wide): small photo beside the name, details below ---------- */
@container (max-width: 599.98px) {
    .mh-team__top {
        display: grid;
        grid-template-columns: 132px minmax(0, 1fr);
        column-gap: 16px;
        padding: 16px;
    }
    .mh-team__body { display: contents; }
    .mh-team .mh-team__photo { grid-column: 1; grid-row: 1; width: 132px; height: 149px; aspect-ratio: auto; }
    .mh-team .mh-team__photo--initials { font-size: 40px; }
    .mh-team__head { grid-column: 2; grid-row: 1; align-self: center; }
    .mh-team__more { grid-column: 1 / -1; grid-row: 2; }
    .mh-team .mh-team__name { font-size: 22px; line-height: 27px; }
    .mh-team__rule { margin-top: 8px; }
    .mh-team .mh-team__role { margin-top: 10px; font-size: 18px; line-height: 22px; }
    .mh-team .mh-team__row:first-child { margin-top: 16px; }
    .mh-team .mh-team__toggle { display: flex; width: 100%; min-height: 48px; margin-top: 20px; padding: 0 16px; gap: 12px; font-size: 17px; }
    .mh-team__bio-in { padding: 18px 18px 26px; }
    .mh-team .mh-team__bio-title { font-size: 22px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
    .mh-team__banner { height: auto; min-height: 260px; padding-bottom: 32px; }
    .mh-team__banner::after {
        content: ""; position: absolute; inset: 0; z-index: 1;
        background: linear-gradient(90deg, rgba(255, 255, 255, .95) 0 55%, rgba(255, 255, 255, .6));
    }
    .mh-team .mh-team__title { font-size: 64px; line-height: 56px; }
    .mh-team .mh-team__intro { font-size: 18px; line-height: 25px; }
}

@media (max-width: 991.98px) {
    .mh-team__wrap { padding-left: 24px; padding-right: 24px; }
    .mh-team__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 767.98px) {
    .mh-team__wrap { padding-left: 16px; padding-right: 16px; }
    .mh-team .mh-preview-bar__text { font-size: 13px; }
    .mh-team__banner::after { background: rgba(255, 255, 255, .88); }
    .mh-team__banner-text { padding-left: 0; }
    .mh-team .mh-team__crumbs { padding-top: 18px; font-size: 14px; }
    .mh-team .mh-team__title { margin: 18px 0 0; font-size: min(64px, calc((100vw - 32px) / 7)); line-height: 1; }
    .mh-team__title-rule { margin: 14px 0 0; }
    .mh-team .mh-team__intro { margin: 14px 0 0; font-size: 17px; line-height: 24px; }

    .mh-team__filters { flex-direction: column; gap: 10px; margin: 20px 0 0; }
    .mh-team__field--search,
    .mh-team__field--dept,
    .mh-team__field--loc { flex: none; width: 100%; }
    .mh-team .mh-team__control { height: 48px; line-height: 46px; }
    .mh-team__mag { top: 12px; }
    .mh-team__chev { top: 20px; }
    .mh-team__grid { margin-top: 20px; }
    .mh-team__directory { padding-bottom: 48px; }
    .mh-team__panel { padding: 40px 20px; }
}

@media (prefers-reduced-motion: reduce) {
    .mh-team__bio.is-animating { transition: none; }
    .mh-team .mh-team__toggle,
    .mh-team .mh-team__control,
    .mh-team .mh-team__clear { transition: none; }
}
