:root {
  --light-purple: #4F46E5;
  --light-pink: #F6EDFF;
}

html, body {
  min-height: 100vh;
  min-height: -webkit-fill-available;
  font-family: 'Inter', sans-serif;
  scrollbar-color: #4F46E5 #F3F4F6;
  scrollbar-width: thin;
}

html {
  height: -webkit-fill-available;
}

main {
  display: flex;
  flex-wrap: nowrap;
  height: 100vh;
  height: -webkit-fill-available;
  max-height: 100vh;
  overflow-x: auto;
  overflow-y: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
}

h2 {
  margin-top: 2rem;
}

h3 {
  margin-top: 1.5rem;
}

h4 {
  margin-top: 1.25rem;
}

.font-satoshi {
  font-family: "Satoshi-Variable", Helvetica, sans-serif;
}

/** Sidbar **/
.btn-toggle, .level-1 {
  display: inline-flex;
  align-items: center;
  padding: .25rem .5rem;
  background-color: transparent;
  border: 0;
  font-weight: 600;
  color: var(--light-purple);
  font-size: 1.1rem;
}

.btn-toggle-nav li:hover,
.level-1:hover {
  background-color: var(--light-pink);
}

.btn-toggle::before {
  width: 1em;
  line-height: 0;
  content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba%280,0,0,.3%29' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 14l6-6-6-6'/%3e%3c/svg%3e");
  transition: transform .35s ease;
  transform-origin: .5em 50%;
}

.btn-toggle[aria-expanded="true"]::before {
  transform: rotate(90deg);
}

.btn-toggle-nav a {
  display: inline-flex;
  padding: .4rem .8rem;
  margin-left: 1.25rem;
  text-decoration: none;
  color: #4B5563;
  font-size: 1rem;
}

.btn-toggle-nav li:hover,
.btn-toggle-nav li:focus,
.list-unstyled li.top-level:hover,
.list-unstyled li.top-level a:hover {
  background-color: #F0F0F0;
}

.list-unstyled button {
  color: var(--light-purple) !important;
}

.list-unstyled li.active {
  background-color: var(--light-pink);
}

/** ToC **/
#toc ul {
  padding-left: 0.8rem;
}

ul#toc, ul#toc li {
  font-size: 1rem;
  list-style-type: none;
  padding: 0.5rem 0 0 0;
  line-height: 1.1rem;
}

.toc-container, .toc-container p {
  font-size: 1rem;
}

.toc-container a {
  text-decoration: none;
  color: #6c6c6c;
}
