/* Minimal layout rules so gw_funding_curve_widget() is responsive on pages
 * that don't load the gwbrand extension's gw-brand.css. Kept to sizing only
 * (typography/colour theming stays in gw-brand.css); the rules that overlap
 * are identical, so double-loading on gwbrand pages is harmless. */
.gw-plot-figure {
  margin: 0 0 1.5rem 0;
  max-width: 100%;
}
/* SVG at the left, vertical legend (if any) at the right. */
.gw-plot-body {
  display: flex;
  align-items: flex-start;
  gap: 1em;
}
/* Scale like an img-fluid ggplot PNG instead of Plot's fixed pixel size —
 * the viewBox Plot always sets keeps everything in proportion. */
.gw-plot-body svg.plot-gw {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  height: auto;
}
.gw-plot-legend {
  flex: 0 0 auto;
  margin-top: 2em;
}
