/* Community is deliberately isolated so member content cannot alter the page layout. */
.community-page .community-shell { width:min(1100px,calc(100% - 40px)); margin:0 auto; padding-bottom:78px; }
.community-page .community-head { display:grid; grid-template-columns:minmax(0,1fr) 285px; align-items:end; gap:30px; padding:68px 0 35px; }
.community-page .community-head h1 { margin:0; font:800 clamp(65px,8vw,110px)/.78 "Barlow Condensed",sans-serif; letter-spacing:-.05em; }
.community-page .community-head h1 em { color:var(--green,#63ff18); font-style:normal; }
.community-page .community-head > div > p:not(.eyebrow) { max-width:520px; margin:18px 0 0; color:var(--muted,#adc1af); font:600 12px/1.7 Manrope,sans-serif; }
.community-page .community-plan-note { display:grid; gap:8px; box-sizing:border-box; width:100%; padding:20px; border:1px solid rgba(187,123,255,.42); border-radius:20px; background:linear-gradient(145deg,rgba(137,70,205,.24),rgba(237,192,72,.08)),rgba(11,27,14,.92); }
.community-page .community-plan-note b { color:#e3c4ff; font:800 10px Manrope,sans-serif; letter-spacing:.1em; }
.community-page .community-plan-note span { color:#d7e4d8; font:600 11px/1.55 Manrope,sans-serif; }
.community-page .community-plan-note a { color:#e3c4ff; font:800 9px Manrope,sans-serif; letter-spacing:.09em; text-decoration:none; }

.community-page .community-rules { display:flex; align-items:flex-start; gap:14px; box-sizing:border-box; width:100%; margin:0 0 18px; padding:13px 16px; border:1px solid rgba(255,204,93,.28); border-left:3px solid #edc048; border-radius:15px; background:linear-gradient(100deg,rgba(237,192,72,.1),rgba(10,22,11,.76)); }
.community-page .community-rules strong { flex:0 0 auto; color:#f2cf74; font:800 8px/1.7 Manrope,sans-serif; letter-spacing:.11em; }
.community-page .community-rules span { color:#d3ddd5; font:600 10px/1.6 Manrope,sans-serif; }

.community-page .community-composer,
.community-page .community-locked,
.community-page .community-post,
.community-page .community-empty { box-sizing:border-box; border:1px solid rgba(207,255,196,.16); border-radius:20px; background:rgba(11,27,14,.94); box-shadow:0 14px 35px rgba(0,0,0,.14); }
.community-page #community-composer[hidden],
.community-page #community-locked[hidden],
.community-page #community-pagination[hidden],
.community-page #post-image-preview[hidden] { display:none !important; }

.community-page .community-composer { display:grid; grid-template-columns:44px minmax(0,1fr); gap:13px; width:min(780px,100%); margin:0 auto 18px; padding:18px; }
.community-page .community-composer form { display:grid; min-width:0; gap:10px; }
.community-page .community-composer textarea { display:block; box-sizing:border-box; width:100%; min-height:100px; padding:13px; resize:vertical; border:1px solid rgba(207,255,196,.2); border-radius:14px; outline:0; color:#edf9ed; background:#071008; font:600 12px/1.55 Manrope,sans-serif; }
.community-page .community-composer form > div { display:flex; align-items:center; justify-content:space-between; gap:10px; min-width:0; }
.community-page .community-composer small { min-width:0; color:#9fb0a1; font:600 9px/1.45 Manrope,sans-serif; }
.community-page .community-composer .admin-primary { flex:0 0 auto; min-height:40px; }
.community-page .community-composer-actions { display:flex; align-items:center; gap:8px; }
.community-page .community-attach-button { display:inline-flex; align-items:center; justify-content:center; min-height:39px; padding:0 13px; border:1px solid rgba(207,255,196,.23); border-radius:999px; color:var(--green-soft,#cfffad); background:rgba(255,255,255,.025); cursor:pointer; font:800 8px Manrope,sans-serif; letter-spacing:.08em; }
.community-page .community-image-preview { display:grid; grid-template-columns:48px minmax(0,1fr) 30px; align-items:center; gap:9px; padding:8px; border:1px solid rgba(99,255,24,.28); border-radius:12px; background:rgba(99,255,24,.055); }
.community-page .community-image-preview img { width:48px; height:39px; object-fit:cover; border-radius:7px; }
.community-page .community-image-preview span { color:#d9ecd8; font:800 7px/1.5 Manrope,sans-serif; letter-spacing:.07em; }
.community-page .community-image-preview button { width:28px; height:28px; border:1px solid rgba(255,255,255,.18); border-radius:50%; color:#fff; background:transparent; cursor:pointer; }

.community-page .community-locked,
.community-page .community-empty { display:grid; justify-items:start; gap:9px; width:min(780px,100%); margin:0 auto 18px; padding:21px; }
.community-page .community-locked strong,
.community-page .community-empty strong { color:#effbef; font:800 18px "Barlow Condensed",sans-serif; letter-spacing:.05em; }
.community-page .community-locked span,
.community-page .community-empty span { color:#aec2b0; font:600 11px/1.55 Manrope,sans-serif; }
.community-page .community-locked .outline-button { min-height:41px; padding-inline:14px; }

.community-page .community-feed { display:grid; gap:13px; width:min(780px,100%); margin:0 auto; }
.community-page .community-post { width:100%; padding:20px; overflow:hidden; }
.community-page .community-post header { display:flex; align-items:center; gap:12px; min-width:0; }
.community-page .community-post header > div:last-child { display:flex; flex:1 1 auto; flex-wrap:wrap; align-items:center; gap:5px 8px; min-width:0; }
.community-page .community-post header small { width:100%; color:#97aa99; font:600 9px/1.2 Manrope,sans-serif; }
.community-page .community-profile-name { display:inline-flex; min-width:0; max-width:100%; align-items:center; overflow:hidden; color:#f1fff0; font:800 12px Manrope,sans-serif; text-decoration:none; text-overflow:ellipsis; white-space:nowrap; }
.community-page .community-tier { display:inline-flex; align-items:center; min-height:19px; padding:0 7px; border-radius:999px; color:#dceadc; background:rgba(255,255,255,.08); font:800 7px Manrope,sans-serif; letter-spacing:.08em; }
.community-page .community-post > p { margin:15px 0; color:#e4eee4; overflow-wrap:anywhere; font:600 12px/1.7 Manrope,sans-serif; }
.community-page .community-post-image { display:block; box-sizing:border-box; width:100%; max-height:500px; margin:14px 0; object-fit:contain; border:1px solid rgba(207,255,196,.17); border-radius:15px; background:#071007; }
.community-page .post-actions { display:flex; flex-wrap:wrap; gap:8px; }
.community-page .post-actions button { display:inline-flex; align-items:center; justify-content:center; min-width:67px; min-height:38px; padding:0 12px; border:1px solid rgba(207,255,196,.18); border-radius:11px; color:var(--green-soft,#ccffb0); background:rgba(255,255,255,.035); cursor:pointer; font:800 9px Manrope,sans-serif; }
.community-page .post-actions .community-delete,
.community-page .community-delete { color:#ffb4b4; border-color:rgba(255,88,88,.43); background:rgba(151,18,18,.14); }
.community-page .post-actions .community-delete:hover,
.community-page .community-delete:hover { color:#fff; border-color:#ff6868; background:rgba(194,25,25,.31); }
.community-page .comments { display:grid; gap:9px; margin-top:12px; padding-top:12px; border-top:1px solid rgba(255,255,255,.08); }
.community-page .comments > div { display:grid; gap:3px; overflow-wrap:anywhere; color:#c9d6ca; font:600 10px/1.5 Manrope,sans-serif; }
.community-page .comments b { color:var(--green,#63ff18); }
.community-page .community-comment { grid-template-columns:minmax(0,1fr) auto; align-items:start; column-gap:9px; }
.community-page .community-comment b,
.community-page .community-comment > span { grid-column:1; }
.community-page .community-comment .community-delete { grid-column:2; grid-row:1 / span 2; align-self:center; min-height:27px; padding:0 8px; border-radius:8px; cursor:pointer; font:800 7px Manrope,sans-serif; }
.community-page .comments form { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; min-width:0; }
.community-page .comments input { min-width:0; min-height:38px; padding:0 11px; border:1px solid rgba(207,255,196,.18); border-radius:10px; outline:0; color:#effbef; background:#071008; font:600 10px Manrope,sans-serif; }
.community-page .comments form button { min-height:38px; padding-inline:12px; border:0; border-radius:10px; color:#071006; background:var(--green,#63ff18); font:800 8px Manrope,sans-serif; }

/* An uploaded avatar is always a small round avatar—not post content. */
.community-page .community-avatar { display:grid !important; place-items:center; flex:0 0 44px !important; box-sizing:border-box !important; width:44px !important; min-width:44px !important; max-width:44px !important; height:44px !important; min-height:44px !important; max-height:44px !important; overflow:hidden !important; border:1px solid rgba(99,255,24,.5); border-radius:50% !important; color:#071006; background:var(--green,#63ff18); font:800 15px "Barlow Condensed",sans-serif; text-decoration:none; }
.community-page .community-avatar img { display:block !important; box-sizing:border-box !important; width:100% !important; min-width:0 !important; max-width:100% !important; height:100% !important; min-height:0 !important; max-height:100% !important; object-fit:cover !important; }
.community-page .community-avatar.community-profile-link { transition:transform .18s ease,box-shadow .18s ease; }
.community-page .community-avatar.community-profile-link:hover { transform:scale(1.05); box-shadow:0 0 0 3px rgba(99,255,24,.16); }
.community-page .verified-badge.admin-verified { color:#fff !important; border-color:rgba(255,103,103,.92) !important; background:linear-gradient(135deg,#ec2424,#8c1111) !important; box-shadow:0 0 0 2px rgba(124,13,13,.16),0 0 13px rgba(241,51,51,.36) !important; }

@media (max-width:760px) {
  .community-page .community-shell { width:calc(100% - 28px); padding-bottom:88px; }
  .community-page .community-topbar nav { display:none; }
  .community-page .community-head { grid-template-columns:minmax(0,1fr); gap:16px; padding:40px 0 22px; }
  .community-page .community-head h1 { font-size:clamp(48px,16vw,68px); }
  .community-page .community-plan-note { padding:17px; }
  .community-page .community-rules { display:grid; gap:5px; }
  .community-page .community-composer { grid-template-columns:minmax(0,1fr); padding:15px; }
  .community-page .community-composer form > div { display:grid; grid-template-columns:1fr; align-items:stretch; }
  .community-page .community-composer-actions { display:grid; grid-template-columns:1fr; width:100%; }
  .community-page .community-attach-button,
  .community-page .community-composer .admin-primary { width:100%; min-height:46px; box-sizing:border-box; }
  .community-page .community-post { padding:15px; }
  .community-page .community-post header { align-items:flex-start; }
  .community-page .community-post header strong { max-width:min(48vw,185px); overflow:hidden; text-overflow:ellipsis; }
  .community-page .post-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .community-page .post-actions button { width:100%; min-width:0; padding:0 4px; }
  .community-page .community-post-image { max-height:360px; }
}
