/* XMS Theme v1.4.18 — screenshot-directed inner spacing,
   full-width subtle footer divider, and no-overlap homepage video.
   These targeted overrides preserve the established header styling,
   video aspect-ratio, existing page blocks, particle animations and buttons. */

/* The white header is in normal document flow, instead of being
   absolutely layered over the beginning of the homepage video. This
   pushes the moving image down by exactly the header's own height,
   WITHOUT creating a spacer or blank strip between them. */
body.xms-theme.xms-home-study.xms-has-home-video .xms-site-header {
  position: relative !important;
  top: 0 !important;
  bottom: auto !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
body.xms-theme.xms-home-study.xms-has-home-video.xms-sticky .xms-site-header {
  position: sticky !important;
  top: 0 !important;
}
body.admin-bar.xms-theme.xms-home-study.xms-has-home-video.xms-sticky .xms-site-header {
  top: 32px !important;
}
@media (max-width: 782px) {
  body.admin-bar.xms-theme.xms-home-study.xms-has-home-video.xms-sticky .xms-site-header {
    top: 46px !important;
  }
}
body.xms-theme.xms-home-study.xms-has-home-video > main#xms-content.xms-main {
  padding-top: 0 !important;
  margin-top: 0 !important;
}
body.xms-theme.xms-home-study.xms-has-home-video > main#xms-content.xms-main > .xms-top-video {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Consistent 40px breathing room at the beginning and end of inner
   pages. Preserve existing horizontal gutters and spacing between sections. */
body.xms-theme.xms-inner-study .xms-site-header {
  position: relative !important;
  top: 0 !important;
  margin-bottom: 0 !important;
}
body.xms-theme.xms-inner-study.xms-sticky .xms-site-header {
  position: sticky !important;
  top: 0 !important;
}
body.admin-bar.xms-theme.xms-inner-study.xms-sticky .xms-site-header {
  top: 32px !important;
}
@media (max-width: 782px) {
  body.admin-bar.xms-theme.xms-inner-study.xms-sticky .xms-site-header {
    top: 46px !important;
  }
}
body.xms-theme.xms-inner-spacing > main#xms-content.xms-main {
  padding-top: 40px !important;
  padding-bottom: 40px !important;
}

/* The rule sits between the navigation and copyright, extending over
   the full viewport rather than stopping at the contained footer grid. */
body.xms-theme .xms-footer.xms-footer-orbit .xms-footer-bottom-bar {
  position: relative !important;
  border-top: 0 !important;
}
body.xms-theme .xms-footer.xms-footer-orbit .xms-footer-bottom-bar::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  max-width: 100vw;
  height: 0;
  border-top: 1px solid rgba(255,255,255,0.18);
  pointer-events: none;
}
