/* ===========================================================================
   sampling-explorer.css -- chapter 09's sampling distribution of the mean
   (assets/js/sampling-explorer.js).

   The container carries `dx cx sp`: the slider and buttons come from the .dx
   rules in dist-explorer.css, the frame and text from the .cx rules in
   calc-explorer.css. Defined here: one row holding the slider and the
   buttons, the floors, the grey dashed line at the population mean, the
   sample's dots and mean, the falling ball, and the dashed normal curve. The
   population's bars and the piles take their fills from R (SMDATA.colors,
   set as fill attributes by the script), so no rule here may set them. The
   static PDF figure uses the same colours (chunk sampling-means-static).

   Nothing here is needed by the PDF build; the LaTeX format never loads css.
   =========================================================================== */

/* The panel spans the text column, edge to edge, like the paragraphs around
   it; the script widens the svg's x scale to match, so its text keeps the
   static figures' sizes. */
.cx.sp { max-width: none; }
.sp .sp-row { gap: 0.4rem 1.2rem; margin-bottom: 1.2rem; }
.sp .sp-row .dx-tabs { margin-bottom: 0; }
.sp .sp-row .cx-ctl input[type="range"] { width: 120px; }

.sp svg .sp-floor { stroke: #737373; stroke-width: 1.1; }
.sp svg .sp-mu    { stroke: #a6a6a6; stroke-width: 1; stroke-dasharray: 3 3; }
.sp svg .sp-dot   { fill: #32006e; }
.sp svg .sp-mean  { stroke: #32006e; stroke-width: 2; }
.sp svg .sp-ball  { fill: #32006e; }
.sp svg .sp-curve { fill: none; stroke: #000; stroke-width: 1.1; stroke-dasharray: 3 3; }

@media (max-width: 520px) {
  .sp .sp-row .cx-ctl input[type="range"] { width: 100px; }
}
