.community-page {
    padding: 1rem 0 2.5rem;
}

.community-shell,
.community-sidebar,
.community-stream-list {
    display: grid;
    gap: 1rem;
}

.community-hero,
.community-compose,
.community-message-card,
.community-empty {
    border-radius: 10px;
}

.community-kicker {
    display: inline-flex;
    margin-bottom: 0.8rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #8f5b3e;
    font-weight: 800;
}

.community-hero {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: end;
}

.community-hero h1,
.community-compose h2,
.community-empty h2 {
    font-family: 'Fraunces', Georgia, serif;
    color: #2c261f;
    line-height: 1.05;
}

.community-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
}

.community-hero p,
.community-compose p,
.community-message-text {
    color: #6c6257;
    line-height: 1.75;
}

.community-hero-actions,
.community-auth-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.community-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.community-form {
    display: grid;
    gap: 0.75rem;
}

.community-form textarea {
    min-height: 130px;
    resize: vertical;
}

.community-message-card {
    padding: 1rem 1rem 1.05rem;
}

.community-message-card.is-pinned {
    border: 1px solid rgba(196, 107, 72, 0.22);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 242, 237, 0.98));
}

.community-message-head {
    display: flex;
    gap: 0.9rem;
    align-items: start;
    margin-bottom: 0.8rem;
}

.community-avatar {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #17344b;
    color: #fff;
    font-weight: 800;
    flex-shrink: 0;
}

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

.community-meta {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 0.2rem;
    color: #7a6e63;
    font-size: 0.9rem;
}

.community-message-text {
    margin: 0;
    font-size: 1rem;
}

.community-empty {
    text-align: center;
    padding: 2rem;
}

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

    .community-hero {
        flex-direction: column;
        align-items: start;
    }
}
