/**
 * Historical K2 header — blue #3371A3 bar, brand title, tab menu
 */

/* Constrain entire header to historical canvas width */
.header-wrapper {
  max-width: var(--d2u-canvas-width);
  margin-left: auto;
  margin-right: auto;
  background-color: var(--d2u-header) !important;
  background-image: none !important;
  box-shadow: none !important;
  border: 1px solid var(--d2u-border);
  border-bottom: none !important;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}

#header,
#masthead,
.header-main,
.header-bg,
.header-bg-color,
.header-bg-image,
.header-top,
.header-inner,
#wide-nav.header-bottom,
.header-bottom {
  background-color: var(--d2u-header) !important;
  background-image: none !important;
  box-shadow: none !important;
  border: 0 !important;
}

/* Prevent Flatsome white fill behind logo text */
.header-main .container,
.header-main .header-inner,
#logo,
#logo a {
  background: transparent !important;
}

#logo a,
#logo {
  color: #fff !important;
  -webkit-text-fill-color: #fff;
}

.header-main .flex-col,
.header-main .container,
.header-bottom .container,
.header-wrapper .container {
  max-width: var(--d2u-canvas-width) !important;
}

.header-main {
  min-height: var(--d2u-header-min-height);
  height: auto !important;
}

/* Brand as hero signal */
#logo a,
.header-main .logo a,
.header-main .logo-text,
.header .logo a,
.header-main .header-logo a,
.logo-text a {
  color: #fff !important;
  font-family: var(--d2u-font-heading) !important;
  font-size: 2.2rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  letter-spacing: 0;
  line-height: 1.1;
}

#logo img {
  max-height: 72px;
}

/* Nav row under brand — same blue as historical header */
#wide-nav.header-bottom,
.header-bottom,
.header-bottom-nav,
.header-bottom .flex-row,
.header-bottom .nav {
  background-color: var(--d2u-header) !important;
  color: #fff !important;
}

.header .header-button,
.header .nav > li > a,
.header-nav > li > a,
.header-bottom .nav > li > a,
#wide-nav .nav > li > a {
  color: #fff !important;
  font-family: var(--d2u-font-body) !important;
  font-weight: 600;
  text-transform: none !important;
  letter-spacing: 0 !important;
  opacity: 1 !important;
  padding: 8px 14px !important;
  line-height: 1.4 !important;
}

.header .nav > li > a:hover,
.header-nav > li > a:hover,
#wide-nav .nav > li > a:hover,
.header .nav > li.active > a,
.header .nav > li.current-menu-item > a,
.header .nav > li.current_page_item > a,
#wide-nav .nav > li.current-menu-item > a {
  background: var(--d2u-menu-hover) !important;
  color: #eee !important;
  border-radius: 4px 4px 0 0;
}

.d2u-header-tagline {
  display: block;
  color: #fff;
  font-size: 0.95rem;
  margin: 0.25rem 0 0.75rem;
  font-family: var(--d2u-font-body);
}

/* Hide ecommerce chrome not in historical site */
.header-cart-link,
.header-account-link,
.header-search-dropdown,
.header .header-divider {
  display: none !important;
}

/* Mobile header: keep brand + menu icon visible */
@media (max-width: 849px) {
  .header-wrapper {
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  #logo a,
  .header-main .logo a {
    font-size: 1.45rem !important;
  }

  .header-main .show-for-medium .nav-icon,
  .header-main .show-for-medium .menu-button,
  .header .icon-menu,
  .header .nav-icon span {
    color: #fff !important;
  }
}
