body {
  padding-top: 0 !important; /* prevents extra space on top of navbar */
}

d-article {
  padding-top: 0 !important;
  border-top: 2px solid #e0e0e0;
}

d-article h3 {
  margin-top: 0 !important;
  padding-top: 1em;
}

.navbar {
  margin-bottom: 0 !important;
}

.distill-flex-container {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.distill-toc-sidebar {
  flex: 0 0 20vw;
  min-width: 180px;
  max-width: 300px;
  position: sticky;
  top: 0vh;
  height: 100vh;
  background: #fdfdff;
  border-right: 1px solid #eee;
  padding: 10vh 12px 24px 2.5vh;
  z-index: 10;
}

.distill-main-content {
  flex: 1 1 0%;
  min-width: 0;
  padding-left: 2vw;
}

.distill-main-content d-title {
  margin-top: 10px !important;
  /* padding-top: 0 !important; */
  /* border-bottom: 2px solid #e0e0e0; */
  /* padding-bottom: 18px !important; */
  /* margin-bottom: 32px !important; */
}
.distill-main-content h1 {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
@media (max-width: 900px) {
  .distill-flex-container {
    flex-direction: column;
  }
  .distill-toc-sidebar {
    display: none !important;
  }
  .mobile-toc-container {
    display: block;
    width: 100%;
    margin: 18px 0 18px 0;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
  }
  .mobile-toc-toggle-btn {
    display: block;
    width: 100%;
    background: #fdfdff;
    border: 1px solid #eee;
    border-radius: 6px 6px 0 0;
    font-size: 1.1em;
    font-weight: 600;
    padding: 12px 15px;
    cursor: pointer;
    text-align: left;
    color: #23272e;
    margin-bottom: 0;
    margin-top: 0;
  }
  .mobile-toc-content {
    display: none;
    padding: 0 18px 12px 18px;
    background: #f8f9fb;
    border-top: 1px solid #eee;
    border-radius: 0 0 6px 6px;
    margin-top: 0;
    animation: fadeIn 0.2s;
  }
  .mobile-toc-content.open {
    display: block;
  }
  my-toc ul {
    padding-left: 18px !important;
  }
}
@media (min-width: 901px) {
  .mobile-toc-container {
    display: none !important;
  }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.summary-block {
  margin-top: 1em;
  margin-bottom: 1em;
  clear: both;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
}
.summary-block h3 {
  margin-bottom: 0.5em;
  font-size: 1.2em;
  font-weight: 600;
} 

.MathJax {
  font-size: 1.3em !important;
}