/* ----------------------------------------------------------
   Committees and Committee Detail
   ---------------------------------------------------------- */

.page-committees {
    --committee-navy: #071b34;
    --committee-blue: #0b3a63;
    --committee-red: #c81e2a;
    --committee-ink: #102033;
    --committee-muted: #5d6b7e;
    --committee-border: #dbe3ed;
    background:
        linear-gradient(140deg, rgba(11, 58, 99, 0.07), transparent 34rem),
        linear-gradient(180deg, #f8fafc 0%, #edf2f7 100%);
    color: var(--committee-ink);
}

.page-committees .page-main {
    overflow: hidden;
}

.page-committees .site-shell {
    width: min(100% - 36px, 1240px);
    margin-inline: auto;
}

.committees-hero {
    padding: clamp(34px, 6vw, 78px) 0 0;
}

.committees-hero__inner {
    max-width: 910px;
    padding: clamp(24px, 4vw, 44px);
    border: 1px solid rgba(11, 58, 99, 0.11);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.95));
    box-shadow: 0 18px 48px rgba(7, 27, 52, 0.075);
}

.committees-hero__actions,
.committees-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.committees-listing {
    padding: clamp(42px, 7vw, 86px) 0 clamp(34px, 5vw, 58px);
}

.committees-section-head {
    max-width: 800px;
    margin-bottom: clamp(26px, 4vw, 42px);
}

.committees-section-kicker {
    margin: 0 0 10px;
    color: var(--committee-red);
    font-size: 0.73rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.committees-section-title {
    margin: 0;
    max-width: 860px;
    color: var(--committee-navy);
    font-size: clamp(2rem, 4.3vw, 3.35rem);
    line-height: 1.03;
    letter-spacing: 0;
}

.committees-section-intro,
.committees-cta__text {
    max-width: 740px;
    margin: 15px 0 0;
    color: var(--committee-muted);
    font-size: clamp(1rem, 1.35vw, 1.08rem);
    line-height: 1.75;
}

.committees-empty {
    padding: 22px;
    border: 1px solid var(--committee-border);
    border-radius: 8px;
    background: #ffffff;
    color: var(--committee-muted);
}

.committees-listing__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.committee-card {
    min-width: 0;
    min-height: 430px;
}

.committee-card__link {
    position: relative;
    isolation: isolate;
    display: flex;
    min-height: 100%;
    overflow: hidden;
    border: 1px solid rgba(11, 58, 99, 0.16);
    border-radius: 8px;
    background: var(--committee-navy);
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 18px 44px rgba(7, 27, 52, 0.16);
}

.committee-card__media,
.committee-card__shade {
    position: absolute;
    inset: 0;
}

.committee-card__media {
    z-index: -3;
    background-position: center;
    background-size: cover;
    transform: scale(1.02);
    transition: transform 0.32s ease;
}

.committee-card__shade {
    z-index: -2;
    background:
        linear-gradient(180deg, rgba(7, 27, 52, 0.38) 0%, rgba(7, 27, 52, 0.72) 48%, rgba(7, 27, 52, 0.94) 100%),
        linear-gradient(135deg, rgba(200, 30, 42, 0.42), transparent 46%);
}

.committee-card__link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: inherit;
    pointer-events: none;
}

.committee-card__link:hover .committee-card__media,
.committee-card__link:focus-visible .committee-card__media {
    transform: scale(1.08);
}

.committee-card__content {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100%;
    padding: clamp(20px, 2.4vw, 28px);
}

