/* Continue the existing first-section background behind the native header. */
body[data-mhb-transparent-top] .mhb-site-header.site-header {
  background: transparent;
  background-image: none;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Partner and localized About pages keep their existing pale hero gradient. */
body[data-mhb-transparent-top] .page-hero[data-mhb-first] {
  isolation: isolate;
  overflow: visible;
  background: transparent;
  border-top-color: transparent;
}
body[data-mhb-transparent-top] .page-hero[data-mhb-first]::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: calc(-1 * var(--mhb-first-offset, 120px)) 0 0;
  background: linear-gradient(108deg, #f4f9f5, #eaf3f4);
  pointer-events: none;
}

/* The approved German reference hero keeps its sage/mint palette. */
body[data-mhb-transparent-top] #mhb-reference-final .mhb-hero {
  position: relative;
  isolation: isolate;
  overflow: visible;
  background: transparent;
}
body[data-mhb-transparent-top] #mhb-reference-final .mhb-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: calc(-1 * var(--mhb-first-offset, 120px)) 0 0;
  background: linear-gradient(111deg, #f7f7f0 55%, #f1f2e3 67%, #e0ead7 80%, #cce4d6 91%, #c6e1df 100%);
  pointer-events: none;
}

/* Other reference languages retain their existing black-chrome design. */
body.reference-gallery-page[data-mhb-transparent-top] { background: #050607; }

@media (max-width: 700px) {
  body[data-mhb-transparent-top] :is(.page-hero[data-mhb-first], #mhb-reference-final .mhb-hero)::before {
    inset-block-start: calc(-1 * var(--mhb-first-offset, 112px));
  }
}
@media (max-width: 680px) {
  body[data-mhb-transparent-top] #mhb-reference-final .mhb-hero::before {
    background: linear-gradient(112deg, #f7f7f0 55%, #f1f2e3 70%, #dce8d3 87%, #c6e1df 100%);
  }
}
