header:has(.site-audio-toggle) {
  position: relative;
}

header .site-audio-toggle {
  position: absolute;
  inset: 18px 12px auto auto;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}

header .site-audio-toggle:hover {
  color: #e4c181;
}

header .site-audio-toggle:focus-visible {
  outline: 2px solid #e4c181;
  outline-offset: 2px;
}

header .site-audio-toggle[aria-pressed="false"] .sound-muted,
header .site-audio-toggle[aria-pressed="true"] .sound-waves {
  display: none;
}

/* Site navigation uses the same compact spacing across the shared header pages. */
@media (min-width: 761px) {
  .cabinet > header:not(.site-header):has(> .brand) {
    min-height: 94px;
    padding-block-start: 12px;
  }

  .cabinet > header:not(.site-header) > .brand {
    align-self: flex-end;
    margin-block: 0 11px;
  }

  .site-header:has(> .site-audio-toggle) {
    height: 68px;
    padding-inline-end: max(48px, 5%);
  }
}

@media (max-width: 760px) {
  .cabinet > header:not(.site-header):has(> .brand) {
    padding-block-start: 14px;
  }

  .cabinet > header:not(.site-header) > .brand {
    margin-block: 0 10px;
  }
}
