/* Overrides applied to the shipped (portable) help bundle.
   Loaded via mkdocs.portable.yml `extra_css`. */

/* Hide the "Made with Material for MkDocs" footer band — irrelevant inside
   DWSIM's embedded help, and it visually intrudes on short pages. */
.md-footer { display: none !important; }

/* Force the content area to fill the viewport so the sidebar doesn't extend
   past content on short pages. */
.md-main {
  min-height: calc(100vh - 2.4rem) !important;  /* viewport minus header */
}
.md-main__inner {
  min-height: calc(100vh - 4.8rem) !important;
}

/* Make both sidebars (nav + TOC) independently scrollable.
   mkdocs-material normally wires this up via JS hooked into navigation.instant;
   with that feature disabled in the portable build, we set the heights in CSS
   so the long nav and long page-TOC don't overflow off the viewport. */
.md-sidebar {
  position: sticky !important;
  top: 2.4rem;                          /* below the fixed header */
  height: calc(100vh - 2.4rem) !important;
  overflow: hidden !important;
}
.md-sidebar__scrollwrap {
  max-height: calc(100vh - 2.4rem) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}
.md-sidebar__inner {
  max-height: none !important;
}
