/* Inter throughout, as on every other VERA page, in place of the theme's Lato
   body and Roboto Slab headings. The selectors are the theme's own, so each
   rule matches the one it replaces and wins by coming later. Code keeps the
   theme's monospace. The font itself is loaded in _templates/layout.html. */
body,
.btn,
input[type],
textarea,
.rst-versions,
.rst-content .toctree-wrapper > p.caption,
h1,
h2,
h3,
h4,
h5,
h6,
legend,
.rst-content .sidebar .sidebar-title {
  /* Inter, then Tailwind's default system stack - the list both landing pages
     and the marketing site's theme use. */
  font-family:
    'Inter',
    ui-sans-serif,
    system-ui,
    sans-serif,
    'Apple Color Emoji',
    'Segoe UI Emoji',
    'Segoe UI Symbol',
    'Noto Color Emoji';
}

/* Grayscale antialiasing, as on every other VERA page. */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Sidebar styling */
.wy-side-nav-search {
  background-color: #160335 !important;
  /* Pinned to the top of the sidebar, so the logo and the search box stay put
     while the table of contents scrolls under them — it is long enough that
     both used to disappear a short way down any page.

     Sticky rather than a fixed header of our own: the scrolling element is the
     theme's .wy-side-nav-search parent, div.wy-side-scroll, and the theme's JS
     drives that element's scrollTop from the window's as you scroll the page
     (theme_options sticky_navigation). Taking the scrolling off it — say by
     giving the menu its own overflow — would leave those calls scrolling
     nothing, and the contents would stop following the page. This leaves the
     mechanism alone and only pins the child.

     The opaque background above is what keeps the menu items from showing
     through as they pass beneath; z-index puts it over them. */
  position: sticky;
  top: 0;
  z-index: 1;
}

.wy-side-nav-search > a.icon-home {
  font-size: 0 !important;
  line-height: 0 !important;
}

.wy-side-nav-search a.icon {
  display: block;
  width: 100%;
  height: auto;
  padding: 0;
  margin-bottom: 0.75rem;
}

.wy-side-nav-search a.icon img {
  display: block;
  width: 150px;
  height: auto;
  margin: 0 auto;
}

.wy-side-nav-search a.icon::before {
  content: none !important;
}

.wy-side-nav-search a.icon .icon-home::before {
  content: none !important;
}

/* The theme's second mobile bar, taken out of the layout: its contents toggle
   and project name now live in the site nav's left slot, so leaving this would
   show an empty band under that bar. The markup is emptied in layout.html; this
   removes the element itself. */
.wy-nav-top {
  display: none;
}

.wy-side-nav-search input[type='text'],
.wy-nav-top input[type='text'] {
  background-color: #2a0a4d !important;
  border-color: #4a2a6d !important;
  color: #ffffff !important;
}

.wy-side-nav-search input[type='text']::placeholder,
.wy-nav-top input[type='text']::placeholder {
  color: #b0b0b0 !important;
}

/* Table of contents sidebar */
.wy-nav-side {
  background-color: #816f7d !important;
}

.wy-menu-vertical {
  background-color: #816f7d !important;
}

.wy-menu-vertical p.caption,
.wy-menu-vertical .caption-text {
  color: #160335 !important;
}

.wy-menu-vertical li.toctree-l1 > a .toctree-expand,
.wy-menu-vertical li.toctree-l2 > a .toctree-expand,
.wy-menu-vertical li > a .toctree-expand {
  color: #160335 !important;
}

.wy-menu-vertical li:hover > a .toctree-expand,
.wy-menu-vertical a:hover .toctree-expand,
.wy-menu-vertical a:active .toctree-expand,
.wy-menu-vertical li.current > a .toctree-expand {
  color: #ffffff !important;
}

.wy-menu-vertical a:active {
  background-color: #160335 !important;
  border-color: #160335 !important;
  color: #e0e0e0 !important;
}

.wy-menu-vertical a:hover {
  background-color: #160335 !important;
  color: #e0e0e0 !important;
}
