.community-hero {
    color: #fff;
    background:
        radial-gradient(circle at 82% 10%, rgba(244, 162, 97, .32), transparent 28%),
        linear-gradient(135deg, #14213d 0%, #25385f 100%);
}

.community-hero__inner {
    min-height: 245px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding-block: clamp(2.75rem, 6vw, 4.5rem);
}

.community-hero h1 {
    margin: .45rem 0 .65rem;
    font-size: clamp(2.4rem, 5vw, 4.25rem);
    line-height: 1;
    letter-spacing: -.05em;
}

.community-hero p {
    max-width: 710px;
    margin: 0;
    color: rgba(255, 255, 255, .76);
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.65;
}

.community-hero .eyebrow { color: #ffc894; }

.community-hero__badge {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .9rem 1rem;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 1rem;
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(10px);
}

.community-hero__badge > .material-icons { color: #ffc894; font-size: 1.7rem; }
.community-hero__badge span:last-child { display: grid; }
.community-hero__badge small { color: rgba(255, 255, 255, .62); }

.community-page {
    min-height: 70vh;
    padding-block: 2rem 5rem;
    background: #eef0f4;
}

.community-layout {
    display: grid;
    grid-template-columns: minmax(190px, 230px) minmax(0, 680px) minmax(220px, 290px);
    justify-content: center;
    gap: 1.25rem;
    align-items: start;
}

.community-panel {
    border: 1px solid rgba(20, 33, 61, .1);
    border-radius: .9rem;
    background: #fff;
    box-shadow: 0 2px 8px rgba(20, 33, 61, .05);
}

.community-left,
.community-right {
    position: sticky;
    top: 6rem;
    display: grid;
    gap: 1rem;
}

.community-menu { padding: .55rem; }

.community-menu a {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .7rem .75rem;
    border-radius: .65rem;
    color: var(--pr-ink);
    font-size: .9rem;
    font-weight: 700;
}

.community-menu a:hover,
.community-menu a.active {
    color: var(--pr-ink);
    background: #edf0f6;
    text-decoration: none;
}

.community-menu a.active .material-icons { color: #a64f19; }
.community-menu .material-icons { font-size: 1.3rem; }

.topic-panel { padding: 1rem; }
.topic-panel h2,
.welcome-panel h2,
.rules-panel h2,
.newsroom-nudge h2 { margin: 0 0 .8rem; color: var(--pr-ink); font-size: 1rem; font-weight: 800; }

.topic-panel a {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .48rem .25rem;
    color: var(--pr-ink-soft);
    font-size: .83rem;
    font-weight: 600;
}

.topic-panel a:hover,
.topic-panel a.active { color: #8b4316; text-decoration: none; }
.topic-panel .material-icons { width: 1.1rem; font-size: 1.05rem; }
.topic-dot { width: .78rem; height: .78rem; margin-inline: .15rem; border-radius: 50%; background: #8b96aa; }

.community-feed { min-width: 0; display: grid; gap: 1rem; }

.composer-card { padding: 1rem; }
.composer-card__top { display: flex; align-items: center; gap: .75rem; }

.community-avatar {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(145deg, #25385f, #14213d);
    font-weight: 800;
    letter-spacing: -.03em;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .16);
}

.community-avatar--medium { width: 44px; height: 44px; font-size: .82rem; }
.community-avatar--small { width: 34px; height: 34px; font-size: .68rem; }
.community-avatar .material-icons { font-size: 1.35rem; }

.composer-prompt {
    flex: 1;
    min-width: 0;
    min-height: 44px;
    padding: .65rem 1rem;
    border: 1px solid #d7dce5;
    border-radius: 999px;
    color: #5a6579;
    background: #f1f3f7;
    text-align: left;
}

.composer-prompt:hover { background: #e9ecf2; }
.composer-form { padding-top: 1rem; }
.composer-form textarea { resize: vertical; }

.composer-form__footer {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-top: .8rem;
    padding-top: .8rem;
    border-top: 1px solid #e3e6ec;
}

.composer-category { display: flex; align-items: center; gap: .4rem; margin-right: auto; }
.composer-category .material-icons { color: #a64f19; font-size: 1.15rem; }
.composer-category .form-select { min-width: 155px; border-color: #d7dce5; }
.composer-count { color: #798397; font-size: .75rem; }
.composer-login-note { display: flex; align-items: center; gap: .35rem; margin: .8rem 0 0 3.5rem; color: #6d778a; font-size: .78rem; }
.composer-login-note .material-icons { font-size: .95rem; }

.feed-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-inline: .3rem;
    color: #5f697d;
    font-size: .85rem;
}

.feed-filter a { font-weight: 700; }
.community-posts { display: grid; gap: 1rem; }
.post-card { scroll-margin-top: 6rem; overflow: hidden; }

.post-card__header {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: 1rem 1rem .55rem;
}

.post-author { flex: 1; min-width: 0; }
.post-author > div:first-child { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem; color: var(--pr-ink); font-size: .93rem; }

.local-badge {
    display: inline-flex;
    align-items: center;
    gap: .15rem;
    padding: .1rem .38rem;
    border-radius: 999px;
    color: #15583d;
    background: #e1f4eb;
    font-size: .64rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.local-badge .material-icons { font-size: .78rem; }

.post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .25rem;
    margin-top: .12rem;
    color: #717b8e;
    font-size: .75rem;
}

.post-meta .material-icons { font-size: .78rem; }

.post-more {
    display: inline-flex;
    padding: .25rem;
    border: 0;
    border-radius: 50%;
    color: #657084;
    background: transparent;
}

.post-more:hover { background: #eef0f4; }

.post-card__content {
    padding: .45rem 1rem 1rem;
    color: #202a3d;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-size: .98rem;
    line-height: 1.58;
}

.post-card__summary {
    min-height: 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-inline: 1rem;
    padding-block: .4rem;
    color: #687286;
    border-bottom: 1px solid #e4e7ed;
    font-size: .78rem;
}

.post-card__summary > span { display: flex; align-items: center; gap: .3rem; }
.post-card__summary button { padding: 0; border: 0; color: inherit; background: none; }
.post-card__summary button:hover { text-decoration: underline; }
.reaction-orb { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; color: #fff; background: #315ca8; font-size: .72rem; }

.post-card__actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .25rem;
    padding: .35rem .7rem;
}

.post-card__actions form { display: flex; }

.post-action {
    width: 100%;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .35rem .5rem;
    border: 0;
    border-radius: .45rem;
    color: #586378;
    background: transparent;
    font-size: .82rem;
    font-weight: 700;
}

.post-action:hover { color: var(--pr-ink); background: #eef0f4; }
.post-action.is-active { color: #28549c; }
.post-action .material-icons { font-size: 1.12rem; }

.comment-section { border-top: 1px solid #edf0f4; }
.comment-list { display: grid; gap: .65rem; padding: .85rem 1rem .25rem; }
.community-comment { display: flex; align-items: flex-start; gap: .55rem; }
.community-comment > div:last-child { min-width: 0; }

.comment-bubble {
    display: inline-block;
    max-width: 100%;
    padding: .55rem .75rem;
    border-radius: .9rem;
    color: #283246;
    background: #eef0f4;
    font-size: .82rem;
}

.comment-bubble strong { display: block; margin-bottom: .1rem; font-size: .78rem; }
.comment-bubble p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.community-comment time { display: block; margin: .15rem 0 0 .55rem; color: #7a8496; font-size: .67rem; }

.comment-form {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .75rem 1rem 1rem;
}

.comment-form .form-control { min-height: 38px; border: 0; border-radius: 999px; background: #eef0f4; font-size: .82rem; }
.comment-form button { display: inline-flex; padding: .45rem; border: 0; color: #28549c; background: transparent; }
.comment-form button .material-icons { font-size: 1.2rem; }

.welcome-panel,
.rules-panel,
.newsroom-nudge { padding: 1.1rem; }
.welcome-panel__icon { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: .85rem; border-radius: .75rem; color: #8b4316; background: #f8e2c9; }
.welcome-panel p,
.newsroom-nudge p { margin: 0; color: #626d80; font-size: .82rem; line-height: 1.55; }

.rules-panel ol { display: grid; gap: .85rem; margin: 0; padding: 0; list-style: none; }
.rules-panel li { display: grid; grid-template-columns: 25px 1fr; gap: .55rem; }
.rules-panel li > span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: #7a390f; background: #f8e2c9; font-size: .7rem; font-weight: 800; }
.rules-panel p { margin: 0; color: #626d80; font-size: .76rem; line-height: 1.45; }
.rules-panel p strong { color: #303a4e; }
.rules-panel > a { display: inline-flex; align-items: center; gap: .25rem; margin-top: 1rem; font-size: .76rem; font-weight: 800; }
.rules-panel > a .material-icons { font-size: .9rem; }
.newsroom-nudge .eyebrow { margin-bottom: .35rem; font-size: .63rem; }
.newsroom-nudge .btn { margin-top: .9rem; font-size: .78rem; }

.community-empty { padding: clamp(2.5rem, 7vw, 4.5rem) 1.5rem; text-align: center; }
.community-empty > .material-icons { width: 58px; height: 58px; display: inline-grid; place-items: center; border-radius: 1rem; color: #8b4316; background: #f8e2c9; font-size: 1.8rem; }
.community-empty h2 { margin: 1rem 0 .4rem; font-size: 1.35rem; }
.community-empty p { max-width: 430px; margin: 0 auto 1.25rem; color: #687286; }

@media (max-width: 1199.98px) {
    .community-layout { grid-template-columns: 210px minmax(0, 680px); }
    .community-right { display: none; }
}

@media (max-width: 767.98px) {
    .community-hero__inner { min-height: 220px; padding-block: 2.5rem; }
    .community-hero__badge { display: none; }
    .community-page { padding-block: 1rem 3rem; }
    .community-layout { display: block; }
    .community-left { position: static; display: block; margin-bottom: 1rem; }
    .community-menu { display: none; }
    .topic-panel { display: flex; gap: .45rem; padding: .7rem; overflow-x: auto; scrollbar-width: thin; }
    .topic-panel h2 { display: none; }
    .topic-panel a { flex: 0 0 auto; padding: .45rem .65rem; border: 1px solid #dce1e9; border-radius: 999px; background: #fff; }
    .topic-panel a.active { color: #fff; border-color: var(--pr-ink); background: var(--pr-ink); }
    .topic-panel a .material-icons,
    .topic-panel a .topic-dot { display: none; }
    .post-card,
    .composer-card { border-radius: .7rem; }
}

@media (max-width: 479.98px) {
    .community-hero h1 { font-size: 2.3rem; }
    .community-hero p { font-size: .92rem; }
    .composer-card { padding: .8rem; }
    .composer-form__footer { flex-wrap: wrap; }
    .composer-category { width: 100%; }
    .composer-category .form-select { flex: 1; }
    .composer-login-note { margin-left: 0; }
    .post-card__header { padding-inline: .8rem; }
    .post-card__content { padding-inline: .8rem; }
    .post-card__summary { margin-inline: .8rem; }
    .post-action { font-size: .75rem; }
    .post-action .material-icons { font-size: 1rem; }
}
