/*
 TJF CONNECT MOBILE LAYOUT FIX V2
 2026-09-09
 Keeps page width fixed, makes the bottom navigation swipeable,
 and replaces the corrupted mobile search glyph.
*/

@media (width <= 660px) {
  html,
  body,
  #root,
  .app-shell,
  .main-content {
    width: 100%;
    max-width: 100%;
  }

  body {
    overflow-x: hidden;
  }

  .sidebar {
    overflow: hidden !important;
  }

  .main-nav {
    width: 100%;
    max-width: 100%;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: 0 !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .nav-item {
    flex: 0 0 72px !important;
    width: 72px !important;
    min-width: 72px !important;
    max-width: 72px !important;
    padding: 4px 3px !important;
    scroll-snap-align: start;
  }

  .nav-item span:last-child {
    max-width: 68px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 9px !important;
    line-height: 1.1;
  }

  .social-topbar,
  .content-grid,
  .feed-column,
  .global-search.mobile-search-active {
    min-width: 0;
    max-width: 100%;
  }

  .mobile-search-toggle {
    font-size: 0 !important;
  }

  .mobile-search-toggle::before {
    content: "\1F50D";
    font-size: 18px;
    line-height: 1;
  }
}
