/* BE Community phases 1/2. Uses portal light/dark surface tokens and fluid layouts. */
.bc-page{width:100%;max-width:1100px;margin:0 auto;padding-bottom:40px;color:var(--pt-ink,var(--be-ink,inherit))}
.bc-intro{display:flex;align-items:center;gap:10px;border:1px solid var(--pt-border,#d9e1e5);background:var(--pt-soft,rgba(130,150,160,.08));border-radius:12px;padding:14px 17px;margin:10px 0 16px;font-size:13px}
.bc-tabs{display:flex;gap:7px;flex-wrap:wrap;margin:0 0 20px;border-bottom:1px solid var(--pt-border,#d7dfe3);padding-bottom:12px}
.bc-tabs button{border:1px solid var(--pt-border,#d6dee1);border-radius:9px;padding:10px 12px;cursor:pointer;background:var(--pt-soft,transparent);color:inherit;font:inherit;font-size:12px;font-weight:700}
.bc-tabs button.active{background:#114580;color:white;border-color:#114580}
.bc-composer,.bc-panel,.bc-post,.bc-gated{background:var(--pt-panel,var(--be-panel,#fff));border:1px solid var(--pt-border,#dce4e8);border-radius:14px;padding:clamp(14px,2.4vw,22px);margin-bottom:16px;min-width:0;box-shadow:0 2px 8px rgba(0,0,0,.025)}
.bc-composer h2,.bc-panel h2,.bc-gated h2,.bc-post h2{font-size:18px;font-weight:800;line-height:1.35;margin:0 0 12px;color:inherit}
.bc-section-head,.bc-post-head,.bc-report{display:flex;justify-content:space-between;align-items:center;gap:12px}
.bc-section-head{margin-bottom:12px;flex-wrap:wrap}.bc-section-head h2{margin:0}.bc-section-head span,.bc-muted{font-size:12px;line-height:1.65;color:var(--pt-sub,#687585)}
.bc-fields{display:grid;gap:12px}
.bc-fields label{display:grid;gap:6px;font-size:12px;font-weight:700}
.bc-fields input[type=text],.bc-fields input[type=date],.bc-fields select,.bc-fields textarea,.bc-comment-form input{display:block;width:100%;max-width:100%;background:var(--pt-soft,#fff);color:inherit;border:1px solid var(--pt-border,#cdd8de);padding:11px 12px;border-radius:8px;font:inherit;font-size:14px;box-sizing:border-box}
.bc-fields textarea{resize:vertical;min-height:104px}
.bc-fields .bc-check,.bc-settings .bc-check{display:flex;align-items:start;gap:9px;line-height:1.5;font-size:13px;cursor:pointer;font-weight:500}
.bc-check input{flex:0 0 auto;width:17px;height:17px;accent-color:#114580;margin-top:2px}
.bc-fields .be-primary-button{justify-self:start;min-width:180px}
.bc-rules{background:var(--pt-soft,#f3f7f8);border-radius:10px;padding:14px}
.bc-rules p{white-space:pre-wrap;font-size:13px;line-height:1.7;margin:8px 0 0}
.bc-post-head{justify-content:flex-start;margin-bottom:13px}
.bc-avatar{width:45px;height:45px;display:grid;place-items:center;border-radius:12px;background:var(--pt-soft,#e9f0f6);color:var(--pt-ink,#17354c);flex:0 0 auto}
.bc-avatar svg{width:23px;height:23px}.bc-author{display:grid;gap:2px;flex:1;min-width:0;font-size:14px}
.bc-author small{font-size:11px;color:var(--pt-sub,#6c7987)}
.bc-pill{display:inline-flex;gap:5px;align-items:center;border-radius:99px;padding:6px 10px;background:var(--pt-soft,#f0f4f7);border:1px solid var(--pt-border,#d9e1e5);font-size:11px;font-weight:700}
.bc-body{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.75;margin:5px 0 15px}
.bc-post-tools,.bc-admin-actions,.bc-actions,.bc-challenge{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.bc-post-tools{border-top:1px solid var(--pt-border,#e1e7ea);padding-top:12px}
.bc-post-tools button,.bc-admin-actions button,.bc-actions button{font-size:12px;min-height:34px;padding:7px 11px}
.bc-post-count{font-size:12px;color:var(--pt-sub,#667781)}
.bc-admin-actions{margin:10px 0 0;border-top:1px dashed var(--pt-border,#d8e2e5);padding-top:9px}
.bc-challenge{background:var(--pt-soft,#f1f6fa);padding:13px;margin:12px 0;border-radius:10px;font-size:12px}
.bc-challenge>span{display:inline-flex;align-items:center;gap:4px}
.bc-challenge svg{width:15px;height:15px}
.bc-comments{margin-top:13px}
.bc-comment{padding:12px 0;border-top:1px solid var(--pt-border,#e5ecef)}
.bc-comment>div:first-child{display:flex;gap:10px;align-items:center;font-size:12px}
.bc-comment time{font-size:10px;color:var(--pt-sub,#71818d)}
.bc-comment p{margin:6px 0 4px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.6}
.bc-comment-form{display:flex;gap:9px;margin-top:12px}.bc-comment-form input{min-width:0;flex:1}.bc-comment-form button{flex:0 0 auto}
.bc-sr{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important}
.bc-badges{display:flex;flex-wrap:wrap;gap:10px}.bc-badge{display:grid;gap:3px;justify-items:center;min-width:130px;padding:15px;border:1px solid var(--pt-border,#d4dee5);background:var(--pt-soft,#f6f9fa);border-radius:12px;text-align:center;font-size:13px;font-weight:800}
.bc-badge svg{width:23px;height:23px}.bc-badge small{font-size:10px;font-weight:400}
.bc-report{padding:13px 0;border-top:1px solid var(--pt-border,#d8e2e5);flex-wrap:wrap}.bc-report>div{flex:1;min-width:160px;font-size:13px}
.bc-report p{font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere;margin:4px 0}.bc-report small{color:var(--pt-sub,#647582)}
.bc-settings{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-top:20px;background:var(--pt-soft,#f3f7f9);border-radius:12px;padding:15px}
.bc-gated{max-width:690px}
.bc-empty{text-align:center;padding:30px 16px}
.bc-post[data-kind=announcement]{border-color:#114580}
@media(max-width:680px){.bc-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.bc-tabs button{width:100%;text-align:center}.bc-comment-form{flex-wrap:wrap}.bc-comment-form input{flex-basis:100%}.bc-challenge{align-items:start}.bc-section-head{align-items:flex-start}.bc-badge{flex:1}}
