/* Measuring Angles: a slide lesson with a live protractor. Ported from Activities/angles-protractor.html.
   The slides are drawn on a fixed 1600 x 900 stage that tool.js scales to fit the frame.
   Sizes inside #stage are in px of that 1600 x 900 stage, not in em. */
#tool{--bg:#fff;--plastic:rgba(31,111,209,.13)}
#bar .sep{width:2px;height:1.8em;background:var(--line)}
#count{min-width:4.2em;text-align:center}
#wrap{flex:1;min-height:0;position:relative;overflow:hidden;background:var(--desk)}
#stage{position:absolute;left:0;top:0;width:1600px;height:900px;transform-origin:0 0;background:var(--bg);background-image:var(--paper-grid);background-size:40px 40px;overflow:hidden;font:16px/1.4 var(--font-body);color:var(--ink)}
#stage *{min-width:0}
#stage .slide{position:absolute;inset:0;padding:70px 90px;display:none}
#stage .slide.on{display:block}
#stage h2{font-family:var(--font-head);font-weight:700;margin:0 0 28px;line-height:1.05;font-size:60px;text-wrap:balance}
#stage h2.h1{font-size:84px;margin:0}
#stage p,#stage li{font-size:34px;line-height:1.35}
#stage p{margin:1em 0}
#stage .big{font-size:40px}
#stage .soft{color:var(--soft)}
#stage ul,#stage ol{margin:0;padding-left:1.1em}
#stage li{margin:0 0 18px}
#stage .split{display:grid;grid-template-columns:1fr 470px;gap:40px;height:100%}
#stage .fig{position:relative}
#stage .fig svg{position:absolute;inset:0;width:100%;height:100%;max-width:none;overflow:visible}
#stage .panel{display:flex;flex-direction:column;gap:22px;padding-top:6px}
#stage .panel p{margin:0}
#stage .sbtn{font:700 26px var(--font-head);padding:16px 24px;border-radius:12px;border:3px solid var(--ink);background:var(--bg);color:var(--ink);cursor:pointer;text-align:left}
#stage .sbtn:hover{background:var(--grid)}
#stage .sbtn:focus-visible{outline:4px solid var(--blue);outline-offset:3px}
#stage .sbtn.primary{background:var(--blue);border-color:var(--blue);color:#fff}
#stage .answer{font:700 76px var(--font-head);color:var(--red);min-height:90px}
#stage .type{font:700 40px var(--font-head);color:var(--red);min-height:48px}
#stage .hide{visibility:hidden}
#stage .tcards{display:grid;grid-template-columns:repeat(4,1fr);gap:28px;margin-top:20px}
#stage .tcard{border:3px solid var(--ink);border-radius:16px;background:var(--bg);padding:18px 18px 22px;text-align:center}
#stage .tcard svg{width:100%;height:190px}
#stage .tcard h3{font:700 36px var(--font-head);margin:6px 0}
#stage .tcard p{margin:0;font-size:28px}
#stage .note{position:absolute;left:90px;bottom:60px;font-size:28px;color:var(--soft);margin:0}
/* touch-action is on the SVG root: Chrome ignores it on the <g> of the protractor, and then cancels a finger drag */
#ov{position:absolute;inset:0;width:1600px;height:900px;max-width:none;pointer-events:none;touch-action:none}
#pro{pointer-events:auto;cursor:grab;touch-action:none;user-select:none}
#pro.drag{cursor:grabbing}
#pro text{user-select:none}
#handle{cursor:alias}
