@font-face{font-family:Walker;src:url('/fonts/dm-sans-400.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:Walker;src:url('/fonts/dm-sans-700.woff2') format('woff2');font-weight:600 900;font-display:swap}
:root{color-scheme:light;--ink:#193e3b;--muted:#5f716b;--teal:#007e80;--purple:#7151bd;--orange:#be5726;--blue:#2666ac;--line:#d9e1d8;--cream:#fffdf4;--yellow:#ffe24c;--mint:#eaf3ed;--math:'Comic Sans MS','Comic Sans',Walker,Arial,sans-serif}
*{box-sizing:border-box}body{margin:0;color:var(--ink);background:#faf9f4;font:16px/1.5 Walker,Arial,sans-serif}button,input,select{font:inherit;color:inherit}button{cursor:pointer}button,a{touch-action:manipulation;-webkit-tap-highlight-color:transparent}button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid var(--teal);outline-offset:4px}button:disabled{opacity:.35;cursor:default}[hidden]{display:none!important}.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link{position:fixed;top:-100px;left:16px;background:var(--yellow);padding:12px;z-index:50;color:var(--ink)}.skip-link:focus{top:10px}.utility-button{padding:10px 14px;min-height:42px;border:1px solid var(--line);border-radius:8px;background:white;font-size:13px;font-weight:700}.header-label{font-size:12px;margin-right:10px}
.app-wrap{max-width:1390px;padding:22px 28px 0;margin:auto}.intro-row{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:20px}.intro-row p{margin:0;font-size:15px;color:var(--muted)}.intro-row strong{color:var(--ink);font-weight:600}.intro-tag{font-size:10px;letter-spacing:1.5px;font-weight:700;white-space:nowrap;padding:6px 9px;border:1px solid var(--line);border-radius:5px;color:var(--muted)}
.mode-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-bottom:20px}.mode-tab{display:flex;align-items:center;justify-content:flex-start;gap:11px;padding:12px 15px;background:white;border:1.5px solid var(--line);border-radius:12px;text-align:left;min-width:0;min-height:77px;position:relative}.mode-tab>svg{width:48px;height:38px;flex:none;fill:none;stroke:var(--ink);stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}.mode-tab .mini-angle{stroke:var(--teal);stroke-width:2}.mode-tab span{font-size:14px;font-weight:700;line-height:1.3}.mode-tab small{display:block;font-size:11px;font-weight:400;color:var(--muted);margin-top:5px}.mode-tab:hover{border-color:var(--teal);background:#f4faf5}.mode-tab[aria-selected=true]{background:var(--ink);color:white;border-color:var(--ink);box-shadow:0 3px 0 #ffe24c}.mode-tab[aria-selected=true] small{color:#d5e7dc}.mode-tab[aria-selected=true]>svg{stroke:#f9fbef}.mode-tab[aria-selected=true] .mini-angle{stroke:var(--yellow)}
.explorer{display:grid;grid-template-columns:minmax(0,1fr) 292px;gap:20px;align-items:start}.board-column{min-width:0;background:white;border:1px solid var(--line);border-radius:16px;overflow:hidden;box-shadow:0 5px 15px #193e3b05}.board-heading{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:19px 24px 16px;border-bottom:1px solid #e8ede5}.eyebrow{font-size:10px;line-height:1.3;letter-spacing:1.7px;font-weight:700;margin:0 0 6px;color:var(--muted)}h2{font-size:23px;letter-spacing:-.6px;line-height:1.25;margin:0}.reset-button{font-size:12px;border:1px solid var(--line);border-radius:7px;padding:8px 11px;background:#fffdf4;min-height:38px;white-space:nowrap}.reset-button:hover{background:#eaf3ed}.drawing-board{position:relative;background:#fcfefb}#diagram{display:block;width:100%;height:auto;max-height:530px;min-height:290px;touch-action:none;user-select:none;-webkit-user-select:none;overflow:visible}.drag-hint{display:flex;justify-content:center;align-items:center;gap:7px;margin:0;padding:0 12px 16px;text-align:center;font-size:12px;line-height:1.45;color:var(--muted)}.drag-hint span{font-size:19px;color:var(--teal)}.calculation-panel{border-top:1px solid var(--line);padding:20px 16px 17px;background:#f3f7ee;text-align:center;min-height:135px}.calculation-panel .eyebrow{color:#526b58}.calculation{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:7px;font:700 clamp(26px,3vw,42px)/1.35 var(--math);font-variant-numeric:tabular-nums;min-height:56px}.calculation .number{display:inline-flex;align-items:center;justify-content:center;border-radius:8px;padding:2px 8px;white-space:nowrap}.calculation .operator{font-size:.8em;color:#667168;padding:0 2px}.calculation .total{color:var(--ink);padding-left:5px}.calc-pair{display:flex;gap:7px;align-items:center;white-space:nowrap}.calc-divider{width:1px;height:32px;background:#bdcbbd;margin:0 13px}#calculation-note{font-size:12px;color:#5a6e61;margin:8px 0 0;min-height:18px}
.controls-column{display:grid;gap:16px}.fact-card{background:#fff8cc;border:1px solid #e7d787;border-radius:13px;padding:21px 21px 19px;position:relative}.fact-icon{font-size:38px;line-height:1;position:absolute;right:19px;top:15px;color:#c6a62f}.fact-card .eyebrow{color:#7b692b}.fact-card h3{font-size:22px;line-height:1.28;letter-spacing:-.45px;margin:14px 0 10px;max-width:215px}.fact-card>p:last-child{font-size:13px;line-height:1.55;margin:0;color:#6c613a}.control-card{border:1px solid var(--line);border-radius:13px;background:white;padding:20px}.control-card h3{font-size:16px;margin:0 0 15px}.angle-stepper{display:flex;gap:9px;align-items:center;margin-bottom:17px}.angle-stepper>button{min-width:42px;height:45px;border:1px solid var(--line);background:#f6f9f3;border-radius:8px;font-size:24px;line-height:1}.angle-stepper>button:hover{background:var(--mint)}.angle-input-wrap{display:flex;justify-content:center;align-items:center;gap:0;min-width:0;flex:1;color:var(--teal);font:700 34px/1 var(--math)}#angle-input{width:80px;min-width:0;border:none;border-bottom:2px solid #abd0c8;border-radius:0;text-align:center;font:inherit;color:inherit;padding:5px 0;appearance:textfield;-moz-appearance:textfield}#angle-input::-webkit-inner-spin-button,#angle-input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}#angle-slider{width:100%;accent-color:var(--teal);height:24px;margin:0;cursor:pointer}.range-ends{display:flex;justify-content:space-between;font-size:10px;color:var(--muted);margin:0 2px 19px}.control-label{font-size:11px;font-weight:700;color:var(--muted);margin:0 0 8px}.presets{display:flex;gap:6px;flex-wrap:wrap}.presets button{padding:7px 9px;min-height:37px;border:1px solid #ceded1;border-radius:7px;background:#f9fbf6;font-size:12px;font-weight:600}.presets button:hover{background:#eaf3ed;border-color:var(--teal)}.presets button[aria-pressed=true]{background:var(--ink);border-color:var(--ink);color:white}.control-copy{font-size:12px;color:var(--muted);margin:-4px 0 19px}.shape-presets{display:grid;grid-template-columns:1fr 1fr;gap:7px}.shape-presets button{font-size:11px;padding:8px 4px;min-height:42px}.corner-control{border-top:1px solid #e3e9df;padding-top:15px;margin-top:18px}.corner-control>label{display:block;font-size:11px;color:var(--muted);margin-bottom:8px}.nudge-row{display:flex;gap:8px}#corner-select{min-width:51px;min-height:38px;border:1px solid var(--line);border-radius:6px;background:#f9fbf6;padding:5px}.nudge-buttons{display:flex;flex:1;gap:4px}.nudge-buttons button{flex:1;min-width:0;min-height:38px;border:1px solid var(--line);border-radius:6px;background:#f9fbf6}.nudge-buttons button:hover{background:var(--mint)}.discuss-card{padding:2px 9px 8px 17px;border-left:3px solid #acbfb0}.discuss-card .eyebrow{font-size:9px}.discuss-card p:last-child{margin:6px 0 0;font-size:13px;line-height:1.6;color:var(--muted)}
.edge{stroke:var(--ink);stroke-width:5;stroke-linecap:round;stroke-linejoin:round;fill:none}.moving-line{stroke:var(--teal)}.drag-line{stroke:transparent;stroke-width:28;fill:none;cursor:grab}.handle{cursor:grab;outline:none}.handle:active{cursor:grabbing}.handle .handle-halo{fill:#007e8010;stroke:none}.handle .handle-dot{fill:white;stroke-width:4}.handle .handle-letter{font:700 19px Walker,Arial,sans-serif;dominant-baseline:central;text-anchor:middle;pointer-events:none}.handle:focus-visible .handle-halo{stroke:var(--ink);stroke-width:3;stroke-dasharray:5 4;fill:#ffe24c55}.handle:hover .handle-dot{fill:#fff9c4}.angle-number{font:700 36px var(--math);font-variant-numeric:tabular-nums;dominant-baseline:central;text-anchor:middle}.angle-key{font:700 15px Walker,Arial,sans-serif;dominant-baseline:central;text-anchor:middle}.angle-badge{fill:#fffffff2;stroke-width:1.5}.angle-leader{stroke-width:1.5;stroke-dasharray:4 4;fill:none;opacity:.7}.angle-arc{fill-opacity:.16;stroke-width:2.5;stroke-linejoin:round}.centre-dot{fill:var(--ink)}.app-footer{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:23px 2px 27px;font-size:11px;color:var(--muted)}.app-footer p{margin:0}.app-footer a{color:var(--ink);text-underline-offset:3px}.no-script{padding:20px;border:1px solid var(--line);background:white}
body:is(:fullscreen,.presentation-mode){overflow:auto;background:#faf9f4}body:is(:fullscreen,.presentation-mode) #mr-walker-app-nav,body:is(:fullscreen,.presentation-mode) .intro-row,body:is(:fullscreen,.presentation-mode) .app-footer{display:none!important}body:is(:fullscreen,.presentation-mode) .app-wrap{max-width:1600px;padding-top:18px}body:is(:fullscreen,.presentation-mode) #diagram{max-height:calc(100vh - 350px)}
@media(min-width:1500px){.app-wrap{max-width:1450px}.explorer{grid-template-columns:minmax(0,1fr) 310px}#diagram{max-height:580px}}
@media(max-width:1150px){.mode-tab{padding:11px 10px;gap:6px}.mode-tab>svg{width:38px}.mode-tab span{font-size:12px}.explorer{grid-template-columns:minmax(0,1fr) 260px;gap:16px}.app-wrap{padding-left:20px;padding-right:20px}.fact-card,.control-card{padding:17px}.calculation{font-size:34px}.calculation .number{padding:2px 5px}}
@media(max-width:900px){.intro-tag{display:none}.mode-tabs{gap:7px}.mode-tab{flex-direction:column;justify-content:center;text-align:center;gap:6px;padding:10px 3px;min-height:105px}.mode-tab small{margin-top:3px}.explorer{grid-template-columns:minmax(0,1fr) 235px;gap:14px}h2{font-size:21px}.board-heading{padding:17px}.calculation{font-size:27px;gap:4px}.calc-divider{margin:0 3px}.fact-card h3{font-size:20px}.fact-card{padding:17px 15px}.control-card{padding:17px 14px}.presets button{font-size:11px;padding:7px 8px}.header-label{display:none}}
@media(max-width:720px){.app-wrap{padding:16px 12px 0}.intro-row{margin-bottom:14px}.intro-row p{font-size:13px}.intro-row strong{display:block}.mode-tabs{margin-bottom:14px;gap:5px}.mode-tab{min-height:100px;padding:9px 2px;gap:6px;border-radius:9px}.mode-tab>svg{width:38px;height:31px}.mode-tab span{font-size:10px;line-height:1.3}.mode-tab small{font-size:9px}.explorer{grid-template-columns:1fr;gap:14px}.board-heading{padding:14px 15px}h2{font-size:21px}.board-heading .eyebrow{font-size:9px}.controls-column{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}.control-card{grid-column:2;grid-row:1 / 3}.discuss-card{grid-column:1}.fact-card h3{font-size:19px}.fact-icon{display:none}.calculation{font-size:32px;gap:4px}.calculation-panel{padding:16px 10px 14px;min-height:119px}.calculation-panel .eyebrow{font-size:9px}.calculation .number{padding:2px 4px}.drawing-board #diagram{min-height:270px;max-height:470px}.drag-hint{font-size:10px;padding-bottom:12px}#calculation-note{font-size:11px}.calc-divider{margin:0 10px}.app-footer{font-size:10px;gap:8px;padding-top:18px}}
@media(max-width:420px){.controls-column{grid-template-columns:1fr}.control-card{grid-column:auto;grid-row:auto}.discuss-card{grid-column:auto}.fact-card{padding:15px}.fact-card h3{margin:7px 0;font-size:20px;max-width:none}.fact-card>p:last-child{font-size:12px}.control-card{padding:17px}.angle-stepper{max-width:260px;margin-left:auto;margin-right:auto}.shape-presets{grid-template-columns:repeat(2,1fr)}.shape-presets button{font-size:12px}.drawing-board #diagram{min-height:240px}.calculation{font-size:27px;gap:3px}.calculation .number{padding:2px 3px}.calculation .operator{padding:0}.calc-divider{margin:0 5px}h2{font-size:19px}.intro-row p{font-size:12px}.reset-button{padding:7px 8px}.mode-tab{min-height:102px}.mode-tab>svg{width:34px}.mode-tab span{font-size:9px}.mode-tab small{font-size:9px}.calculation-panel .eyebrow{letter-spacing:1px}.app-footer{padding-bottom:22px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
/* Keep the live calculation in view on a classroom laptop. */
@media(min-width:721px){#diagram{height:clamp(290px,calc(100dvh - 595px),500px);min-height:290px;max-height:500px}body:is(:fullscreen,.presentation-mode) #diagram{height:clamp(290px,calc(100dvh - 500px),650px);max-height:650px}}
@media(max-width:720px){.handle .handle-halo{r:58px}.handle .handle-dot{r:24px}.handle .handle-letter{font-size:26px}}
#labels{pointer-events:none}.shape-side-hit{fill:none;stroke:transparent;stroke-width:32;cursor:grab}.side-handle{cursor:grab;outline:none}.side-halo{fill:#007e8008;stroke:none}.side-dot{fill:#fffdf4;stroke:#5a8278;stroke-width:2}.side-handle path{fill:none;stroke:#446c63;stroke-width:1.8;stroke-linecap:round;pointer-events:none}.side-handle:hover .side-dot{fill:#ffe24c}.side-handle:focus-visible .side-halo{stroke:var(--ink);stroke-width:3;stroke-dasharray:5 4;fill:#ffe24c55}.side-handle:active,.shape-side-hit:active{cursor:grabbing}
@media(max-width:720px){.side-halo{r:54px}.side-dot{r:19px}.side-handle path{stroke-width:3}.shape-side-hit{stroke-width:65}}
html{min-height:100%;background:#faf9f4}
body:fullscreen{width:100%;height:100dvh;min-height:100dvh;max-width:none;background:#faf9f4}
body.presentation-mode{min-height:100dvh;background:#faf9f4}
body::backdrop,html::backdrop{background:#faf9f4}
.point-right-angles{fill:none;stroke:var(--teal);stroke-linecap:round;stroke-linejoin:round;pointer-events:none}.right-angle-marker{stroke-width:3}.right-angle-guide{stroke-width:1.8;stroke-dasharray:5 4}
.mode-tabs{grid-template-columns:repeat(6,minmax(0,1fr))}
.angle-count-controls{padding-bottom:16px;margin-bottom:18px;border-bottom:1px solid var(--line)}
.angle-count-controls label{display:flex;gap:10px;align-items:center;font-size:14px;font-weight:700;cursor:pointer;min-height:28px}
#third-angle{width:20px;height:20px;margin:0;accent-color:var(--teal);flex:none}
.second-angle-controls{border-top:1px solid var(--line);margin-top:19px;padding-top:19px}
#second-angle-input{width:80px;min-width:0;border:none;border-bottom:2px solid #c3b3e2;border-radius:0;text-align:center;font:inherit;color:var(--purple);padding:5px 0;appearance:textfield;-moz-appearance:textfield}
#second-angle-input::-webkit-inner-spin-button,#second-angle-input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.second-angle-controls .angle-input-wrap{color:var(--purple)}
#second-angle-slider{width:100%;accent-color:var(--purple);height:24px;margin:0;cursor:pointer}
.second-angle-controls .range-ends{margin-bottom:12px}.second-angle-controls .control-copy{margin:0}
.secondary-line{stroke:var(--purple)}.whole-right-angle{stroke:var(--ink);fill:none;stroke-linejoin:round;pointer-events:none}
.handle[data-handle=split] .handle-halo{fill:#7151bd10}
@media(max-width:1150px){.mode-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:720px){.mode-tab{min-height:82px}.mode-tab span{font-size:12px}.mode-tab small{font-size:10px}}
