/* zon-header-ux v2026-02-11
 *
 * Applies a mobile-friendly sticky header for legacy report pages:
 * - Prevent nav wrapping into a tall header on small screens.
 * - Provide a compact header state while scrolling (paired with _header-ux.js).
 * - Add scroll-padding so anchor jumps aren't hidden under the header.
 */

html {
  scroll-padding-top: calc(var(--header-h, 0px) + 12px);
}

.header-inner {
  min-width: 0;
  transition:
    padding 180ms ease,
    gap 180ms ease;
}

.nav {
  min-width: 0;
}

@media (max-width: 760px) {
  .header-inner {
    padding: 12px 16px !important;
    align-items: center !important;
    gap: 10px !important;
  }

  .header .tag {
    display: none !important;
  }

  .logo {
    white-space: nowrap !important;
    flex-wrap: nowrap !important;
    max-width: 100%;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

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

  .nav a {
    white-space: nowrap;
  }

  body[data-header="compact"] .header-inner {
    padding: 10px 16px !important;
    flex-wrap: nowrap !important;
  }

  body[data-header="compact"] .nav {
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-end;
  }
}

