/* Structure viewer on a page. */
.structure-viewer {
  margin: 1rem 0;
}
.structure-viewer__frame {
  position: relative;
  border: 1px solid color-mix(in srgb, var(--text) 20%, var(--background));
  border-radius: var(--radius);
  background: #ffffff;
  overflow: hidden;
}
.structure-viewer--medium .structure-viewer__frame {
  height: 420px;
}
.structure-viewer--tall .structure-viewer__frame {
  height: 620px;
}
.structure-viewer iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.structure-viewer figcaption {
  padding: 0.4rem 0.2rem;
  font-size: 0.95rem;
}
.structure-badge {
  display: inline-block;
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  background: var(--primary);
  color: var(--button-text);
  font-weight: 700;
  text-decoration: none;
}
