/* Shared scrolling behavior for the existing Studios primary headers. */
body[data-aurora-header-mode="sticky"] {
  /* clip suppresses horizontal spill without creating a second scroll area. */
  overflow-x: clip !important;
  overflow-y: visible !important;
}

body[data-aurora-sticky-page] > header[data-aurora-primary-header] {
  position: sticky !important;
  top: 0 !important;
  z-index: 9990 !important;
}

/* SkyHive already reserves space for its fixed, measured primary header. */
body[data-aurora-header-mode="fixed"] > header[data-aurora-primary-header] {
  position: fixed !important;
  left: 0;
  right: 0;
}

body[data-aurora-header-mode="fixed"] {
  padding-top: var(--aurora-primary-header-height, var(--ads-standard-header-height, 122px)) !important;
}

:root {
  scroll-padding-top: calc(var(--aurora-primary-header-height, 140px) + 12px) !important;
}

@media print {
  body[data-aurora-sticky-page] {
    overflow: visible !important;
  }

  body[data-aurora-sticky-page] > header[data-aurora-primary-header] {
    position: static !important;
    top: auto !important;
  }

  body[data-aurora-header-mode="fixed"] {
    padding-top: 0 !important;
  }

  :root {
    scroll-padding-top: 0 !important;
  }
}
