/* Solid header background on non-hero views (Woo, posts, CiviCRM, archives). */
body.woocommerce-page #main-header,
body.woocommerce-page .et-search-form,
body.woocommerce-page #main-header .et_mobile_menu,
body.single-post #main-header,
body.single-post .et-search-form,
body.single-post #main-header .et_mobile_menu,
body.page-id-1039 #main-header,
body.page-id-1039 .et-search-form,
body.page-id-1039 #main-header .et_mobile_menu,
body.page-id-2807 #main-header,
body.page-id-2807 .et-search-form,
body.page-id-2807 #main-header .et_mobile_menu,
body.search #main-header,
body.search .et-search-form,
body.search #main-header .et_mobile_menu,
body.archive #main-header,
body.archive .et-search-form,
body.archive #main-header .et_mobile_menu,
body.blog #main-header,
body.blog .et-search-form,
body.blog #main-header .et_mobile_menu,
body.error404 #main-header,
body.error404 .et-search-form,
body.error404 #main-header .et_mobile_menu {
  background-color: #1a404f !important;
}

body.woocommerce-page #main-header,
body.single-post #main-header,
body.page-id-1039 #main-header,
body.page-id-2807 #main-header,
body.search #main-header,
body.archive #main-header,
body.blog #main-header,
body.error404 #main-header {
  box-shadow: none !important;
}

body.woocommerce-page #top-menu a,
body.woocommerce-page #et_search_icon:before,
body.woocommerce-page #et-top-navigation .et-cart-info,
body.single-post #top-menu a,
body.single-post #et_search_icon:before,
body.single-post #et-top-navigation .et-cart-info,
body.page-id-2807 #top-menu a,
body.page-id-2807 #et_search_icon:before,
body.page-id-2807 #et-top-navigation .et-cart-info,
body.page-id-1039 #top-menu a,
body.page-id-1039 #et_search_icon:before,
body.page-id-1039 #et-top-navigation .et-cart-info,
body.search #top-menu a,
body.search #et_search_icon:before,
body.search #et-top-navigation .et-cart-info,
body.archive #top-menu a,
body.archive #et_search_icon:before,
body.archive #et-top-navigation .et-cart-info,
body.blog #top-menu a,
body.blog #et_search_icon:before,
body.blog #et-top-navigation .et-cart-info,
body.error404 #top-menu a,
body.error404 #et_search_icon:before,
body.error404 #et-top-navigation .et-cart-info {
  color: rgba(255, 255, 255, 0.9) !important;
}

body.woocommerce-page #top-menu li.current-menu-ancestor > a,
body.woocommerce-page #top-menu li.current-menu-item > a,
body.woocommerce-page #top-menu li.current_page_item > a,
body.single-post #top-menu li.current-menu-ancestor > a,
body.single-post #top-menu li.current-menu-item > a,
body.single-post #top-menu li.current_page_item > a,
body.page-id-2807 #top-menu li.current-menu-ancestor > a,
body.page-id-2807 #top-menu li.current-menu-item > a,
body.page-id-2807 #top-menu li.current_page_item > a,
body.page-id-1039 #top-menu li.current-menu-ancestor > a,
body.page-id-1039 #top-menu li.current-menu-item > a,
body.page-id-1039 #top-menu li.current_page_item > a,
body.search #top-menu li.current-menu-ancestor > a,
body.search #top-menu li.current-menu-item > a,
body.search #top-menu li.current_page_item > a,
body.archive #top-menu li.current-menu-ancestor > a,
body.archive #top-menu li.current-menu-item > a,
body.archive #top-menu li.current_page_item > a,
body.blog #top-menu li.current-menu-ancestor > a,
body.blog #top-menu li.current-menu-item > a,
body.blog #top-menu li.current_page_item > a,
body.error404 #top-menu li.current-menu-ancestor > a,
body.error404 #top-menu li.current-menu-item > a,
body.error404 #top-menu li.current_page_item > a {
  color: #ffffff !important;
}

body.woocommerce-page #main-header.et-fixed-header,
body.single-post #main-header.et-fixed-header,
body.page-id-2807 #main-header.et-fixed-header,
body.page-id-1039 #main-header.et-fixed-header,
body.search #main-header.et-fixed-header,
body.archive #main-header.et-fixed-header,
body.blog #main-header.et-fixed-header,
body.error404 #main-header.et-fixed-header {
  background-color: #1a404f !important;
}

/* Submenu styling */
body.woocommerce-page #top-menu li ul,
body.single-post #top-menu li ul,
body.page-id-2807 #top-menu li ul,
body.page-id-1039 #top-menu li ul,
body.search #top-menu li ul,
body.archive #top-menu li ul,
body.blog #top-menu li ul,
body.error404 #top-menu li ul {
  background-color: #ffffff !important;
}

