.group-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 22px;
    margin-top: 24px;
}

.group-card {
    overflow: hidden;
}

.group-card>a>img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.group-card>a>div {
    padding: 20px;
}

.group-card h2 {
    font-size: 1.4rem;
    margin: 10px 0;
}

.group-card p {
    line-height: 1.5;
    color: var(--muted);
}

.group-card small {
    color: var(--muted);
}

.group-card-link {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    color: var(--primary);
    font-size: .95rem;
}

.group-visibility {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    color: var(--muted);
    font: 500 12px/1.4 'Avenir Next',sans-serif;
}

.group-page {
    max-width: 1050px;
    margin: auto;
}

.group-hero {
    overflow: hidden;
}

.group-hero>img {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.group-hero>div {
    padding: 24px 30px;
}

.group-hero h1 {
    margin: 10px 0;
}

.group-hero p {
    line-height: 1.6;
    max-width: 800px;
}

.group-hero .tabs {
    padding-inline: 20px;
}

.group-membership {
    margin: 20px 0;
    padding: 16px 24px;
}

.group-compose, .group-post {
    margin: 20px 0;
    padding: 24px;
}

.group-post>.preserve-lines {
    line-height: 1.7;
    margin: 20px 0;
    overflow-wrap: anywhere;
}

.group-post time {
    font-size: .8rem;
    color: var(--muted);
}

.group-post footer {
    justify-content: space-between;
}

.group-compose textarea {
    min-height: 100px;
}

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

@media(max-width:680px) {
    .group-grid {
        grid-template-columns: minmax(0,1fr);
    }
    .group-hero>img {
        height: 150px;
    }
    .group-hero>div,.group-compose,.group-post {
        padding: 18px;
    }
}
