/* Community Hub v12.2.5 — mobile-only bottom navigation sizing and positioning.
   Intentionally CSS-only: no menu state or scrolling JS changes. */
@media (max-width: 950px) {
  html { scroll-padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)) !important; }
  body .mobile-bottom-nav {
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: repeat(5,minmax(0,1fr)) !important;
    align-items: stretch !important;
    justify-items: stretch !important;
    position: fixed !important;
    left: 0 !important; right: 0 !important; bottom: 0 !important; top: auto !important;
    width: 100% !important; max-width: none !important;
    height: calc(56px + env(safe-area-inset-bottom, 0px)) !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 3px 8px calc(3px + env(safe-area-inset-bottom, 0px)) !important;
    border: 0 !important; border-top: 1px solid rgba(126,163,194,.20) !important;
    border-radius: 0 !important;
    box-shadow: 0 -6px 24px rgba(3,11,20,.20) !important;
    transform: none !important;
    z-index: 90 !important;
    overflow: visible !important;
  }
  html[data-theme="dark"] body .mobile-bottom-nav {
    background: rgba(19,30,45,.96) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
  body .mobile-bottom-nav > :is(a.mobile-tab,button.mobile-create-trigger) {
    box-sizing:border-box !important;
    position:relative !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:center !important;
    gap:1px !important;
    height:48px !important; min-height:0 !important; max-height:48px !important;
    width:100% !important; min-width:0 !important;
    margin:0 !important; padding:3px 2px !important;
    border:0 !important; border-radius:8px !important;
    box-shadow:none !important;
    background:transparent !important;
    background-image:none !important;
    transform:none !important;
    text-decoration:none !important;
    outline-offset:-2px;
  }
  body .mobile-bottom-nav .mobile-tab.current,
  html[data-theme="dark"] body .mobile-bottom-nav .mobile-tab.current {
    background:transparent !important;
    background-image:none !important;
    border:0 !important;
    box-shadow:none !important;
  }
  body .mobile-bottom-nav .mobile-tab.current::before {
    content:"" !important;
    display:block !important;
    position:absolute !important;
    top:-3px !important; left:24% !important; right:24% !important;
    width:auto !important; height:2px !important;
    background:#27c6c8 !important;
    border-radius:0 0 4px 4px !important;
    opacity:1 !important;
  }
  body .mobile-bottom-nav > :is(a.mobile-tab,button.mobile-create-trigger) > span {
    display:block !important;
    font-size:22px !important;
    font-weight:500 !important;
    line-height:24px !important;
    width:auto !important; height:auto !important;
    min-width:0 !important; min-height:0 !important;
    margin:0 !important; padding:0 !important;
    color:#b9cadb !important;
    background:transparent !important;
    border:0 !important;
    box-shadow:none !important;
    transform:none !important;
  }
  body .mobile-bottom-nav > :is(a.mobile-tab,button.mobile-create-trigger) > small {
    display:block !important;
    margin:0 !important; padding:0 !important;
    font-size:10px !important;
    font-weight:550 !important;
    line-height:12px !important;
    letter-spacing:.01em !important;
    color:#a5b7c9 !important;
    white-space:nowrap !important;
    text-shadow:none !important;
  }
  body .mobile-bottom-nav .mobile-tab.current > span,
  body .mobile-bottom-nav .mobile-tab.current > small {
    color:#5ed6d9 !important;
  }
  body .mobile-bottom-nav button.mobile-create-trigger,
  html[data-theme="dark"] body .mobile-bottom-nav button.mobile-create-trigger {
    color:#b9cadb !important;
    background:transparent !important;
    background-image:none !important;
    box-shadow:none !important;
  }
  body .mobile-bottom-nav button.mobile-create-trigger > span {
    font-size:25px !important;
    line-height:24px !important;
    color:#75d4d5 !important;
  }
  body .mobile-bottom-nav button.mobile-create-trigger > small {color:#a5b7c9 !important;}
  /* Keep drawer and composer above the fixed bar, without body scroll locks. */
  body .mobile-create-sheet {bottom:calc(56px + env(safe-area-inset-bottom, 0px)) !important;}
}
