.plot-block {
  grid-template-rows: auto;
  height: auto;
}

.article-content {
  display: grid;
  gap: 12px;
  line-height: 1.6;
  color: rgba(233, 238, 252, 0.9);
  scroll-margin-top: 12px;
}
.article-content h1,
.article-content h2,
.article-content h3 {
  margin: 0;
  line-height: 1.3;
  color: #fff;
  scroll-margin-top: 14px;
}
.article-content h1 {
  font-size: 26px;
}
.article-content h2 {
  margin-top: 8px;
  font-size: 20px;
}
.article-content h2 a,
.article-content h3 a {
  color: inherit;
  text-decoration: none;
}
.article-content h2 a:hover,
.article-content h2 a:focus-visible,
.article-content h3 a:hover,
.article-content h3 a:focus-visible {
  color: #8cc8ff;
}
.article-content h3 {
  margin-top: 4px;
  font-size: 17px;
}
.article-content p,
.article-content ul,
.article-content ol {
  margin: 0;
}
.article-content ul,
.article-content ol {
  padding-left: 22px;
  display: grid;
  gap: 6px;
}
.article-content a {
  color: #8cc8ff;
}
.article-content figure {
  margin: 2px 0;
  display: grid;
  gap: 6px;
}
.article-content figure.md-image-center {
  justify-items: center;
  text-align: center;
}
.article-content figure.md-image-center img {
  margin-left: auto;
  margin-right: auto;
}
.article-content img {
  width: 100%;
  max-width: 760px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
  display: block;
  cursor: zoom-in;
}
.article-content figcaption {
  color: rgba(233, 238, 252, 0.7);
  font-size: 12px;
}
.article-content .demo-gif-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}
.article-content .demo-gif-row figure {
  margin: 0;
}
.article-content .demo-gif-row img {
  width: 100%;
  max-width: none;
}
.article-meta-note {
  color: rgba(233, 238, 252, 0.62);
  font-size: 12px;
}
.references-list a {
  color: #7fd7ff;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(127, 215, 255, 0.65);
  text-underline-offset: 2px;
}
.references-list a:hover,
.references-list a:focus-visible {
  color: #c2efff;
  text-decoration-color: rgba(194, 239, 255, 0.95);
}
.quick-link-btn {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 8px;
}
.references-list-layout {
  margin-top: 10px;
  padding-left: 20px;
  display: grid;
  gap: 6px;
}
.article-toc {
  display: grid;
  gap: 6px;
}
.article-toc-link {
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px 10px;
  color: rgba(233, 238, 252, 0.9);
  background: rgba(0, 0, 0, 0.18);
  font-size: 13px;
}
.article-toc-link.is-h3 {
  margin-left: 14px;
  font-size: 12px;
  color: rgba(233, 238, 252, 0.8);
}
.article-toc-link.is-active {
  border-color: rgba(90, 162, 255, 0.55);
  background: linear-gradient(180deg, rgba(90, 162, 255, 0.24), rgba(90, 162, 255, 0.09));
  color: #fff;
}
.article-toc-link:hover,
.article-toc-link:focus-visible {
  border-color: rgba(255, 255, 255, 0.2);
}
.article-toc-panel {
  align-self: start;
}
.toc-anchor-target {
  scroll-margin-top: 14px;
}
@media (min-width: 1280px) {
  .article-toc-panel {
    position: fixed;
    top: 16px;
    right: 16px;
    width: min(300px, calc(100vw - 32px));
    z-index: 4;
  }
  .article-toc-panel .plot-block {
    margin-top: 0;
  }
}
@media (max-width: 760px) {
  .article-content .demo-gif-row {
    grid-template-columns: 1fr;
  }
}
body.is-lightbox-open {
  overflow: hidden;
}
.image-lightbox[hidden] {
  display: none;
}
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(6, 9, 15, 0.78);
  backdrop-filter: blur(2px);
}
.image-lightbox-figure {
  margin: 0;
  display: grid;
  gap: 8px;
  max-width: min(96vw, 1600px);
  max-height: 94vh;
}
.image-lightbox-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 88vh;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.34);
  cursor: grab;
  user-select: none;
}
.image-lightbox-image.is-dragging {
  cursor: grabbing;
}
.image-lightbox-caption {
  color: rgba(233, 238, 252, 0.9);
  font-size: 13px;
  text-align: center;
}
