/* Community forum — builds on css/noma-shared.css tokens (.glass, .btn, .pill). */
.community { max-width: 920px; margin: 0 auto; padding: 46px 20px 80px; }
.community__head { text-align: center; margin-bottom: 28px; }
.community__head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 10px 0 8px; }
.community__head p { color: var(--ink-soft, #5b6470); max-width: 560px; margin: 0 auto; }

/* auth bar (signed-in chip) */
.auth-bar { display: flex; align-items: center; gap: 10px; justify-content: flex-end; min-height: 40px; margin-bottom: 14px; flex-wrap: wrap; }
.auth-bar .who { display: flex; flex-direction: column; line-height: 1.15; margin-right: 6px; }
.auth-bar .who strong { font-size: 0.92rem; }
.muted { color: var(--ink-faint, #8a93a0); font-size: 0.82rem; }

/* sign-in gate */
.auth-gate { max-width: 420px; margin: 30px auto; padding: 32px 28px; text-align: center; }
.auth-gate h2 { margin: 0 0 6px; }
.auth-gate p { color: var(--ink-soft, #5b6470); margin: 0 0 22px; font-size: 0.92rem; }
.auth-gate .sep { display: flex; align-items: center; gap: 10px; color: var(--ink-faint, #8a93a0); font-size: 0.8rem; margin: 16px 0; }
.auth-gate .sep::before, .auth-gate .sep::after { content: ""; flex: 1; height: 1px; background: rgba(120,130,140,0.25); }
.auth-gate input { width: 100%; padding: 11px 13px; margin: 6px 0; border-radius: 12px; border: 1px solid rgba(120,130,140,0.28); background: rgba(255,255,255,0.6); font: inherit; }
.auth-gate .fineprint { margin-top: 18px; font-size: 0.8rem; color: var(--ink-faint, #8a93a0); }
.auth-gate .fineprint a { color: var(--accent); font-weight: 600; }
.btn--block { width: 100%; justify-content: center; }
.btn--google { display: flex; align-items: center; gap: 10px; }

/* composer + filters */
.composer { padding: 18px; margin-bottom: 16px; display: grid; gap: 10px; }
.composer__row { display: flex; gap: 10px; flex-wrap: wrap; }
.composer input[type=text], .composer textarea, .composer select,
.comment-form textarea { width: 100%; padding: 11px 13px; border-radius: 12px; border: 1px solid rgba(120,130,140,0.28); background: rgba(255,255,255,0.55); font: inherit; resize: vertical; }
.composer select { width: auto; min-width: 160px; }
.composer__row--end { justify-content: space-between; align-items: center; }

.filters { display: flex; gap: 10px; align-items: center; margin: 6px 2px 16px; flex-wrap: wrap; }
.filters label { font-size: 0.82rem; color: var(--ink-soft,#5b6470); }
.filters select { padding: 7px 10px; border-radius: 10px; border: 1px solid rgba(120,130,140,0.28); background: rgba(255,255,255,0.6); font: inherit; }

/* post cards */
.post-list { display: grid; gap: 12px; }
.card { padding: 16px 18px; cursor: pointer; transition: transform 0.15s var(--ease, ease), box-shadow 0.15s; }
.card:hover { transform: translateY(-2px); }
.card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.card__meta { display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.card__title { font-family: Georgia, "Times New Roman", serif; font-size: 1.08rem; margin: 0 0 4px; }
.card__excerpt { color: var(--ink-soft, #5b6470); font-size: 0.9rem; margin: 0 0 12px; line-height: 1.5; }
.card__foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.card__author { display: flex; align-items: center; gap: 6px; font-size: 0.84rem; font-weight: 600; }

.posts-empty { text-align: center; color: var(--ink-faint,#8a93a0); padding: 40px 0; }

/* chips + badges */
.chip { font-size: 0.72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; letter-spacing: 0.02em; }
.chip--bug { background: rgba(239,68,68,0.14); color: #d33; }
.chip--help { background: rgba(37,99,235,0.14); color: #2563eb; }
.chip--feedback { background: rgba(139,92,246,0.14); color: #7c5cff; }
.chip--status { border: 1px solid transparent; }
.chip--open { background: rgba(120,130,140,0.16); color: #56606c; }
.chip--completed { background: var(--green-glow); color: var(--green-deep); }
.chip--fixed { background: var(--green-glow); color: var(--green-deep); }
.badge { font-size: 0.64rem; font-weight: 800; padding: 2px 7px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em; }
.badge--staff { background: linear-gradient(135deg, var(--archivo-lime), var(--archivo-teal)); color: #08321f; }

/* avatars */
.ava { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; flex: none; }
.ava--txt { background: linear-gradient(135deg, var(--archivo-lime), var(--archivo-teal)); color: #08321f; font-weight: 800; font-size: 0.85rem; }
.ava--sm { width: 26px; height: 26px; font-size: 0.78rem; }

/* buttons */
.btn--sm { padding: 7px 12px; font-size: 0.82rem; }
.link-danger { background: none; border: none; color: #d33; font: inherit; font-weight: 600; cursor: pointer; padding: 6px 0; }
.link-danger--sm { font-size: 0.78rem; font-weight: 600; }

/* thread overlay */
.thread { position: fixed; inset: 0; z-index: 80; display: none; align-items: flex-start; justify-content: center; padding: 40px 16px; background: rgba(12,18,16,0.45); backdrop-filter: blur(4px); overflow-y: auto; }
.thread.open { display: flex; }
.thread__panel { width: 100%; max-width: 680px; padding: 26px 26px 22px; position: relative; }
.thread__close { position: absolute; top: 14px; right: 16px; background: none; border: none; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--ink-soft,#5b6470); }
.thread__title { font-family: Georgia, "Times New Roman", serif; font-size: 1.4rem; margin: 8px 0 6px; }
.thread__body { white-space: pre-wrap; line-height: 1.6; margin: 14px 0 18px; }
.thread__status { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid rgba(120,130,140,0.18); }

/* comments */
.comments { margin: 16px 0; display: grid; gap: 14px; border-top: 1px solid rgba(120,130,140,0.18); padding-top: 16px; }
.comment { display: flex; gap: 10px; }
.comment--staff .comment__text { border-left: 2px solid var(--green); padding-left: 10px; }
.comment__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 0.85rem; }
.comment__text { white-space: pre-wrap; line-height: 1.55; margin: 3px 0 0; font-size: 0.92rem; }
.comment__actions { margin-left: auto; }
.comment-form { display: flex; gap: 10px; align-items: flex-end; margin-top: 8px; }
.comment-form textarea { flex: 1; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px); background: #16181d; color: #fff; padding: 11px 18px; border-radius: 12px; font-size: 0.88rem; opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s; z-index: 120; max-width: 90vw; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.warn { background: #b4231f; }
.toast.ok { background: var(--green-deep); }

@media (max-width: 560px) {
  .community { padding-top: 60px; }
  .comment-form { flex-direction: column; align-items: stretch; }
}
