/* Rebrand announcement sits above a solid white header so the light logo stays readable. */
.rebrand-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 300;
  box-sizing: border-box;
  min-height: 36px;
  padding: 8px 48px;
  background: #4e86a6;
  color: #ffffff;
  text-align: center;
  font-family: Outfit, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.rebrand-banner[hidden] {
  display: none !important;
}

.rebrand-banner p {
  margin: 0;
}

.rebrand-banner__close {
  position: absolute;
  top: 50%;
  right: 10px;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 767px) {
  .rebrand-banner {
    font-size: 13px;
    padding: 8px 40px;
  }
}

/* Pull the header out of the hero overlay and give it a white bar. */
#dm .header-over-content .dmHeaderContainer.fHeader,
#dm .header-over-content div.dmHeaderContainer {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  width: 100% !important;
  background-color: #ffffff !important;
  background-image: none !important;
  z-index: 120;
}

#dm .dmHeaderContainer #hcontainer.dmHeader,
#dm .p_hfcontainer div#hamburger-header.hamburger-header,
#dm .p_hfcontainer div#mobile-hamburger-header.hamburger-header {
  background-color: #ffffff !important;
  background-image: none !important;
  box-shadow: none !important;
}

#dm .runtime-module-container .hamburger-header-container {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  width: 100% !important;
  z-index: 120;
  background-color: #ffffff !important;
}

#dm .site_content {
  position: relative;
}

#dm .site_content > .layout-drawer-hamburger.hamburger-on-header {
  position: absolute !important;
  top: 18px !important;
  left: 12px !important;
  color: #333333 !important;
  z-index: 130;
}

#dm #mobile-hamburger-header .u_1376077297 {
  padding-left: 48px !important;
  box-sizing: border-box;
}

/* Light lockup, sized to the white bar. Mobile is capped so it clears the menu button. */
#dm .p_hfcontainer div.u_1011018909.imageWidget {
  width: 168px !important;
  max-width: 34vw !important;
  margin: 8px auto !important;
}

/* Beats the Duda 325px / 722px-margin rule on the tablet menu logo. */
#dm .p_hfcontainer div.u_1923160809.imageWidget {
  width: 150px !important;
  max-width: 42vw !important;
  margin: 8px 0 8px 56px !important;
}

#dm .p_hfcontainer div.u_1023253907 {
  width: auto !important;
  max-width: 124px !important;
  margin: 4px auto !important;
}

#dm .p_hfcontainer div.u_1011018909 img,
#dm .p_hfcontainer div.u_1923160809 img,
#dm .p_hfcontainer div.u_1023253907 img {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  object-fit: contain;
  filter: none !important;
}

#dm .p_hfcontainer div.u_1011018909 img,
#dm .p_hfcontainer div.u_1923160809 img {
  max-height: 80px !important;
}

#dm .p_hfcontainer div.u_1023253907 img {
  max-width: 124px !important;
  max-height: 78px !important;
}

@media (max-width: 480px) {
  #dm .p_hfcontainer div.u_1023253907 {
    max-width: 112px !important;
  }

  #dm .p_hfcontainer div.u_1023253907 img {
    max-width: 112px !important;
    max-height: 72px !important;
  }
}

/* Nav was styled for a photo hero. On white it needs dark type and the blue current-page mark. */
#dm .dmHeaderContainer .unifiednav__item .nav-item-text,
#dm .p_hfcontainer .unifiednav__item .nav-item-text {
  color: #1f2933 !important;
}

#dm .dmHeaderContainer .dmNavItemSelected .nav-item-text::after,
#dm .p_hfcontainer .main-navigation .dmNavItemSelected .nav-item-text::after {
  transform: scaleX(1) !important;
  border-top-color: #005685 !important;
  background-color: #005685 !important;
}

/* Old profile links stay in the markup until new social URLs exist.
   These beat the Duda display:block !important rules on the same widgets. */
#dm .dmBody div.u_1119070928.dmSocialHub,
#dm .p_hfcontainer div.u_1575165920.dmSocialHub,
#dm .dmBody div.u_1140759116.dmNewParagraph {
  display: none !important;
}
