/* Math, figures, and embedded labs on posts that set math = true. */

.content.reading-column {
  min-width: 0;
}

.content .post {
  overflow-wrap: break-word;
}

.content .post .tex-block {
  max-width: 100%;
  margin: 0.85rem 0 1.15rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.content .post .tex-inline {
  display: inline-block;
  max-width: 100%;
  overflow-x: auto;
  vertical-align: middle;
}

.content .post .tex-block .katex-display {
  margin: 0.15rem 0;
}

.content .post pre {
  max-width: 100%;
}

.content .post .table-scroll {
  max-width: 100%;
  margin: 1.15rem 0 1.6rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border-active);
  border-radius: var(--radius-md);
}

.content .post .table-scroll table {
  width: 100%;
  min-width: 40rem;
  margin: 0;
}

.content .post .post-figure {
  max-width: 100%;
  margin: 1.2rem 0 1.5rem;
}

.content .post .post-figure__frame {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: #f4f7fb;
}

.content .post .post-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 0;
  border-radius: 0;
}

.content .post .post-figure.is-scroll img {
  width: auto;
  max-width: none;
  height: auto;
}

.content .post .post-figure figcaption {
  margin-top: 0.45rem;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.content .post iframe.lab-frame {
  width: 100%;
  max-width: 100%;
  min-height: 640px;
  margin: 0.35rem 0 1.4rem;
  border: 0;
  border-radius: 12px;
  display: block;
  background: #0a1222;
}

.content .post .listen-episode__pending {
  margin: 0;
  color: var(--text-on);
  font-size: 0.95rem;
  line-height: 1.5;
}
