/* AOM TRADERS V48.3 — MOBILE HEADER / FLOATING NAV */

@media (max-width:900px){

  body>.site-shell{
    z-index:2147483000 !important;
    overflow:visible !important;
  }

  .site-header,
  .site-header.v40-fixed-header{
    grid-template-columns:minmax(0,1fr) auto !important;
    column-gap:8px !important;
    padding-left:12px !important;
    padding-right:12px !important;
    overflow:visible !important;
  }

  .site-header .nav-left{
    display:none !important;
  }

  .site-header .brand{
    grid-column:1 !important;
    justify-self:start !important;
    min-width:0 !important;
    max-width:100% !important;
    margin:0 !important;
    font-size:15px !important;
  }

  .site-header .brand svg{
    width:27px !important;
    height:auto !important;
    flex:0 0 auto !important;
  }

  .site-header .nav-right{
    grid-column:2 !important;
    justify-self:end !important;
    display:flex !important;
    align-items:center !important;
    gap:6px !important;
    min-width:max-content !important;
    position:static !important;
  }

  .site-header .aom-lang-switch{
    flex:0 0 auto !important;
    width:auto !important;
    height:30px !important;
    padding:2px !important;
    border-radius:9px !important;
    white-space:nowrap !important;
  }

  .site-header .aom-lang-switch button{
    width:27px !important;
    min-width:27px !important;
    height:24px !important;
    padding:0 !important;
    font-size:9px !important;
    line-height:24px !important;
    white-space:nowrap !important;
  }

  .site-header .menu-btn{
    display:flex !important;
    flex:0 0 42px !important;
    width:42px !important;
    min-width:42px !important;
    height:38px !important;
    margin:0 !important;
    position:relative !important;
    z-index:2147483646 !important;
  }

  .mobile-nav,
  .site-shell .mobile-nav{
    position:fixed !important;
    top:84px !important;
    left:12px !important;
    right:12px !important;
    width:auto !important;
    max-width:none !important;
    margin:0 !important;
    padding:10px !important;
    z-index:2147483645 !important;

    max-height:calc(100dvh - 100px) !important;
    overflow-y:auto !important;
    overscroll-behavior:contain !important;

    background:rgba(4,18,28,.985) !important;
    border:1px solid rgba(67,205,234,.22) !important;
    border-radius:16px !important;
    box-shadow:0 24px 70px rgba(0,0,0,.48) !important;

    backdrop-filter:none !important;
    -webkit-backdrop-filter:none !important;
  }

  .mobile-nav.open,
  .site-shell .mobile-nav.open{
    display:grid !important;
    grid-template-columns:1fr 1fr !important;
    gap:8px !important;
  }

  .mobile-nav a{
    min-height:44px !important;
    display:flex !important;
    align-items:center !important;
    padding:10px 12px !important;
    border-radius:10px !important;
  }
}

@media (max-width:390px){

  .site-header,
  .site-header.v40-fixed-header{
    padding-left:9px !important;
    padding-right:9px !important;
    column-gap:5px !important;
  }

  .site-header .brand{
    font-size:13px !important;
    letter-spacing:.035em !important;
  }

  .site-header .brand svg{
    width:24px !important;
  }

  .site-header .nav-right{
    gap:4px !important;
  }

  .site-header .aom-lang-switch button{
    width:24px !important;
    min-width:24px !important;
  }

  .site-header .menu-btn{
    width:40px !important;
    min-width:40px !important;
    flex-basis:40px !important;
  }

  .mobile-nav.open,
  .site-shell .mobile-nav.open{
    grid-template-columns:1fr !important;
  }
}

/* Reduce off-screen Community rendering cost on mobile */
@media (max-width:768px){
  .v45-story-card,
  .v45-feature{
    content-visibility:auto;
    contain-intrinsic-size:320px;
  }
}
