/* Keeps the header bar at the top of the window while the page scrolls.
   Loaded only when keep_header_on_screen = True in conf.py.

   sphinx-book-theme lets the header scroll away and pins the article bar
   and both side panes to the top of the window instead, so this moves those
   down by the header's height. */
.bd-header {
  position: sticky;
  top: 0;
}
.bd-header-article {
  top: var(--pst-header-height);
}
.bd-sidebar-primary,
.bd-sidebar-secondary {
  top: var(--pst-header-height);
  max-height: calc(100vh - var(--pst-header-height));
}
/* Links to headings land below both bars (4rem header + 3rem article bar). */
html {
  scroll-padding-top: calc(var(--pst-header-height) + 3.5rem);
}
