nav #nav-logo-link {
    max-width: 250px;
    -ms-flex-item-align: start;
    align-self: flex-start;
  }
  
  nav #nav-bglogo {
    width: 100%;
    height: 100%;
    display: block;
  }
  
  @media screen and (min-width: 700px) {
    nav #nav-logo-link {
      width: 130px;
    }
  }
  
  /* =========================
     AWS-Style Regional Bars
     ========================= */
  
  /* Shared link styling */
  .region-link {
    color: white;
    text-decoration: none;
    padding: 8px 0;
    display: inline-block;
    transition: color 0.15s ease;
    font-family: "Raleway", system-ui, -apple-system, Segoe UI, Roboto, Arial,
      sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
  }
  .region-link:hover,
  .region-link:focus {
    color: #111;
  }
  .region-link:focus-visible {
    outline: 2px solid #9bb7ff;
    outline-offset: 2px;
  }
  
  /* Desktop/Tablet bar (in the red band above the logo) */
  .region-bar-desktop {
    background: rgba(38, 24, 11, 255);
    min-height: 70px;
    font-family: "Raleway";
    color: black;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e6e6e6;
  }
  .region-bar-desktop .region-track {
    width: 100%;
    display: flex;
    justify-content: flex-end; /* right-aligned like AWS */
    gap: 24px;
    padding: 0 48px;
  }
  
  /* --- Mobile bar (inside <ul.nav-menu> as first <li>) --- */
  /* Make THIS the scroll container so swipe works reliably */
  .nav-region-mobile {
    /* remove the ul's left padding just for this li so we can go edge-to-edge */
    margin-left: -15px;
    margin-right: 0;
  }
  
  .region-bar-mobile {
    background: rgb(38, 24, 11);
    border-top: 1px solid #e6e6e6;
    border-bottom: 1px solid #e6e6e6;
    width: 100vw; /* span full viewport */
    overflow-x: auto; /* the bar itself scrolls */
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
  }
  
  .region-bar-mobile .region-track {
    display: inline-flex; /* shrink-wrap to content so it exceeds viewport */
    min-width: max-content; /* ensure overflow is needed */
    gap: 8px;
    padding: 6px 12px;
    white-space: nowrap;
    flex-wrap: nowrap;
  }
  
  .region-bar-mobile .region-link {
    padding: 10px 14px;
    flex: 0 0 auto;
  }
  
  /* Stacking: logo on top, then region bar (desktop), then dropdown */
  #nav-logo-link {
    position: relative;
    z-index: 104;
  }
  nav .nav-menu {
    position: relative;
    z-index: 101;
  }
  
  /* Visibility rules */
  @media (max-width: 699px) {
    .region-bar-desktop {
      display: none;
    } /* hide red-band bar on mobile */
    .nav-region-mobile {
      display: block;
    } /* allow mobile LI to exist */
  }
  @media (min-width: 700px) {
    .nav-region-mobile {
      display: none !important;
    } /* hide the mobile LI on desktop/tablet */
  }
  
  /* Keep logo always visible on mobile when the menu opens */
  @media (max-width: 699px) {
    /* Make the nav container a positioning context */
    #nav-container {
      position: relative;
      min-height: 69px; /* space for the logo row */
      /* if your logo is taller/shorter, tweak this */
    }
  
    /* Pin the logo to the top-right above the dropdown */
    #nav-logo-link {
      position: absolute;
      right: 0px;
      top: 0px;
      z-index: 106; /* above region bar (103) and menu (101) */
      background: #fff; /* prevents overlap artifacts */
      width: 100px;
    }
  
    /* Ensure hamburger stays clickable and aligned on the left */
    #mobile-nav-menu-button {
      position: relative;
      z-index: 107; /* above everything so taps always register */
    }
  
    /* Give the dropdown some breathing room below the logo + region bar */
    nav .nav-menu {
      margin-top: 20px; /* you already had this; keep or increase if needed */
    }
  }
  