/* Communities. Built on web/urbanx.css (cards, chips, avatars) and venues/venues.css (slot chips, form errors). */

.community-icon.kind-group { background: #deebfb; }
.community-icon.kind-coach { background: #f7e7d5; }
.community-icon.kind-campus { background: #e6e2f4; }

.your-communities { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.your-communities .chip { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }

.community-card { display: flex; flex-direction: column; }
.community-card h3 a { color: var(--ink); }
.community-card .between { margin-top: auto; padding-top: 14px; }
.community-card .card-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.community-meta { font-size: 9px; color: var(--muted); }
.community-empty { grid-column: 1 / -1; }

.community-hero { display: flex; gap: 16px; align-items: flex-start; padding: 20px; }
.community-hero .community-icon { width: 64px; height: 64px; font-size: 30px; flex: none; }
.community-hero p { margin: 10px 0 0; font-size: 12px; line-height: 1.65; color: var(--muted); white-space: pre-line; }
.page-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.page-actions form { margin: 0; }

.board-post { display: grid; gap: 8px; padding: 14px 0; border-top: 1px solid var(--line); }
.board-post:first-of-type { border-top: 0; }
.board-post .post-body { margin: 0; font-size: 12px; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }
.board-compose { display: grid; gap: 10px; margin: 12px 0 6px; }
.board-compose textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); padding: 11px 12px; color: var(--ink); font-size: 12px; resize: vertical; }
.board-compose .btn { justify-self: end; }

.member-row { display: flex; align-items: center; gap: 9px; }
.member-row .person-info { flex: 1; min-width: 0; }
.member-actions { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.member-actions form { margin: 0; }
.btn.tiny { padding: 5px 8px; font-size: 10px; border-radius: 8px; }
.link-danger { border: 0; background: none; padding: 0; color: var(--red); font: inherit; font-size: 10px; font-weight: 800; cursor: pointer; }

.check-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.location-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 10px; color: var(--muted); }
.danger-zone { border-top: 1px solid var(--line); padding-top: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

@media (max-width: 1100px) { .community-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .community-grid { grid-template-columns: 1fr; } .community-hero { flex-direction: column; } }

/* Side column cards keep their own height instead of stretching to the main column. */
.profile-columns > .feed-side { align-content: start; }
