/*
 * ATLAS mobile navigation regression guard.
 *
 * Stock Picks is loaded after the original mobile workspace stylesheet and
 * previously changed .primary-nav back to flex without resetting the desktop
 * column direction. Keep every dynamically-added destination in one permanent,
 * equally-spaced bottom row.
 */
@media (max-width: 820px) {
  .sidebar {
    position: fixed !important;
    inset: auto 0 0 !important;
  }

  .primary-nav {
    display: flex !important;
    flex-flow: row nowrap !important;
    overflow: hidden !important;
    overscroll-behavior: none;
    scrollbar-width: none;
  }

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

  .primary-nav > button {
    flex: 1 1 0 !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: none;
    overflow: hidden;
    white-space: normal;
  }
}

@media (max-width: 420px) {
  .primary-nav > button {
    gap: 3px;
    padding-inline: 1px;
    font-size: clamp(7px, 2vw, 8px);
  }

  .primary-nav > button svg {
    width: 18px;
    height: 18px;
  }
}
