/* ==========================================================
   leadership.css
   Styles for the PMA Leadership page — directory, sub-committee
   accordion, member profile modal, and coming soon panel.
   ========================================================== */

/* ── Footer bottom flush fix ── */
.pma-footer-bar-inner {
    padding-bottom: 24px;
}


/* ── Sub Committee Accordion ── */

#pma-subcommittee-panel {
    padding: 10px 0 40px;
}

.pma-sc-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.pma-sc-title {
    font-family: var(--heading-font);
    font-size: 26px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 6px;
}

.pma-sc-subtitle {
    font-family: var(--body-font);
    font-size: 14px;
    color: var(--body-font-color);
    margin: 0;
    max-width: 560px;
}

.pma-sc-note {
    font-family: var(--body-font);
    font-size: 14px;
    color: var(--body-font-color);
    margin: 0;
    width: 100%;
    text-align: center;
    font-style: italic;
}

.pma-sc-expand-all {
    background: transparent;
    border: 1.5px solid var(--primary-color);
    color: var(--primary-color);
    font-family: var(--body-font);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}

.pma-sc-expand-all:hover {
    background: var(--primary-color);
    color: #ffffff;
}

.pma-sc-item {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.pma-sc-item:hover {
    box-shadow: 0 4px 20px rgba(33, 52, 73, 0.08);
}

.pma-sc-item-head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    cursor: pointer;
    user-select: none;
}

.pma-sc-item-left {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.pma-sc-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pma-sc-icon i {
    color: #ffffff;
    font-size: 18px;
}

.pma-sc-item-text h3 {
    font-family: var(--heading-font);
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 4px;
}

.pma-sc-mandate {
    font-family: var(--body-font);
    font-size: 13px;
    color: var(--body-font-color);
    margin: 0;
    line-height: 1.5;
}

.pma-sc-mandate strong {
    color: #444444;
}

.pma-sc-item-right {
    text-align: left;
    flex-shrink: 0;
    margin-right: 12px;
}

.pma-sc-lead-label {
    font-family: var(--body-font);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--secondary-color);
    margin-bottom: 2px;
}

.pma-sc-lead-name {
    font-family: var(--heading-font);
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary-color);
}

.pma-sc-chevron {
    color: var(--primary-color);
    font-size: 14px;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.pma-sc-chevron.is-rotated {
    transform: rotate(180deg);
}

.pma-sc-item-body {
    display: none;
    padding: 0 24px 20px 84px;
    border-top: 1px solid #f0f0f0;
}

.pma-sc-members-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 16px;
}

.pma-sc-member {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--bg-light);
    border: 1px solid #dde4ed;
    border-radius: 8px;
    padding: 7px 14px;
    font-family: var(--body-font);
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 500;
}

.pma-sc-member i {
    color: var(--secondary-color);
    font-size: 13px;
}

@media (max-width: 640px) {
    .pma-sc-item-head  { flex-wrap: wrap; }
    .pma-sc-item-right { text-align: left; margin-right: 0; }
    .pma-sc-item-body  { padding-left: 24px; }
}


/* =========================================================
   SUB-COMMITTEE ACCORDION — RESPONSIVE BREAKPOINTS
   991px   Tablet landscape
   767px   Tablet portrait / large phone
   575px   Small phone
   400px   Very small phone
   ========================================================= */

/* ── ≤ 991px  Tablet landscape ── */
@media (max-width: 991px) {
    .pma-sc-title {
        font-size: 22px;
    }

    .pma-sc-item-head {
        padding: 18px 20px;
        gap: 12px;
    }

    .pma-sc-item-right {
        margin-right: 8px;
    }

    .pma-sc-lead-name {
        font-size: 13px;
    }
}

