/* Scope this adapter to the enabled header body class. */
body.hd-shared-header-on #header-outer {
  position: sticky !important;
  inset: auto !important;
  --hd-admin-offset:0px;
  top:calc(var(--hd-admin-offset,0px) - var(--hd-promise-height,40px))!important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
  transition: none !important;
  overflow: visible !important;
  opacity: 1 !important;
  visibility: visible !important;
  background: #fff !important;
  border: 0 !important;
  box-shadow: 0 4px 18px rgba(17,43,27,.055) !important;
  z-index: 9990 !important;
}
body.hd-shared-header-on #header-space {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
}
body.hd-shared-header-on #header-outer #top {
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #fff !important;
}
body.hd-shared-header-on #header-outer #top::before,
body.hd-shared-header-on #header-outer #top::after {
  display: none !important;
}
body.hd-shared-header-on #header-outer #header-secondary-outer,
body.hd-shared-header-on #header-outer #search-outer {
  display: none !important;
}
/* WordPress fixes the admin bar above 600px; below that it scrolls naturally. */
@media (min-width:783px) {
  body.admin-bar.hd-shared-header-on #header-outer {--hd-admin-offset:32px;top:calc(var(--hd-admin-offset) - var(--hd-promise-height,40px))!important;}
}
@media (min-width:601px) and (max-width:782px) {
  body.admin-bar.hd-shared-header-on #header-outer {--hd-admin-offset:46px;top:calc(var(--hd-admin-offset) - var(--hd-promise-height,40px))!important;}
}
/* Salient hides every #top nav below its own breakpoint. Match our explicit nav. */
@media (min-width:1180px) {
  body.hd-shared-header-on #header-outer #top .hd-main-nav {display:block !important;}
}
@media (max-width:1179px) {
  body.hd-shared-header-on #header-outer #top .hd-main-nav:not(.hd-nav-open) {display:none !important;}
  body.hd-shared-header-on #header-outer #top .hd-main-nav.hd-nav-open {display:block !important;}
}
/* Preserve horizontal clipping without making body a sticky scroll container. */
body.hd-shared-header-on {overflow-x:clip!important;overflow-y:visible!important;}
html:has(body.hd-shared-header-on.hd-main-menu-open) {overflow:hidden!important;}
