.comm-spaces { display:flex; gap:8px; margin-bottom:24px; flex-wrap:wrap; }
.comm-spaces:empty { display:none; }
.comm-search { margin:0 0 24px; padding:20px 22px; border:1px solid var(--c-ink-100); border-radius:14px; background:var(--surface-paper); }
.comm-search label { display:block; font-size:14px; color:var(--c-ink-700); margin-bottom:10px; }
.comm-search-row { display:flex; gap:10px; align-items:center; }
.comm-search-row input { flex:1; min-width:0; width:100%; padding:12px 14px; border:1px solid var(--c-ink-200); background:var(--surface-field); color:var(--c-ink-900); border-radius:10px; font:inherit; font-size:14px; }
.comm-search-row input:focus { outline:2px solid var(--c-ink-400); outline-offset:2px; }
.comm-search-row .btn { flex:none; width:auto; margin:0; }
.comm-search-topics { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:12px; font-size:14px; color:var(--c-ink-500); }
.comm-search-topics button { border:0; padding:3px 5px; background:transparent; color:var(--c-ink-600); text-decoration:underline; text-underline-offset:3px; cursor:pointer; font:inherit; }
#commSearchSummary { margin:12px 0 0; color:var(--c-ink-600); font-size:14px; line-height:1.8; overflow-wrap:anywhere; }
#commSearchSummary:empty { display:none; }
.community-searching .campus-intro { display:none; }
.comm-search-excerpt { padding:12px 14px; background:var(--c-ink-50); border-left:2px solid var(--c-ink-200); margin:12px 0; border-radius:0 8px 8px 0; }
.comm-search-excerpt > span { color:var(--c-ink-500); font-size:13px; }
.comm-search-excerpt p { margin:6px 0 0; font-size:14px; color:var(--c-ink-700); line-height:1.8; overflow-wrap:anywhere; }
.post-item mark { color:var(--c-ink-900); background:var(--c-warn-border); padding:0 1px; border-radius:2px; }
.comm-search-empty .btn { width:auto; margin-top:16px; }
.comm-load-more { display:block; width:auto; margin:20px auto; }
.comm-search [hidden], .comm-load-more[hidden] { display:none !important; }
.comm-spaces button { border:1px solid var(--c-ink-200); border-radius:999px; padding:9px 18px; background:transparent; color:var(--c-ink-600); font:inherit; font-size:14px; cursor:pointer; }
.comm-spaces button.active { background:var(--c-ink-900); border-color:var(--c-ink-900); color:var(--surface-paper); }
.campus-intro { display:grid; grid-template-columns:minmax(0,1fr) 180px; gap:24px; padding:28px 32px; margin-bottom:24px; border:1px solid var(--c-ink-100); border-radius:18px; background:var(--surface-paper); }
.campus-eyebrow { color:var(--c-accent-600); font-size:13px; letter-spacing:2px; }
.campus-intro h2 { font:500 30px/1.55 var(--serif); margin:12px 0; color:var(--c-ink-900); }
.campus-intro p { max-width:560px; color:var(--c-ink-500); font-size:14px; line-height:1.9; margin:0; }
.campus-intro .btn-group { display:flex; align-items:center; gap:10px; margin-top:20px; flex-wrap:wrap; }
.campus-intro .btn-group .btn { width:auto; margin:0; }
.campus-sketch { width:100%; align-self:center; stroke:var(--c-ink-500); fill:none; stroke-width:1.2; stroke-linecap:round; stroke-linejoin:round; }
.campus-guide p { line-height:1.9; font-size:14px; color:var(--c-ink-600); }
.campus-guide button { margin-top:8px; }
.tag.campus-school { background:var(--c-ink-50); border:1px solid var(--c-ink-200); color:var(--c-ink-800); }
.campus-comment-tags { display:flex; flex-wrap:wrap; gap:5px; margin:8px 0; }
.campus-comment-tags .tag { font-size:13px; }
.campus-reply { margin-top:8px; }
.campus-identity { font-size:14px; line-height:1.9; color:var(--c-ink-500); padding:12px; border:1px solid var(--c-ink-100); border-radius:8px; margin-bottom:16px; }
.campus-identity button { padding:0 4px; font:inherit; cursor:pointer; color:var(--c-primary-700); border:0; background:none; text-decoration:underline; }
.campus-space .post-title { line-height:1.65; }
.campus-space .comm-side #groupCard, .campus-space .comm-side #pointRulesCard { display:none; }
@media(max-width:600px) {
  .comm-search { padding:16px; }
  .comm-search-row { flex-wrap:wrap; gap:8px; }
  .comm-search-row input { flex-basis:100%; }
  .comm-search-row .btn { padding:9px 18px; }
  .campus-intro { grid-template-columns:1fr; padding:22px; gap:0; }
  .campus-intro h2 { font-size:25px; }
  .campus-sketch { display:none; }
  .campus-intro .btn { padding-inline:16px; }
  .comm-spaces { margin-bottom:18px; }
}

