.sv-site-header {
  position: sticky;
  top: var(--drupal-displace-offset-top, 0px);
  z-index: var(--sv-z-header);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--sv-border);
  /*
   * Do NOT put filter/backdrop-filter/transform on this element.
   * The mobile drawer is position:fixed inside the header; those properties
   * create a containing block and collapse the drawer to the header box.
   */
}

/* Blur lives on a pseudo so it is not an ancestor of the fixed drawer. */
.sv-site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  backdrop-filter: blur(6px);
  background: rgba(255, 255, 255, 0.72);
}

.sv-site-header--scrolled {
  box-shadow: var(--sv-shadow-soft);
}

.sv-site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--sv-space-4);
  min-height: var(--sv-header-height);
}

.sv-site-header__branding {
  flex: 0 0 auto;
}

.sv-branding__logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.sv-branding__logo {
  display: block;
  width: auto;
  height: 3.25rem;
  aspect-ratio: 612 / 792;
  max-height: 3.25rem;
  /* Preserve the wordmark's proportions if the box is ever constrained;
     the default `fill` would distort it. */
  object-fit: contain;
}

.sv-site-header__nav {
  flex: 1 1 auto;
  min-width: 0;
}

.sv-site-header__secondary {
  flex: 0 0 auto;
}

.sv-mobile-trigger {
  display: none;
  margin-left: auto;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--sv-border);
  background: var(--sv-color-surface);
  border-radius: 2px;
  z-index: calc(var(--sv-z-header) + 1);
}

.sv-mobile-trigger__bars,
.sv-mobile-trigger__bars::before,
.sv-mobile-trigger__bars::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  margin: 0 auto;
  background: var(--sv-color-charcoal);
  content: "";
}

.sv-mobile-trigger__bars {
  position: relative;
}

.sv-mobile-trigger__bars::before {
  position: absolute;
  top: -6px;
  left: 0;
}

.sv-mobile-trigger__bars::after {
  position: absolute;
  top: 6px;
  left: 0;
}

@media (max-width: 1365px) {
  .sv-mobile-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* Render last in the flex row. The trailing (whitespace-only) secondary
       region would otherwise sit to its right and leave the trigger inset by
       one flex gap, making the header left/right margins asymmetric. */
    order: 1;
  }

  /* Drawer width open/closed is owned by navigation.css (fixed panel). */
  .sv-site-header__nav {
    flex: 0 0 auto;
  }
}
