/* Community Hub dedicated stylesheet.
   Loads after the shared site stylesheet and contains only Community Hub rules. */

.community-page {
    background: #ffffff;
}

.community-page main {
    background: #ffffff;
}

.community-page main .container {
    width: min(1100px, calc(100% - 2rem));
    max-width: calc(100vw - 2rem);
}

.community-page .site-header nav a[aria-current="page"] {
    background: var(--sky);
    color: var(--blue);
}

.community-page .site-header nav a {
    white-space: nowrap;
}

.community-page .community-hero {
    padding: clamp(2.8rem, 7vw, 4.6rem) 0;
    background:
        linear-gradient(115deg, rgba(6, 29, 94, 0.98), rgba(20, 87, 168, 0.88) 58%, rgba(11, 140, 146, 0.66)),
        var(--navy);
}

.community-page .community-hero h1 {
    max-width: 10ch;
    margin: 0;
    color: var(--white);
    font-size: clamp(2.55rem, 6vw, 4.3rem);
    line-height: 0.96;
    letter-spacing: 0;
}

.community-page .community-hero .community-org {
    max-width: 43rem;
    margin: 1.05rem 0 0;
    color: var(--white);
    font-size: clamp(1.08rem, 2.2vw, 1.42rem);
    font-weight: 900;
}

.community-page .community-hero p:last-child {
    max-width: 40rem;
    margin-top: 0.75rem;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.02rem;
    font-weight: 700;
}

.community-flow-section {
    padding: 0;
    background: #ffffff;
}

.community-flow-section > .container {
    padding-top: clamp(2.5rem, 5vw, 4rem);
    padding-bottom: clamp(2.5rem, 5vw, 4rem);
    border-top: 1px solid rgba(216, 222, 235, 0.88);
}

.community-section-intro {
    display: grid;
    grid-template-columns: minmax(0, 0.4fr) minmax(0, 0.6fr);
    column-gap: clamp(1.5rem, 4vw, 3rem);
    row-gap: 0.55rem;
    align-items: end;
    margin-bottom: clamp(1.25rem, 2.8vw, 1.85rem);
}

.community-section-intro .section-kicker {
    grid-column: 1 / -1;
    margin-bottom: 0;
}

.community-section-intro h2 {
    grid-column: 1;
    max-width: 26ch;
    margin: 0;
    color: var(--navy);
    font-size: clamp(1.45rem, 2.45vw, 2.05rem);
    line-height: 1.08;
}

.community-section-intro p:not(.section-kicker) {
    grid-column: 2;
    max-width: 42rem;
    margin: 0;
    color: var(--muted);
    font-size: 0.98rem;
}

.community-lead-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.57fr) minmax(0, 0.43fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
}

.community-lead-media {
    display: grid;
    align-content: end;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    aspect-ratio: 16 / 8.8;
    margin: 0;
    padding: 1rem;
    border: 0;
    border-radius: 0.2rem;
    background:
        linear-gradient(135deg, rgba(6, 29, 94, 0.96), rgba(20, 87, 168, 0.88) 58%, rgba(11, 140, 146, 0.78)),
        var(--navy);
    box-shadow: none;
}

.community-lead-media span {
    width: fit-content;
    max-width: 100%;
    padding: 0.55rem 0.7rem;
    border-left: 4px solid var(--gold);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.community-lead-copy {
    max-width: 36rem;
}

.community-lead-copy h3,
.community-current-list h3,
.community-line-item h3,
.community-voices-list h3,
.community-happening-column h3 {
    margin: 0;
    color: var(--navy);
    line-height: 1.14;
    overflow-wrap: normal;
}

.community-lead-copy h3 {
    font-size: clamp(1.45rem, 2.6vw, 2rem);
    line-height: 1.1;
}

.community-lead-copy p,
.community-current-list p,
.community-line-item p,
.community-voices-list p,
.community-support-layout p {
    color: var(--muted);
}

.community-lead-copy p,
.community-current-list p,
.community-line-item p,
.community-voices-list p {
    margin: 0.45rem 0 0;
}

.community-lead-copy .text-button {
    display: inline-flex;
    margin-top: 0.8rem;
}

.community-current-list,
.community-happening-grid,
.community-voices-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.35rem, 3.6vw, 2.6rem);
}

.community-current-list article,
.community-current-list article:nth-child(3),
.community-voices-list article {
    display: block;
    min-width: 0;
    margin-top: 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(216, 222, 235, 0.86);
}

.community-current-list article:nth-child(3) {
    grid-column: 1 / -1;
    max-width: 48rem;
}

