/* ===========================================================================
   power-explorer.css -- chapter 11's power panel (assets/js/power-explorer.js,
   fig-science-power).

   The container carries `dx cx pwx`: the buttons come from the .dx rules in
   dist-explorer.css, the text from the .cx rules in calc-explorer.css.
   Defined here: the four labelled rows of buttons, the two curves, the three
   areas, the cutoffs, the decision bars, and the line under the picture with
   a swatch for each area. The colours are the static figure's (chunk
   science-power-static): grey45 and UW purple curves, grey88 Type II, UW
   purple at 25% for power, grey30 Type I.

   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 axis to match, so its text keeps the static figures' sizes. */
.cx.pwx { max-width: none; }

.pwx .pwx-ctls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.4rem;
  margin-bottom: 0.55rem;
}
.pwx .pwx-ctl { display: flex; align-items: center; gap: 0.5rem; }
.pwx .pwx-ctl .dx-tabs { margin-bottom: 0; }
.pwx .pwx-ctl .dx-ctl-name { font-size: 0.86em; }

.pwx svg .pwx-null { stroke: #737373; stroke-width: 1.4; fill: none; stroke-linejoin: round; }
.pwx svg .pwx-alt  { stroke: #32006e; stroke-width: 1.4; fill: none; stroke-linejoin: round; }
.pwx svg .pwx-t2   { fill: #e0e0e0; }
.pwx svg .pwx-pow  { fill: #32006e; fill-opacity: 0.25; }
.pwx svg .pwx-t1   { fill: #4d4d4d; }
.pwx svg .pwx-cut  { stroke: #000; stroke-width: 1; stroke-dasharray: 3 3; }
.pwx svg .pwx-bar  { stroke: #262626; stroke-width: 1.1; }
/* the day labels under the axis: a white halo where a cutoff crosses one */
.pwx svg .pwx-tk   { paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; }

/* the line under the picture: the power, the two errors and d */
.pwx .pwx-read { margin: 0.45rem 0 0; min-height: 1.6em; font-variant-numeric: tabular-nums; }
.pwx .pwx-read b { color: #32006e; font-weight: 600; }
.pwx .pwx-sep { color: #ddd8e2; padding: 0 0.5em; }
.pwx .pwx-key {
  display: inline-block; width: 0.78em; height: 0.78em;
  margin-right: 0.32em; vertical-align: -0.06em;
}
.pwx .pwx-k-pow { background: #ccbfdb; }   /* UW purple at 25% on white */
.pwx .pwx-k-t2  { background: #e0e0e0; }
.pwx .pwx-k-t1  { background: #4d4d4d; }
