/* msc-balance.css — how the groups were made comparable, on the MSc thesis page: the two redrawn balance figures ([data-msc="balance"],
   msc-balance.js). A white card where it stands alone; in a row of the evidence it stands on its white plate (msc-figures.css), where
   the switch of the weighting illustration above moves it. The two dose tiers in the page's tier colours (thesis.css --t-low,
   --t-standard), as there. */
.mb{--mb-tl:var(--t-low,#23756c);--mb-ts:var(--t-standard,#11100f);--mb-low:var(--brass,#b48a3a);--mb-std:var(--forest,#1f3b2d);--mb-ink:var(--ink,#11100f);--mb-muted:var(--muted-i,#66625b);--mb-line:var(--line-k,rgba(17,16,15,.16));
  position:relative;z-index:1;max-width:1180px;margin:clamp(40px,7vh,72px) auto 0;color:var(--mb-ink);font-family:var(--mono,'JetBrains Mono',monospace)}
.mb-card{position:relative;background:#fff;box-shadow:8px 8px 0 var(--sheet2,#d9d3c2);padding:22px 24px 18px;
  opacity:0;transform:translateY(18px);transition:opacity .8s cubic-bezier(.215,.61,.355,1),transform .8s cubic-bezier(.215,.61,.355,1)}
.mb.is-in .mb-card{opacity:1;transform:none}
.mb-head{display:flex;align-items:center;justify-content:space-between;gap:12px 16px;flex-wrap:wrap}
.mb-tag{font-size:10px;letter-spacing:.14em;color:var(--mb-muted)}

/* the control: two words, and the line under them slides with the morph itself */
.mb-toggle{position:relative;display:inline-flex;gap:20px;isolation:isolate}
.mb-pill{position:absolute;left:0;bottom:0;height:2px;width:0;z-index:-1;background:var(--brass,#b48a3a)}
.mb-toggle button{position:relative;padding:8px 0;border:0;background:transparent;font:500 13px/1 var(--sans,Figtree,sans-serif);color:var(--mb-muted);cursor:pointer;transition:color .3s}
.mb-toggle button.on{color:var(--mb-ink)}
@media (hover:hover){.mb-toggle button:not(.on):hover{color:var(--mb-ink)}}
.mb-toggle button:focus-visible{outline:2px solid var(--mb-low);outline-offset:2px}

/* the two figures */
.mb-panels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(22px,3.4vw,48px);margin-top:20px}
.mb-panel{margin:0;min-width:0}
.mb-ptitle{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:8px}
.mb-ptitle b{font:700 clamp(19px,1.7vw,24px)/1.1 var(--sans,Figtree,sans-serif);letter-spacing:-.025em}
.mb-ptitle span{font-size:10px;letter-spacing:.1em;color:var(--mb-muted)}
.mb-svg{display:block;width:100%;height:auto;overflow:visible}
.mb-src{margin-top:8px;font-size:10px;letter-spacing:.06em;color:var(--mb-muted)}
.mb-fail .mb-svg{min-height:120px;background:repeating-linear-gradient(135deg,transparent 0 8px,rgba(17,16,15,.04) 8px 9px)}
.mb-grid{stroke:rgba(17,16,15,.075);stroke-width:1}
.mb-base{stroke:rgba(17,16,15,.35);stroke-width:1}
.mb-zero{stroke:var(--mb-ink);stroke-width:1.2}
.mb-tick{font:500 10px var(--mono,'JetBrains Mono',monospace);fill:var(--mb-muted)}
.mb-axt{font:500 10px var(--mono,'JetBrains Mono',monospace);fill:var(--mb-muted);letter-spacing:.03em}
.mb-area{stroke-width:1.5;stroke-linejoin:round}
.mb-area.mb-low{fill:var(--mb-tl);fill-opacity:.55;stroke:var(--mb-tl)}
.mb-area.mb-std{fill:var(--mb-ts);fill-opacity:.5;stroke:var(--mb-ts)}
.mb-lab{font:500 10.5px var(--mono,'JetBrains Mono',monospace);letter-spacing:.06em}
.mb-lab.mb-low{fill:var(--mb-tl)}
.mb-lab.mb-std{fill:var(--mb-ts)}
.mb-ghost{fill:none;stroke-width:1.3;stroke-dasharray:4 4;stroke-linejoin:round}
.mb-ghost.mb-low{stroke:var(--mb-tl)}
.mb-ghost.mb-std{stroke:var(--mb-ts)}
.mb-line{fill:none;stroke-width:2.4;stroke-linejoin:round}
.mb-line.mb-low{stroke:var(--mb-tl)}
.mb-line.mb-std{stroke:var(--mb-ts)}
.mb-gap{fill:rgba(17,16,15,.06)}

/* the key */
.mb-legend{display:flex;flex-wrap:wrap;align-items:center;gap:8px 22px;margin-top:16px;padding-top:12px;border-top:1px solid var(--mb-line);font-size:11px;color:var(--mb-muted)}
.mb-key{display:inline-flex;align-items:center;gap:8px}
.mb-key i{display:inline-block;width:14px;height:10px}
.mb-key-low i{background:var(--mb-tl)}
.mb-key-std i{background:var(--mb-ts)}
.mb-rng{display:flex;flex-wrap:wrap;gap:2px 16px;margin:0 0 10px;font:500 12.5px/1.4 var(--sans,Figtree,sans-serif);color:var(--mb-ink)}
.mb-rng span{display:inline-flex;align-items:baseline;gap:7px}
.mb-rng i{flex:none;width:9px;height:9px;border-radius:50%;background:var(--mb-tl)}
.mb-rng .mb-r-standard i{background:var(--mb-ts)}
.mb-key-ghost i{width:20px;height:0;border-top:1.5px dashed var(--mb-ink)}
.mb-sr{position:absolute;width:1px;height:1px;margin:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}

@media (max-width:859.98px){
  .mb-panels{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:699.98px){
  .mb-card{padding:18px 16px 14px}
  .mb-head{align-items:flex-start;flex-direction:column}
  .mb-toggle button{padding:10px 13px;font-size:13px}
}
@media (prefers-reduced-motion:reduce){
  .mb-card{opacity:1;transform:none;transition:none}
}
.mb-calm .mb-card,.mb-calm .mb-toggle button{transition:none}