/* Community feed: content first, optional controls stay compact. */
.chat-panel:not(.open), .promo-panel:not(.open), .review-panel:not(.open), .comm-panel:not(.open), .admin-panel:not(.open) { box-shadow:none; }
.page[data-page="community"] .page-head { margin-bottom:16px; }
.page[data-page="community"] .page-title { font-size:25px; }
.comm-spaces { margin-bottom:14px; }
.comm-spaces button { padding:7px 14px; font-size:14px; }
#commSearchForm { padding:0; margin-bottom:14px; border:0; background:transparent; }
#commSearchForm > label { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
#commSearchForm .comm-search-row { flex-wrap:nowrap; gap:8px; }
#commSearchForm .comm-search-row input { flex-basis:auto; padding:11px 13px; }
#commSearchForm .comm-search-row .btn { padding:10px 15px; }
#commSearchForm .comm-search-topics { display:none; }
#commSearchForm:focus-within .comm-search-topics { display:flex; }
#campusIntro:empty { display:none; }
.comm-cats { display:flex; flex-wrap:wrap; overflow:visible; gap:7px; margin-bottom:10px; }
.comm-cats .cat-chip { flex:none; font-size:14px; padding:7px 12px; }
.comm-all-boards { display:none; border:1px solid var(--c-ink-200); border-radius:999px; padding:7px 10px; background:transparent; color:var(--c-ink-600); font:inherit; font-size:14px; cursor:pointer; }
.comm-filters { margin:0 0 12px; font-size:14px; color:var(--c-ink-600); }
.comm-filters > summary { width:max-content; cursor:pointer; padding:4px 0; }
.comm-filter-fields { display:flex; flex-wrap:wrap; align-items:end; gap:12px; padding:12px; background:var(--surface-canvas); border-radius:9px; margin-top:8px; }
.comm-filter-fields label { display:grid; gap:5px; font-size:13px; }
.comm-filter-fields select { max-width:180px; padding:8px; border:1px solid var(--c-ink-200); background:var(--surface-paper); color:var(--c-ink-800); border-radius:6px; font:inherit; font-size:14px; }
.comm-filter-fields .btn { width:auto; margin:0; padding:8px; font-size:14px; }
.comm-bar { margin-bottom:12px; }
.comm-bar > .btn { width:auto; padding:9px 19px; }
.comm-info-link { margin-left:auto; background:transparent; color:var(--c-ink-500); border:0; padding:7px 0; font:inherit; font-size:13px; cursor:pointer; text-decoration:underline; text-underline-offset:3px; }
.community-post-card { padding:18px; margin-bottom:12px; }
.community-post-card .post-head { margin-bottom:10px; }
.post-author-line { display:flex; align-items:center; flex-wrap:wrap; gap:6px; }
.author-school { display:inline-block; max-width:210px; font-size:13px; color:var(--c-ink-500); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
:root { --community-verified:#168655; --community-verified-fill:#168655; --community-verified-bg:#edf8f1; --community-verified-border:#c8e7d5; }
html[data-theme="dark"] { --community-verified:#7bd5a5; --community-verified-fill:#238e5c; --community-verified-bg:#18362a; --community-verified-border:#315641; }
.post-author-check { display:inline-flex; align-items:center; justify-content:center; flex:none; width:19px; height:19px; color:var(--community-verified); vertical-align:middle; }
.post-author-check svg,.community-verified-label svg { width:19px; height:19px; display:block; flex:none; }
.verification-seal { fill:var(--community-verified-fill); stroke:none; }
.verification-tick { fill:none; stroke:#fff; stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round; }
.community-verified-label { display:inline-flex; align-items:center; gap:5px; padding:3px 8px 3px 5px; border:1px solid var(--community-verified-border); background:var(--community-verified-bg); border-radius:6px; font-size:13px; line-height:1.5; color:var(--community-verified); white-space:nowrap; }
.community-verified-label svg { width:16px; height:16px; }
.community-author-identity { display:flex; align-items:center; gap:10px; flex:1; min-width:0; }
.community-author-identity .post-who { min-width:0; }
.community-author-identity .post-author-line { gap:6px; }
.author-avatar-link { flex:none; }
.author-name-link { font-weight:600; font-size:14px; line-height:1.5; }
.community-author-identity .tm { display:block; margin-top:3px; font-size:13px; }
.post-kind-line { display:flex; gap:9px; align-items:center; flex-wrap:wrap; margin-bottom:9px; font-size:13px; color:var(--c-ink-500); }
.post-kind { border-radius:4px; background:var(--c-ink-50); padding:2px 6px; color:var(--c-ink-600); }
.post-kind.question { color:var(--c-accent-600); background:var(--c-danger-bg); }
.post-question-status.solved { color:var(--c-primary-700); }
.post-reading { margin-left:auto; }
.post-card-content { min-width:0; }
.post-card-content.has-cover { display:grid; grid-template-columns:minmax(0,1fr) 132px; gap:16px; align-items:start; }
.community-post-card .post-title { margin:0 0 7px; font:600 18px/1.6 var(--serif); cursor:pointer; overflow-wrap:anywhere; }
.community-post-card .post-excerpt { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; margin:0; font-size:14px; line-height:1.8; }
.post-cover { border:0; padding:0; background:transparent; cursor:pointer; border-radius:8px; overflow:hidden; }
.post-cover img { display:block; width:100%; height:106px; object-fit:cover; }
.community-post-card .post-tags { margin:12px 0 0; gap:6px; }
.community-post-card .post-tags .tag { font-size:13px; padding:2px 6px; }
.community-post-card .post-foot { margin-top:12px; padding-top:10px; gap:9px; }
.community-post-card .post-foot .pf-btn { font-size:13px; }
.community-post-card .post-imgs { margin-top:12px; }
.community-post-card .post-imgs.n1 img { height:140px; width:100%; object-fit:cover; }
.post-material-short { display:flex; align-items:center; gap:8px; margin-top:12px; color:var(--c-ink-500); font-size:14px; }
.post-material-short span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.post-material-short button { margin-left:auto; flex:none; }
.comm-side { display:grid; gap:20px; align-content:start; min-width:0; }
.comm-side > .card { margin:0; }
.comm-side-links { display:grid; gap:13px; }
.comm-side-links button { display:grid; gap:5px; width:100%; text-align:left; border:0; background:transparent; padding:0; color:var(--c-ink-700); cursor:pointer; font:inherit; font-size:14px; line-height:1.7; }
.comm-side-links button:hover span { text-decoration:underline; text-underline-offset:3px; }
.comm-side-links small { color:var(--c-ink-400); font-size:13px; }
.community-side-empty { color:var(--c-ink-500); font-size:14px; line-height:1.8; }
.comm-information { padding:14px 0; color:var(--c-ink-500); font-size:14px; }
.comm-information > summary { cursor:pointer; }
.comm-information .card { margin-top:12px; box-shadow:none; border:1px solid var(--c-ink-100); padding:14px; }
.comm-information .stats-band { flex-wrap:wrap; gap:7px; }
.comm-information .sb-item { border:0; padding:4px; }
.comm-information #campusGuideCard[hidden] { display:none; }
.post-intent-picker { margin-bottom:20px; }
.post-intent-picker > label { display:block; color:var(--c-ink-700); font-size:14px; margin-bottom:8px; }
.post-intent-picker > div { display:flex; gap:8px; }
.post-intent-picker button { padding:9px 22px; background:transparent; color:var(--c-ink-700); border:1px solid var(--c-ink-200); border-radius:8px; cursor:pointer; font:inherit; font-size:14px; }
.post-intent-picker button[aria-pressed="true"] { color:var(--surface-paper); background:var(--c-ink-800); border-color:var(--c-ink-800); }
.post-intent-picker p { margin-top:9px; color:var(--c-ink-500); font-size:14px; line-height:1.8; }
.post-topic-choices { display:flex; flex-wrap:wrap; gap:12px; }
.post-topic-choices label { display:flex; align-items:center; gap:5px; font-size:14px; }
.post-topic-choices input { width:auto; }
@media(max-width:700px) {
  .page[data-page="community"] .page-head { margin-bottom:13px; }
  .page[data-page="community"] .page-sub { font-size:14px; }
  .comm-cats .cat-chip-extra:not(.active) { display:none; }
  .comm-cats.show-all .cat-chip-extra { display:inline-flex; }
  .comm-all-boards { display:inline-block; }
  .comm-cats { gap:6px; }
  .comm-cats .cat-chip { padding:7px 10px; }
  .community-post-card { padding:16px; }
  .community-post-card .post-title { font-size:17px; }
  .post-card-content.has-cover { grid-template-columns:minmax(0,1fr) 90px; gap:12px; }
  .post-cover img { height:90px; }
  .author-school { max-width:160px; }
  .community-post-card .post-foot { gap:7px; }
  .comm-filter-fields { gap:10px; }
}
