.tldr {
  margin: 1.8rem 0;
  padding: 1rem 1.1rem;
  border-left: 4px solid #111;
  background: #f8fafc;
}

.callout {
  margin: 1.7rem 0;
  padding: 1rem 1.1rem;
  border: 1px solid #d0d7de;
  border-radius: 0.625em;
  background: #f6f8fa;
}

.callout p:last-child,
.tldr p:last-child {
  margin-bottom: 0;
}

.callout p:first-child {
  margin-top: 0;
}

.cot-figure {
  margin: 2.2rem 0;
}

.cot-figure img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.cot-figure .image-caption {
  text-align: right;
}

.cot-figure.figure-compact img {
  width: 43%;
  min-width: 320px;
}

@media (max-width: 700px) {
  .cot-figure.figure-compact img {
    width: 100%;
    min-width: 0;
  }
}

.content > pre:not(.bibtex) {
  padding: 0.45rem 0.6rem;
  color: #6b7280;
  font-size: 0.88rem;
  line-height: 1.35;
}

.content > pre:not(.bibtex) code {
  line-height: inherit;
}

.footnotes {
  margin-top: 2.2rem;
}

.footnote-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footnote-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.footnote-marker {
  min-width: 2.5em;
  margin-right: 1em;
  text-align: right;
  flex-shrink: 0;
}

.footnote-content {
  flex: 1;
}

.footnote-equation {
  display: block;
  margin: 0.45rem 0;
  padding: 0.55rem 0.65rem;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  background: #f8fafc;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.95em;
  line-height: 1.45;
  white-space: normal;
}
