/* ============================================================
   OUR STAFF PAGE — our-staff.css
   Pixel-perfect implementation matching the design screenshot
   ============================================================ */

/* ============================================================
   PAGE BANNER — staff variant (centered, dark overlay)
   ============================================================ */

.staff-banner .page-banner-title {
    font-size: 52px;
}

.staff-banner .page-banner-title em {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    color: #F16522;
}

/* ============================================================
   BREADCRUMB BAR — white pill that floats below the banner
   ============================================================ */

.staff-breadcrumb-bar {
    background-color: #ffffff;
    border-radius: 16px 16px 0 0;
    position: relative;
    z-index: 20;
    /* float the breadcrumb bar slightly up so it visually sits under the banner */
    margin: -50px auto 0;
    width: min(1086px, calc(100% - 32px));
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
}

.staff-breadcrumb-bar::before,
.staff-breadcrumb-bar::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 16px;
    height: 16px;
    pointer-events: none;
}

.staff-breadcrumb-bar::before {
    left: -16px;
    background: radial-gradient(circle at 0 0, transparent 16px, #ffffff 16.5px);
}

.staff-breadcrumb-bar::after {
    right: -16px;
    background: radial-gradient(circle at 100% 0, transparent 16px, #ffffff 16.5px);
}

.staff-breadcrumb-inner {
    padding: 0;
    width: 100%;
}

.staff-breadcrumb li {
    display: flex;
    align-items: center;
}

.staff-breadcrumb a {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #6B7280;
    text-decoration: none;
    transition: color 0.2s;
}

.staff-breadcrumb a:hover {
    color: #F16522;
}

.staff-bc-sep {
    font-size: 13px;
    color: #D1D5DB;
    line-height: 1;
    margin: 0 8px;
}

.staff-bc-current {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #F16522;
}

/* ============================================================
   FILTERS SECTION
   ============================================================ */

.staff-filters-section {
    background-color: #ffffff;
    border-bottom: 1px solid rgba(35, 31, 32, 0.08);
    padding: 24px 0 0;
}

.staff-filters-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Category tabs ---- */
.staff-tabs {
    gap: 8px;
}

.staff-tab {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.04em;
    color: #6B7280;
    background: none;
    border: 1px solid rgba(35, 31, 32, 0.15);
    border-radius: 3px;
    padding: 7px 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.staff-tab:hover {
    border-color: #F16522;
    color: #F16522;
}

.staff-tab--active {
    background-color: #F16522;
    border-color: #F16522;
    color: #ffffff;
}

.staff-tab--active:hover {
    background-color: #d4571c;
    border-color: #d4571c;
    color: #ffffff;
}

.staff-tab-count {
    font-weight: 400;
    font-size: 11px;
    opacity: 0.85;
}

/* ---- Search ---- */
.staff-search-wrap {
    border: 1px solid rgba(35, 31, 32, 0.15);
    padding: 8px 14px;
    border-radius: 3px;
    background: #ffffff;
}

.staff-search-input {
    border: none;
    outline: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    color: #231F20;
    background: transparent;
    width: 260px;
}

.staff-search-input::placeholder {
    color: #9CA3AF;
}

/* ---- Alpha filter row ---- */
.staff-alpha-row {
    border-top: 1px solid rgba(35, 31, 32, 0.06);
    padding: 12px 0 16px;
    gap: 2px;
    flex-wrap: wrap;
}

.staff-alpha {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #6B7280;
    background: none;
    border: none;
    padding: 4px 8px;
    cursor: pointer;
    border-radius: 3px;
    min-width: 28px;
    text-align: center;
    transition: color 0.15s, background 0.15s;
    line-height: 1.4;
}

.staff-alpha:hover {
    color: #F16522;
    background-color: rgba(241, 101, 34, 0.06);
}

.staff-alpha--active {
    background-color: #F16522;
    color: #ffffff;
    font-weight: 700;
}

.staff-alpha--active:hover {
    background-color: #d4571c;
    color: #ffffff;
}

.staff-alpha:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    background-color: transparent;
    color: #9CA3AF;
}

/* Bold letter in row (matches design) */
.staff-alpha--bold {
    font-weight: 700;
    color: #231F20;
}

/* Count label */
.staff-alpha-count {
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #9CA3AF;
    white-space: nowrap;
    margin-left: auto;
    padding-left: 12px;
}

/* ---- Clickable staff member card ---- */
a.staff-member--link {
    display: flex;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
}

a.staff-member--link:hover,
a.staff-member--link:focus,
a.staff-member--link:focus-visible,
a.staff-member--link:active {
    color: inherit;
    text-decoration: none;
    outline: none;
}

a.staff-member--link:hover .staff-member-name,
a.staff-member--link:focus .staff-member-name {
    color: #F16522;
}

/* ============================================================
   STAFF LIST SECTION
   ============================================================ */

.staff-list-section {
    background-color: #ffffff;
    padding: 0 0 80px;
}

.staff-list-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    /* padding lives on each .staff-group */
}

/* ============================================================
   STAFF GROUP — letter block + members grid
   ============================================================ */

.staff-group {
    display: flex;
    align-items: flex-start;
    gap: 0;
    padding: 32px 24px;
}

/* Alternating background: odd = white, even = light grey */
.staff-group:nth-child(odd) {
    background-color: #ffffff;
}

.staff-group:nth-child(even) {
    background-color: #F7F6F4;
}

/* ---- Letter column ---- */
.staff-group-letter-col {
    flex-shrink: 0;
    width: 96px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 4px;
}

.staff-group-letter {
    width: 52px;
    height: 52px;
    border: 1.5px solid rgba(241, 101, 34, 0.35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 24px;
    color: #F16522;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.staff-group-count {
    font-family: 'DM Sans', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9CA3AF;
}

/* ---- Members grid ---- */
.staff-group-members {
    flex: 1;
    min-width: 0;
}

/* ---- Individual member cell ---- */
.staff-member-col {
    padding: 0;
}

.staff-member {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 20px 16px;
    position: relative;
}

.staff-member-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background-color: #FEF3E8;
    border: 1.5px solid rgba(241, 101, 34, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
}

.staff-member-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.staff-member-avatar-initial {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 1;
    color: #F16522;
}

.staff-member-info {
    min-width: 0;
    flex: 1;
}

.staff-member-name {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.35;
    color: #0D1B2A;
    margin: 0 0 3px;
    transition: color 0.2s ease;
}

.staff-member-role {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 1.4;
    color: #6B7280;
    margin: 0 0 2px;
}

/* Orange role variant (e.g. Programme Officer) */
.staff-member-role--orange {
    color: #F16522;
}

.staff-member-dept {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 11px;
    line-height: 1.4;
    color: #9CA3AF;
    margin: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Laptop (≤1279px) */
@media (max-width: 1279px) {

    .staff-filters-inner,
    .staff-list-inner {
        max-width: 100%;
        padding: 0 40px;
    }

    .staff-breadcrumb-inner {
        max-width: 100%;
        padding: 14px 40px;
    }
}

/* Tablet (≤991px) */
@media (max-width: 991px) {

    .staff-filters-inner,
    .staff-list-inner,
    .staff-breadcrumb-inner {
        padding: 0 24px;
    }

    .staff-group {
        flex-direction: column;
        gap: 16px;
    }

    .staff-group-letter-col {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        width: 100%;
    }

    .staff-group-letter {
        margin-bottom: 0;
    }

    .staff-search-input {
        width: 180px;
    }
}

/* Mobile (≤767px) */
@media (max-width: 767px) {
    .staff-breadcrumb-bar {
        margin-top: 0;
        border-radius: 0;
        box-shadow: none;
        width: 100%;
        min-width: 0;
        height: auto;
        min-height: 50px;
        padding: 0;
    }

    .staff-breadcrumb-bar::before,
    .staff-breadcrumb-bar::after {
        display: none;
    }

    .staff-banner .page-banner-title {
        font-size: 36px;
    }

    .staff-filters-section {
        padding: 16px 0 0;
    }

    .staff-filters-inner,
    .staff-list-inner,
    .staff-breadcrumb-inner {
        padding: 0 16px;
    }

    .staff-tabs {
        gap: 6px;
    }

    .staff-tab {
        font-size: 11px;
        padding: 6px 10px;
    }

    .staff-search-wrap {
        display: none;
    }

    /* hide on mobile for space */
    .staff-member {
        padding: 10px 12px 14px;
    }

    .staff-group-letter {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

/* Small mobile (≤479px) */
@media (max-width: 479px) {
    .staff-banner .page-banner-title {
        font-size: 28px;
    }

    .staff-filters-inner,
    .staff-list-inner,
    .staff-breadcrumb-inner {
        padding: 0 12px;
    }
}