:root{font:18px/1.5 system-ui,sans-serif;color:#17345f;background:#f6f8f7}*{box-sizing:border-box}body{margin:0}header{display:flex;gap:1.5rem;align-items:center;justify-content:space-between;background:#17345f;color:white;padding:1rem max(1rem,calc((100vw - 1100px)/2))}header a{color:white}main{max-width:1100px;margin:auto;padding:1rem}.intro{max-width:760px}.eyebrow{color:#9b392d;font-weight:700;letter-spacing:.07em;text-transform:uppercase}h1{font-size:clamp(2rem,5vw,3.5rem);line-height:1.1}h2{font-size:1.4rem}.card{background:white;border:1px solid #c9d7de;border-radius:16px;padding:1.3rem;margin:1.2rem 0;box-shadow:0 2px 8px #17345f0a}.quantities,.model-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}fieldset,article{border:1px solid #ced8df;border-radius:12px;padding:1rem;min-width:0}article h3{margin-top:0}label{display:block;margin:.55rem 0;font-weight:650}input,textarea,select{font:inherit;padding:.45rem;border:2px solid #738da0;border-radius:7px;max-width:100%}input{width:8rem}label input{margin-left:.4rem}textarea{display:block;width:100%}button{font:inherit;background:#e7f0f4;border:1px solid #9eb5c4;color:#17345f;border-radius:8px;padding:.45rem .8rem;cursor:pointer;margin:.2rem}button:hover{background:#cde2eb}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #e07920;outline-offset:3px}button:disabled{opacity:.5}.vocab{border:0;border-bottom:2px dotted #28629b;border-radius:0;background:none;padding:0;margin-right:1rem}.controls{display:flex;flex-wrap:wrap;gap:.3rem}#error{color:#a12626}.counters{display:flex;flex-wrap:wrap;gap:6px;min-height:30px}.counters span{background:var(--counter);width:25px;height:25px;border-radius:50%;border:2px solid #123}.tape{display:flex;max-width:100%;overflow:auto}.tape span{flex:1;min-width:32px;background:var(--tape);color:white;text-align:center;border:1px solid white;padding:.3rem}.numberlines{overflow:auto}.line{display:flex;justify-content:space-between;border-top:3px solid #17345f;margin:.6rem 0 1.5rem}.line span{position:relative;font-size:.8rem}.line span:before{content:'';height:12px;border-left:2px solid;position:absolute;top:-11px;left:50%}table{border-collapse:collapse;width:100%}th,td{border:1px solid #9eb5c4;padding:.3rem;text-align:center}svg{max-width:100%}dialog{max-width:min(92vw,480px);border:2px solid #17345f;border-radius:14px;padding:1.5rem}dialog::backdrop{background:#112c46aa}dialog svg{width:100%;max-height:180px}.skip{position:absolute;left:-9999px}.skip:focus{left:1rem;top:1rem;background:white}@media(max-width:700px){.quantities,.model-grid{grid-template-columns:1fr}header{flex-wrap:wrap}main{padding:.7rem}.card{padding:1rem}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important}}
.ratio-point{cursor:pointer;outline:none}.ratio-point circle{stroke:#17345f;stroke-width:1}.ratio-point:hover circle,.ratio-point[aria-pressed="true"] circle{stroke:#e07920;stroke-width:3}.ratio-point:focus-visible circle{stroke:#e07920;stroke-width:4}
.comparison-choice{display:flex;flex-wrap:wrap;gap:.35rem}.comparison-choice button[aria-pressed="true"]{background:#17345f;color:#fff;border-color:#17345f}
.line .numberline-point{position:relative;z-index:1;min-width:44px;min-height:44px;margin:-.4rem 0 0;padding:.2rem;background:#fff;font-size:.78rem}.line .numberline-point:before{content:"";position:absolute;z-index:-1;left:50%;top:-.4rem;height:12px;border-left:2px solid #17345f}.line .numberline-point[aria-pressed="true"]{background:#17345f;color:#fff;border-color:#17345f}.numberline-zero{align-self:flex-start;background:#fff;padding:0 .35rem}
.numberlines .line{min-width:max-content}.construction{margin-top:1rem;padding:1rem;border:1px solid #ced8df;border-radius:12px;background:#f7faf9}.construction button{min-height:44px}.construction label{max-width:100%}
.line.scaled{display:block;position:relative;height:3.2rem;margin:.6rem 1.6rem 1.5rem}
.line.scaled>*{position:absolute;top:0;transform:translateX(-50%)}
.line.scaled .numberline-zero{top:.2rem}
tr.current td{background:#e6f0f7;font-weight:700}
