/* Community page (Figma page 06 · Community). Page-specific pieces only; tokens from app.css. */

/* Space filter chips (Forum active) */
.cm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cm-chips > .chip { border: 0; background: var(--surface-high); color: var(--ink-soft); }
.cm-chips > .chip[aria-pressed="true"] { background: var(--rust-wash); color: var(--rust-ink); }
.cm-chips > .chip:hover { color: var(--ink); }

/* Two columns: 712 / 400 at 1128 wide (620 / 348 at 984) */
.cm-split { display: grid; grid-template-columns: minmax(0, 712fr) minmax(0, 400fr); gap: 16px; align-items: start; }
.cm-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

/* Composer */
.cm-composer { display: flex; align-items: center; gap: 12px; }
.cm-field { position: relative; flex: 1 1 0; min-width: 0; display: block; }
.cm-field input { width: 100%; padding: 11px 12px; border-radius: 10px; background: var(--field); border: 1px solid var(--line); color: var(--ink); font: inherit; line-height: 22px; }
.cm-field input:focus-visible { outline: 2px solid var(--rust-bright); outline-offset: 0; }
.cm-ph { position: absolute; left: 13px; right: 13px; top: 12px; color: var(--faint); pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-field input:not(:placeholder-shown) + .cm-ph { display: none; }

/* Discussions */
.cm-feed { gap: 16px; }
.cm-sort { display: flex; align-items: center; white-space: nowrap; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--rust-ink); }
.cm-sort > button { padding: 0; border: 0; background: none; color: inherit; font-weight: 600; }
.cm-sort > button:hover { text-decoration: underline; }
.cm-sort > span { white-space: pre; }
.cm-post { display: flex; flex-direction: column; gap: 8px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.cm-post-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cm-post-title { margin: 0; font-size: 15px; line-height: 22px; font-weight: 600; }
.cm-post-meta { display: flex; align-items: center; gap: 6px; font-size: 13px; line-height: 18px; color: var(--muted); }

/* Side cards */
.cm-raised { background: var(--surface-raised); }
.cm-link { padding: 0; border: 0; background: none; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--rust-ink); }
.cm-row { display: flex; align-items: center; gap: 8px; }
.cm-gap-12 { gap: 12px; }
.cm-session { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.cm-session > div { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cm-session .btn { padding: 10px 16px; line-height: 22px; }
.cm-session .btn[aria-pressed="true"] { background: var(--rust-wash); color: var(--rust-ink); border-color: var(--rust-deep); }
.cm-group { display: flex; align-items: center; gap: 10px; }
.cm-foot { display: flex; flex-direction: column; gap: 4px; }
.cm-foot a:hover { text-decoration: underline; }

@media (max-width: 1199px) {
  .cm-header { align-items: center; flex-wrap: nowrap; }
  .cm-split { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .cm-col { gap: 24px; }
}
@media (max-width: 767px) {
  .cm-header { flex-direction: column; align-items: stretch; }
  .cm-split, .cm-col { gap: 20px; }
}
