body:has(> .manifesto-site-header) :is(header.mf-nav:not(.manifesto-site-header), header.site-header, .elementor-location-header) {
  display: none !important;
}

/* Collapse empty blocks that previously held page-specific header code. */
body:has(> .manifesto-site-header) :is(
  .elementor[data-elementor-type="wp-page"] > .e-con-boxed:first-child:has(+ header.mf-nav):has(> .e-con-inner):not(:has(> .e-con-inner > *)),
  .manifesto-content-shell > .elementor-widget-manifesto-content:first-child:has(> header.mf-nav):not(:has(> :not(header.mf-nav))),
  .manifesto-content-shell > .elementor-widget-manifesto-content > p:empty:has(+ main),
  .manifesto-content-shell > .elementor-widget-manifesto-content > main > p:empty:first-child
) {
  display: none !important;
}

body:has(> .manifesto-site-header) .manifesto-content-shell:has(> :first-child > header.mf-nav) {
  padding-block-start: 0;
}

.manifesto-site-header {
  position: relative;
  z-index: 80;
  width: 100%;
  border: 0;
  background: #171717;
  box-shadow: inset 0 -1px #373737;
  color: #fff;
  font: 700 .83rem/1.2 Montserrat, Arial, sans-serif;
}

.manifesto-site-header > .mf-wrap {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  width: var(--mf-content-width);
  min-height: 0;
  margin-inline: auto;
  padding-block: clamp(14px, 1.5vw, 20px);
}

.manifesto-header-logo {
  display: block;
  flex: none;
  width: clamp(148px, 15vw, 198px);
  aspect-ratio: 2085 / 346;
}

.manifesto-header-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.manifesto-site-header .mf-wrap > nav {
  display: flex;
  align-items: center;
  gap: 6px clamp(12px, 2.3vw, 36px);
}

.manifesto-site-header .mf-wrap > nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #fff;
  font: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.manifesto-site-header .mf-wrap > nav a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.manifesto-site-header .mf-wrap > nav .manifesto-header-cta {
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid #cf1017;
}

.manifesto-header-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 11px;
  border: 1px solid #595453;
  border-radius: 0;
  background: #171717;
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.manifesto-header-toggle span {
  display: block;
  width: 14px;
  height: 9px;
  border-block: 1px solid currentColor;
}

.manifesto-header-toggle[aria-expanded="true"] {
  border-color: #cf1017;
}

.manifesto-site-header [hidden],
.manifesto-header-toggle[hidden] {
  display: none !important;
}

.manifesto-site-header :is(a, button):focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@media (max-width: 767px) {
  .manifesto-site-header > .mf-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .manifesto-site-header .mf-wrap > nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-column: 1 / -1;
  }

  .manifesto-site-header[data-mf-mega] .mf-mega-panel {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    max-height: none;
    box-shadow: none;
  }
}
