/* The nine acts. Every class is prefixed cx2-. The figure takes the page's tokens (--cx-paper, --cx-ink, ...) when the
   page defines them, and the design stack's values when it does not.
   Paper: "The Five Postulates of Quantum Mechanics on the Record: Theorems, Premises, and What Is Owed" (preprint, posted 14 November 2026, not peer reviewed). */
.cx2 {
  --f-paper: var(--cx-paper, #faf8f3); --f-ink: var(--cx-ink, #1d1d1b); --f-body: var(--cx-body, #2a2926);
  --f-soft: var(--cx-soft, #3c3a36); --f-hair: var(--cx-hair, #8a8a8a);
  --f-rule: color-mix(in srgb, var(--f-ink) 16%, var(--f-paper));
  --f-faint: color-mix(in srgb, var(--f-ink) 7%, var(--f-paper));
  --f-ok: var(--cx-ok, #0b7a3e); --f-on-ok: var(--cx-on-ok, #faf8f3);
  --f-c: var(--cx-cyan, #009fe3); --f-m: var(--cx-magenta, #e6007e);
  --f-c-text: var(--cx-cyan-text, #0072b5); --f-m-text: var(--cx-magenta-text, #c4006b);
  --f-text: var(--cx-text, "InterVariable", "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif);
  --f-display: var(--cx-display, "Inter Display", "InterVariable", "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif);
  --f-mono: var(--cx-mono, "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace);
  margin: 0; color: var(--f-body); font-family: var(--f-text); font-weight: 420; line-height: 1.42; font-optical-sizing: auto;
  box-sizing: border-box; position: relative; container: cx2 / inline-size;
}
@media screen and (prefers-color-scheme: dark) {
  .cx2 { --f-paper: var(--cx-paper, #141413); --f-ink: var(--cx-ink, #faf8f3); --f-body: var(--cx-body, #e9e6df);
    --f-soft: var(--cx-soft, #c9c5bc); --f-ok: var(--cx-ok, #45c27a); --f-on-ok: var(--cx-on-ok, #141413);
    --f-c: var(--cx-cyan, #2bb3f0); --f-m: var(--cx-magenta, #ff3d9e); --f-c-text: var(--cx-cyan-text, #2bb3f0); --f-m-text: var(--cx-magenta-text, #ff6fb6); }
}
.cx2 *, .cx2 *::before, .cx2 *::after { box-sizing: border-box; }
.cx2-label { margin: 0; font: 700 .72rem/1.3 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--f-soft); }
.cx2-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1rem; align-items: baseline;
  padding-bottom: .6rem; margin-bottom: .9rem; border-bottom: 1px solid var(--f-rule); }
.cx2-sub { color: var(--f-ink); }
.cx2-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.2rem; align-items: start; }
@container cx2 (min-width: 900px) { .cx2-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(1rem, 2.6vw, 2.2rem); } }
.cx2-left { min-width: 0; container-type: inline-size; }
.cx2-ov { --cell: min(84px, 22cqw); --lamp: min(72px, 19cqw); display: grid; grid-template-columns: repeat(3, var(--cell)) var(--lamp);
  grid-template-rows: repeat(3, var(--cell)) calc(var(--lamp) * .62); gap: min(8px, 1.8cqw); justify-content: center; }
.cx2-mini { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem; border: 1px solid var(--f-hair); padding: .2rem; min-width: 0; }
.cx2-mini[data-in="1"] { border: 3px solid var(--f-ink); }
.cx2-mname { font: 700 max(.6rem, calc(var(--cell) * .12))/1 var(--f-mono); color: var(--f-ink); }
.cx2-msvg { width: 72%; height: auto; display: block; }
.cx2-msvg rect { stroke: var(--f-hair); stroke-width: .6; }
.cx2-msvg rect.p { fill: var(--f-c); } .cx2-msvg rect.m { fill: var(--f-m); } .cx2-msvg rect.z { fill: var(--f-paper); }
.cx2-msvg .mbar { stroke: var(--f-paper); stroke-width: 1.6; }
.cx2-lb { appearance: none; border: 1.5px solid var(--f-ink); border-radius: 0; background: var(--f-paper); color: var(--f-ink); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; padding: .1rem; min-width: 0; }
.cx2-lb:hover { background: var(--f-faint); }
.cx2-lb[aria-checked="true"] { background: var(--f-ink); color: var(--f-paper); }
.cx2-lb:focus-visible { outline: 3px solid var(--f-ink); outline-offset: 2px; }
.cx2-lbk { font: 700 max(.56rem, calc(var(--lamp) * .12))/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }
.cx2-lbv { font: 820 max(.8rem, calc(var(--lamp) * .2))/1 var(--f-display); letter-spacing: -.02em; white-space: nowrap; }
.cx2-key { margin: .7rem auto 0; max-width: 30rem; text-align: center; font-size: .8rem; line-height: 1.45; color: var(--f-soft); }
.cx2-names { margin: .55rem auto 0; max-width: 30rem; font-size: .8rem; line-height: 1.4; color: var(--f-soft); text-align: center; }
.cx2-key span { white-space: nowrap; }   /* each swatch stays with its word */
.cx2-key i { display: inline-block; width: .8rem; height: .8rem; margin-right: .25rem; vertical-align: -.12rem; border: 1px solid var(--f-hair); }
.cx2-key i.p { background: var(--f-c); } .cx2-key i.m { background: var(--f-m); } .cx2-key i.z { background: var(--f-paper); }

.cx2-bench { min-width: 0; container-type: inline-size; display: flex; flex-direction: column; gap: .7rem; }
.cx2-eq { --e: max(24px, min(30px, 5.4cqw));   /* every entry at least 24 px across, for a finger; the product moves to the next line on a phone */
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem min(.6rem, 1.6cqw); }
.cx2-m { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.cx2-mt { font: 700 max(.56rem, calc(var(--e) * .36))/1.2 var(--f-mono); color: var(--f-soft); max-width: calc(var(--e) * 4 + 8px); min-height: 2.4em; display: flex; align-items: flex-end; }
.cx2-mg { display: grid; grid-template-columns: repeat(4, var(--e)); border-left: 1.5px solid var(--f-ink); border-right: 1.5px solid var(--f-ink); padding: 0 2px; }
.cx2-row { display: contents; }
.cx2-e { appearance: none; border: 0; border-radius: 0; background: transparent; margin: 0; padding: 0; width: var(--e); height: var(--e);
  display: flex; align-items: center; justify-content: center; font: 700 max(.62rem, calc(var(--e) * .42))/1 var(--f-mono); font-variant-numeric: tabular-nums; }
.cx2-e.p { color: var(--f-c-text); } .cx2-e.m { color: var(--f-m-text); } .cx2-e.z { color: color-mix(in srgb, var(--f-ink) 62%, var(--f-paper)); font-weight: 400; }   /* lighter than ±1, still 4.5:1 or more */
button.cx2-e { cursor: pointer; }
button.cx2-e:hover { background: var(--f-faint); }
button.cx2-e.on { outline: 2px solid var(--f-ink); outline-offset: -2px; background: var(--f-faint); }
button.cx2-e:focus-visible { outline: 3px solid var(--f-ink); outline-offset: -1px; }
.cx2-op { font: 700 max(.8rem, calc(var(--e) * .55))/1 var(--f-mono); color: var(--f-ink); padding-top: 1rem; }
.cx2-op0 { font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--f-soft); }
.cx2-res { display: flex; flex-direction: column; align-items: flex-start; padding-top: 1rem; }
.cx2-rv { font: 860 max(1.4rem, calc(var(--e) * 1.2))/.9 var(--f-display); letter-spacing: -.04em; color: var(--f-ink); }
.cx2-rk { font: 700 .6rem/1.2 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--f-soft); white-space: nowrap; }
.cx2-open { margin: .2rem 0 0; padding: .5rem 0 0; border-top: 1px solid var(--f-rule); font: 400 .8rem/1.5 var(--f-mono); color: var(--f-ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cx2-ok { color: var(--f-soft); }
.cx2-words { margin: 0; font-size: 1rem; line-height: 1.38; color: var(--f-ink); }
.cx2-note { margin: 0; font-size: .86rem; color: var(--f-soft); }
.cx2-note:empty { display: none; }
.cx2-caption { margin: 1rem 0 0; padding-top: .8rem; border-top: 1px solid var(--f-rule); font-size: .95rem; color: var(--f-body); max-width: 50rem; }
.cx2-caption b { color: var(--f-ink); font-weight: 650; }
.cx2-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@container (max-width: 560px) {
  .cx2-op0 { flex-basis: 100%; padding-top: 0; }
  .cx2-res { flex-direction: row; align-items: baseline; gap: .5rem; flex-basis: 100%; padding-top: 0; }
}
@media (forced-colors: active) {
  .cx2-msvg, .cx2-key i { forced-color-adjust: none; }   /* the key's swatches keep the colours the small matrices keep */
  .cx2-lb[aria-checked="true"] { background: Highlight; color: HighlightText; forced-color-adjust: none; }
  .cx2-mini[data-in="1"] { border-color: Highlight; }
}
@media print {
  /* a printed page breaks between a figure's blocks, never inside one (the whole figure can be taller than a page) */
  .cx2-ov, .cx2-eq, .cx2-open { break-inside: avoid; }
  .cx2 { --f-paper: #ffffff; --f-ink: #1d1d1b; --f-body: #2a2926; --f-soft: #3c3a36; --f-c: #009fe3; --f-m: #e6007e; --f-c-text: #0072b5; --f-m-text: #c4006b; }
  .cx2, .cx2 * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