body.woocommerce-page #top-menu li ul a,
body.single-post #top-menu li ul a,
body.page-id-2807 #top-menu li ul a,
body.page-id-1039 #top-menu li ul a,
body.search #top-menu li ul a,
body.archive #top-menu li ul a,
body.blog #top-menu li ul a,
body.error404 #top-menu li ul a,
body.woocommerce-page #main-header .nav li ul a,
body.single-post #main-header .nav li ul a,
body.page-id-2807 #main-header .nav li ul a,
body.page-id-1039 #main-header .nav li ul a,
body.search #main-header .nav li ul a,
body.archive #main-header .nav li ul a,
body.blog #main-header .nav li ul a,
body.error404 #main-header .nav li ul a {
  color: #1a404f !important;
}

body.woocommerce-page #top-menu li ul a:hover,
body.single-post #top-menu li ul a:hover,
body.page-id-2807 #top-menu li ul a:hover,
body.page-id-1039 #top-menu li ul a:hover,
body.search #top-menu li ul a:hover,
body.archive #top-menu li ul a:hover,
body.blog #top-menu li ul a:hover,
body.error404 #top-menu li ul a:hover,
body.woocommerce-page #main-header .nav li ul a:hover,
body.single-post #main-header .nav li ul a:hover,
body.page-id-2807 #main-header .nav li ul a:hover,
body.page-id-1039 #main-header .nav li ul a:hover,
body.search #main-header .nav li ul a:hover,
body.archive #main-header .nav li ul a:hover,
body.blog #main-header .nav li ul a:hover,
body.error404 #main-header .nav li ul a:hover {
  color: #1a404f !important;
  background-color: rgba(0, 0, 0, 0.03) !important;
}

/* Match menu typography on CiviCRM landing pages to site defaults. */
body.page-id-2807 #top-menu a,
body.page-id-2807 #top-menu li ul a,
body.page-id-1039 #top-menu a,
body.page-id-1039 #top-menu li ul a {
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 28px !important;
}

/* Match submenu accent on CiviCRM landing pages. */
body.page-id-2807 #top-menu li ul,
body.page-id-1039 #top-menu li ul {
  border-color: #febe10 !important;
}

/* Hide single-post sidebar */
body.single-post #sidebar,
body.single-post .et_right_sidebar #sidebar {
  display: none !important;
}
body.single-post #left-area,
body.single-post .et_right_sidebar #left-area {
  width: 100% !important;
  padding-right: 0 !important;
}
body.single-post #main-content .container:before {
  display: none !important;
}

/* Hide duplicate All Pages body-template hero on homepage. */
body.home .et-l--body .et_pb_section_0_tb_body,
body.home .et-l--body .et_pb_post_title_0_tb_body,
body.home .et-l--body .et_pb_post_title {
  display: none !important;
}

/* Constrain CiviCRM content width. */
body.page-id-2807 .et_pb_fullwidth_post_content,
body.page-id-1039 .et_pb_fullwidth_post_content {
  width: 80%;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

@media only screen and (max-width: 980px) {
  body.page-id-2807 .et_pb_fullwidth_post_content,
  body.page-id-1039 .et_pb_fullwidth_post_content,
  #et-main-area .wp-site-blocks > .woocommerce,
  #et-main-area .wp-site-blocks > .woocommerce-notices-wrapper,
  #et-main-area .wp-site-blocks > [class*="wp-block-woocommerce"] {
    width: 90%;
  }
}

/* Constrain Woo block wrappers. */
#et-main-area .wp-site-blocks > .woocommerce,
#et-main-area .wp-site-blocks > .woocommerce-notices-wrapper,
#et-main-area .wp-site-blocks > [class*="wp-block-woocommerce"] {
  width: 80%;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

/* Constrain cart/checkout block wrappers. */
body.woocommerce-cart #et-main-area .wp-site-blocks,
body.woocommerce-checkout #et-main-area .wp-site-blocks {
  width: 80%;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}
@media only screen and (max-width: 980px) {
  body.woocommerce-cart #et-main-area .wp-site-blocks,
  body.woocommerce-checkout #et-main-area .wp-site-blocks {
    width: 90%;
  }
}

/* Mobile hero padding on homepage to clear fixed header. */
@media only screen and (max-width: 980px) {
  body.home .et_pb_section_0.et_pb_with_background {
    padding-top: 130px !important;
  }
}
@media only screen and (max-width: 767px) {
  body.home .et_pb_section_0.et_pb_with_background {
    padding-top: 120px !important;
  }
}

/* Hide cart icon until store is ready. */
#et-top-navigation .et-cart-info {
  display: none !important;
}
