/* KOERIUM v2.8.4.10 – mobile navigation and homepage UX.
   Loaded after legacy theme CSS; desktop layout is unchanged. */
.mobileMenuButton{display:none}
@media(max-width:820px){
  html{scrollbar-gutter:auto!important;scroll-padding-bottom:74px}
  html,body{width:100%;max-width:100%;overflow-x:clip}
  .shell{display:flex!important;flex-direction:column!important;width:100%!important;max-width:100%!important;min-width:0!important;border:0!important;box-shadow:none!important}
  .contentShell{min-width:0!important;width:100%!important}
  .sidebar{
    display:flex!important;flex-direction:row!important;align-items:center!important;
    justify-content:space-between!important;position:relative!important;z-index:30!important;
    min-height:58px!important;height:58px!important;width:100%!important;
    background:#b7e448!important;padding:0 12px!important;gap:8px;
    border-bottom:1px solid #92b72e!important
  }
  .sidebar .brand{flex:1 1 auto!important;min-width:0!important;min-height:58px!important;height:58px!important;
    padding:5px 0!important;gap:9px!important;margin:0!important;align-self:center!important;
    display:flex!important;align-items:center!important;overflow:hidden}
  .sidebar .brandWave{width:36px!important;height:36px!important;min-width:36px!important;
    border-width:2px!important;box-shadow:2px 2px 0 rgba(0,0,0,.09)!important}
  .sidebar .brandWave i{max-height:19px}
  .sidebar .brand b{font-size:22px!important;line-height:1.04!important;letter-spacing:-.04em!important}
  .sidebar .brand small{font-size:9px!important;line-height:1.2!important}
  .sidebar .brandLogo{display:block;max-width:min(185px,55vw)!important;max-height:43px!important;width:auto;height:auto;object-fit:contain}
  .mobileMenuButton{display:flex!important;align-items:center;justify-content:center;gap:5px;
    flex:0 0 auto;padding:8px 11px;min-height:36px;white-space:nowrap;cursor:pointer;
    background:#f4fae3;color:#253716;border:1px solid #83a92d;border-radius:7px;
    font-size:12px;font-weight:800;line-height:1;box-shadow:inset 0 1px #fff9}
  .mobileMenuButton[aria-expanded="true"]{background:#263318;color:#fff;border-color:#263318}
  .sidebar nav{display:none!important}
  .sidebar.is-menu-open nav{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:0!important;position:absolute!important;top:calc(100% - 1px)!important;
    left:0!important;right:0!important;width:100%!important;min-width:0!important;
    max-height:min(68dvh,620px);overflow-y:auto!important;overflow-x:hidden!important;
    padding:5px!important;margin:0!important;background:#242424!important;
    border:1px solid #485333!important;border-top:3px solid #94c53a!important;
    box-shadow:0 13px 20px #18220e50;scroll-snap-type:none!important;
  }
  .sidebar.is-menu-open nav a{display:flex!important;align-items:center!important;
    min-width:0!important;min-height:43px!important;padding:11px 9px!important;
    font-size:12px!important;white-space:normal!important;overflow-wrap:anywhere!important;
    border:0!important;border-bottom:1px solid #424242!important;border-right:1px solid #424242!important;
    scroll-snap-align:none!important}
  .sidebar nav .navLabel,.sidebar .sideFoot{display:none!important}
  .topbar{position:relative!important;z-index:5!important;display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important;
    min-width:0!important;min-height:52px!important;height:auto!important;
    padding:7px 12px!important;background:#f4f7e8!important}
  .topbar .mobileBrand{display:none!important}
  .globalSearch{display:flex!important;min-width:0!important;width:100%!important;max-width:none!important;
    height:37px!important;margin:0!important;padding:0 10px!important;gap:7px}
  .globalSearch input{font-size:12px!important;min-width:0!important;max-width:100%!important;
    flex:1 1 auto!important;text-overflow:ellipsis}
  .topActions{display:flex!important;gap:7px!important;min-width:0!important;align-items:center;justify-content:flex-end}
  .topActions .roundBtn{display:grid!important;place-items:center!important;
    width:34px!important;height:34px!important;min-width:34px!important;flex-shrink:0}
  .topUser{flex:0 0 auto!important;min-width:34px!important;gap:0!important}
  .topUser span{display:none!important}
  .topAvatar,.topUser .avatarFallback{width:34px!important;height:34px!important;min-width:34px!important;
    border-radius:50%!important;object-fit:cover!important}
  .main{width:100%!important;min-width:0!important;max-width:100%!important;
    padding:12px 12px calc(84px + env(safe-area-inset-bottom))!important;overflow-wrap:anywhere}
  .main img,.main audio,.main video{max-width:100%}
  .homeGrid{grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
  .homeMain{min-width:0!important}
  .welcome{display:grid!important;grid-template-columns:minmax(0,1fr)!important;
    gap:0!important;min-height:0!important;overflow:hidden!important;border-radius:10px!important;
    border-width:2px!important}
  .welcomeCopy{width:100%!important;max-width:100%!important;padding:16px 15px 14px!important}
  .welcomeCopy>span{font-size:9px!important;letter-spacing:.09em!important}
  .welcomeCopy h1{font-size:clamp(27px,8vw,34px)!important;line-height:1.14!important;
    margin:8px 0 9px!important;letter-spacing:-.025em!important}
  .welcomeCopy p{max-width:100%!important;font-size:12px!important;
    line-height:1.5!important;margin:6px 0!important}
  .welcome .welcomeActions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
    width:100%!important;gap:8px!important;margin-top:13px!important}
  .welcome .welcomeActions .btn,.welcome .welcomeActions .btnGhost{width:100%!important;
    min-width:0!important;min-height:40px!important;padding:8px 5px!important;
    font-size:12px!important;line-height:1.2!important;gap:5px!important;
    white-space:normal!important;text-align:center!important}
  .welcome .welcomeActions .ico{width:16px;height:16px;flex:0 0 16px}
  .welcomePortrait{display:block!important;width:100%!important;height:104px!important;
    min-height:104px!important;max-height:104px!important;overflow:hidden!important;margin:0!important}
  .welcomePortrait img{width:100%!important;height:100%!important;
    object-fit:cover!important;object-position:center 26%!important}
  .quickActions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;padding:12px 0 8px!important}
  .quickActions a{display:flex!important;flex-direction:row!important;align-items:center!important;
    justify-content:flex-start!important;gap:9px!important;min-width:0!important;
    min-height:60px!important;padding:9px 10px!important;text-decoration:none!important}
  .quickActions span{display:grid!important;place-items:center!important;flex:0 0 34px!important;
    width:34px!important;height:34px!important;min-width:34px!important;
    padding:0!important;margin:0!important}
  .quickActions span svg{width:19px!important;height:19px!important}
  .quickActions b{font-size:12px!important;line-height:1.3!important;white-space:normal!important}
  .quickActions small{display:none!important}
  .feedTabs{display:flex!important;flex-wrap:nowrap!important;max-width:100%;overflow-x:auto!important;
    white-space:nowrap;scrollbar-width:none;overscroll-behavior-x:contain;padding-bottom:9px!important}
  .feedTabs::-webkit-scrollbar{display:none}
  .feedTabs a{flex:0 0 auto}
  .rail{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px!important;position:static!important}
  .railCard{min-width:0!important}
  .profileHero,.profileBody,.formCard,.adminPanel,.voiceCard,.topicCard{max-width:100%}
  .adminTabs{max-width:100%;overflow-x:auto!important}
  .tableWrap{max-width:100%;overflow-x:auto!important}
  .mobileNav{position:fixed!important;z-index:100!important;left:0!important;right:0!important;
    bottom:0!important;display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;
    width:100%!important;max-width:100vw!important;box-sizing:border-box!important;
    gap:0!important;align-items:center!important;justify-items:stretch!important;
    height:calc(62px + env(safe-area-inset-bottom))!important;
    padding:4px max(6px,env(safe-area-inset-left)) calc(4px + env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-right))!important;
    border-top:2px solid #a7c852!important;background:#f5f9e9!important;
    box-shadow:0 -3px 15px #1e2a1010!important}
  .mobileNav a{display:flex!important;flex-direction:column!important;align-items:center!important;
    justify-content:center!important;gap:2px!important;min-width:0!important;height:100%!important;
    padding:2px 0!important;color:#4f6a2b!important;text-align:center;text-decoration:none!important}
  .mobileNav a.active:not(.post){color:#2e4b12!important;font-weight:900}
  .mobileNav .ico{width:21px!important;height:21px!important}
  .mobileNav small{display:block!important;font-size:10px!important;line-height:1.1!important}
  .mobileNav .post{width:46px!important;height:46px!important;min-height:46px!important;
    align-self:center!important;justify-self:center!important;border-radius:50%!important;
    background:linear-gradient(#d5ef86,#9ccc36)!important;color:#23400d!important}
  .mobileNav .post .ico{width:24px!important;height:24px!important}
  .mobileNav .post small{display:none!important}
  .footer{margin-top:18px!important}
}
@media(max-width:390px){
  .sidebar{padding:0 9px!important}
  .sidebar .brand b{font-size:20px!important}
  .mobileMenuButton{font-size:11px;padding:8px!important}
  .main{padding-left:10px!important;padding-right:10px!important}
  .welcomeCopy{padding:14px 12px 12px!important}
  .welcomeCopy h1{font-size:27px!important}
  .welcome .welcomeActions .btn,.welcome .welcomeActions .btnGhost{font-size:11px!important}
  .quickActions a{padding:8px!important;gap:6px!important}
  .quickActions b{font-size:11px!important}
}
@media(prefers-reduced-motion:reduce){.sidebar nav{scroll-behavior:auto!important}}
