@import url("./fonts/typography.css");

/* Article figures share the page surface and left edge. */
:root { --paper: #fff; --figure-radius: 0; }
html body { background: #fff; padding: 0; }
body > .figure, body > .card, .mixture-figure {
  background: transparent; border: 0; border-radius: 0;
  margin-inline: 0; padding-inline: 0; max-width: none;
}
.figure > header, .figure > .heading, .stage-head, .examples-heading,
.figure > .controls, .figure > footer, .figure > .note, .figure > .details,
.figure > .hint, .figure > #media-status, .plot {
  padding-inline: 0;
}
.figure > header:empty { display: none; }
.viewport, .stage { background: transparent; }
/* Scale embedded diagrams to the article width, including narrow screens. */
.viewport > svg, .viewport > canvas,
.viewport .scene-stack > .panel > svg,
.viewport .scene-stack > .panel > canvas {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: auto;
}
.viewport .scene-stack { grid-template-columns: minmax(0, 1fr); }
.overview, .explorer, .canvas-sizer { padding-inline: 0; }
.mixture-figure { padding-top: 0; }
.figure-heading:empty { display: none; }
#mobile-score-interactive { border: 0; border-radius: 0; }
#mobile-score-interactive > header, #mobile-score-interactive > .controls { padding-inline: 0; }

.examples-grid { padding-inline: 0; }

/* Match interactive figure text to the article. */
html body { font-family: var(--article-sans); }
button, input, select, textarea { font-family: inherit; }

/* The article supplies the caption; omit duplicate animation footnotes. */
.figure > .note:has(#note) { display: none; }
