/* Compact, responsive directory for community groups. */
body.community-groups-page { background: #f0f2f5; }
.community-groups [hidden] { display: none !important; }
.community-groups .community-social-heading { min-height: 84px; }
.community-groups-kicker { margin: 0 0 4px; color: #bc541d; font-size: 10px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.community-groups .community-social-heading p:not(.community-groups-kicker) { max-width: 56ch; }
.community-groups-layout { grid-template-columns: minmax(200px, 230px) minmax(0, 1fr) minmax(205px, 250px); }
.community-groups-content { display: grid; align-content: start; gap: 10px; min-width: 0; }
.community-groups-tools { display: flex; align-items: center; gap: 12px; padding: 8px; border: 1px solid #e1e5ea; border-radius: 10px; background: #fff; }
.community-groups-tools .community-search { flex: 1; min-height: 38px; border-radius: 7px; background: #f6f7f9; }
.community-groups-tools .community-search input { font-size: 12px; }
.community-groups-tools .community-feed-count { flex: 0 0 auto; }
.community-groups-message { margin: 0; padding: 9px 12px; border: 1px solid #cfe3d9; border-radius: 8px; background: #f2faf5; color: #276746; font-size: 12px; }
.community-groups-message.is-error { border-color: #f1d1c9; background: #fff7f4; color: #a34230; }
.community-groups-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 10px; }
.community-group-card { min-width: 0; padding: 14px; border: 1px solid #e1e5ea; border-radius: 10px; background: #fff; box-shadow: 0 1px 2px rgb(16 24 40 / 4%); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.community-group-card:hover { transform: translateY(-2px); border-color: #c9d8e6; box-shadow: 0 9px 24px rgb(19 48 78 / 8%); }
.community-group-open { display: flex; align-items: center; gap: 10px; color: #1b2d45; text-decoration: none; }
.community-group-avatar { display: grid; flex: 0 0 44px; width: 44px; height: 44px; place-items: center; border: 1px solid #e1e8f0; border-radius: 12px; object-fit: cover; background: #eef4fa; }
.community-group-initial { background: linear-gradient(145deg,#164a78,#2c86b4); color: #fff; font-size: 18px; font-weight: 700; }
.community-group-card-copy { display: grid; min-width: 0; gap: 4px; }
.community-group-card-copy strong { overflow: hidden; color: #1d3552; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.community-group-card-copy small { color: #7a8695; font-size: 10px; line-height: 1.4; }
.community-group-arrow { margin-left: auto; color: #b75a20; font-size: 17px; }
.community-group-card > p { display: -webkit-box; min-height: 44px; margin: 12px 0; overflow: hidden; color: #627186; font-size: 11px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.community-group-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px solid #edf0f3; }
.community-group-card-actions a,.community-group-card-actions button,.community-group-member { display: inline-flex; align-items: center; justify-content: center; min-height: 31px; padding: 0 10px; border: 1px solid #dbe4ed; border-radius: 7px; background: #fff; color: #285982; font: 600 10px 'Instrument Sans',sans-serif; text-decoration: none; cursor: pointer; }
.community-group-card-actions a:hover,.community-group-card-actions button:hover { border-color: #abc3d8; background: #f4f8fc; }
.community-group-member { border-color: #cfe5d8; background: #f2faf5; color: #28714b; cursor: default; }
.community-group-create,.community-group-detail-card,.community-group-detail-section { padding: 15px; border: 1px solid #e1e5ea; border-radius: 10px; background: #fff; box-shadow: 0 1px 2px rgb(16 24 40 / 4%); }
.community-group-create h2 { margin: 0; color: #203650; font: 700 17px 'Bricolage Grotesque','Instrument Sans',sans-serif; }
.community-group-create > p { margin: 4px 0 11px; color: #758195; font-size: 11px; }
.community-group-create form { display: grid; gap: 9px; }
.community-group-create label { display: grid; gap: 5px; color: #394f68; font-size: 11px; font-weight: 650; }
.community-group-create input,.community-group-create textarea { width: 100%; min-height: 36px; padding: 8px 10px; border: 1px solid #dbe3ec; border-radius: 7px; background: #fff; color: #203650; font: 12px 'Instrument Sans',sans-serif; }
.community-group-create textarea { resize: vertical; }
.community-group-form-actions { display: flex; gap: 8px; }
.community-group-back { display: inline-flex; align-items: center; min-height: 32px; color: #28669d; font-size: 11px; font-weight: 650; text-decoration: none; }
.community-group-detail { display: grid; gap: 10px; }
.community-group-detail-head { display: flex; align-items: center; gap: 12px; }
.community-group-detail-head .community-group-avatar { flex-basis: 54px; width: 54px; height: 54px; font-size: 21px; }
.community-group-detail-head h2 { margin: 0; color: #1b2d45; font: 700 20px/1.2 'Bricolage Grotesque','Instrument Sans',sans-serif; }
.community-group-detail-head p:last-child { margin: 4px 0 0; color: #7a8695; font-size: 10px; }
.community-group-description { margin: 13px 0 0; color: #536174; font-size: 12px; line-height: 1.6; }
.community-group-detail-section h3 { display: flex; align-items: center; gap: 7px; margin: 0 0 10px; color: #213b5a; font: 700 14px 'Bricolage Grotesque','Instrument Sans',sans-serif; }
.community-group-detail-section h3 span { color: #8390a0; font: 600 10px 'Instrument Sans',sans-serif; }
.community-group-members { display: flex; flex-wrap: wrap; gap: 7px; }
.community-group-member-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 3px 8px 3px 4px; border: 1px solid #edf0f3; border-radius: 99px; color: #46596f; font-size: 10px; }
.community-group-member-chip i { display: grid; width: 20px; height: 20px; place-items: center; border-radius: 50%; background: #e9f2fa; color: #28669d; font-size: 9px; font-style: normal; font-weight: 700; }
.community-group-member-chip small { color: #9a6b2a; font-size: 9px; }
.community-group-muted { margin: 0; color: #8390a0; font-size: 11px; }
.community-group-posting-note { grid-column: 2 / -1; margin: -3px 0 0; color: #7a8695; font-size: 10px; }
.community-group-section-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.community-group-section-title a { color: #28669d; font-size: 10px; font-weight: 650; text-decoration: none; }
.community-group-posts { display: grid; gap: 8px; }
.community-group-posts article { padding: 9px 10px; border-radius: 7px; background: #f6f8fa; }
.community-group-posts strong { color: #344a64; font-size: 10px; }
.community-group-posts p { margin: 4px 0; color: #536174; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.community-group-posts small { color: #8995a3; font-size: 9px; }
@media (max-width: 1060px) { .community-groups-layout { grid-template-columns: minmax(185px, 220px) minmax(0,1fr); } .community-groups-layout > .community-social-right { display: none; } }
@media (max-width: 700px) { .community-groups .community-social-heading { align-items: flex-start; flex-direction: column; padding: 13px 0; } .community-groups .community-social-heading h1 { font-size: 22px; } .community-groups-layout { grid-template-columns: minmax(0,1fr); gap: 10px; } .community-groups-layout > .community-social-left { display: none; } .community-groups-grid { grid-template-columns: minmax(0,1fr); } .community-groups-tools { align-items: stretch; flex-direction: column; } .community-groups-tools .community-feed-count { padding: 0 3px; } }