/* ── ≤ 767px  Tablet portrait / large phone ── */
@media (max-width: 767px) {
    .pma-sc-header {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 20px;
    }

    .pma-sc-title {
        font-size: 20px;
    }

    .pma-sc-subtitle {
        font-size: 13px;
    }

    .pma-sc-expand-all {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    /* Item head: stack left content + convener vertically */
    .pma-sc-item-head {
        flex-wrap: wrap;
        padding: 16px 18px;
        gap: 10px;
        align-items: flex-start;
    }

    /* Left (icon + text) takes full width */
    .pma-sc-item-left {
        flex: 1 1 100%;
        order: 1;
    }

    /* Convener block: sits below left content, before chevron */
    .pma-sc-item-right {
        flex: 1 1 auto;
        order: 2;
        margin-right: 0;
        margin-left: 60px; /* align under the text (icon width 44 + gap 16) */
    }

    /* Chevron: stays on the right of the convener row */
    .pma-sc-chevron {
        order: 3;
        align-self: center;
        margin-left: auto;
    }

    .pma-sc-icon {
        width: 40px;
        height: 40px;
        border-radius: 8px;
    }

    .pma-sc-icon i {
        font-size: 16px;
    }

    .pma-sc-item-text h3 {
        font-size: 15px;
    }

    .pma-sc-mandate {
        font-size: 12.5px;
    }

    .pma-sc-item-body {
        padding: 0 18px 18px 18px;
    }

    .pma-sc-members-row {
        gap: 8px;
    }

    .pma-sc-member {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* ── ≤ 575px  Small phone ── */
@media (max-width: 575px) {
    .pma-sc-title {
        font-size: 18px;
    }

    .pma-sc-item-head {
        padding: 14px 14px;
        gap: 8px;
    }

    .pma-sc-item-right {
        margin-left: 52px; /* icon 40px + gap 12px */
    }

    .pma-sc-icon {
        width: 36px;
        height: 36px;
        border-radius: 8px;
        flex-shrink: 0;
    }

    .pma-sc-icon i {
        font-size: 15px;
    }

    .pma-sc-item-text h3 {
        font-size: 14px;
    }

    .pma-sc-mandate {
        font-size: 12px;
    }

    .pma-sc-lead-label {
        font-size: 10px;
    }

    .pma-sc-lead-name {
        font-size: 13px;
    }

    .pma-sc-item-body {
        padding: 0 14px 16px 14px;
    }

    .pma-sc-member {
        font-size: 11.5px;
        padding: 5px 10px;
        gap: 6px;
    }

    .pma-sc-member i {
        font-size: 12px;
    }
}

/* ── ≤ 400px  Very small phone ── */
@media (max-width: 400px) {
    .pma-sc-title {
        font-size: 16px;
    }

    .pma-sc-item-head {
        padding: 12px 12px;
    }

    .pma-sc-item-right {
        margin-left: 48px;
    }

    .pma-sc-icon {
        width: 32px;
        height: 32px;
    }

    .pma-sc-icon i {
        font-size: 14px;
    }

    .pma-sc-item-text h3 {
        font-size: 13.5px;
    }

    .pma-sc-mandate {
        font-size: 11.5px;
    }

    .pma-sc-members-row {
        gap: 6px;
    }

    .pma-sc-member {
        font-size: 11px;
        padding: 5px 9px;
    }
}


/* ── Coming Soon Panel ── */

.pma-coming-soon-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 40px;
    background: var(--bg-light);
    border-radius: var(--rounded-1);
    margin: 20px 0 40px;
}

.pma-coming-soon-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.pma-coming-soon-icon i {
    font-size: 32px;
    color: #ffffff;
}

.pma-coming-soon-box h3 {
    font-family: var(--heading-font);
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.pma-coming-soon-box p {
    font-family: var(--body-font);
    font-size: 16px;
    color: var(--body-font-color);
    max-width: 420px;
    margin: 0;
}


/* ── Member Profile Modal ── */

.pma-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.pma-modal-overlay.is-open {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.pma-modal {
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 1150px;
    max-height: 90vh;
    overflow: hidden;        /* modal itself does NOT scroll */
    display: flex;
    flex-direction: row;
    position: relative;      /* anchor for the close button */
    transform: translateY(30px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
}

.pma-modal-overlay.is-open .pma-modal {
    transform: translateY(0) scale(1);
}

/* Left panel */
.pma-modal-left {
    width: 260px;
    min-width: 260px;
    background: var(--primary-color);
    border-radius: 16px 0 0 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 260px 0 32px;
    position: relative;
    overflow: hidden;
}

.pma-modal-img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    object-position: center top;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.pma-modal-img-placeholder {
    width: 100%;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--body-font);
    font-size: 18px;
    color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
    position: absolute;
    top: 0;
    left: 0;
}

.pma-modal-left-info {
    position: relative;
    z-index: 2;
    text-align: left;
    padding: 0 20px;
    margin-top: 20px;
   
}

.pma-modal-left-name {
    font-family: var(--heading-font);
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 6px;
    line-height: 1.3;
}

.pma-modal-left-role {
    font-family: var(--body-font);
    font-size: 13px;
    font-weight: 600;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 20px;
}

.pma-modal-left-highlight {
    font-family: var(--body-font);
    font-size: 12px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
    margin: 10px 0 0;
    padding: 10px 14px;
    border-left: 2px solid var(--secondary-color);
    text-align: left;
}

.pma-modal-left-highlight:empty {
    display: none;
}

/* Right panel */
.pma-modal-right {
    flex: 1;
    min-width: 0;
    padding: 28px 32px 32px;
    overflow-y: auto;        /* only the right panel scrolls */
    position: relative;
    max-height: 90vh;        /* matches modal max-height so it scrolls */
}

.pma-modal-close {
    position: absolute;      /* anchored to .pma-modal, not the scrolling panel */
    top: 16px;
    right: 18px;
    width: 34px;
    height: 34px;
    border: none;
    background: rgba(255, 255, 255, 0.92);
    font-size: 18px;
    color: #555;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    line-height: 1;
    z-index: 10;             /* always above scrolling content */
}

.pma-modal-close:hover {
    background: #ffffff;
    color: var(--primary-color);
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}

.pma-modal-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    padding-right: 40px;
}

.pma-modal-badge {
    padding: 5px 14px;
    border-radius: 6px;
    font-family: var(--body-font);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.03em;
    border: 1.5px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.pma-modal-badge--secondary {
    border-color: #cccccc;
    color: #555555;
}

.pma-modal-section-label {
    font-family: var(--heading-font);
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 8px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--secondary-color);
    display: inline-block;
}

.pma-modal-about {
    font-family: var(--body-font);
    font-size: 14px;
    color: var(--body-font-color);
    line-height: 1.75;
    margin-bottom: 24px;
}

.pma-modal-about p {
    margin: 0 0 12px;
}

.pma-modal-about p:last-child {
    margin-bottom: 0;
}

.pma-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 28px;
}

.pma-modal-block-title {
    font-family: var(--heading-font);
    font-size: 13px;
    font-weight: 700;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin: 0 0 10px;
}

.pma-modal-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pma-modal-list li {
    font-family: var(--body-font);
    font-size: 13px;
    color: #444444;
    padding: 3px 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
}

.pma-modal-list li i {
    color: var(--secondary-color);
    font-size: 13px;
    margin-top: 2px;
    flex-shrink: 0;
}

.pma-modal-list li .pma-modal-list-icon {
    color: var(--primary-color);
    font-size: 12px;
    margin-top: 2px;
    flex-shrink: 0;
}

.pma-modal-exp-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-light);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 16px;
}

