/* ===========================================================================
   collinear-explorer.css -- chapter 15's two correlated explanatory variables
   (assets/js/collinear-explorer.js).

   The container carries `dx cx clx`: the slider row comes from the .dx rules
   in dist-explorer.css, text from the .cx rules in calc-explorer.css.
   Defined here: the line of values (numbers in UW purple), the light grids,
   the solid line at 0 and the dashed line at the true slope, the points, and
   the two estimates with their intervals. The colours of the points and of
   the estimates come from R (CLDATA.colors) as css variables on the svg; the
   static PDF figure uses the same ones (chunk regression-collinear-static).

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

/* The panel spans the text column, edge to edge; the script widens the svg's
   x axes to match, so its text keeps its size. */
.cx.clx { max-width: none; }

/* the one slider, centred on the column, wider than a slider in a row of two */
.clx .dx-params { margin-bottom: 0; justify-content: center; }
.clx .dx-ctl input[type="range"] { width: 220px; }

/* the values, between the slider and the plots */
.clx .clx-read { margin: 0.5rem 0 0.2rem; text-align: center; }
.clx .clx-read b { color: #32006e; font-weight: 600; font-variant-numeric: tabular-nums; }

/* text a size up from the .cx defaults, as in chapter 14's panel; no halo on
   the axis letters */
.clx svg .cx-tk { font-size: 13px; }
.clx svg .cx-lb { font-size: 15px; stroke: none; }

.clx svg .clx-grid { stroke: #ebebeb; stroke-width: 1; }
.clx svg .clx-zero { stroke: #000; stroke-width: 1.1; }
.clx svg .clx-true { stroke: #000; stroke-width: 1.1; stroke-dasharray: 5 4; }

.clx svg .clx-pt  { fill: var(--clx-pt); }
.clx svg .clx-ci  { stroke: var(--clx-est); stroke-width: 3; stroke-linecap: butt; }
.clx svg .clx-est { fill: var(--clx-est); stroke: #fff; stroke-width: 1; }

@media (max-width: 520px) {
  .clx .dx-ctl input[type="range"] { width: 150px; }
}

@media print { .clx { display: none; } }
