/* Bar model word problems: a story, three bar pictures to choose from, then the answer */
.dr-stage { display: grid; justify-items: center; gap: .75rem; width: 100%; max-width: 46rem; min-width: 0; }
.bm-head { display: grid; justify-items: center; gap: .5rem; width: 100%; }
.bm-story { margin: 0; max-width: 40rem; font: 700 clamp(1.125rem, 4.4vw, 1.4375rem)/1.55 var(--f-b), var(--cjk); text-align: left; }
.bm-say { justify-self: center; }
.bm-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: .625rem; width: 100%; }
.bm-opts.one { grid-template-columns: minmax(0, 26rem); justify-content: center; }
.bm-opt { display: grid; place-items: center; min-height: 6.5rem; padding: .5rem; border: .15625rem solid var(--ink); border-radius: .875rem; background: #fff; cursor: pointer; touch-action: manipulation; }
.bm-opt:hover:not([disabled]), .bm-opt:focus-visible { box-shadow: 0 0 0 .1875rem var(--sun); }
.bm-opt.yes { border-color: var(--mint); box-shadow: 0 0 0 .1875rem var(--mint); }
.bm-opt.no { opacity: .55; }
.bm-opt[disabled] { cursor: default; }
.bm-opt[hidden] { display: none; }
.bm-svg { display: block; width: 100%; max-width: 24rem; height: auto; overflow: visible; }
.bm-seg { fill: #fff; stroke: var(--ink); stroke-width: 2; }
.bm-q { fill: #FFF1BF; stroke: var(--ink); stroke-width: 2; }
.bm-brace { fill: none; stroke: var(--ink); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.bm-t { fill: var(--ink); font: 700 15px var(--f-m); }
.bm-qt { fill: var(--tom); font: 800 18px var(--f-m); }
.bm-name { fill: var(--ink); font: 700 13px var(--f-b), var(--cjk); }
.bm-ans { margin: 0; font: 700 1.375rem/1.4 var(--f-d), var(--cjk); text-align: center; }
.bm-ans .ans { display: inline-block; min-width: 3ch; padding: 0 .375rem; border-bottom: .1875rem solid var(--ink); font-family: var(--f-m); }
.sm-why { margin: 0; max-width: 34rem; font-size: 1.0625rem; line-height: 1.5; text-align: center; }
.sm-eq { display: inline-block; margin-bottom: .25rem; font: 800 1.375rem/1.3 var(--f-m); }
html.calm .bm-q { fill: #F2F2F2; }
html.calm .bm-qt { fill: var(--ink); }
/* Paper */
.bm-sheet { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6mm 8mm; align-items: start; font-size: 11pt; line-height: 1.45; }
.bm-sheet li { break-inside: avoid; }
.bm-sheet li > p { margin: 0 0 2mm; }
.bm-draw { height: 28mm; border: .3mm dashed #999; border-radius: 2mm; margin-bottom: 2mm; }
.bm-keypic { margin-bottom: 2mm; }
.bm-print { width: 100%; max-width: 72mm; }
.bm-write { font-weight: 700; }
.bm-blank { display: inline-block; width: 30mm; border-bottom: .3mm solid #000; }
/* Practice screens keep every tap target at least 56 px (phone-pass rule) */
.ho .bm-say { min-height: 3.5rem; }
