.junior-math-diagram{margin:18px auto;padding:16px;background:#fff;border:1px solid #d7e3e9;border-radius:12px;max-width:520px;break-inside:avoid}.junior-math-diagram svg{width:100%;display:block;height:auto}.junior-math-diagram figcaption{font-size:12px;color:#506a78;text-align:center;margin-top:8px}.junior-math-diagram-error{padding:12px;border-left:3px solid #bb7c20;background:#fff8ec;font-size:13px}.junior-math-entry{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:12px auto;padding:14px 18px;border:1px solid #bcd8ce;background:#f0f8f4;border-radius:12px;max-width:1100px;font:14px/1.7 sans-serif;color:#21493e}.junior-math-entry a{color:#176155;font-weight:bold}.junior-math-entry small{display:block;font-size:12px;color:#526e65}@media print{.junior-math-entry{display:none}.junior-math-diagram{max-width:100mm}}
