/* The outer header reserves its natural height while staying at the top. */
@media screen {
  body:not(.elementor-editor-active) .elementor-location-header.elementor-33 {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000;
  }

  body:not(.elementor-editor-active) .elementor-location-header.elementor-33 > .elementor-element-972eb76 {
    position: relative !important;
    inset: auto !important;
  }

  body.admin-bar:not(.elementor-editor-active) .elementor-location-header.elementor-33 {
    top: 32px !important;
  }

  /* These theme templates have no hero padding of their own. */
  .site-main > .page-header {
    padding-block-start: clamp(24px, 3vw, 40px);
  }

  .search .site-main > .page-header,
  .search .site-main > .page-header .entry-title {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  html {
    scroll-padding-top: var(--mt-anchor-offset, 104px);
  }

  /* One offset at the scroll container avoids adding several old offsets. */
  .mt-installation-resources,
  :is(main, [data-elementor-type="single-post"], [data-elementor-type="wp-page"]) [id] {
    scroll-margin-top: 0 !important;
  }

  .mt-guide-toc,
  .mt-legacy-article-view:not(.mt-portrait-view) .mt-article-frame > .mt-article-toc,
  .mt-legacy-article-view:not(.mt-portrait-view) .mt-article-frame > .mt-article-related,
  .mt-itk-html-sidebar__inner {
    top: var(--mt-anchor-offset, 104px);
  }

  .mt-itk-html-sidebar__inner {
    max-height: calc(100vh - var(--mt-anchor-offset, 104px) - 16px);
  }

  .mt-itk-reader-nav {
    top: var(--mt-header-offset, 84px);
  }
}

@media screen and (max-width: 782px) {
  body.admin-bar:not(.elementor-editor-active) .elementor-location-header.elementor-33 {
    top: 46px !important;
  }
}

/* WordPress lets its admin bar scroll away on small screens. */
@media screen and (max-width: 600px) {
  body.admin-bar:not(.elementor-editor-active) .elementor-location-header.elementor-33 {
    top: 0 !important;
  }
}
