.communities-main {
    background: radial-gradient(ellipse at 85% 0, #fcf1d4, transparent 45%), linear-gradient(#fffdf8, #f7fbff 700px);
}

.communities-main::before,
.communities-main::after {
    display: none;
}

.communities-inner {
    padding-top: 64px;
    padding-bottom: 64px;
}

.communities-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    align-items: center;
    gap: 64px;
    padding-bottom: 52px;
}

.communities-eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 16px;
    color: #825608;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.communities-eyebrow svg,
.community-verified-label svg {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    fill: #b57b13;
}

.communities-eyebrow svg path + path,
.community-verified-label svg path + path {
    fill: none;
    stroke: #ffffff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.communities-intro h1 {
    max-width: 750px;
    margin: 0;
    font-size: clamp(2rem, 4.4vw, 3.65rem);
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 1.14;
}

.communities-intro h1 span {
    color: #95630a;
}

.communities-description {
    max-width: 640px;
    margin: 20px 0 16px;
    color: var(--slate-600);
    font-size: 0.94rem;
    line-height: 1.8;
}

.communities-learn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #825608;
    font-size: 0.8rem;
    font-weight: 650;
}

.communities-learn:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.communities-standard {
    display: flex;
    width: 180px;
    height: 180px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #825608;
    background: linear-gradient(145deg, #fffcf1, #f8e8b9);
    border: 1px solid #dbc17e;
    border-radius: 50%;
    box-shadow: 0 0 0 8px #fffaf0, 0 0 0 9px #eddeb8, 0 18px 40px rgba(143, 98, 16, 0.08);
}

.communities-standard strong {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.08em;
    line-height: 1.1;
}

.communities-standard strong span {
    font-size: 2rem;
    vertical-align: top;
}

.communities-standard > span {
    margin-top: 5px;
    font-size: 0.76rem;
    font-weight: 650;
}

.communities-standard small {
    margin-top: 12px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.communities-list-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding-top: 30px;
    margin-bottom: 24px;
    border-top: 1px solid #e5dfd0;
}

.communities-list-heading h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 1.02rem;
    font-weight: 750;
    letter-spacing: -0.02em;
}

.communities-list-heading h2 span {
    padding: 3px 9px;
    color: #825608;
    background: #f8ebc9;
    border-radius: 7px;
    font-size: 0.72rem;
    letter-spacing: 0;
}

.communities-list-heading p {
    margin: 5px 0 0;
    color: var(--slate-600);
    font-size: 0.75rem;
}

.communities-shuffle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    color: var(--navy-800);
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 650;
    white-space: nowrap;
}

.communities-shuffle:hover {
    background: #fff8e8;
    border-color: #d7b35d;
}

.communities-shuffle svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.communities-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 24px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.community-card {
    min-width: 0;
    background: #ffffff;
    border: 1px solid #e6dcc2;
    border-radius: 18px;
    box-shadow: 0 8px 26px rgba(32, 60, 90, 0.05);
}

.community-card-link {
    display: flex;
    height: 100%;
    flex-direction: column;
    border-radius: inherit;
}

.community-card:has(.community-card-link:hover),
.community-card:has(.community-card-link:focus-visible) {
    border-color: #c19a42;
    box-shadow: 0 10px 28px rgba(143, 98, 16, 0.13);
}

.community-banner {
    position: relative;
    height: 130px;
    flex: 0 0 130px;
    background: radial-gradient(circle at 80% 120%, #668eb2, transparent 65%), #173456;
    border-radius: 17px 17px 0 0;
}

.community-card:nth-child(3n + 2) .community-banner {
    background: radial-gradient(circle at 80% 120%, #74aba1, transparent 65%), #234f53;
}

.community-card:nth-child(3n + 3) .community-banner {
    background: radial-gradient(circle at 80% 120%, #a391b7, transparent 65%), #413359;
}

.community-banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.community-verified-label {
    position: absolute;
    top: 14px;
    left: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px 5px 6px;
    color: #754d05;
    background: #fff8e4;
    border: 1px solid #ecd493;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 750;
}

.community-verified-label svg {
    width: 19px;
    height: 19px;
}

.community-avatar {
    position: absolute;
    bottom: -28px;
    left: 22px;
    display: grid;
    width: 72px;
    height: 72px;
    overflow: hidden;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, #1d72ed, #2ac4c7);
    border: 4px solid #ffffff;
    border-radius: 20px;
    font-size: 1.8rem;
    font-weight: 750;
    box-shadow: 0 4px 12px rgba(15, 40, 65, 0.12);
}

.community-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.community-avatar--blurred img {
    filter: blur(9px);
    transform: scale(1.15);
}

.community-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 42px 22px 20px;
}

.community-card h3 {
    margin: 0;
    overflow-wrap: anywhere;
    font-size: 1.12rem;
    font-weight: 750;
    letter-spacing: -0.03em;
    line-height: 1.4;
}

.community-description {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    margin: 10px 0 22px;
    color: var(--slate-600);
    overflow-wrap: anywhere;
    font-size: 0.77rem;
    line-height: 1.7;
}

.community-score-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 14px;
    margin-top: auto;
    background: #fffbef;
    border: 1px solid #efe1b9;
    border-radius: 10px;
}

.community-score {
    display: grid;
    flex: 0 0 auto;
    gap: 2px;
    color: #825608;
}

.community-score strong {
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 1;
}

.community-score small {
    margin-left: 2px;
    color: #78653c;
    font-size: 0.67rem;
    font-weight: 500;
    letter-spacing: 0;
}

.community-score > span,
.community-members {
    font-size: 0.65rem;
}

.community-members {
    color: var(--slate-600);
    text-align: right;
}

.community-profile-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 18px;
    color: var(--blue-700);
    font-size: 0.75rem;
    font-weight: 700;
}

.community-profile-link > span[aria-hidden] {
    font-size: 1.1rem;
}

.community-source {
    margin: 16px 0 0;
    color: var(--slate-600);
    font-size: 0.7rem;
}

.communities-end {
    margin: 38px 0 0;
    color: var(--slate-600);
    font-size: 0.76rem;
    text-align: center;
}

.communities-empty {
    padding: 48px 28px;
    background: #ffffff;
    border: 1px solid #e6dcc2;
    border-radius: 18px;
    text-align: center;
}

.communities-empty h2 {
    margin: 0;
    font-size: 1.25rem;
    letter-spacing: -0.03em;
}

.communities-empty p {
    max-width: 540px;
    margin: 14px auto 24px;
    color: var(--slate-600);
    font-size: 0.86rem;
    line-height: 1.8;
}

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

    .communities-intro {
        gap: 40px;
    }
}

@media (max-width: 640px) {
    .communities-inner {
        padding-top: 36px;
        padding-bottom: 40px;
    }

    .communities-intro {
        display: block;
        padding-bottom: 30px;
    }

    .communities-standard {
        display: none;
    }

    .communities-eyebrow {
        font-size: 0.6rem;
        letter-spacing: 0.04em;
    }

    .communities-description {
        font-size: 0.84rem;
    }

    .communities-list-heading {
        align-items: flex-start;
        flex-direction: column;
        padding-top: 24px;
    }

    .communities-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .communities-empty {
        padding: 30px 20px;
    }
}
