/* Header layout polish for Phil Ting campaign site */

#main-header {
  min-height: 80px;
  border-bottom: 1px solid #ececec;
  box-shadow: none;
}

#main-header .container.et_menu_container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 80px;
  padding: 10px 0;
}

#main-header .logo_container {
  position: relative;
  float: none !important;
  height: auto !important;
  width: auto;
  flex: 0 0 auto;
  margin: 0;
}

#main-header .logo_container .logo_helper {
  display: none;
}

#main-header .logo_container a {
  display: block;
  line-height: 0;
}

#main-header #logo {
  max-height: 64px !important;
  min-height: 0 !important;
  height: auto !important;
  width: auto !important;
  display: block;
}

#main-header #et-top-navigation {
  float: none !important;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 !important;
  height: auto !important;
}

#main-header #top-menu-nav {
  float: none !important;
}

#main-header #top-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px 28px;
  padding: 0;
  margin: 0;
}

#main-header #top-menu > li {
  padding: 0;
  margin: 0;
}

#main-header #top-menu > li > a {
  padding: 10px 0 !important;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.3;
}

#main-header #top-menu > li > a:hover,
#main-header #top-menu > li.current-menu-item > a,
#main-header #top-menu > li.current-menu-ancestor > a {
  color: #d22631 !important;
}

#main-header #et_mobile_nav_menu {
  margin-left: 12px;
}

@media only screen and (min-width: 981px) {
  .et_header_style_left #et-top-navigation,
  .et_header_style_left #et-top-navigation nav > ul > li > a {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  #main-header #logo {
    max-height: 64px !important;
    min-height: 0 !important;
  }
}

@media only screen and (max-width: 980px) {
  #main-header .container.et_menu_container {
    min-height: 72px;
    padding: 8px 0;
  }

  #main-header #logo {
    max-height: 52px !important;
    min-height: 0 !important;
  }

  #main-header #top-menu-nav {
    display: none;
  }

  #main-header #et_mobile_nav_menu {
    display: block;
  }
}
