
/* Theme variable for the mobile menu background */
.header-global-collect {
  --mobile-nav-bg: #081C33; 
}

.header-global-collect.light {
  --mobile-nav-bg: #fff;
}

@media (max-width: 1014px) {
  .header-global-collect .navbar {
      background: var(--mobile-nav-bg);
      margin-top: 0;        /* was 2rem, which created the see-through gap */
      padding-top: 2rem;    /* same spacing, now filled with the background */
      top: 5.7rem;       /* was 5.7rem, which created the see-through gap */
  }

  /* Solid header bar while the menu is open */
  body.nav-open .header-global-collect .cmp-header {
      background: var(--mobile-nav-bg);
  }

  /* Softer tap/hover highlight on the dark menu */
  .header-global-collect:not(.light) .navbar__link:hover {
      background-color: rgba(255, 255, 255, 0.1);
      color: #fff;
  }
}