@import "custom.css";

nav.sidebar {
  display: inline-block;
  box-sizing: border-box;
  width: var(--sidebar-width);
  padding: 0 1em 0 2em;
  margin: 0px;
  border-right: 1px solid rgb(230, 236, 241);
  text-align: center;
  background-color: var(--sidebar-background);
  color: var(--sidebar-foreground);
  transition: color var(--transition),
              background-color var(--transition);
}

#index {
  margin: 0 1em;
  text-align: left;
}

#index,
#index a:hover {
  text-decoration: none;
}

#index li {
  text-indent: -1em;
  list-style-type: none;
  line-height: 1.4;
  font-weight: normal;
}

#index ul {
  padding-left: 1em;
}

#index > ul > li {
  padding-top: 1ex;
  font-weight: bold;
}

#index a.index-active {
  text-decoration: underline;
}

nav.sidebar div.sidebar-title {
  font-size: 14px;
  font-weight: bold;
  padding: 10px 0;
}

nav.sidebar div.sidebar-title a:hover {
  text-decoration: none;
}

@media print {
  nav.sidebar {
    display: none;
  }
}

@media screen and (min-width: 1920px) {
  nav.sidebar {
    width: calc( var(--max-page-width) / 5 );
  }
}

@media screen and (max-width: 1200px) {
  nav.sidebar {
    display: none;
  }
}
