/* ===== PAGE WIDTH ===== */

.container,
.container-lg,
.container-xl {
  max-width: 1200px !important;
}

.article-container {
  max-width: 900px !important;
  margin-left: auto;
  margin-right: auto;
}


/* ===== TABLES ===== */

.article-container table.table {
  width: auto !important;
  margin-left: auto !important;
  margin-right: auto !important;
}


/* ===== TABLE OF CONTENTS ===== */

#toc {
  max-width: 700px;
  width: 100%;
  margin-bottom: 2rem;
}

/* allow wrapping nicely instead of narrow breaks */
#toc li {
  line-height: 1.4;
}


/* ===== CODE BLOCKS ===== */

pre code {
  font-size: 0.9em;
  padding: 0.6em;
}

/* Collapse the stray \n between <pre> and <code> to zero height */
pre.downlit,
pre.sourceCode {
  line-height: 0 !important;
}

pre.downlit > code,
pre.sourceCode > code {
  display: block;
  line-height: 1.5 !important;
}


/* ===== BETTER PARAGRAPH READABILITY ===== */

p {
  line-height: 1.6;
}
