.community-content {
    color: #222;
    margin: 0 auto;
    padding: 0.5rem 0.75rem 1rem;
    width: min(1200px, 100%);
}

.community-intro h1,
.community-directory h2,
.community-happenings h2,
.community-card h3 {
    text-align: left;
}

.community-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

.community-happenings {
    border-left: 2px solid rgba(20, 20, 20, 0.22);
    padding-left: 2rem;
}

.community-reel {
    aspect-ratio: 4 / 3;
    margin: 0 0 1rem;
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(15, 25, 28, 0.14);
}

.community-submit-event {
    align-items: center;
    justify-content: center;
    display: inline-flex;
    min-height: 44px;
    border-radius: 0.35rem;
    padding: 0.65rem 1rem;
    background: #2f6f78;
    color: #fff;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.community-submit-event:hover,
.community-submit-event:focus-visible {
    background: #25575e;
}

.community-submit-event:focus-visible {
    outline: 3px solid #7b4e99;
    outline-offset: 3px;
}

.community-intro h1 {
    line-height: 1.1;
    margin-top: 0.45rem;
}

.community-kicker,
.community-type {
    color: #5f5b54;
    font-size: 0.76rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.community-directory h2 {
    margin-bottom: 0.75rem;
}

.community-card-grid {
    align-items: start;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}

.community-card {
    align-items: flex-start;
    background: #fff;
    border: 1px solid #d7d2c8;
    border-left: 6px solid #7b4e99;
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(15, 25, 28, 0.14);
    display: flex;
    flex-direction: column;
    padding: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.community-card:nth-child(3n+2) {
    border-left-color: #0a7399;
}

.community-card:nth-child(3n+3) {
    border-left-color: #946400;
}

.community-card h3 {
    display: block;
    font-size: 1.17em;
    font-weight: bold;
    line-height: 1.1;
    margin: 0.35rem 0 0.6rem;
    width: 100%;
}

.community-card-title {
    margin: 0;
}

.community-card-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    color: #222;
    cursor: pointer;
    display: flex;
    font: inherit;
    gap: 1rem;
    justify-content: space-between;
    padding: 0;
    text-align: left;
    width: 100%;
}

.community-card-toggle > span {
    text-align: left;
}

.community-card-title {
    font-family: "Special Gothic Condensed One", sans-serif;
    letter-spacing: 0.04em;
}

.community-card-toggle:focus-visible {
    outline: 3px solid #2f6f78;
    outline-offset: -3px;
}

.community-card-indicator::before {
    content: "+";
    display: block;
    font-size: 1.6rem;
    font-weight: bold;
    line-height: 1;
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.community-card.is-selected .community-card-indicator::before {
    transform: rotate(45deg);
}

.community-card-details {
    display: flex;
    flex: none;
    flex-direction: column;
    overflow: hidden;
    width: 100%;
}

.community-card-details[hidden] {
    display: none;
}

.community-card p:not(.community-type) {
    line-height: 1.6;
    text-align: left;
}

.community-card-link {
    align-items: center;
    color: #222;
    display: inline-flex;
    margin-top: auto;
    min-height: 44px;
    padding-top: 0.75rem;
    text-underline-offset: 0.2em;
}

.community-card:hover,
.community-card:focus-within {
    box-shadow: 0 12px 22px rgba(15, 25, 28, 0.2);
    transform: translateY(-2px);
}

.community-card-link:focus-visible {
    outline: 3px solid #7b4e99;
    outline-offset: 3px;
}

@media (max-width: 480px) {
    .community-content {
        padding-inline: 0.25rem;
    }
}

@media (max-width: 768px) {
    .community-columns {
        grid-template-columns: 1fr;
    }

    .community-happenings {
        border-left: 0;
        border-top: 2px solid rgba(20, 20, 20, 0.22);
        padding-left: 0;
        padding-top: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .community-card,
    .community-card-indicator::before {
        transition: none;
    }
}
