.page-committees {
    background: #f6f8fb;
    color: var(--color-text, #172033);
}

.page-committees .page-main {
    overflow: clip;
}

/* Hero */

.committees-hero {
    position: relative;
    padding: clamp(5rem, 9vw, 7rem) 0 clamp(4rem, 7vw, 5rem);
    overflow: hidden;
    background:
        linear-gradient(rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.9)),
        url("/assets/images/flag_of_canada.png") center center / cover no-repeat;
    border-bottom: 1px solid rgba(20, 30, 50, 0.08);
}

.committees-hero .site-shell {
    position: relative;
    z-index: 1;
}

.committees-hero__content {
    max-width: 820px;
}

.committees-eyebrow,
.committees-section-kicker {
    margin: 0 0 0.9rem;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-primary, #2152ff);
}

.committees-hero__title {
    margin: 0;
    max-width: 14ch;
    font-size: clamp(2.6rem, 5vw, 4.2rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
    color: #101828;
    text-wrap: balance;
    overflow-wrap: anywhere;
}

.committees-hero__intro {
    margin: 1.3rem 0 0;
    max-width: 60ch;
    font-size: clamp(1rem, 1.4vw, 1.12rem);
    line-height: 1.75;
    color: rgba(23, 32, 51, 0.75);
}

.committees-hero__actions,
.committees-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.8rem;
}

/* Section head */

.committees-section-head {
    max-width: 760px;
    margin-bottom: clamp(1.8rem, 3vw, 2.5rem);
}

.committees-section-title {
    margin: 0;
    font-size: clamp(1.85rem, 3.2vw, 2.7rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
    color: #101828;
    text-wrap: balance;
    overflow-wrap: anywhere;
}

.committees-section-intro {
    margin: 0.95rem 0 0;
    max-width: 62ch;
    font-size: 1rem;
    line-height: 1.72;
    color: rgba(23, 32, 51, 0.72);
}

/* Listing */

.committees-listing {
    position: relative;
    padding: clamp(3.2rem, 6vw, 5rem) 0;
}

.committees-listing__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.3rem;
    align-items: stretch;
}

.committee-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    min-height: 100%;
    padding: 1.55rem;
    border: 1px solid rgba(23, 32, 51, 0.08);
    border-radius: 0;
    background: #ffffff;
    box-shadow:
        0 16px 34px rgba(16, 24, 40, 0.05),
        0 4px 12px rgba(16, 24, 40, 0.03);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.committee-card:hover {
    transform: translateY(-3px);
    border-color: rgba(33, 82, 255, 0.18);
    box-shadow:
        0 22px 42px rgba(16, 24, 40, 0.08),
        0 6px 16px rgba(16, 24, 40, 0.05);
}

.committee-card__top {
    display: flex;
    flex-direction: column;
    gap: 0.68rem;
}

.committee-card__label {
    display: inline-flex;
    align-self: flex-start;
    margin: 0;
    padding: 0.45rem 0.78rem;
    border-radius: 999px;
    background: rgba(33, 82, 255, 0.08);
    color: var(--color-primary, #2152ff);
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.committee-card__title {
    margin: 0;
    font-size: clamp(1.2rem, 2vw, 1.52rem);
    line-height: 1.22;
    letter-spacing: -0.025em;
    color: #101828;
    overflow-wrap: anywhere;
}

.committee-card__chair {
    margin: 0;
    font-size: 0.97rem;
    line-height: 1.5;
    color: rgba(23, 32, 51, 0.68);
}

.committee-card__chair-role {
    color: rgba(23, 32, 51, 0.56);
}

.committee-card__chair-name {
    color: #101828;
    font-weight: 700;
}

.committee-card__summary {
    margin: 0;
    font-size: 1rem;
    line-height: 1.72;
    color: rgba(23, 32, 51, 0.78);
}

.committee-card__focus {
    margin-top: auto;
    padding-top: 0.15rem;
}

.committee-card__focus-title {
    margin: 0 0 0.8rem;
    font-size: 0.84rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(23, 32, 51, 0.54);
}

.committee-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.68rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.committee-card__tag {
    display: inline-flex;
    align-items: center;
    min-height: 2.4rem;
    padding: 0.62rem 0.9rem;
    border: 1px solid rgba(23, 32, 51, 0.1);
    border-radius: 999px;
    background: #ffffff;
    font-size: 0.92rem;
    line-height: 1.25;
    color: rgba(23, 32, 51, 0.8);
    white-space: nowrap;
}

/* CTA */

.committees-cta {
    position: relative;
    padding: clamp(0.8rem, 2vw, 1.2rem) 0 clamp(4rem, 7vw, 6rem);
}

.committees-cta__box {
    max-width: 860px;
    padding: clamp(1.7rem, 3vw, 2.5rem);
    border: 1px solid rgba(23, 32, 51, 0.08);
    border-radius: 0;
    background: #ffffff;
    box-shadow:
        0 16px 34px rgba(16, 24, 40, 0.05),
        0 4px 12px rgba(16, 24, 40, 0.03);
}

.committees-cta__text {
    margin: 1rem 0 0;
    max-width: 60ch;
    font-size: 1rem;
    line-height: 1.72;
    color: rgba(23, 32, 51, 0.74);
}

/* Responsive */

@media (max-width: 980px) {
    .committees-hero {
        padding: 4rem 0 3.5rem;
        background:
            linear-gradient(rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.92)),
            url("/assets/images/flag_of_canada.png") center center / contain no-repeat;
    }

    .committees-listing__grid {
        grid-template-columns: 1fr;
    }

    .committees-hero__content {
        max-width: none;
    }

    .committees-hero__title {
        max-width: none;
        font-size: clamp(2rem, 7vw, 3rem);
    }
}

@media (max-width: 640px) {
    .committees-hero {
        padding: 3.4rem 0 3rem;
    }

    .committee-card,
    .committees-cta__box {
        padding: 1.2rem;
    }

    .committees-hero__actions,
    .committees-cta__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .committees-hero__actions .button,
    .committees-cta__actions .button {
        width: 100%;
        min-height: 46px;
        justify-content: center;
    }

    .committee-card__tag {
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .committees-hero {
        padding: 2.8rem 0 2.4rem;
    }

    .committees-listing {
        padding: 2.4rem 0;
    }

    .committees-cta {
        padding: 0.6rem 0 3rem;
    }

    .committees-eyebrow,
    .committees-section-kicker,
    .committee-card__label,
    .committee-card__focus-title {
        font-size: 0.72rem;
        letter-spacing: 0.07em;
    }

    .committees-hero__title {
        font-size: 1.9rem;
        line-height: 1.02;
    }

    .committees-section-title {
        font-size: 1.55rem;
        line-height: 1.12;
    }

    .committees-hero__intro,
    .committees-section-intro,
    .committee-card__summary,
    .committees-cta__text,
    .committee-card__chair {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .committee-card,
    .committees-cta__box {
        padding: 1rem;
    }

    .committee-card {
        gap: 0.95rem;
    }

    .committee-card__title {
        font-size: 1.1rem;
        line-height: 1.24;
    }

    .committee-card__tag {
        width: 100%;
        justify-content: center;
        padding: 0.7rem 0.85rem;
        font-size: 0.88rem;
    }
}

@media (hover: none) and (pointer: coarse) {
    .committee-card:hover {
        transform: none;
        border-color: rgba(23, 32, 51, 0.08);
        box-shadow:
            0 16px 34px rgba(16, 24, 40, 0.05),
            0 4px 12px rgba(16, 24, 40, 0.03);
    }
}