.community-rail {
    align-self: start;
    display: grid;
    gap: 20px;
    position: sticky;
    top: 102px;
}

.community-feed-tabs a,
.community-post__actions a,
.community-post__actions button,
.community-comment footer button,
.community-text-link {
    align-items: center;
    display: inline-flex;
    gap: 7px;
}

.community-rail__section {
    display: grid;
    gap: 3px;
}

.community-rail__label {
    color: #7a8497;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
    padding: 0 12px 7px;
    text-transform: uppercase;
}

.community-rail__heading {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.community-rail__heading > a {
    border: 0;
    padding: 8px 12px;
}

.community-rail__section > a {
    align-items: center;
    border-left: 3px solid transparent;
    display: flex;
    gap: 10px;
    min-height: 42px;
    padding: 8px 12px;
    text-decoration: none;
}

.community-rail__section > a > i {
    color: #667085;
    text-align: center;
    width: 18px;
}

.community-rail__section > a:hover,
.community-rail__section > a.is-active {
    background: var(--soft);
    border-left-color: var(--pink);
}

.community-rail__section > a.is-active,
.community-rail__section > a:hover strong {
    color: var(--ink);
}

.community-rail__section--quiet {
    border-top: 1px solid var(--line);
    padding-top: 14px;
}

.community-avatar {
    align-items: center;
    background: var(--panel);
    color: #fff;
    display: inline-flex;
    flex: 0 0 34px;
    font-size: 12px;
    font-weight: 800;
    height: 34px;
    justify-content: center;
}

.community-avatar + span {
    display: grid;
    line-height: 1.3;
}

.community-avatar + span small {
    color: var(--muted);
    font-size: 10px;
}

.community-digest-control {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    display: flex;
    gap: 8px;
    padding: 0 10px;
}

.community-digest-control label {
    font-size: 12px;
    font-weight: 800;
}

.community-digest-control select {
    background: #fff;
    border: 0;
    font: inherit;
    height: 40px;
}

.community-opportunity-strip {
    align-items: center;
    background: #fff7fb;
    border-left: 3px solid var(--pink);
    display: flex;
    flex-wrap: wrap;
    font-size: 12px;
    gap: 8px;
    margin: 10px 0;
    padding: 10px 12px;
}

.community-opportunity-strip strong {
    margin-left: auto;
}

.community-state {
    color: var(--pink);
}

@media (max-width: 760px) {
    .community-rail {
        display: flex;
        gap: 8px;
        margin-bottom: 16px;
        overflow-x: auto;
        padding-bottom: 8px;
        position: static;
        scrollbar-width: thin;
    }

    .community-rail__section {
        display: flex;
        flex: 0 0 auto;
    }

    .community-rail__label,
    .community-rail__heading,
    .community-rail__section--quiet,
    .community-avatar + span small {
        display: none;
    }

    .community-rail__section > a {
        border: 1px solid var(--line);
        min-height: 40px;
        white-space: nowrap;
    }

    .community-rail__section > a:hover,
    .community-rail__section > a.is-active {
        border-color: var(--pink);
    }

    .community-avatar {
        flex-basis: 24px;
        height: 24px;
    }

    .community-digest-control {
        flex: 1 0 100%;
        justify-content: space-between;
    }

    .community-opportunity-strip strong {
        margin-left: 0;
    }
}
.community-plan-badge,
.community-helpfulness {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 2px 7px;
    border: 1px solid #d8dde8;
    border-radius: 4px;
    background: #fff;
    color: #343a49;
    font-size: 11px;
    font-weight: 700;
}

.community-business-mark {
    flex: 0 0 auto;
    overflow: hidden;
}

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

.community-business-mark--large {
    width: 42px;
    height: 42px;
    background: var(--pink);
    font-size: 12px;
    font-weight: 800;
}

.community-comment__body > header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    color: var(--muted);
    font-size: 12px;
}

.community-comment__body > header strong {
    color: var(--ink);
}

.community-plan-badge {
    border-color: #ed3b86;
    color: #d82770;
}

.community-contributor-signals {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 12px 0;
}

.community-contributor-signals small {
    flex-basis: 100%;
    color: #667085;
}

.community-edit-history {
    margin-top: 10px;
    color: #667085;
    font-size: 12px;
}

.community-edit-history summary {
    width: fit-content;
    cursor: pointer;
    color: #d82770;
    font-weight: 700;
}

.community-edit-history ol {
    margin: 8px 0 0 18px;
}
