/* Community area (groups, events, messages). Builds on /app.css tokens. */
.community h3 { font-size: 1rem; margin: 14px 0 8px; }
.csub { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 26px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.csub a { font-size: .9rem; font-weight: 600; color: var(--ink-soft); text-decoration: none; padding: 6px 12px; border-radius: 999px; }
.csub a:hover { color: var(--ink); background: var(--surface); }
.csub a[aria-current="page"] { color: var(--bg); background: var(--ink); }
.cbadge { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 999px; background: var(--coral); color: #fff; font-size: .74rem; line-height: 18px; text-align: center; }

.cnarrow { max-width: 760px; }
.cactions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 16px 0 0; }
.cactions .btn { padding: 11px 20px; }
.btn.small { padding: 6px 12px; font-size: .86rem; }
form.inline { display: inline; }
.csec { margin: 0 0 34px; }
.csec > h2 small { font-weight: 400; color: var(--ink-soft); font-size: .9rem; }
.csechead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.csechead h2 { margin: 0; }
.csechead .btn { padding: 8px 16px; font-size: .9rem; }

.cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.ccard { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .15s; }
.ccard:hover { transform: translateY(-2px); }
.ccard b { font-size: 1.04rem; }
.ccard p { margin: 6px 0 0; overflow-wrap: anywhere; }

.clist { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.crow { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.crow:last-child { border-bottom: 0; }
.crow:hover { background: var(--bg); }
.cconv { flex-direction: row; align-items: center; gap: 12px; }
.cconv > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.cconv.unread b::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-inline-start: 8px; border-radius: 50%; background: var(--coral); vertical-align: middle; }

.cav { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-weight: 700; font-size: .9rem; }
.cav.big { width: 64px; height: 64px; font-size: 1.3rem; }
.cprof { display: flex; align-items: center; gap: 14px; }
.cprof h1 { margin: 0 0 4px; }
h1.cprof a { color: inherit; text-decoration: none; }
.cwho { font-weight: 700; color: var(--ink); text-decoration: none; }
a.cwho:hover { text-decoration: underline; }
.cwho + small { color: var(--ink-soft); font-weight: 600; }
.cwho.gone { color: var(--ink-soft); font-weight: 600; }
.clink { color: var(--ink-soft); font-size: .86rem; }

.cbody { overflow-wrap: anywhere; }
.cbody p { margin: 0 0 10px; }
.cbody p:last-child { margin-bottom: 0; }
.head .cbody { max-width: 46em; color: var(--ink-soft); margin-top: 10px; }

.cpost { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; margin-bottom: 12px; }
.cpost header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; line-height: 1.3; }
.cpost footer { margin-top: 12px; font-size: .86rem; }
.cpost.gone { padding: 12px 18px; background: transparent; box-shadow: none; }
.creplies { font-size: 1.05rem; margin: 26px 0 12px; }
.ccompose { margin: 16px 0; }
.ccompose summary { cursor: pointer; }
details.card { margin-bottom: 14px; }
details.card summary { cursor: pointer; }
details.card[open] summary { margin-bottom: 16px; }
.cdanger { border-color: var(--coral-soft); }

.cmembers { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.cmembers li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cmembers form { margin-inline-start: auto; }

.cfacts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0 0 16px; }
.cfacts dt { font-weight: 700; color: var(--ink-soft); font-size: .9rem; }
.cfacts dd { margin: 0; overflow-wrap: anywhere; }
.cfacts .clocal { display: block; color: var(--ink-soft); font-size: .9rem; }
.crow .clocal { display: inline; font-size: inherit; }
.crow .clocal::before { content: " · "; }
@media (max-width: 480px) { .cfacts { grid-template-columns: 1fr; gap: 2px; } .cfacts dd { margin-bottom: 10px; } }

.cthread { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.cmsg { max-width: 82%; align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 18px 18px 18px 6px; padding: 10px 14px; overflow-wrap: anywhere; }
.cmsg.me { align-self: flex-end; background: var(--blue-soft); border-color: transparent; border-radius: 18px 18px 6px 18px; }
.cmsg p { margin: 0 0 6px; }
.cmsg small { font-size: .76rem; }

.cfilter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.cfilter input[type=search] { flex: 1 1 240px; min-width: 0; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: inherit; }
.cfilter select { flex: 1 1 160px; width: auto; }
.cfilter .btn { padding: 10px 18px; }

.cform .check { margin-bottom: 10px; }
.crules h2 { margin-top: 0; }
.crules h2 + p { margin-top: 0; }

/* Chat-group listings */
.cchat { display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: var(--shadow); overflow-wrap: anywhere; }
.cchat header { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cchat h3 { margin: 4px 0 0; font-size: 1.04rem; }
.cchat p { margin: 0; }
.cchat footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 8px; }
.cplat { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); }
.cnote { font-size: .84rem; color: var(--ink-soft); background: var(--bg); border-radius: 10px; padding: 8px 10px; }
.cnote.warn { background: var(--coral-soft); color: #b2381c; font-weight: 600; }
@media (prefers-color-scheme: dark) { .cnote.warn { color: #ffb4a0; } }
.crulelist { margin: 12px 0; padding-inline-start: 20px; }
.crulelist li { margin: 2px 0; }
