/* Approved Eight June Concept 1 logo — surgical brand replacement.
 * Keeps the existing header grid, navigation, tap targets, section structure
 * and footer branding intact.
 */
.site-header > a.brand {
  width: 236px;
  height: 64px;
  max-width: 100%;
  flex: 0 1 auto;
  align-self: center;
  justify-self: start;
  display: block;
  position: relative;
  overflow: hidden;
  background: url("./eightjune-logo-primary.svg") left center / contain no-repeat;
}
.site-header > a.brand > span,
.site-header > a.brand > strong {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.site-header > a.brand:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 4px;
}

/* Mobile/tablet drawer logo. It lives entirely inside the drawer's existing
 * 88–98px top padding, so Discover and every following nav item keep their
 * existing vertical position. */
.ux-drawer-nav .ux-nav-portaled::before {
  content: "";
  position: absolute;
  top: calc(15px + env(safe-area-inset-top, 0px));
  left: 32px;
  width: min(184px, calc(100% - 88px));
  height: 54px;
  background: url("./eightjune-logo-primary.svg") left center / contain no-repeat;
  pointer-events: none;
  z-index: 1;
}

/* Replace the old decorative 8/JUNE treatment with the approved reverse mark.
 * The original text keeps its exact invisible footprint, so the manifesto grid
 * and all responsive spacing remain unchanged. */
.manifesto-mark {
  color: transparent !important;
  opacity: .50 !important;
  background-image: url("./eightjune-logo-mark-reverse.svg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: auto 92%;
}
.manifesto-mark sup {
  color: transparent !important;
  visibility: hidden !important;
}

@media (max-width: 1180px) {
  .site-header > a.brand {
    width: min(220px, calc(100vw - 112px));
    height: 58px;
  }
}

@media (max-width: 640px) {
  .site-header > a.brand {
    width: min(202px, calc(100vw - 100px));
    height: 54px;
  }
  .ux-drawer-nav .ux-nav-portaled::before {
    top: calc(13px + env(safe-area-inset-top, 0px));
    left: 22px;
    width: min(174px, calc(100% - 76px));
    height: 50px;
  }
}

@media (max-width: 360px) {
  .site-header > a.brand {
    width: min(180px, calc(100vw - 92px));
    height: 50px;
  }
  .ux-drawer-nav .ux-nav-portaled::before {
    left: 18px;
    width: min(164px, calc(100% - 70px));
    height: 48px;
  }
}
