/* ===== Syntax highlighting ===== */
.hljs-literal {
  color: #990073;
}
.hljs-number {
  color: #099;
}
.hljs-comment {
  color: #998;
  font-style: italic;
}
.hljs-keyword {
  color: #900;
  font-weight: bold;
}
.hljs-string {
  color: #d14;
}

/* ===== Pandoc misc styles ===== */
code {
  white-space: pre-wrap;
}
span.smallcaps {
  font-variant: small-caps;
}
span.underline {
  text-decoration: underline;
}
div.column {
  display: inline-block;
  vertical-align: top;
  width: 50%;
}
div.hanging-indent {
  margin-left: 1.5em;
  text-indent: -1.5em;
}
ul.task-list {
  list-style: none;
}

code {
  white-space: pre;
}

/* ===== Main container and widgets ===== */
.main-container {
  max-width: 940px;
  margin-left: auto;
  margin-right: auto;
}
.main-container img {
  max-width: 100%;
}
.tabbed-pane {
  padding-top: 12px;
}
.html-widget {
  margin-bottom: 20px;
}
button.code-folding-btn:focus {
  outline: none;
}
summary {
  display: list-item;
}
details > summary > p:only-child {
  display: inline;
}
pre code {
  padding: 0;
}

/* ===== Tabset dropdown ===== */
.tabset-dropdown > .nav-tabs {
  display: inline-table;
  max-height: 500px;
  min-height: 44px;
  overflow-y: auto;
  border: 1px solid #ddd;
  border-radius: 4px;
}
.tabset-dropdown > .nav-tabs > li.active:before,
.tabset-dropdown > .nav-tabs.nav-tabs-open:before {
  content: "\e259";
  font-family: "Glyphicons Halflings";
  display: inline-block;
  padding: 10px;
  border-right: 1px solid #ddd;
}
.tabset-dropdown > .nav-tabs.nav-tabs-open > li.active:before {
  content: "\e258";
  font-family: "Glyphicons Halflings";
  border: none;
}
.tabset-dropdown > .nav-tabs > li.active {
  display: block;
}
.tabset-dropdown > .nav-tabs > li > a,
.tabset-dropdown > .nav-tabs > li > a:focus,
.tabset-dropdown > .nav-tabs > li > a:hover {
  border: none;
  display: inline-block;
  border-radius: 4px;
  background-color: transparent;
}
.tabset-dropdown > .nav-tabs.nav-tabs-open > li {
  display: block;
  float: none;
}
.tabset-dropdown > .nav-tabs > li {
  display: none;
}

/* ===== Triptych figure switcher ===== */
.triptych-buttons {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.triptych-btn {
  flex: 1;
  min-width: 180px;
  padding: 0.75rem 1rem;
  background-color: #fff;
  border: 2px solid var(--color-sage);
  color: var(--color-link);
  font-family: var(--font-sans);
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  line-height: 1.4;
  transition:
    background-color 0.15s,
    color 0.15s;
}
.triptych-btn strong {
  display: inline;
  font-size: 1rem;
  color: var(--color-sage);
  margin-right: 0.4rem;
}
.triptych-btn:hover {
  background-color: rgba(169, 173, 114, 0.12);
}
.triptych-btn.active {
  background-color: var(--color-sage);
  color: #fff;
  border-color: var(--color-sage);
}
.triptych-btn.active strong {
  color: #fff;
}
