p.caption {
  color: #777;
  margin-top: 10px;
}
p code {
  white-space: inherit;
}
pre {
  word-break: normal;
  word-wrap: normal;
}
pre code {
  white-space: inherit;
}

/* Force night theme across all pages */
.book.color-theme-1 .book-body,
.book.color-theme-2 .book-body,
.book .book-body {
  color: #bdcadb;
  background: #1c1f2b;
}

.book.color-theme-1 .book-body .page-wrapper .page-inner section,
.book.color-theme-2 .book-body .page-wrapper .page-inner section,
.book .book-body .page-wrapper .page-inner section {
  color: #bdcadb;
}

.book-summary, .book-summary ul.summary li a,
.book-summary ul.summary li span {
  background: #111218;
  color: #bdcadb;
}

.book-header {
  background: #1c1f2b;
  color: #bdcadb;
}

a {
  color: #4a90d9;
}

/* Code blocks */
pre {
  background-color: #0d1117 !important;
  border: 1px solid #3a3f4b;
  border-radius: 6px;
  padding: 12px;
}

pre code {
  color: #e6edf3 !important;
  background-color: transparent !important;
}

code {
  color: #79c0ff !important;
  background-color: #21262d !important;
  padding: 2px 6px;
  border-radius: 3px;
}

pre.sourceCode {
  background-color: #0d1117 !important;
}

/* Syntax highlighting for R code */
.hljs-comment, code span.co {
  color: #8b949e !important;
}

.hljs-string, code span.st {
  color: #a5d6ff !important;
}

.hljs-number, .hljs-literal, code span.dv, code span.fl {
  color: #79c0ff !important;
}

.hljs-keyword, code span.kw, code span.ot {
  color: #ff7b72 !important;
}

.hljs-function, .hljs-title, code span.fu {
  color: #d2a8ff !important;
}

.hljs-built_in, code span.cf {
  color: #ff7b72 !important;
}

code span.sc, code span.op {
  color: #ffa657 !important;
}

/* Hide toolbar buttons: edit, view source, info, sharing */
.fa-edit, .fa-pencil, .fa-eye,
.code-folding-btn, .btn.btn-default.btn-info,
.fa-info, .fa-share-alt,
.sharing-buttons, .dropdown-sharing {
  display: none !important;
}