/* FamePadi Community Mobile Canonical Layout
   Source: current live files supplied 2026-10-05.
   Mobile/tablet only. Desktop >= 992px is untouched. */

@media (max-width:991.98px){
  html,body{
    width:100%!important;
    max-width:100%!important;
    overflow-x:hidden!important;
  }

  body.tc-community-active{
    margin:0!important;
    padding-top:64px!important;
    padding-bottom:72px!important;
    background:#050b24!important;
    color:#f7f8ff!important;
    overflow-x:hidden!important;
  }

  body.tc-community-active *,
  body.tc-community-active *::before,
  body.tc-community-active *::after{
    box-sizing:border-box!important;
  }

  /* Community uses its own app header on mobile. */
  body.tc-community-active .vx-desktop-header-shell,
  body.tc-community-active .vx-mobile-header-shell,
  body.tc-community-active .vx2-header,
  body.tc-community-active .vxm-header,
  body.tc-community-active #vxm-menu,
  body.tc-community-active #vxm-backdrop,
  body.tc-community-active .vxpwa-mobile-only{
    display:none!important;
  }

  body.tc-community-active .site-wrapper,
  body.tc-community-active .site-wrapper>.row,
  body.tc-community-active .site-wrapper>.row.justify-content-center{
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
    padding:0!important;
    background:#050b24!important;
  }

  /* Dedicated Community top bar */
  body.tc-community-active .tc-community-topbar{
    display:flex!important;
    position:fixed!important;
    top:0!important;
    left:0!important;
    right:0!important;
    width:100%!important;
    height:64px!important;
    min-height:64px!important;
    margin:0!important;
    padding:8px 12px!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:8px!important;
    background:rgba(5,11,36,.98)!important;
    border-bottom:1px solid #25345f!important;
    box-shadow:0 8px 24px rgba(0,0,0,.14)!important;
    z-index:2147482000!important;
  }

  body.tc-community-active .tc-community-topbar .brand{
    display:flex!important;
    align-items:center!important;
    gap:9px!important;
    flex:0 1 auto!important;
    min-width:0!important;
    width:auto!important;
    height:auto!important;
    margin:0 auto 0 0!important;
    padding:0!important;
    background:transparent!important;
    color:#fff!important;
    text-decoration:none!important;
  }

  body.tc-community-active .tc-mobile-brand-mark{
    display:grid!important;
    place-items:center!important;
    flex:0 0 38px!important;
    width:38px!important;
    height:38px!important;
    border-radius:12px!important;
    background:linear-gradient(135deg,#6f38ff,#7b2cff)!important;
    color:#fff!important;
    font-size:22px!important;
    font-weight:900!important;
  }

  body.tc-community-active .tc-mobile-brand-word{
    display:block!important;
    color:#fff!important;
    font-size:16px!important;
    font-weight:900!important;
    letter-spacing:.08em!important;
    white-space:nowrap!important;
  }

  body.tc-community-active .tc-mobile-top-actions{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:7px!important;
    min-width:0!important;
    margin-left:auto!important;
  }

  body.tc-community-active .tc-mobile-top-actions>a,
  body.tc-community-active .tc-mobile-top-actions>button{
    position:relative!important;
    display:grid!important;
    place-items:center!important;
    flex:0 0 38px!important;
    width:38px!important;
    height:38px!important;
    min-width:38px!important;
    margin:0!important;
    padding:0!important;
    border:1px solid #26345f!important;
    border-radius:12px!important;
    background:#111a40!important;
    color:#fff!important;
    text-decoration:none!important;
    box-shadow:none!important;
  }

  body.tc-community-active .tc-mobile-login,
  body.tc-community-active .tc-mobile-get-started{
    display:flex!important;
    width:auto!important;
    min-width:auto!important;
    padding:0 10px!important;
    font-size:11px!important;
    font-weight:850!important;
    white-space:nowrap!important;
  }

  body.tc-community-active .tc-mobile-get-started{
    background:linear-gradient(135deg,#7b2cff,#a43cff)!important;
    border-color:transparent!important;
  }

  body.tc-community-active .tc-mobile-menu-toggle{
    grid-template-rows:repeat(3,2px)!important;
    align-content:center!important;
    gap:4px!important;
  }
  body.tc-community-active .tc-mobile-menu-toggle span{
    display:block!important;
    width:18px!important;
    height:2px!important;
    margin:0!important;
    border-radius:99px!important;
    background:#fff!important;
  }

  /* One-column Community shell */
  body.tc-community-active .tc-shell{
    display:block!important;
    grid-template-columns:none!important;
    grid-template-areas:none!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin:0!important;
    padding:0 0 72px!important;
    gap:0!important;
  }

  body.tc-community-active .tc-left,
  body.tc-community-active .tc-right{
    display:none!important;
  }

  body.tc-community-active .tc-main{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    grid-column:auto!important;
    grid-area:auto!important;
  }

  /* Off-canvas Community menu */
  body.tc-community-active .tc-mobile-menu-backdrop{
    display:block!important;
    position:fixed!important;
    inset:0!important;
    margin:0!important;
    background:rgba(1,4,15,.70)!important;
    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;
    transition:opacity .2s ease,visibility .2s ease!important;
    z-index:2147482500!important;
  }

  body.tc-community-active .tc-mobile-menu-backdrop.is-open{
    opacity:1!important;
    visibility:visible!important;
    pointer-events:auto!important;
  }

  body.tc-community-active .tc-mobile-menu-drawer{
    display:flex!important;
    flex-direction:column!important;
    position:fixed!important;
    top:0!important;
    right:0!important;
    bottom:0!important;
    left:auto!important;
    width:min(88vw,360px)!important;
    max-width:360px!important;
    height:100dvh!important;
    margin:0!important;
    padding:max(14px,env(safe-area-inset-top)) 14px max(18px,env(safe-area-inset-bottom))!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    background:linear-gradient(180deg,#0a1232 0%,#070d25 100%)!important;
    color:#fff!important;
    border-left:1px solid #28345e!important;
    box-shadow:-25px 0 70px rgba(0,0,0,.45)!important;
    transform:translate3d(105%,0,0)!important;
    visibility:hidden!important;
    opacity:0!important;
    pointer-events:none!important;
    transition:transform .22s ease,opacity .18s ease,visibility .22s ease!important;
    z-index:2147483000!important;
  }

  body.tc-community-active .tc-mobile-menu-drawer.is-open{
    transform:translate3d(0,0,0)!important;
    visibility:visible!important;
    opacity:1!important;
    pointer-events:auto!important;
  }

  body.tc-community-active .tc-mobile-menu-head{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:10px!important;
    width:100%!important;
    padding:0 0 12px!important;
    border-bottom:1px solid #243055!important;
  }

  body.tc-community-active .tc-mobile-user-card{
    display:grid!important;
    grid-template-columns:46px minmax(0,1fr) 18px!important;
    align-items:center!important;
    gap:10px!important;
    width:100%!important;
    margin:12px 0 6px!important;
    padding:10px!important;
    border:1px solid #2d3968!important;
    border-radius:14px!important;
    background:#101942!important;
    color:#fff!important;
    text-decoration:none!important;
  }

  body.tc-community-active .tc-mobile-user-card img{
    width:46px!important;
    height:46px!important;
    object-fit:cover!important;
    border-radius:50%!important;
  }

  body.tc-community-active .tc-mobile-menu-nav{
    display:block!important;
    width:100%!important;
    padding:6px 0 10px!important;
  }

  body.tc-community-active .tc-mobile-menu-nav a{
    display:flex!important;
    align-items:center!important;
    gap:11px!important;
    width:100%!important;
    min-height:44px!important;
    margin:2px 0!important;
    padding:9px 10px!important;
    border-radius:11px!important;
    color:#dce4f7!important;
    text-decoration:none!important;
    font-size:13px!important;
    font-weight:750!important;
  }

  body.tc-community-active .tc-mobile-menu-nav a.active{
    background:#182454!important;
    color:#c8a8ff!important;
  }

  body.tc-community-active .tc-mobile-menu-label{
    padding:13px 9px 6px!important;
    color:#7784a8!important;
    font-size:9px!important;
    font-weight:900!important;
    letter-spacing:.16em!important;
    text-transform:uppercase!important;
  }

  /* Bottom app navigation */
  body.tc-community-active .tc-mobile-bottom{
    display:grid!important;
    position:fixed!important;
    left:0!important;
    right:0!important;
    bottom:0!important;
    width:100%!important;
    height:68px!important;
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    align-items:stretch!important;
    margin:0!important;
    padding:4px 6px max(4px,env(safe-area-inset-bottom))!important;
    background:rgba(5,11,36,.99)!important;
    border-top:1px solid #25345f!important;
    box-shadow:0 -8px 26px rgba(0,0,0,.18)!important;
    z-index:2147481900!important;
  }

  body.tc-community-active .tc-mobile-bottom a{
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:3px!important;
    min-width:0!important;
    width:100%!important;
    height:100%!important;
    margin:0!important;
    padding:5px 2px!important;
    border-radius:12px!important;
    color:#98a6c6!important;
    text-decoration:none!important;
    font-size:9px!important;
    line-height:1.05!important;
    font-weight:750!important;
    text-align:center!important;
  }

  body.tc-community-active .tc-mobile-bottom a i{
    font-size:18px!important;
    color:inherit!important;
  }

  body.tc-community-active .tc-mobile-bottom a.active{
    background:#111a40!important;
    color:#bd93ff!important;
  }

  body.tc-community-active .tc-mobile-bottom .tc-mobile-create{
    position:relative!important;
    overflow:visible!important;
  }

  body.tc-community-active .tc-mobile-bottom .tc-mobile-create>span{
    display:grid!important;
    place-items:center!important;
    width:42px!important;
    height:42px!important;
    margin-top:-16px!important;
    border:3px solid #050b24!important;
    border-radius:15px!important;
    background:linear-gradient(135deg,#7b2cff,#a43cff)!important;
    color:#fff!important;
    box-shadow:0 8px 22px rgba(118,44,255,.35)!important;
  }

  body.tc-community-active .tc-mobile-bottom .tc-mobile-create small{
    margin-top:-1px!important;
    color:#c9d0e6!important;
    font-size:9px!important;
  }

  /* Search: one clean column on all phone/tablet widths */
  body.tc-community-active .tc-shell.fp340-search-shell{
    display:block!important;
    grid-template-columns:none!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin:0!important;
    padding:10px!important;
    overflow-x:hidden!important;
  }

  body.tc-community-active .tc-shell.fp340-search-shell>.tc-left,
  body.tc-community-active .tc-shell.fp340-search-shell>.tc-right,
  body.tc-community-active .tc-shell.fp340-search-shell>.fp462-search-right{
    display:none!important;
  }

  body.tc-community-active .tc-shell.fp340-search-shell>.tc-main{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
  }

  body.tc-community-active .fp340-search-hero,
  body.tc-community-active .fp340-result-section,
  body.tc-community-active .fp340-search-empty{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin-left:0!important;
    margin-right:0!important;
    overflow:hidden!important;
  }

  body.tc-community-active .fp340-search-form{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
  }

  body.tc-community-active .fp340-search-form input{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
  }

  body.tc-community-active .fp340-search-tabs{
    display:flex!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    white-space:nowrap!important;
    scrollbar-width:none!important;
    -webkit-overflow-scrolling:touch!important;
  }

  body.tc-community-active .fp340-search-tabs::-webkit-scrollbar{
    display:none!important;
  }

  body.tc-community-active .fp340-search-tabs a{
    flex:0 0 auto!important;
  }

  /* General mobile safety without altering Reel media behavior */
  body.tc-community-active img,
  body.tc-community-active video{
    max-width:100%;
  }

  body.tc-community-active #famepadi-enable-alerts,
  body.tc-community-active .fp351-global-call{
    max-width:calc(100vw - 24px)!important;
  }
}

@media (max-width:520px){
  body.tc-community-active .tc-mobile-brand-word{
    font-size:14px!important;
  }

  body.tc-community-active .tc-mobile-top-actions{
    gap:5px!important;
  }

  body.tc-community-active .tc-mobile-login{
    display:none!important;
  }

  body.tc-community-active .tc-mobile-get-started{
    padding:0 8px!important;
    font-size:10px!important;
  }

  body.tc-community-active .tc-shell.fp340-search-shell{
    padding:8px!important;
  }

  body.tc-community-active .fp340-search-hero{
    padding:16px!important;
    border-radius:16px!important;
  }

  body.tc-community-active .fp340-search-hero h1{
    font-size:30px!important;
    line-height:1.08!important;
  }

  body.tc-community-active .fp340-search-hero p{
    font-size:14px!important;
    line-height:1.5!important;
  }

  body.tc-community-active .fp340-search-form{
    display:grid!important;
    grid-template-columns:22px minmax(0,1fr)!important;
    gap:8px!important;
    padding:8px!important;
  }

  body.tc-community-active .fp340-search-form button{
    grid-column:1/-1!important;
    width:100%!important;
  }
}

/* FAMEPADI_PUBLIC_MOBILE_MENU_V1 */
@media (max-width:991.98px){

  /* Public pages only. Community has its own mobile navigation. */
  body:not(.tc-community-active) .vxm-header{
    display:flex!important;
    position:fixed!important;
    top:0!important;
    left:0!important;
    right:0!important;
    width:100%!important;
    height:68px!important;
    min-height:68px!important;
    padding:0 12px!important;
    margin:0!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:8px!important;
    background:#07102e!important;
    border-bottom:1px solid rgba(255,255,255,.10)!important;
    z-index:2147481000!important;
  }

  body:not(.tc-community-active) .vxm-header .vxm-brand{
    display:flex!important;
    align-items:center!important;
    min-width:0!important;
    max-width:165px!important;
    margin:0!important;
    padding:0!important;
    color:#fff!important;
    text-decoration:none!important;
  }

  body:not(.tc-community-active) .vxm-header-actions{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:7px!important;
    margin-left:auto!important;
    min-width:0!important;
  }

  body:not(.tc-community-active) .vxm-quick-login,
  body:not(.tc-community-active) .vxm-quick-start,
  body:not(.tc-community-active) .vxm-quick-dashboard{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    height:38px!important;
    min-height:38px!important;
    margin:0!important;
    border-radius:11px!important;
    text-decoration:none!important;
    white-space:nowrap!important;
    font-size:12px!important;
    font-weight:850!important;
    line-height:1!important;
  }

  body:not(.tc-community-active) .vxm-quick-login{
    padding:0 10px!important;
    color:#fff!important;
    border:1px solid rgba(255,255,255,.18)!important;
    background:rgba(255,255,255,.06)!important;
  }

  body:not(.tc-community-active) .vxm-quick-start{
    padding:0 12px!important;
    color:#15192a!important;
    border:0!important;
    background:linear-gradient(135deg,#ffe678,#f6bf35)!important;
  }

  body:not(.tc-community-active) .vxm-menu-btn{
    display:grid!important;
    place-items:center!important;
    align-content:center!important;
    flex:0 0 42px!important;
    width:42px!important;
    height:42px!important;
    min-width:42px!important;
    margin:0!important;
    padding:0!important;
    gap:4px!important;
    border:1px solid rgba(255,255,255,.14)!important;
    border-radius:12px!important;
    background:rgba(255,255,255,.06)!important;
    color:#fff!important;
  }

  body:not(.tc-community-active) .vxm-menu-btn span{
    display:block!important;
    width:18px!important;
    height:2px!important;
    margin:0!important;
    border-radius:999px!important;
    background:#fff!important;
  }

  body:not(.tc-community-active) #vxm-menu.vxm-drawer{
    display:flex!important;
    flex-direction:column!important;
    position:fixed!important;
    top:0!important;
    right:0!important;
    bottom:0!important;
    left:auto!important;
    width:min(88vw,360px)!important;
    max-width:360px!important;
    height:100dvh!important;
    max-height:100dvh!important;
    margin:0!important;
    padding:0!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    background:linear-gradient(180deg,#0a1234 0%,#07102e 100%)!important;
    color:#fff!important;
    border-left:1px solid #28345f!important;
    box-shadow:-28px 0 80px rgba(0,0,0,.48)!important;
    transform:translate3d(105%,0,0)!important;
    visibility:hidden!important;
    opacity:0!important;
    pointer-events:none!important;
    transition:transform .22s ease,opacity .18s ease,visibility .22s ease!important;
    z-index:2147483000!important;
  }

  body:not(.tc-community-active) #vxm-menu.vxm-drawer.open{
    transform:translate3d(0,0,0)!important;
    visibility:visible!important;
    opacity:1!important;
    pointer-events:auto!important;
  }

  body:not(.tc-community-active) .vxm-drawer-head{
    position:sticky!important;
    top:0!important;
    z-index:3!important;
    display:grid!important;
    grid-template-columns:40px minmax(0,1fr)!important;
    align-items:center!important;
    gap:10px!important;
    width:100%!important;
    min-height:68px!important;
    padding:10px 14px!important;
    margin:0!important;
    background:#0a1234!important;
    border-bottom:1px solid #26345d!important;
  }

  body:not(.tc-community-active) .vxm-drawer-head button{
    display:grid!important;
    place-items:center!important;
    width:40px!important;
    height:40px!important;
    margin:0!important;
    padding:0!important;
    border:1px solid #2b3966!important;
    border-radius:11px!important;
    background:#111b42!important;
    color:#fff!important;
  }

  body:not(.tc-community-active) .vxm-drawer-head>div{
    min-width:0!important;
    line-height:1.15!important;
  }

  body:not(.tc-community-active) .vxm-drawer-head small{
    display:block!important;
    margin:0 0 3px!important;
    color:#7f8daf!important;
    font-size:9px!important;
    font-weight:900!important;
    letter-spacing:.14em!important;
  }

  body:not(.tc-community-active) .vxm-drawer-head strong{
    display:block!important;
    margin:0!important;
    color:#fff!important;
    font-size:14px!important;
    font-weight:850!important;
  }

  body:not(.tc-community-active) .vxm-grouped-nav{
    display:block!important;
    width:100%!important;
    margin:0!important;
    padding:8px 12px 12px!important;
  }

  body:not(.tc-community-active) .vxm-main-link{
    display:flex!important;
    align-items:center!important;
    gap:10px!important;
    width:100%!important;
    min-height:44px!important;
    margin:2px 0!important;
    padding:10px 11px!important;
    border:0!important;
    border-radius:11px!important;
    color:#f3f6ff!important;
    background:transparent!important;
    text-decoration:none!important;
    font-size:13px!important;
    font-weight:850!important;
    line-height:1.25!important;
  }

  body:not(.tc-community-active) .vxm-main-link:hover,
  body:not(.tc-community-active) .vxm-main-link:focus{
    background:#131e49!important;
    color:#fff!important;
  }

  body:not(.tc-community-active) .vxm-nav-group{
    width:100%!important;
    margin:8px 0!important;
    padding:10px 0 2px!important;
    border-top:1px solid #25335d!important;
  }

  body:not(.tc-community-active) .vxm-nav-group>span{
    display:block!important;
    margin:0!important;
    padding:0 11px 6px!important;
    color:#7f8daf!important;
    font-size:9px!important;
    font-weight:900!important;
    letter-spacing:.15em!important;
    line-height:1.2!important;
  }

  body:not(.tc-community-active) .vxm-nav-group>a{
    display:flex!important;
    align-items:center!important;
    width:100%!important;
    min-height:42px!important;
    margin:1px 0!important;
    padding:9px 11px!important;
    border:0!important;
    border-radius:10px!important;
    background:transparent!important;
    color:#dce4f7!important;
    text-decoration:none!important;
    font-size:13px!important;
    font-weight:650!important;
    line-height:1.25!important;
  }

  body:not(.tc-community-active) .vxm-nav-group>a:hover,
  body:not(.tc-community-active) .vxm-nav-group>a:focus{
    background:#111b42!important;
    color:#fff!important;
  }

  body:not(.tc-community-active) .vxm-account{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:8px!important;
    width:100%!important;
    margin-top:auto!important;
    padding:12px 14px max(16px,env(safe-area-inset-bottom))!important;
    border-top:1px solid #25335d!important;
    background:#08102f!important;
  }

  body:not(.tc-community-active) .vxm-account a{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    min-height:42px!important;
    margin:0!important;
    padding:8px 10px!important;
    border:1px solid #2a3966!important;
    border-radius:11px!important;
    background:#111b42!important;
    color:#fff!important;
    text-decoration:none!important;
    font-size:12px!important;
    font-weight:850!important;
    line-height:1!important;
  }

  body:not(.tc-community-active) .vxm-account a.vxm-primary{
    border-color:transparent!important;
    background:linear-gradient(135deg,#7b2cff,#a43cff)!important;
    color:#fff!important;
  }

  body:not(.tc-community-active) #vxm-backdrop.vxm-backdrop{
    display:block!important;
    position:fixed!important;
    inset:0!important;
    margin:0!important;
    background:rgba(1,4,15,.72)!important;
    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;
    transition:opacity .18s ease,visibility .18s ease!important;
    z-index:2147482500!important;
  }

  body:not(.tc-community-active) #vxm-backdrop.vxm-backdrop.open{
    opacity:1!important;
    visibility:visible!important;
    pointer-events:auto!important;
  }
}

@media (max-width:410px){
  body:not(.tc-community-active) .vxm-quick-login{
    display:none!important;
  }

  body:not(.tc-community-active) .vxm-quick-start{
    padding:0 9px!important;
    font-size:11px!important;
  }
}