.committee-card__label {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    width: fit-content;
    margin: 0 0 14px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #991b1b;
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.committee-card__kicker {
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.76rem;
    font-weight: 850;
    text-transform: uppercase;
}

.committee-card__title {
    display: block;
    margin: 9px 0 0;
    color: #ffffff;
    font-size: clamp(1.35rem, 2vw, 1.78rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: 0;
}

.committee-card__summary {
    display: block;
    margin: 17px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.96rem;
    line-height: 1.65;
}

.committee-card__focus {
    display: block;
    margin-top: auto;
    padding-top: 20px;
}

.committee-card__focus-title {
    display: block;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.7rem;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.committee-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
}

.committee-card__tag {
    display: inline-flex;
    max-width: 100%;
    padding: 6px 8px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 750;
    line-height: 1.2;
}

.committee-card__action {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    min-height: 38px;
    margin-top: 18px;
    padding: 0 13px;
    border-radius: 8px;
    background: #ffffff;
    color: var(--committee-navy);
    font-size: 0.82rem;
    font-weight: 900;
}

.committees-cta {
    padding: 0 0 clamp(48px, 8vw, 96px);
}

.committees-cta__box {
    position: relative;
    overflow: hidden;
    padding: clamp(28px, 5vw, 52px);
    border-radius: 8px;
    background:
        radial-gradient(circle at top right, rgba(200, 30, 42, 0.22), transparent 34rem),
        linear-gradient(135deg, #071b34 0%, #0c294d 58%, #121a2a 100%);
    color: #ffffff;
    box-shadow: 0 24px 70px rgba(7, 27, 52, 0.24);
}

.committees-cta__box::before {
    content: "";
    position: absolute;
    inset: 1px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 7px;
    pointer-events: none;
}

.committees-cta__box > * {
    position: relative;
    z-index: 1;
}

.committees-cta .committees-section-title {
    color: #ffffff;
}

.committees-cta__text {
    color: rgba(255, 255, 255, 0.78);
}

.committees-cta .button,
.committees-hero .button,
.committee-detail-hero .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 8px;
    font-size: 0.94rem;
    font-weight: 850;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.committees-cta .button:hover,
.committees-hero .button:hover,
.committee-detail-hero .button:hover {
    transform: translateY(-1px);
}

.committees-hero .button-primary,
.committee-detail-hero .button-primary,
.committees-cta .button-primary {
    background: #ffffff;
    color: var(--committee-navy);
    box-shadow: 0 12px 28px rgba(7, 27, 52, 0.14);
}

.committees-hero .button-primary {
    background: var(--committee-blue);
    color: #ffffff;
}

.committees-hero .button-secondary,
.committee-detail-hero .button-secondary,
.committees-cta .button-secondary {
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.committees-hero .button-secondary {
    border-color: #cbd5e1;
    background: #ffffff;
    color: var(--committee-navy);
}

/* Detail page */

.committee-detail-hero {
    position: relative;
    min-height: clamp(420px, 56vw, 610px);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    color: #ffffff;
}

.committee-detail-hero__media,
.committee-detail-hero__overlay {
    position: absolute;
    inset: 0;
}

.committee-detail-hero__media {
    background-position: center;
    background-size: cover;
}

.committee-detail-hero__overlay {
    background:
        linear-gradient(90deg, rgba(7, 27, 52, 0.94) 0%, rgba(7, 27, 52, 0.76) 43%, rgba(7, 27, 52, 0.38) 100%),
        linear-gradient(180deg, transparent 0%, rgba(7, 27, 52, 0.85) 100%);
}

.committee-detail-hero .site-shell {
    position: relative;
    z-index: 1;
}

.committee-detail-hero__content {
    max-width: 760px;
    padding: clamp(42px, 8vw, 82px) 0;
}

.committee-detail-hero .committees-section-title,
.committee-detail-hero .committees-section-intro {
    color: #ffffff;
}

.committee-detail-hero .committees-section-intro {
    color: rgba(255, 255, 255, 0.84);
}

.committee-back-link {
    display: inline-flex;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.85rem;
    font-weight: 850;
    text-decoration: none;
}

.committee-detail-section {
    padding: clamp(42px, 7vw, 76px) 0;
}

.committee-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: start;
}

.committee-detail-main,
.committee-detail-box {
    border: 1px solid var(--committee-border);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(7, 27, 52, 0.06);
}

.committee-detail-main {
    padding: clamp(22px, 4vw, 36px);
}

.committee-detail-main p {
    margin: 0;
    color: #344156;
    font-size: 1rem;
    line-height: 1.78;
}

.committee-detail-main p + p {
    margin-top: 17px;
}

.committee-source {
    padding-top: 18px;
    border-top: 1px solid var(--committee-border);
    font-size: 0.9rem !important;
}

.committee-source a {
    color: var(--committee-blue);
    font-weight: 800;
}

.committee-detail-aside {
    display: grid;
    gap: 14px;
}

.committee-detail-box {
    padding: 18px;
}

.committee-detail-box h2 {
    margin: 0 0 12px;
    color: var(--committee-navy);
    font-size: 1rem;
}

.committee-detail-box ul {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.committee-detail-box li {
    position: relative;
    padding-left: 17px;
    color: #334155;
    font-size: 0.94rem;
    line-height: 1.55;
    font-weight: 650;
}

.committee-detail-box li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.64em;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--committee-red);
}

@media (max-width: 1120px) {
    .committees-listing__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .committee-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .page-committees .site-shell {
        width: min(100% - 24px, 1240px);
    }

    .committees-listing {
        padding-top: 34px;
    }

    .committees-listing__grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .committee-card {
        min-height: 390px;
    }

    .committees-hero__actions,
    .committees-cta__actions,
    .committee-detail-hero .committees-hero__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .committees-cta .button,
    .committees-hero .button,
    .committee-detail-hero .button {
        width: 100%;
    }

    .committee-detail-hero {
        min-height: 520px;
    }

    .committee-detail-hero__overlay {
        background:
            linear-gradient(180deg, rgba(7, 27, 52, 0.62) 0%, rgba(7, 27, 52, 0.96) 100%);
    }
}

