/* ==========================================================================
   SSV College — Committees page
   File: css/Committees.css   (linked from Committees.aspx through the "head" placeholder)

   Load order on Committees.aspx: site-modern.css (tokens, buttons, cards, section heads)
   → css/AboutUs.css (shared .ssv-page-banner / .ssv-crumbs / .ssv-fact used by the hero
   and the "At a Glance" cards) → this file (committee accordion + member cards only).
   No design tokens are redeclared here — they come from site-modern.css's :root block.
   Everything is prefixed "ssv-" and lives under ".ssv-scope".

   Contents
     1. Committee accordion
     2. Committee member cards
     3. Role badges
     4. Reduced motion
   ========================================================================== */


/* 1. COMMITTEE ACCORDION ---------------------------------------------------- */
.ssv-committee-accordion {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Full-bleed clickable header, so padding moves off .ssv-card onto the toggle/body */
.ssv-committee-item {
    padding: 0;
    overflow: hidden;
}

    .ssv-committee-item:hover {
        transform: none;
        box-shadow: var(--shadow-sm);
    }

.ssv-committee-item__heading {
    margin: 0;
}

.ssv-committee-item__toggle {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem 1rem;
    width: 100%;
    padding: clamp(1.1rem, .9rem + 1vw, 1.5rem) clamp(1.1rem, .85rem + 1.2vw, 1.75rem);
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
    font: 600 1.05rem/1.3 var(--font-body);
    letter-spacing: 0;
    color: var(--primary);
    transition: background-color .2s var(--ease);
}

    .ssv-committee-item__toggle:hover,
    .ssv-committee-item__toggle:focus {
        background: var(--warm-bg);
    }

.ssv-committee-item__icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #FFF1E3;
    color: var(--accent-deep);
    font-size: 1.25rem;
    transition: transform .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease);
}

.ssv-committee-item__toggle[aria-expanded="true"] .ssv-committee-item__icon {
    background: var(--btn-bg);
    color: #fff;
    transform: scale(1.06) rotate(-6deg);
}

.ssv-committee-item__title {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
}

.ssv-committee-item__count {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    padding: .3rem .75rem;
    border-radius: 999px;
    background: var(--light-bg);
    border: 1px solid var(--border);
    font: 600 .78rem/1 var(--font-body);
    color: var(--muted);
    white-space: nowrap;
}

.ssv-committee-item__chevron {
    flex: 0 0 auto;
    font-size: .95rem;
    color: var(--accent-ink);
    transition: transform .3s var(--ease);
}

.ssv-committee-item__toggle[aria-expanded="true"] .ssv-committee-item__chevron {
    transform: rotate(180deg);
}

.ssv-committee-item__body {
    padding: 0 clamp(1.1rem, .85rem + 1.2vw, 1.75rem) clamp(1.25rem, 1rem + 1vw, 1.75rem);
    border-top: 1px solid var(--border);
}

    .ssv-committee-item__body .row {
        margin-top: clamp(1.1rem, .9rem + 1vw, 1.5rem);
    }


/* 2. COMMITTEE MEMBER CARDS -------------------------------------------------- */
.ssv-committee-member {
    display: flex;
    align-items: center;
    gap: .85rem;
    height: 100%;
    padding: .9rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--light-bg);
    transition: transform .25s var(--ease), border-color .25s var(--ease), background-color .25s var(--ease), box-shadow .25s var(--ease);
}

    .ssv-committee-member:hover {
        transform: translateY(-2px);
        border-color: #D9DEE7;
        background: #fff;
        box-shadow: var(--shadow-sm);
    }

.ssv-committee-member__avatar {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--border);
    color: var(--primary);
    font-size: 1.65rem;
}

.ssv-committee-member__meta {
    min-width: 0;
}

.ssv-committee-member__name {
    margin-bottom: .3rem;
    font: 600 .98rem/1.3 var(--font-body);
    letter-spacing: 0;
    color: var(--primary);
    overflow-wrap: anywhere;
}


/* 3. ROLE BADGES ------------------------------------------------------------- */
.ssv-committee-role {
    display: inline-flex;
    align-items: center;
    padding: .2rem .6rem;
    border-radius: 999px;
    font: 700 .68rem/1.2 var(--font-body);
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* Chairman — highest authority, same treatment as the Principal badge on Faculty.aspx */
.ssv-committee-role--chairman {
    background: var(--primary);
    color: #fff;
}

/* Controller — same accent-orange treatment as the HOD badge on Faculty.aspx */
.ssv-committee-role--controller {
    background: var(--btn-bg);
    color: #fff;
}

/* Proctor — reuses the violet tone from the homepage's "Experienced Faculty" feature icon */
.ssv-committee-role--proctor {
    background: #6D4FD4;
    color: #fff;
}

.ssv-committee-role--member {
    background: #fff;
    border: 1px solid var(--accent);
    color: var(--accent-ink);
}


/* 4. REDUCED MOTION -----------------------------------------------------------
   Transition/animation speed for everything above is already handled globally
   by site-modern.css's ".ssv-scope *" reduced-motion rule; this just also
   cancels the hover lift so it doesn't jump when reduced motion is on. */
@media (prefers-reduced-motion: reduce) {
    .ssv-committee-member:hover {
        transform: none;
    }
}
