nav.navbar {
    background-color: var(--ds-navbar-bg);
    align-items: baseline;
}

/** Mobile menu styling **/
@media screen and (max-width: map-get($grid-breakpoints, md)-0.02) {
    .navbar {
        width: 100%;
        background-color: var(--bs-white);
        position: absolute;
        overflow: hidden;
        height: 0;
        z-index: var(--ds-nav-z-index);
        &.open {
          height: auto;
          min-height: 100vh; //doesn't matter because wrapper is sticky
          border-bottom: 1px var(--ds-header-navbar-border-bottom-color) solid; // open navbar covers header-navbar-wrapper border
        }
    }
}

@media screen and (min-width: map-get($grid-breakpoints, md)) {
    .reset-padding-md {
        margin-left: calc(var(--bs-spacer) / -2);
        margin-right: calc(var(--bs-spacer) / -2);
    }
}

/* TODO remove when https://github.com/twbs/bootstrap/issues/24726 is fixed */
.navbar-expand-md.navbar-container {
    @media screen and (max-width: map-get($grid-breakpoints, md)-0.02) {
        > .navbar-inner-container {
            padding: 0 var(--bs-spacer);
        }
        padding: 0;
    }
}

.navbar-nav ::ng-deep {
  a.nav-link, .btn.nav-link {
    color: var(--ds-navbar-link-color);

    &:hover, &:focus {
      color: var(--ds-navbar-link-color-hover);
    }
  }
}