.community-current-list span,
.community-line-item span {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--blue);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.community-current-list h3,
.community-voices-list h3 {
    font-size: 1.2rem;
}

.community-happening-section {
    background:
        linear-gradient(180deg, rgba(245, 247, 251, 0.88), rgba(255, 255, 255, 1)),
        #ffffff;
}

.community-happening-column {
    min-width: 0;
}

.community-happening-column > h3 {
    margin: 0 0 0.75rem;
    padding-bottom: 0.65rem;
    border-bottom: 2px solid rgba(20, 87, 168, 0.18);
    font-size: clamp(1.25rem, 2.15vw, 1.65rem);
}

.community-line-item {
    padding: 0.95rem 0;
    border-top: 1px solid rgba(216, 222, 235, 0.86);
}

.community-happening-column > h3 + .community-line-item {
    border-top: 0;
}

.community-line-item .text-button,
.community-lead-copy .text-button,
.community-current-list a,
.community-link-list a {
    color: var(--blue);
    font-weight: 900;
    text-decoration: none;
}

.community-line-item .text-button:hover,
.community-line-item .text-button:focus,
.community-lead-copy .text-button:hover,
.community-lead-copy .text-button:focus,
.community-current-list a:hover,
.community-current-list a:focus,
.community-link-list a:hover,
.community-link-list a:focus {
    color: var(--navy);
    text-decoration: underline;
}

.community-line-item h3,
.community-line-item p,
.community-line-item .text-button {
    max-width: 100%;
}

.community-link-list {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1.1rem;
    justify-content: flex-start;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(216, 222, 235, 0.86);
}

.community-support-section {
    background:
        linear-gradient(180deg, rgba(234, 244, 255, 0.82), rgba(255, 255, 255, 1)),
        #ffffff;
    color: var(--ink);
}

.community-support-section > .container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(14rem, auto);
    gap: clamp(1.25rem, 3vw, 2.25rem);
    align-items: center;
    padding-top: clamp(2rem, 4vw, 3rem);
    padding-bottom: clamp(2rem, 4vw, 3rem);
    border-top: 1px solid rgba(216, 222, 235, 0.88);
}

.community-support-section h2 {
    max-width: 30ch;
    margin: 0;
    color: var(--navy);
    font-size: clamp(1.55rem, 2.8vw, 2.15rem);
}

.community-support-section p {
    max-width: 58rem;
    margin-bottom: 0;
    color: var(--muted);
}

.community-support-section .button {
    width: auto;
    min-width: 14rem;
    justify-self: end;
    text-align: center;
    white-space: normal;
}

@media (max-width: 900px) {
    .community-section-intro,
    .community-lead-grid,
    .community-current-list,
    .community-happening-grid,
    .community-voices-list,
    .community-support-section > .container {
        grid-template-columns: 1fr;
    }

    .community-section-intro .section-kicker,
    .community-section-intro h2,
    .community-section-intro p:not(.section-kicker) {
        grid-column: 1;
    }

    .community-section-intro h2,
    .community-section-intro p:not(.section-kicker),
    .community-lead-copy {
        max-width: 44rem;
    }

    .community-current-list article:nth-child(3) {
        grid-column: auto;
        max-width: none;
    }

    .community-page .community-support-section .button {
        justify-self: start;
    }
}

@media (max-width: 640px) {
    .community-page,
    .community-page main,
    .community-page main .container,
    .community-section-intro,
    .community-section-intro > *,
    .community-lead-grid,
    .community-lead-grid > *,
    .community-current-list,
    .community-current-list > *,
    .community-happening-grid,
    .community-happening-grid > *,
    .community-voices-list,
    .community-voices-list > * {
        min-width: 0;
        max-width: 100%;
        overflow-x: hidden;
    }

    .community-flow-section > .container {
        padding-top: 2.25rem;
        padding-bottom: 2.25rem;
    }

    .community-page .community-hero {
        padding-top: 2.6rem;
        padding-bottom: 3rem;
    }

    .community-page h1,
    .community-page h2,
    .community-page h3,
    .community-page p,
    .community-page a,
    .community-page span {
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .community-page .community-hero .community-org,
    .community-page .community-hero p:last-child {
        max-width: calc(100vw - 2rem);
    }

    .community-section-intro h2 {
        font-size: clamp(1.35rem, 7vw, 1.82rem);
    }

    .community-lead-media {
        aspect-ratio: 16 / 10;
    }

    .community-support-section .button {
        width: 100%;
        min-width: 0;
    }
}
