/* ===========================================================================
   permutation-explorer.css -- chapter 11's permutation test
   (assets/js/permutation-explorer.js).

   The container carries `dx cx pm`: the buttons come from the .dx rules in
   dist-explorer.css, the frame and text from the .cx rules in
   calc-explorer.css. Defined here: the axes, the key's hollow shapes, the
   shapes' two colours and their fade, the mean lines and their slide, the
   dashed observed difference. The colours themselves come from R
   (PMDATA.colors), set by the script as css variables on the svg; the piles'
   fills are attributes. The static PDF figure uses the same colours (chunk
   science-permutation-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 chapter 09's; the
   script widens the svg's two axes to match, so its text keeps the static
   figures' sizes. */
.cx.pm { max-width: none; }

.pm .dx-tab:disabled { opacity: 0.45; cursor: default; }
.pm .dx-tab:disabled:hover { background: #fbfafc; }

.pm svg .pm-floor { stroke: #737373; stroke-width: 1.1; }
.pm svg .pm-key   { fill: none; stroke: #000; stroke-width: 1; }
.pm svg .pm-g     { fill: var(--pm-off); transition: fill 0.35s ease; }
.pm svg .pm-g.pm-on { fill: var(--pm-on); }
.pm svg .pm-lp    { stroke: var(--pm-on); stroke-width: 1.6; }
.pm svg .pm-lc    { stroke: var(--pm-line); stroke-width: 1.6; }
.pm svg .pm-mean  { transition: transform 0.35s ease; }
.pm svg .pm-obs   { stroke: #32006e; stroke-width: 1.1; stroke-dasharray: 3 3; }

/* a run of 1,000 shuffles: no fades, so each frame shows the latest shuffle */
.pm.pm-fast svg .pm-g, .pm.pm-fast svg .pm-mean { transition: none; }

@media (prefers-reduced-motion: reduce) {
  .pm svg .pm-g, .pm svg .pm-mean { transition: none; }
}
