:root{font-family:RK,'Atkinson Hyperlegible',system-ui,sans-serif;color:#183f3a;background:#edf3ef;font-synthesis:none;--a:#a24608;--b:#0369a1;--c:#7e22ce}*{box-sizing:border-box}body{margin:0}button,select,input{font:inherit}button,a,select,input{touch-action:manipulation}button,select{min-height:44px}button{border:1px solid #b5cdc4;background:white;color:#184e42;border-radius:12px;padding:10px 17px;font-weight:700;cursor:pointer}button:hover{background:#eaf4ef}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #007f9e;outline-offset:4px}a{color:inherit}.wm-app{max-width:1800px;margin:auto;padding:24px 30px 18px;min-height:100dvh;display:flex;flex-direction:column;gap:18px}.wm-top{display:flex;justify-content:space-between;align-items:center;gap:12px}.brand{font-size:14px;font-weight:800;letter-spacing:.08em}.brand span{color:#647a70;font-weight:400;letter-spacing:0;margin-left:10px}.wm-nav{display:flex;align-items:center;gap:16px}.wm-nav>a{font-size:14px}.wm-nav select{border:1px solid #b5cdc4;background:transparent;border-radius:10px;padding:6px 10px;max-width:140px;color:inherit}h1{font-size:clamp(28px,3.2vw,47px);letter-spacing:-.045em;line-height:1.1;margin:0}.wm-heading{display:flex;align-items:end;justify-content:space-between;gap:20px}.wm-heading p{margin:8px 0 0;color:#536a60;font-size:18px}.full{background:#1c5949;color:white;border-color:#1c5949;white-space:nowrap}.full:hover{background:#133f34}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:20px;flex:1;min-height:0}.wm-board{min-width:0;display:flex;flex-direction:column;background:#fff;border:1px solid #c9dcd3;border-radius:24px;box-shadow:0 12px 36px #244e3b09;overflow:hidden}.board-top{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:14px 22px;border-bottom:1px solid #e4ece8}.board-top p{margin:0;font-size:16px}.scale-buttons{display:flex;gap:7px}.scale-buttons button{padding:5px 13px;font-size:24px;min-width:44px}.svg-wrap{flex:1;min-height:280px;display:flex;align-items:center;justify-content:center;position:relative;isolation:isolate}#triangleBoard{display:block;width:100%;height:100%;min-height:280px;max-height:calc(100dvh - 340px);overflow:visible;touch-action:none;user-select:none;-webkit-user-select:none}#triangleShape{fill:#e9f3ee;stroke:#245f51;stroke-width:3;stroke-linejoin:round}.sector{stroke-width:1;stroke:currentColor;fill:currentColor;fill-opacity:.19}.a{color:var(--a);fill:var(--a)}.b{color:var(--b);fill:var(--b)}.c{color:var(--c);fill:var(--c)}.angle-label{pointer-events:none;text-anchor:middle;font-weight:800;paint-order:stroke;stroke:white;stroke-width:7px;stroke-linejoin:round;font-family:RK,system-ui,sans-serif}.greek{font-size:27px}.angle-value{font-size:19px}.vertex{cursor:grab;outline:none;touch-action:none}.vertex:focus .focus-ring{stroke:#152f2b;stroke-width:3;stroke-dasharray:4 4}.vertex:focus:not(:focus-visible) .focus-ring{stroke:none}.vertex .hit{fill:transparent;stroke:transparent;stroke-width:1}.vertex .dot{fill:white;stroke:currentColor;stroke-width:4;filter:drop-shadow(0 2px 3px #12332622)}.vertex:hover .dot,.vertex:focus .dot{fill:currentColor;stroke:white;stroke-width:3}.vertex .focus-ring{fill:none;stroke:none}.vertex text{font:700 17px RK,system-ui;fill:currentColor;pointer-events:none;paint-order:stroke;stroke:#fff;stroke-width:5px;stroke-linejoin:round}.dragging,.dragging .vertex{cursor:grabbing}.no-grid .grid-fill{visibility:hidden}.board-footer{padding:7px 22px 14px;display:flex;align-items:center;justify-content:space-between;gap:10px;color:#63796e;font-size:13px}.board-footer p{margin:0}.board-footer .limited{color:#8a3b0a}.wm-aside{background:#153f36;color:white;border-radius:24px;padding:24px;display:flex;flex-direction:column;gap:16px}.eyebrow{font-size:12px;text-transform:uppercase;letter-spacing:.14em;margin:0;color:#c2dfce}.total{font-size:clamp(66px,6vw,90px);line-height:1;font-weight:800;letter-spacing:-.07em;margin:0}.angle-list{display:grid;gap:7px}.angle-row{display:flex;justify-content:space-between;align-items:center;background:#ffffff0b;border:1px solid #ffffff15;border-radius:10px;padding:9px 13px;font-size:23px;font-variant-numeric:tabular-nums}.angle-row .symbol{font-size:29px;font-weight:800}.angle-row.a{color:#ffcb91}.angle-row.b{color:#94d6ff}.angle-row.c{color:#dec2ff}.equation{display:flex;flex-wrap:wrap;align-items:center;gap:5px;font-size:17px;font-variant-numeric:tabular-nums}.equation .a{color:#ffcb91}.equation .b{color:#94d6ff}.equation .c{color:#dec2ff}.sum-bar{display:flex;height:9px;overflow:hidden;border-radius:10px;gap:2px}.sum-bar .a{background:#ffb367}.sum-bar .b{background:#70c5fb}.sum-bar .c{background:#c9a4ff}.sum-bar>span{min-width:0}.joined{margin:0;border-top:1px solid #ffffff25;padding-top:12px}.joined[hidden]{display:none}.joined svg{width:100%;height:auto;max-height:145px}.joined path{stroke:#153f36;stroke-width:1.5}.joined path.a{fill:#ffb367}.joined path.b{fill:#70c5fb}.joined path.c{fill:#c9a4ff}.joined text{fill:#153f36;text-anchor:middle;font-size:21px;font-weight:800}.joined figcaption{font-size:14px;text-align:center;color:#d5e7df}.note{font-size:12px;color:#c2d6cb;margin:0;line-height:1.45}.wm-controls{display:flex;flex-wrap:wrap;align-items:center;gap:12px;background:#ffffffb0;border:1px solid #ccddd5;border-radius:17px;padding:12px 16px}.preset{display:flex;align-items:center;gap:8px;font-size:14px}.preset select{padding:8px 32px 8px 12px;border:1px solid #b5cdc4;border-radius:10px;background:white;color:inherit;max-width:220px}.switch{display:flex;align-items:center;gap:8px;min-height:44px;font-size:15px;cursor:pointer}.switch input{appearance:none;width:35px;height:22px;border-radius:20px;background:#a6bbb2;margin:0;position:relative;flex-shrink:0}.switch input:before{content:'';position:absolute;top:3px;left:3px;width:16px;height:16px;background:white;border-radius:50%;box-shadow:0 1px 2px #0003}.switch input:checked{background:#236750}.switch input:checked:before{left:16px}.controls-end{margin-left:auto;display:flex;gap:10px}.help{font-size:14px;color:#4d665a;max-width:1050px}.help summary{cursor:pointer;min-height:30px;width:fit-content}.help p{line-height:1.55;margin:7px 0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.values-hidden .angle-value{visibility:hidden}.wm-app:fullscreen{max-width:none;background:#edf3ef;overflow:auto;padding:20px 26px}.wm-app:fullscreen #triangleBoard{max-height:calc(100dvh - 300px)}@media(min-width:1500px){.workspace{grid-template-columns:minmax(0,1fr) 370px}.wm-aside{padding:30px}.angle-row{padding:12px 17px}.joined svg{max-height:180px}}@media(max-width:1000px){.wm-app{padding:20px}.workspace{grid-template-columns:minmax(0,1fr) 285px;gap:14px}.wm-aside{padding:20px;gap:13px}.board-top{padding:12px 16px}.board-top p{max-width:240px}.wm-controls{gap:8px 14px}.controls-end{margin-left:0}.wm-heading p{font-size:16px}}@media(max-width:740px){.wm-app{padding:15px 12px;gap:14px}.brand{font-size:12px}.brand span{display:none}.wm-nav{gap:10px}.wm-nav>a{font-size:12px}.wm-nav select{max-width:105px;font-size:13px}.wm-heading{align-items:center;gap:10px}h1{font-size:28px}.wm-heading p{font-size:14px;max-width:250px;line-height:1.4}.full{padding:9px 12px;font-size:13px}.workspace{display:flex;flex-direction:column;gap:14px}.wm-board{border-radius:18px}.board-top{padding:9px 12px}.board-top p{font-size:14px;max-width:none}.scale-buttons button{padding:3px 10px;min-width:44px}#triangleBoard,.wm-app:fullscreen #triangleBoard{height:auto;min-height:240px;max-height:none;aspect-ratio:900/560}.svg-wrap{min-height:240px}.board-footer{padding:4px 12px 10px}.wm-aside{border-radius:18px;display:grid;grid-template-columns:1fr 1fr;gap:10px 14px;padding:18px}.wm-aside>header{grid-column:1}.total{font-size:65px}.angle-list{grid-column:2;grid-row:1 / 4;gap:5px}.angle-row{font-size:19px;padding:5px 10px}.angle-row .symbol{font-size:24px}.equation,.sum-bar,.note{grid-column:1/-1}.joined{grid-column:1/-1}.joined svg{max-height:140px}.wm-controls{padding:11px;gap:7px 16px}.preset{width:100%;justify-content:space-between}.preset select{max-width:190px;flex:1}.switch{font-size:14px}.controls-end{width:100%;justify-content:end}.wm-app:fullscreen{padding:12px}.note{font-size:11px}.help{font-size:13px}.angle-value{font-size:22px}.greek{font-size:32px}.vertex .dot{stroke-width:5px}.vertex text{font-size:22px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}}
.sum-bar{flex-shrink:0;min-height:9px}
/* Keep the demonstration and toolbar together on a classroom display. */
@media(min-width:741px){.wm-app{height:100dvh;min-height:720px;gap:14px}.workspace{min-height:300px}.wm-board{min-height:0}.svg-wrap{min-height:0}#triangleBoard{min-height:0;height:100%;max-height:none}.wm-aside{padding:20px;gap:10px;overflow:auto}.total{font-size:76px}.angle-row{padding:6px 12px;font-size:22px}.joined svg{max-height:115px}.joined{padding-top:7px}.note{font-size:11px}.wm-app:fullscreen{height:100dvh;min-height:0}.wm-app:fullscreen #triangleBoard{max-height:none}.help{flex-shrink:0}.wm-controls{flex-shrink:0}}
