/* Plot size depends on the viewport, never on the growing lesson column. */
html[data-cw-graph-bounds] {
  --cw-plot-height: clamp(260px,44vh,440px);
  --cw-canvas-height: clamp(300px,48vh,480px);
}
html[data-cw-graph-bounds] :is(.gp,div.plot,.canvas-wrapper,.canvas-wrap) {
  box-sizing: border-box;
  height: var(--cw-plot-height) !important;
  min-height: var(--cw-plot-height) !important;
  max-height: var(--cw-plot-height) !important;
  flex: 0 0 var(--cw-plot-height) !important;
  align-self: stretch;
}
html[data-cw-graph-bounds] :is(.canvas-wrapper,.canvas-wrap) {
  height: var(--cw-canvas-height) !important;
  min-height: var(--cw-canvas-height) !important;
  max-height: var(--cw-canvas-height) !important;
  flex-basis: var(--cw-canvas-height) !important;
}
html[data-cw-graph-bounds] .plot.short {
  height: 120px !important; min-height: 120px !important; max-height: 120px !important; flex-basis: 120px !important;
}
html[data-cw-graph-bounds] :is(.plot.mid,.mini > .plot) {
  height: 180px !important; min-height: 180px !important; max-height: 180px !important; flex-basis: 180px !important;
}
html[data-cw-graph-bounds] .slide > .visualization {
  box-sizing: border-box;
  height: var(--cw-canvas-height) !important;
  min-height: var(--cw-canvas-height) !important;
  max-height: var(--cw-canvas-height) !important;
  align-self: start;
}
html[data-cw-graph-bounds] .slide > .visualization > svg {
  display: block;
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
}
@media(max-width:800px) {
  html[data-cw-graph-bounds] { --cw-plot-height: 300px; --cw-canvas-height: 340px; }
}
