/* Community on a reduced window: the left column becomes a side panel opened by the Menu button */
.comm-menu-btn { display: none; width: 38px; height: 38px; border-radius: 50%; align-items: center; justify-content: center; cursor: pointer; flex: none; margin-right: 8px;
  color: var(--text, #fff); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); transition: background .15s, border-color .15s; }
.comm-menu-btn:hover, .comm-menu-btn[aria-expanded="true"] { background: rgba(200,16,46,.22); border-color: rgba(255,90,115,.55); }
.comm-menu-btn:focus-visible { outline: 2px solid #FF6680; outline-offset: 2px; }
.comm-drawer-scrim { display: none; }

@media (max-width: 1100px) {
  .comm-menu-btn { display: inline-flex; }
  html body #communityPage .comm-sidebar-left:not([style*="display: none"]) {
    display: flex !important; position: fixed !important; top: 0 !important; bottom: 0 !important; left: 0 !important; right: auto !important; width: min(330px, 88vw) !important;
    max-height: none !important; height: auto !important; z-index: 1400; padding: 20px 14px 28px !important; margin: 0 !important; box-sizing: border-box;
    overflow-y: auto; overscroll-behavior: contain; background: var(--bg, #0d0b0c); border-right: 1px solid rgba(255,255,255,.1); box-shadow: 18px 0 50px rgba(0,0,0,.5);
    transform: translateX(-104%); visibility: hidden; transition: transform .26s cubic-bezier(.2,.8,.2,1), visibility 0s linear .26s; outline: none;
  }
  html body #communityPage.comm-drawer-open .comm-sidebar-left:not([style*="display: none"]) { transform: none; visibility: visible; transition: transform .26s cubic-bezier(.2,.8,.2,1), visibility 0s; }
  .comm-drawer-scrim { position: fixed; inset: 0; z-index: 1390; background: rgba(0,0,0,.55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); opacity: 0; pointer-events: none; display: block; transition: opacity .22s ease; }
  .comm-page.comm-drawer-open .comm-drawer-scrim { opacity: 1; pointer-events: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html body #communityPage .comm-sidebar-left, .comm-drawer-scrim { transition: none !important; }
}
html[data-theme="light"] .comm-menu-btn { color: #18090C; background: rgba(0,0,0,.05); border-color: rgba(0,0,0,.14); }
html[data-theme="light"] body #communityPage .comm-sidebar-left { background: #fff; }

/* a side column taller than the window: a clearer scrollbar and a soft fade while there is more below */
#communityPage .comm-sidebar-left::-webkit-scrollbar, #communityPage .comm-sidebar-right::-webkit-scrollbar { width: 8px; }
#communityPage .comm-sidebar-left::-webkit-scrollbar-thumb, #communityPage .comm-sidebar-right::-webkit-scrollbar-thumb { background: rgba(255,255,255,.28); border-radius: 8px; }
#communityPage .comm-sidebar-left, #communityPage .comm-sidebar-right { scrollbar-color: rgba(255,255,255,.3) transparent; }
#communityPage .comm-sidebar-left.has-more, #communityPage .comm-sidebar-right.has-more {
  -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 44px), transparent 100%); mask-image: linear-gradient(180deg, #000 calc(100% - 44px), transparent 100%); }

/* the panel's own header, room for the phone's bottom bar, and a wider dark strip to tap */
.comm-drawer-head { display: none; }
@media (max-width: 1100px) {
  .comm-drawer-head { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 3; margin: -20px -14px 4px; padding: 14px 14px 10px; background: var(--bg, #0d0b0c); }
  .comm-drawer-head b { font-size: 1.05rem; font-weight: 800; color: var(--text-1, #fff); }
  .comm-drawer-x { flex: none; width: 38px; height: 38px; padding: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: #fff; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); }
  .comm-drawer-x:hover { background: rgba(200,16,46,.3); border-color: rgba(255,58,92,.7); }
  .comm-drawer-x:focus-visible { outline: 2px solid #FF6680; outline-offset: 2px; }
  html body #communityPage .comm-sidebar-left:not([style*="display: none"]) { width: min(330px, 85vw) !important; }
}
@media (max-width: 760px) {
  html body #communityPage .comm-sidebar-left:not([style*="display: none"]) { padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)) !important; }
}
html[data-theme="light"] .comm-drawer-head { background: #fff; }
html[data-theme="light"] .comm-drawer-head b { color: #18090C; }
html[data-theme="light"] .comm-drawer-x { color: #18090C; background: rgba(0,0,0,.05); border-color: rgba(0,0,0,.14); }
