/* Site tweaks on top of sphinx-book-theme 1.4 / pydata-sphinx-theme 0.20. */

/* The book theme opens the article-header dropdowns (color mode, download)
   on hover as well as on click. On hover, the "Color mode" tooltip lands on
   the menu's first entry and the menu flickers as the pointer crosses it.
   Open on click only, as pydata-sphinx-theme intends. Drop when a theme
   release stops opening them on hover; recheck at each theme bump. */
.bd-header-article .btn:not(.show):hover + .dropdown-menu,
.bd-header-article .dropdown-menu:not(.show):hover {
  display: none;
}

/* Below 992px the article header shows a search icon meant for the search
   popup. The search field lives in the sidebar instead (conf.py), so the
   icon would only focus a hidden input. Hide it at every width. Drop
   together with the sidebar search field in conf.py. */
.bd-header-article .search-button {
  display: none !important;
}
