/*
 * The figures the Markdown entries write (/markdown, /markdown-it, /rehype,
 * /marked). Classes only: no element selector reaches outside .vd-figure, and
 * nothing needs a style="" attribute, so a page with a strict content security
 * policy can link this file as it is. Text in the drawings names the family
 * "Inter"; link fonts.css too if the page does not already have it.
 */
.vd-figure {
  margin: 1.5em 0;
  max-width: 100%;
}
.vd-figure-art {
  display: block;
  max-width: 100%;
  line-height: 0;
}
.vd-figure-art svg,
img.vd-figure-art {
  display: block;
  max-width: 100%;
  height: auto;
}
.vd-figure-art[hidden] {
  display: none;
}
.vd-figure-live {
  width: 100%;
  border-radius: var(--vd-figure-radius, 8px);
  overflow: hidden;
}
.vd-figure-source {
  margin-top: 0.75em;
}
.vd-figure-source > summary {
  cursor: pointer;
  font-size: 0.875em;
  opacity: 0.75;
}
.vd-problems {
  margin: 0.5em 0 0;
  padding: 0.5em 0.75em 0.5em 2em;
  border-left: 3px solid var(--vd-problem, #d64545);
  font-size: 0.875em;
}
.vd-problems > li[data-severity='warning'] {
  opacity: 0.8;
}
.vd-figure-pager {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-top: 0.5em;
  font-size: 0.875em;
}
.vd-figure-pager__label {
  min-width: 8em;
  text-align: center;
  opacity: 0.8;
}
.vd-figure-pager__button {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 6px;
  padding: 0.15em 0.75em;
  cursor: pointer;
  opacity: 0.85;
}
.vd-figure-pager__button:hover {
  opacity: 1;
}
