/* Scoped to the community page; no fixed hero height or content clipping. */
.community-page {
    --community-night: #071522;
    --community-lime: #bcf52b;
    background: #fff;
}
.community-hero {
    position: relative;
    isolation: isolate;
    overflow: clip;
    color: #fff;
    background: var(--community-night);
}
.community-hero__inner {
    position: relative;
    z-index: 2;
    padding-block: clamp(3rem, 6vw, 6rem) clamp(2.5rem, 5vw, 4.5rem);
    pointer-events: none;
}
.community-hero__copy { width: 54%; max-width: 42rem; pointer-events: auto; }
.community-kicker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .65rem;
    margin: 0 0 1.75rem;
    color: #b6d5ed;
    font-size: .7rem;
    font-weight: 800;
    line-height: 1.6;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.community-kicker > span:first-child {
    width: .5rem; height: .5rem; flex: 0 0 auto;
    border-radius: 50%; background: var(--community-lime);
}
.community-kicker__place { color: #8ca3b7; }
.community-hero h1 {
    max-width: 12ch;
    margin: 0;
    color: #fff;
    font-size: clamp(3rem, 5.6vw, 5.6rem);
    font-weight: 850;
    line-height: 1.04;
    letter-spacing: -.06em;
    text-wrap: balance;
}
.community-hero__lead {
    max-width: 37rem;
    margin: 1.6rem 0 0;
    color: #c8d6e3;
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    line-height: 1.75;
}
.community-hero__actions {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: .75rem; margin-top: 2rem;
}
.community-button {
    display: inline-flex;
    align-items: center; justify-content: center; gap: .7rem;
    min-height: 3.3rem; max-width: 100%;
    padding: .85rem 1.3rem;
    border: 1px solid transparent; border-radius: .65rem;
    font-size: .9rem; font-weight: 800; line-height: 1.4;
    text-decoration: none; text-align: center;
    transition: background-color 180ms ease, border-color 180ms ease;
}
.community-button svg {
    width: 1.1rem; height: 1.1rem; flex: 0 0 auto;
    fill: none; stroke: currentColor; stroke-width: 1.8;
    stroke-linecap: round; stroke-linejoin: round;
}
.community-button--primary { color: #071522; background: var(--community-lime); }
.community-button--primary:hover { background: #d2ff69; }
.community-button--quiet { color: #fff; border-color: #496071; background: rgba(7, 21, 34, .7); }
.community-button--quiet:hover { border-color: #b9cad8; background: #172d3e; }
.community-button img { width: 1.35rem; height: 1.35rem; object-fit: contain; flex: 0 0 auto; }
.community-hero__welcome { margin: 1rem 0 0; color: #9fb2c3; font-size: .78rem; }
.community-hero__art {
    position: absolute; z-index: 0; inset: 0 0 0 auto;
    width: 68%; margin: 0; overflow: hidden; background: #083059;
}
.community-hero__art picture,
.community-hero__art img { display: block; width: 100%; height: 100%; }
.community-hero__art img {
    object-fit: cover;
    object-position: 64% center;
    transform: translateX(4%) scale(1.08);
    transform-origin: center;
}
.community-hero__art::after {
    content: ""; position: absolute; inset: 0;
    background:
        linear-gradient(0deg, #071522 0%, rgba(7, 21, 34, .1) 28%, transparent 70%),
        linear-gradient(90deg, #071522 0%, rgba(7, 21, 34, .96) 9%, rgba(7, 21, 34, .75) 25%, rgba(7, 21, 34, .12) 56%, transparent 78%);
    pointer-events: none;
}
.community-hero__caption {
    position: absolute; z-index: 1;
    right: max(2rem, calc((100vw - var(--container)) / 2));
    bottom: 8.5rem;
    display: grid; gap: .4rem; padding-left: 1rem;
    border-left: 2px solid var(--community-lime);
    color: #fff; font-size: .78rem; font-weight: 800; line-height: 1.6;
    letter-spacing: .12em; text-transform: uppercase;
    text-shadow: 0 1px 8px #071522;
}
.community-hero__caption > span + span { color: #c2d4e4; font-size: .6rem; font-weight: 600; }
.community-hero__foot {
    position: relative; z-index: 2;
    display: flex; align-items: center; justify-content: space-between;
    gap: 1.5rem; padding-block: 1.6rem;
    border-top: 1px solid rgba(202, 221, 238, .2);
}
.community-principles {
    display: flex; flex-wrap: wrap; gap: .65rem 2rem;
    padding: 0; margin: 0; list-style: none;
    color: #e5edf4; font-size: .83rem; font-weight: 650;
}
.community-principles li { display: flex; align-items: center; gap: .65rem; }
.community-principles li::before { content: "+"; color: var(--community-lime); font-size: 1.1rem; font-weight: 500; }
.community-scroll {
    display: inline-flex; align-items: center; gap: 1rem; min-height: 2.75rem;
    color: #b5c9d9; font-size: .78rem; font-weight: 650; text-decoration: none;
}
.community-scroll:hover { color: #fff; }
.community-connect {
    padding-block: clamp(3.5rem, 7vw, 6rem);
    scroll-margin-top: 9rem; background: #f5f7f7;
}
.community-connect__heading {
    display: grid; grid-template-columns: 1.1fr .9fr; align-items: end;
    gap: 2.5rem; margin-bottom: 2.5rem;
}
.community-connect h2 {
    max-width: 16ch; font-size: clamp(2.15rem, 4vw, 3.7rem);
    line-height: 1.1; letter-spacing: -.045em; text-wrap: balance;
}
.community-connect__heading > p {
    max-width: 30rem; margin: 0 0 .2rem;
    color: var(--ink-soft); font-size: 1.05rem; line-height: 1.75;
}
.community-channels {
    padding-inline: clamp(1.25rem, 3vw, 2.5rem);
    color: #fff; background: var(--community-night); border-radius: 1rem;
}
.community-channel {
    --channel-accent: var(--community-lime);
    display: grid; grid-template-columns: minmax(10rem, .65fr) minmax(0, 2fr) auto;
    gap: 2rem; align-items: center; padding-block: 2.2rem;
    color: inherit; text-decoration: none;
}
.community-channel + .community-channel { border-top: 1px solid #314454; }
.community-channel--whatsapp { --channel-accent: #25d366; }
.community-channel__brand { display: grid; gap: .75rem; align-content: center; }
.community-channel__brand img {
    width: auto; height: 2rem; max-width: 9rem;
    object-fit: contain; object-position: left center;
}
.community-channel__brand > span {
    color: #a8becf; font-size: .66rem; font-weight: 700;
    letter-spacing: .09em; text-transform: uppercase;
}
.community-channel__copy { display: grid; gap: .65rem; }
.community-channel__copy strong {
    font-size: clamp(1.35rem, 2.5vw, 2rem); line-height: 1.2;
    letter-spacing: -.025em; font-weight: 750;
}
.community-channel__copy > span { max-width: 40rem; color: #b9ccdb; font-size: .95rem; line-height: 1.7; }
.community-channel__arrow {
    display: grid; place-items: center; width: 3rem; height: 3rem;
    border: 1px solid #4c6273; border-radius: 50%;
    color: var(--channel-accent); font-size: 1.3rem;
    transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}
.community-channel:hover .community-channel__arrow {
    color: var(--community-night); border-color: var(--channel-accent); background: var(--channel-accent);
}
.community-help {
    display: flex; align-items: center; justify-content: space-between;
    gap: 2rem; margin-top: 2.5rem;
}
.community-help h3 { font-size: 1.2rem; letter-spacing: -.02em; line-height: 1.4; }
.community-help p { max-width: 44rem; margin: .5rem 0 0; color: var(--ink-soft); font-size: .95rem; }
.community-help a {
    display: inline-flex; flex-shrink: 0; align-items: center; gap: 1rem; min-height: 2.75rem;
    font-size: .9rem; font-weight: 800;
}
.community-hero a:focus-visible,
.community-channel:focus-visible { outline: 3px solid var(--community-lime); outline-offset: 5px; }

@media (min-width: 48rem) and (max-width: 63.99rem) {
    .community-hero__copy { width: 64%; }
    .community-hero__art { width: 65%; }
    .community-hero__art::after {
        background: linear-gradient(90deg, #071522, rgba(7, 21, 34, .92) 30%, rgba(7, 21, 34, .2)), linear-gradient(0deg, #071522, transparent 55%);
    }
    .community-hero__caption { display: none; }
}
@media (max-width: 47.99rem) {
    .community-hero__inner { padding-block: 2.75rem 1.25rem; }
    .community-hero__copy { width: 100%; max-width: none; }
    .community-kicker { margin-bottom: 1.35rem; font-size: .64rem; gap: .5rem; letter-spacing: .09em; }
    .community-hero h1 { max-width: 14ch; font-size: clamp(2.6rem, 9.5vw, 4.5rem); line-height: 1.06; }
    .community-hero__lead { margin-top: 1.35rem; max-width: 38rem; }
    .community-hero__actions { margin-top: 1.5rem; }
    .community-hero__art { position: relative; inset: auto; width: 100%; aspect-ratio: 3 / 2; }
    .community-hero__art img { object-position: center; }
    .community-hero__art::after {
        inset: -1px 0;
        background: linear-gradient(
            180deg,
            transparent 0%,
            transparent 64%,
            rgba(7, 21, 34, .18) 72%,
            rgba(7, 21, 34, .82) 92%,
            #071522 100%
        );
    }
    .community-hero__caption { right: 1.5rem; bottom: 2rem; font-size: .65rem; }
    .community-hero__foot { flex-wrap: wrap; gap: .75rem; padding-block: 1.25rem; }
    .community-principles { gap: .4rem 1rem; font-size: .75rem; }
    .community-connect__heading { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; margin-bottom: 2rem; }
    .community-channel { grid-template-columns: minmax(0, 1fr) auto; gap: 1.25rem; padding-block: 1.65rem; }
    .community-channel__brand { grid-column: 1; grid-row: 1; }
    .community-channel__copy { grid-column: 1 / -1; grid-row: 2; }
    .community-channel__arrow { grid-column: 2; grid-row: 1; }
    .community-help { flex-direction: column; align-items: flex-start; gap: .75rem; margin-top: 2rem; }
}
@media (max-width: 25rem) {
    .community-kicker__place { flex-basis: 100%; padding-left: 1rem; }
    .community-hero__actions { align-items: stretch; flex-direction: column; }
    .community-button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .community-button, .community-channel__arrow { transition: none; }
}