.pma-modal-exp-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pma-modal-exp-icon i {
    color: #ffffff;
    font-size: 16px;
}

.pma-modal-exp-years {
    font-family: var(--heading-font);
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

.pma-modal-exp-label {
    font-family: var(--body-font);
    font-size: 12px;
    color: var(--body-font-color);
}

/* Coming Soon states inside modal */
.pma-modal-coming-soon {
    color: #aaaaaa !important;
    font-style: italic;
}

.pma-modal-coming-soon i {
    color: #cccccc !important;
}

.pma-modal-coming-soon-text {
    color: #aaaaaa;
    font-style: italic;
}

/* Clickable card cursor */
.pma-member-col .pma-member-card {
    cursor: pointer;
}

/* ==========================================================
   MEMBER PROFILE MODAL — RESPONSIVE BREAKPOINTS
   991px   Tablet landscape
   767px   Tablet portrait / large phone
   575px   Small phone
   400px   Very small phone
   ========================================================== */

/* ── ≤ 991px  Tablet landscape ── */
@media (max-width: 991px) {
    /* Modal: shrink left panel width, allow full scrolling */
    .pma-modal {
        max-width: 740px;
        max-height: 92vh;
    }

    /* Right panel scrolls within the 92vh modal */
    .pma-modal-right {
        padding: 24px 24px 28px;
        max-height: 92vh;
    }

    .pma-modal-left {
        width: 210px;
        min-width: 210px;
        padding-top: 220px;
    }

    .pma-modal-img,
    .pma-modal-img-placeholder {
        height: 220px;
    }

    .pma-modal-left-name {
        font-size: 18px;
    }

    /* Grid stays 2-col but narrower */
    .pma-modal-grid {
        gap: 16px 20px;
    }

    .pma-modal-badges {
        padding-right: 36px;
    }
}

/* ── ≤ 767px  Tablet portrait / large phone ── */
@media (max-width: 767px) {
    /* Overlay: tighter padding */
    .pma-modal-overlay {
        padding: 10px;
        align-items: flex-start;
    }

    /* Modal: stack vertically — whole modal scrolls as one unit */
    .pma-modal {
        flex-direction: column;
        max-width: 100%;
        max-height: 94vh;
        overflow-y: auto;    /* re-enable scroll on the whole modal when stacked */
        border-radius: 14px;
    }

    /* Right panel should NOT have its own scroll when stacked */
    .pma-modal-right {
        overflow-y: visible;
        max-height: none;
    }

    /* Left panel: horizontal layout — photo left, info right */
    .pma-modal-left {
        width: 100%;
        min-width: unset;
        border-radius: 14px 14px 0 0;
        flex-direction: row;
        align-items: stretch;
        padding: 0;
        min-height: 220px;
        overflow: hidden;
    }

    /* Photo: fills the full height of the left panel */
    .pma-modal-img {
        position: relative;
        width: 180px;
        min-width: 180px;
        height: 100%;
        min-height: 220px;
        object-fit: cover;
        object-position: center top;
        flex-shrink: 0;
        border-radius: 14px 0 0 0;
        display: block;
        top: auto;
        left: auto;
    }

    .pma-modal-img-placeholder {
        position: relative;
        width: 180px;
        min-width: 180px;
        height: 100%;
        min-height: 220px;
        flex-shrink: 0;
        border-radius: 14px 0 0 0;
        top: auto;
        left: auto;
    }

    /* Name/role/highlight fills the right side of left panel */
    .pma-modal-left-info {
        flex: 1;
        padding: 20px 16px 20px 20px;
        margin-top: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .pma-modal-left-name {
        font-size: 17px;
        margin-bottom: 4px;
    }

    .pma-modal-left-role {
        font-size: 11.5px;
        margin-bottom: 10px;
    }

    .pma-modal-left-highlight {
        font-size: 11px;
        padding: 8px 10px;
        margin-top: 6px;
    }

    /* Close button: fixed to viewport top-right on mobile so it never scrolls away */
    .pma-modal-close {
        position: fixed;
        top: 14px;
        right: 14px;
        z-index: 10001;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    }

    /* Right panel */
    .pma-modal-right {
        padding: 20px 18px 24px;
    }

    .pma-modal-badges {
        padding-right: 34px;
        gap: 6px;
        margin-bottom: 16px;
    }

    .pma-modal-badge {
        font-size: 11px;
        padding: 4px 10px;
    }

    .pma-modal-about {
        font-size: 13px;
        margin-bottom: 18px;
    }

    /* Detail grid: 2-col still fits on tablet portrait */
    .pma-modal-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px 18px;
    }

    .pma-modal-block-title {
        font-size: 12px;
    }

    .pma-modal-list li {
        font-size: 12.5px;
    }

    .pma-modal-exp-box {
        padding: 10px 12px;
    }

    .pma-modal-exp-years {
        font-size: 15px;
    }
}

/* ── ≤ 575px  Small phone ── */
@media (max-width: 575px) {
    .pma-modal-overlay {
        padding: 6px;
    }

    .pma-modal {
        border-radius: 12px;
        max-height: 96vh;
    }

    /* Left panel: keep min-height so photo has enough room */
    .pma-modal-left {
        min-height: 200px;
    }

    /* Left panel: keep horizontal but narrower photo */
    .pma-modal-img {
        width: 130px;
        min-width: 130px;
        height: 100%;
        min-height: 200px;
        object-fit: cover;
        object-position: center top;
    }

    .pma-modal-img-placeholder {
        width: 130px;
        min-width: 130px;
        height: 100%;
        min-height: 200px;
    }

    .pma-modal-left-info {
        padding: 14px 12px 14px 14px;
    }

    .pma-modal-left-name {
        font-size: 15px;
    }

    .pma-modal-left-role {
        font-size: 10.5px;
        margin-bottom: 8px;
    }

    .pma-modal-left-highlight {
        display: none; /* hide italic quote on small phones to save space */
    }

    /* Right panel */
    .pma-modal-right {
        padding: 16px 14px 20px;
    }

    .pma-modal-close {
        top: 12px;
        right: 12px;
        width: 28px;
        height: 28px;
        font-size: 17px;
    }

    .pma-modal-badges {
        padding-right: 30px;
        gap: 5px;
        margin-bottom: 14px;
    }

    .pma-modal-badge {
        font-size: 10.5px;
        padding: 3px 8px;
    }

    .pma-modal-section-label {
        font-size: 14px;
    }

    .pma-modal-about {
        font-size: 12.5px;
        line-height: 1.65;
        margin-bottom: 16px;
    }

    /* Grid: single column on small phones */
    .pma-modal-grid {
        grid-template-columns: 1fr;
        gap: 14px 0;
    }

    .pma-modal-block-title {
        font-size: 11.5px;
    }

    .pma-modal-list li {
        font-size: 12px;
        gap: 6px;
    }

    .pma-modal-exp-box {
        padding: 9px 10px;
        gap: 10px;
    }

    .pma-modal-exp-icon {
        width: 32px;
        height: 32px;
    }

    .pma-modal-exp-icon i {
        font-size: 13px;
    }

    .pma-modal-exp-years {
        font-size: 14px;
    }

    .pma-modal-exp-label {
        font-size: 11px;
    }
}

/* ── ≤ 400px  Very small phone ── */
@media (max-width: 400px) {
    .pma-modal-overlay {
        padding: 0;
        align-items: flex-end;
    }

    /* Full-width bottom sheet style on very tiny phones */
    .pma-modal {
        border-radius: 14px 14px 0 0;
        max-height: 97vh;
        width: 100%;
    }

    .pma-modal-left {
        min-height: 175px;
    }

    .pma-modal-img,
    .pma-modal-img-placeholder {
        width: 110px;
        min-width: 110px;
        height: 100%;
        min-height: 175px;
        object-fit: cover;
        object-position: center top;
    }

    .pma-modal-left-info {
        padding: 12px 10px 12px 12px;
    }

    .pma-modal-left-name {
        font-size: 14px;
    }

    .pma-modal-left-role {
        font-size: 10px;
    }

    .pma-modal-right {
        padding: 14px 12px 18px;
    }

    .pma-modal-badge {
        font-size: 10px;
        padding: 2px 7px;
    }

    .pma-modal-about {
        font-size: 12px;
    }

    .pma-modal-list li {
        font-size: 11.5px;
    }
}


/* ── Responsive additions ── */

/* Directory tabs — icon + title on all screens */
@media (max-width: 600px) {
    .pma-directory-filters-row {
        flex-direction: column;
        gap: 12px;
    }
    .pma-directory-tabs {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    .pma-directory-tab {
        padding: 8px 12px;
        font-size: 12px;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        min-width: 72px;
        text-align: center;
    }
    .pma-directory-tab span {
        display: inline;
        font-size: 11px;
        line-height: 1.2;
    }
    .pma-directory-tab i {
        font-size: 16px;
    }
    .pma-directory-search { width: 100%; }
    .pma-search-wrapper { width: 100%; }
    .pma-search-wrapper input { width: 100%; }
}

/* Coming soon box — reduce padding on mobile */
@media (max-width: 600px) {
    .pma-coming-soon-box { padding: 48px 20px; }
    .pma-coming-soon-box h3 { font-size: 22px; }
}


/* ── Fix: WOW.js white space gap in leadership directory section ──
   Disable WOW animations inside this section so elements are
   always fully visible on load — no hidden state, no gaps.    */
#pma-leadership-directory .wow,
#pma-coming-soon-panel .wow,
#pma-subcommittee-panel .wow {
    visibility: visible !important;
    opacity: 1 !important;
    animation-name: none !important;
    animation-duration: 0s !important;
}

/* ── Force auto height — prevent artificial space at section bottom ── */
.pma-leadership-directory-section {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    padding-bottom: 80px !important;
}

/* Ensure Bootstrap row doesn't create overflow that gets painted as white space */
.pma-leadership-directory-section > .container > .row,
.pma-leadership-directory-section .pma-directory-grid,
.pma-leadership-directory-section .container {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
}

/* Mediators tab — 33 cards must flow naturally, no inner scroll, no height cap */
.pma-leadership-directory-section .pma-member-col {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
}

/* Swiper wrapper on leadership page — prevent height bleed */
.pma-leadership-directory-section .swiper-wrapper,
.pma-leadership-directory-section .swiper-slide {
    height: auto !important;
    padding-bottom: 0 !important;
}

/* Ensure nothing below the section (modal, extra-wrap) contributes height */
.pma-modal-overlay,
#extra-wrap {
    position: fixed !important;
    height: 0 !important;
    overflow: hidden;
}

.pma-modal-overlay.is-open,
#extra-wrap.open {
    height: 100% !important;
    overflow: visible;
}
