/* Production layout fix: keep every decorative effect inside its owner.
   An unconstrained primary-button pseudo element previously enlarged the
   document's vertical overflow and produced a large blank area after footer. */
html {
  min-height: 100%;
  background: #061520;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  display: flex;
  flex-direction: column;
}

body > main {
  flex: 1 0 auto;
  width: 100%;
}

body > .keyword-section,
body > .site-footer {
  flex: 0 0 auto;
  width: 100%;
}

/* This is the direct fix for the blank space shown in the supplied video. */
.btn,
.btn.primary,
.shine {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn.primary::after {
  content: none !important;
  display: none !important;
  animation: none !important;
}

.site-footer {
  position: relative;
  z-index: 1;
  margin: 0 !important;
}

body.theme-2,
body.theme-tech {
  --footer-canvas: #102e2a;
}

@media (max-width: 980px), (prefers-reduced-motion: reduce) {
  .shine::after {
    content: none !important;
    display: none !important;
    animation: none !important;
  }
}

/* Final footer boundary: no transformed or decorative layer may extend the page. */
html,
body {
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

body {
  display: block !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

body > main,
body > .keyword-section,
body > .site-footer {
  display: block;
  width: 100%;
  min-height: 0 !important;
  margin-bottom: 0 !important;
}

html::before,
html::after,
body::before,
body::after,
.site-footer::before,
.site-footer::after {
  content: none !important;
  display: none !important;
}

.site-footer,
.footer-bottom,
.developer-bar {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  transform: none !important;
}

.site-footer {
  overflow: hidden !important;
  padding-bottom: 0 !important;
}

.footer-bottom {
  margin-bottom: 0 !important;
}
