/* V116 – compact mobile header with a single, non-wrapping button row. */
@media (max-width: 680px) {
  .topbar {
    position: relative !important;
    top: auto !important;
  }

  .topbar,
  .topbar .nav {
    position: relative;
    overflow: visible;
  }

  .topbar .nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
    min-height: 0;
    padding: 8px 10px;
  }

  .topbar .nav .logo-brand {
    flex: 1 1 100% !important;
    width: 100%;
    max-width: none;
    min-width: 0 !important;
    justify-content: center;
    gap: 7px !important;
  }

  .topbar .nav .header-logo-image {
    width: 36px !important;
    height: 36px !important;
    flex: 0 0 36px !important;
    object-fit: contain;
  }

  .topbar .nav .header-brand-text {
    display: flex !important;
    flex-direction: row;
    align-items: baseline;
    justify-content: center;
    gap: 5px !important;
    line-height: 1.2;
    white-space: nowrap;
  }

  .topbar .nav .header-brand-name,
  .topbar .nav .header-brand-country {
    font-size: 16px !important;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: none;
  }

  .topbar .nav .header-brand-country {
    color: #f02b3d !important;
  }

  .topbar .nav .nav-links,
  .topbar .nav .tp-nav-links {
    /* The dropdown is positioned against .nav, outside this scroll row. */
    position: static;
    display: flex;
    flex: 0 1 auto !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    align-items: center;
    gap: 6px !important;
    width: max-content;
    min-width: 0;
    max-width: 100%;
    margin: 0 !important;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(105, 169, 222, .45) transparent;
  }

  .topbar .nav .nav-link:not(.desktop-only):not([hidden]),
  .topbar .nav .tp-nav-link:not([hidden]) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 38px;
    max-width: 100%;
    padding: 8px !important;
    border-radius: 8px;
    font-size: 13px !important;
    line-height: 1.25;
    font-weight: 750;
    text-align: center;
    white-space: nowrap;
    overflow-wrap: normal;
  }

  .topbar .nav .language-switcher {
    position: static;
    flex: 0 0 auto;
  }

  .topbar .nav .language-switcher-button {
    height: 38px !important;
    min-height: 38px;
    min-width: 68px !important;
    padding: 0 8px !important;
    gap: 4px !important;
    border-radius: 8px;
    font-size: 13px !important;
  }

  .topbar .nav .language-switcher-flag {
    width: 20px !important;
    height: 14px !important;
  }

  .topbar .nav .language-switcher-code {
    font-size: 12px !important;
    line-height: 1.2;
  }

  .topbar .nav .language-switcher-chevron {
    font-size: 10px;
  }

  .topbar .nav .language-switcher-menu {
    top: calc(100% + 4px);
    right: 10px;
    left: auto;
    z-index: 60;
    width: min(calc(100% - 20px), 240px);
    min-width: 0;
    max-width: calc(100% - 20px);
  }

  .topbar .nav .language-switcher-option {
    min-height: 44px;
    padding: 10px 12px;
    font-size: 14px;
  }

  .topbar .nav .language-switcher-name,
  .topbar .nav .language-switcher-option strong {
    font-size: 14px;
  }

  .topbar .nav .tp-language {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
  }

  .topbar .nav .tp-language select {
    height: 38px;
    min-height: 38px;
    min-width: 72px;
    padding: 6px 8px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.25;
  }

  /* Section tabs no longer need space for a sticky site header. */
  .admin-main-tabs,
  .portal-section-tabs {
    top: 0;
  }

  /* Preserve explicit visibility controls and the mobile navigation selection. */
  .topbar [hidden],
  .topbar .public-nav .desktop-only {
    display: none !important;
  }
}
