/* Physics mechanics laboratories: readable scientific figures, compact touch controls. */
.mechanics-presets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:10px}
.mechanics-presets>button{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:43px;padding:8px 10px;border:1px solid #b6cddb;border-radius:8px;
  background:#f8fbfd;color:#265a77;font:700 14px/1.4 inherit;
  cursor:pointer;white-space:normal;transition:background .15s,border-color .15s
}
.mechanics-presets>button:hover{background:#eaf4f9;border-color:#83adc3}
.mechanics-presets>button:focus-visible{outline:3px solid #3f96b8;outline-offset:2px}
.mechanics-focus{
  padding:13px 15px;margin:8px 0 9px;
  border-left:3px solid #2782a8;background:#f1f7fa;
  color:#2b5870;font-size:14px;font-weight:600;line-height:1.7;border-radius:0 7px 7px 0;
}
.page .steps .step{min-width:0}
.page .steps .step b{font-size:14px;line-height:1.55}
.page .steps .step span{font-size:14px;line-height:1.65;color:#445f71}
.page .intro .lead{font-size:15px;line-height:1.75;color:#3a5769}
.page .controls .control label{font-size:14.5px;line-height:1.6}
.page .controls .control .value{font-size:14px;font-weight:750;color:#22698c}
.page .controls .control .fact span{font-size:13px;line-height:1.55}
.page .controls .control .fact strong{font-size:16px;line-height:1.4;font-variant-numeric:tabular-nums}
.page .teacher-note{font-size:13.5px;line-height:1.75;color:#3c5a6d}
.page .controls button{min-height:43px;font-size:13.5px;line-height:1.4}
.page .screen canvas{display:block;width:100%;height:auto!important;max-width:100%}
@media(min-width:1050px) and (min-height:750px){
  .page .layout>.screen{position:sticky;top:82px;align-self:start}
  .page .layout>.controls{position:static!important;max-height:none!important;overflow:visible!important}
}
@media(max-width:700px){
  .page .steps{display:grid;grid-template-columns:1fr;gap:7px}
  .page .steps .step{padding:11px 12px}
  .page .steps .step span{font-size:13.5px}
  .page .layout{grid-template-columns:minmax(0,1fr)}
  .page .layout>.screen{position:static}
  .page .controls .control{padding:13px}
  .page .controls .control label{font-size:14px}
  .page .controls .control .fact strong{font-size:15px}
  .page .controls button{font-size:14px;min-height:45px}
  .mechanics-presets>button{font-size:13.5px}
}
