/* Page-scoped styles for the rejection-sampling post.
   Loaded only on this page via the `css:` front-matter key, so bare element
   selectors are safe here. */

/* --- Figure cards -------------------------------------------------------
   The figures are Plots.jl SVG exports with a baked-in white background and
   black axes. Rather than rewriting the SVGs, we present them as deliberate
   light panels that look the same in light and dark mode. */

figure {
  margin: 2rem auto;
  /* The Plots.jl figures are authored 650px wide; the content column is 745px.
     Cap the card at 650px *plus* the img's own padding and border so the plot
     area renders at its native size rather than being upscaled ~15%. */
  max-width: calc(650px + 1.5rem + 2px);
}

figure img {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: auto;
  background: #fff;
  padding: 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 6px;
}

/* The caption sits outside the panel so it picks up the page's own colours
   and stays readable in dark mode. */
figure figcaption {
  margin-top: 0.6rem;
  font-size: 0.9em;
  line-height: 1.45;
  opacity: 0.8;
}

/* Folded code (`<details class="code-fold">`) and collapsible callouts are
   styled site-wide in assets/css/overrides.css — they are general affordances,
   not features of this post. Nothing page-specific is needed for either. */
