body.community-app {
    background: #f7f3ef;
    color: #1f2937;
}

.community-shell {
    max-width: 1120px;
    padding-left: 16px;
    padding-right: 16px;
}

.community-hero {
    background: linear-gradient(135deg, #8f2f0f 0%, #d94e15 62%, #ee8a19 100%);
    border-radius: 8px;
    box-shadow: 0 16px 36px rgba(143, 47, 15, 0.2);
    color: #fff;
    margin: 14px 0 18px;
    padding: 20px;
}

.community-hero.compact {
    padding: 18px;
}

.community-kicker {
    color: rgba(255, 255, 255, 0.78);
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.community-hero h1 {
    font-size: 2.1rem;
    font-weight: 850;
    letter-spacing: 0;
    line-height: 1.08;
    margin: 0;
}

.community-hero p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.45;
    margin: 10px 0 0;
    max-width: 720px;
}

.community-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.community-actions .btn {
    align-items: center;
    border-radius: 8px;
    display: inline-flex;
    font-weight: 800;
    gap: 7px;
    justify-content: center;
    min-height: 44px;
}

.community-primary-btn {
    background: #d94e15;
    border: 1px solid #d94e15;
    color: #fff;
}

.community-primary-btn:hover,
.community-primary-btn:focus {
    background: #b83d11;
    border-color: #b83d11;
    color: #fff;
}

.community-hero .community-primary-btn {
    background: #fff;
    border-color: #fff;
    color: #a9340f;
}

.community-hero .community-secondary-btn {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.52);
    color: #fff;
}

.community-panel {
    background: #fff;
    border: 1px solid rgba(143, 47, 15, 0.1);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(76, 43, 30, 0.08);
    padding: 16px;
}

.community-notice {
    align-items: flex-start;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    color: #9a3412;
    display: flex;
    gap: 10px;
    line-height: 1.4;
    margin-bottom: 16px;
    padding: 12px;
}

.community-notice i {
    flex: 0 0 auto;
    font-size: 1.1rem;
}

.community-toolbar {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin-bottom: 16px;
}

.community-toolbar h2 {
    font-size: 1.22rem;
    font-weight: 850;
    margin: 0;
}

.community-search {
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-bottom: 16px;
}

.community-search .form-control,
.community-form .form-control,
.community-form .form-select {
    border-color: #e7d8ce;
    border-radius: 8px;
    min-height: 44px;
}

.community-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.community-card {
    background: #fff;
    border: 1px solid #eadfd8;
    border-radius: 8px;
    color: #1f2937;
    display: block;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.community-card:hover,
.community-card:focus {
    border-color: rgba(217, 78, 21, 0.58);
    box-shadow: 0 12px 24px rgba(143, 47, 15, 0.12);
    color: #1f2937;
    transform: translateY(-2px);
}

.community-card-media {
    align-items: center;
    background: #fff1e8;
    color: #d94e15;
    display: flex;
    height: 148px;
    justify-content: center;
    overflow: hidden;
}

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

.community-card-media i {
    font-size: 2rem;
}

.community-card-body {
    padding: 13px;
}

.community-card h3 {
    font-size: 1rem;
    font-weight: 850;
    line-height: 1.28;
    margin: 0 0 8px;
    overflow-wrap: anywhere;
}

.community-meta,
.community-muted {
    color: #6b7280;
    font-size: 0.9rem;
}

.community-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.community-badge {
    background: #fff1e8;
    border-radius: 999px;
    color: #b53e12;
    display: inline-flex;
    font-size: 0.76rem;
    font-weight: 800;
    padding: 5px 8px;
}

.community-badge.claimed {
    background: #ecfdf5;
    color: #047857;
}

.community-badge.pending {
    background: #fffbeb;
    color: #b45309;
}

.community-empty {
    color: #6b7280;
    padding: 26px 12px;
    text-align: center;
}

.community-empty i {
    color: #d94e15;
    display: block;
    font-size: 2rem;
    margin-bottom: 8px;
}

.community-form {
    display: grid;
    gap: 14px;
}

.community-form label {
    color: #374151;
    font-size: 0.9rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.community-form .form-text {
    color: #6b7280;
}

.community-detail {
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 1.5fr) minmax(270px, 0.8fr);
}

.community-detail-cover {
    align-items: center;
    background: #fff1e8;
    border-radius: 8px;
    color: #d94e15;
    display: flex;
    justify-content: center;
    min-height: 300px;
    overflow: hidden;
}

.community-detail-cover img {
    height: 100%;
    max-height: 520px;
    object-fit: cover;
    width: 100%;
}

.community-detail-cover i {
    font-size: 3rem;
}

.community-detail h2 {
    font-size: 1.45rem;
    font-weight: 850;
    margin: 0 0 8px;
}

.community-detail-copy {
    color: #4b5563;
    line-height: 1.55;
    white-space: pre-line;
}

.community-side-action {
    display: grid;
    gap: 10px;
}

.community-side-action .btn {
    border-radius: 8px;
    font-weight: 800;
    min-height: 44px;
}

@media (max-width: 767.98px) {
    .community-shell {
        padding-top: 12px !important;
    }

    .community-hero {
        padding: 16px;
    }

    .community-hero h1 {
        font-size: 1.8rem;
    }

    .community-detail {
        grid-template-columns: 1fr;
    }

    .community-actions .btn {
        flex: 1 1 100%;
    }
}
