/* MDM-4.0 publication header and explicit page state. */
.mdm-theme-4 .mdm-header{
  border-bottom: 0;
  box-shadow: none;
}

.mdm-theme-4 .mdm-header-utility{
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.mdm-theme-4 .mdm-header-logo{
  width: 58px !important;
  height: 58px !important;
}

.mdm-theme-4 .mdm-header-actions{
  display: flex;
  align-items: center;
  gap: .75rem;
}

.mdm-theme-4 #mdmHeaderSearchDesktop{
  width: min(292px, 28vw);
}

.mdm-theme-4 .mdm-search-group{
  flex-wrap: nowrap;
}

.mdm-theme-4 .mdm-search-input{
  min-width: 0;
  height: 40px;
  padding: .45rem .75rem;
  border-color: var(--mdm-gray-200);
  border-right: 0;
  border-radius: 7px 0 0 7px;
  box-shadow: none;
  font-size: .88rem;
}

.mdm-theme-4 .mdm-search-input:focus{
  border-color: rgba(179,25,31,.42);
  box-shadow: 0 0 0 3px rgba(179,25,31,.08);
}

.mdm-theme-4 .mdm-search-submit{
  width: 42px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--mdm-gray-200);
  border-left: 0;
  border-radius: 0 7px 7px 0;
  background: var(--mdm-white);
  color: var(--mdm-gray-700);
}

.mdm-theme-4 .mdm-search-submit:hover{
  color: var(--mdm-red);
}

.mdm-theme-4 .mdm-search-submit:focus-visible,
.mdm-theme-4 .mdm-header-account:focus-visible,
.mdm-theme-4 .mdm-nav-toggle:focus-visible{
  outline: 3px solid rgba(179,25,31,.22);
  outline-offset: 2px;
}

.mdm-theme-4 .mdm-header-account{
  min-width: 42px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 .8rem;
  border-left: 1px solid var(--mdm-gray-200);
  color: var(--mdm-gray-900);
  font-size: .9rem;
  font-weight: 750;
}

.mdm-theme-4 .mdm-header-account.is-logged-in{
  padding-right: .25rem;
  font-size: 1.28rem;
}

.mdm-theme-4 .mdm-header-account:hover{
  color: var(--mdm-red);
}

.mdm-theme-4 .mdm-primary-nav-shell{
  border-top: 1px solid var(--mdm-gray-200);
  border-bottom: 1px solid var(--mdm-gray-200);
  background: var(--mdm-white);
}

.mdm-theme-4 .mdm-nav-list{
  min-height: 38px;
  gap: .3rem;
}

.mdm-theme-4 .mdm-nav-list a,
.mdm-theme-4 .mdm-mobile-nav-list a{
  position: relative;
}

.mdm-theme-4 .mdm-nav-list a{
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: .25rem .55rem;
  border-radius: 0;
  font-size: .86rem;
  white-space: nowrap;
}

.mdm-theme-4 .mdm-nav-list a:hover{
  color: var(--mdm-gray-700);
  background: transparent;
}

.mdm-theme-4 .mdm-nav-list a::after{
  content: "";
  position: absolute;
  right: .5rem;
  bottom: 0;
  left: .5rem;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--mdm-gray-500);
  opacity: 0;
}

.mdm-theme-4 .mdm-nav-list a:hover::after{
  opacity: 1;
}

.mdm-theme-4 .mdm-nav-list a[aria-current="page"]{
  color: var(--mdm-red);
  background: transparent;
}

.mdm-theme-4 .mdm-nav-list a[aria-current="page"]::after{
  background: var(--mdm-red);
  opacity: 1;
}

.mdm-theme-4 .mdm-mobile-nav-list a[aria-current="page"]{
  color: var(--mdm-red);
  background: rgba(179, 25, 31, .06);
}

@media (max-width: 991.98px){
  .mdm-theme-4 .mdm-header-utility{
    min-height: 64px;
  }

  .mdm-theme-4 .mdm-header-logo{
    width: 48px !important;
    height: 48px !important;
  }

  .mdm-theme-4 .mdm-nav-toggle{
    width: 42px;
    min-height: 40px;
    padding: 0;
    border: 0;
    border-left: 1px solid var(--mdm-gray-200);
    border-radius: 0;
    background: transparent;
  }

  .mdm-theme-4 .mdm-mobile-nav-inner{
    padding-top: .6rem;
  }

  .mdm-theme-4 .mdm-mobile-search{
    margin-bottom: .25rem;
  }
}
