/*
 * DEL MONACO V217 — STRUCTURAL SHELL RECOVERY
 * -------------------------------------------
 * Global scope is intentionally limited to the ONE shared site header.
 * The header uses fixed positioning (not sticky) because historical
 * overflow/transform patches on the page can create a sticky containing
 * block and make position:sticky stop following the viewport.
 * JS measures the real header height and reserves exactly that space on body.
 */
html {
  scroll-padding-top: calc(var(--dm217-fixed-header-height, 90px) + 12px) !important;
}

body.dm217-fixed-header {
  padding-top: var(--dm217-fixed-header-height, 90px) !important;
}

body.dm217-fixed-header > header.site-header[data-header],
body.dm217-fixed-header > header.site-header,
body.dm217-fixed-header > header.dm130-site-header,
body.dm217-fixed-header > header.dm131-sticky-header,
body.dm217-fixed-header > header.dm180-site-header,
body.dm217-fixed-header > header.dm181-site-header,
body.dm217-fixed-header > header.dm189-site-header {
  position: fixed !important;
  inset: 0 0 auto 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  z-index: 100500 !important;
  transform: none !important;
  translate: none !important;
  overflow: visible !important;
  isolation: isolate !important;
}

body.dm217-fixed-header > header.site-header[data-header] nav,
body.dm217-fixed-header > header.site-header[data-header] .nav,
body.dm217-fixed-header > header.site-header[data-header] [class*="dropdown"],
body.dm217-fixed-header > header.site-header[data-header] [class*="menu"] {
  overflow: visible !important;
}

body.dm217-fixed-header section[id],
body.dm217-fixed-header main [id] {
  scroll-margin-top: calc(var(--dm217-fixed-header-height, 90px) + 12px);
}
