/* ===========================================================================
   logic-explorer.css -- chapter 11's five steps of a test
   (assets/js/logic-explorer.js).

   The container carries `dx cx lgc`: 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 row holding the step buttons and
   the labelled record buttons, the squares and their fade, the axes, the dashed
   lines, the band where p is at most alpha, and the line of text under the
   picture. The two square colours come from R (LGDATA.colors) as css
   variables on the svg. The static PDF figure uses the same colours (chunk
   science-logic-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 the static figures' sizes. */
.cx.lgc { max-width: none; }

.lgc .lgc-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.3rem 1rem;
  margin-bottom: 0.55rem;
}
.lgc .lgc-row .dx-tabs { margin-bottom: 0; }
/* the record buttons, with a label saying what they are */
.lgc .lgc-rec { display: flex; align-items: center; gap: 0.5rem; font-size: inherit; }
.lgc .lgc-rec .dx-ctl-name { font-size: 0.86em; }

.lgc svg .lgc-layer { transition: opacity 0.3s ease; }
.lgc svg .lgc-sq    { fill: var(--lgc-off); transition: fill 0.3s ease; }
.lgc svg .lgc-sq.lgc-on { fill: var(--lgc-on); }
.lgc svg .lgc-ax    { stroke: #737373; stroke-width: 1.1; }
.lgc svg .lgc-exp   { stroke: #737373; stroke-width: 1; stroke-dasharray: 3 3; }
.lgc svg .lgc-alpha { stroke: #262626; stroke-width: 1; stroke-dasharray: 3 3; }
.lgc svg .lgc-band  { fill: #efeaf6; }
.lgc svg .lgc-tri, .lgc svg .lgc-pdot { fill: var(--lgc-on); }
.lgc svg .lgc-obs   { transition: transform 0.3s ease; }
.lgc svg .lgc-pdot  { transition: cx 0.3s ease; }
/* a count over a column sits on the dashed line at 4: a white halo keeps it legible */
.lgc svg .lgc-cnt   { paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; }

/* the line under the picture: what this step does */
.lgc .lgc-read { margin: 0.45rem 0 0; min-height: 1.6em; }

@media (prefers-reduced-motion: reduce) {
  .lgc svg .lgc-layer, .lgc svg .lgc-sq, .lgc svg .lgc-obs,
  .lgc svg .lgc-pdot { transition: none; }
}
