
:root { color-scheme:light; --ink:#20252a; --soft:#565e65; --orange:#b56d0c; --accent:#d73024; }
*{box-sizing:border-box}html{scroll-behavior:smooth}
body{margin:0;background:#f5f5f2;color:var(--ink);font:400 21px/1.62 "Segoe UI",Calibri,Carlito,Arial,sans-serif;-webkit-font-smoothing:antialiased}
a{color:#8f5a16}
header{background:white;border-bottom:1px solid #e0e1de}
.header-inner{max-width:1030px;margin:0 auto;padding:17px clamp(22px,6vw,88px);display:flex;align-items:center;justify-content:space-between;gap:16px}
.brand{color:var(--ink);font-size:18px;font-weight:600;text-decoration:none}
.top-link{color:#8f5a16;font-size:15px;text-decoration:none}
.shell{max-width:1030px;margin:0 auto;background:#fff;min-height:calc(100vh - 60px);padding:38px clamp(22px,6vw,88px) 100px;box-shadow:0 4px 36px #0000000b}
.sidebar{display:none}
.page-card{margin:0;padding:0;border:0;background:none}
.content{min-width:0}
.content h1{font-size:28px;line-height:1.23;letter-spacing:-.015em;font-weight:550;margin:0 0 9px;color:#262a2d}
.content h1.building-chapter-title{font-weight:500}
.subtitle{font-size:20px;line-height:1.35;font-weight:400;font-style:italic;color:#656b70;margin:0 0 29px}
p{margin:0 0 20px}
.content h2{font-size:23px;line-height:1.3;letter-spacing:0;font-weight:650;margin:43px 0 18px}
.equation-line{display:flex;align-items:baseline;gap:15px;justify-content:flex-start;margin:24px 0 33px;padding-left:26px;flex-wrap:wrap}
.equation{font-size:clamp(30px,3.5vw,40px);font-weight:600;line-height:1.25;white-space:nowrap}
.amber{color:#b56d0c}
.right{font-size:18px;color:var(--soft)}
.first-question{padding-left:26px;margin:0 0 32px;font-size:clamp(21px,2.3vw,25px);font-weight:500;line-height:1.35}
.first-question .amber{color:#b56d0c}
.emphasis-line{font-size:clamp(21px,2.7vw,26px);font-weight:600;text-align:center;margin:30px 0 33px}
.chapter-divider{border:0;border-top:1px solid #e0e0df;margin:45px 0}
.lead{font-size:clamp(23px,2.7vw,27px);line-height:1.42;font-weight:500;margin:0 0 25px}
.template-ref{color:#8f5a16}
.build-sequence{margin:22px 0 6px}
.build-step{margin:0 0 32px}
.build-step>p{margin:0 0 7px}
.build-figure{width:min(100%,465px);margin:8px 0 0 20px}
.build-figure img{width:100%;height:auto;display:block;object-fit:contain}
.disassemble-instruction{margin:16px 0 14px!important}
/* Portrait picture should be narrower so its numerals match the 3D numeral scale of earlier examples. */
.separated-figure{width:min(100%,415px);margin:0 0 35px 20px}
.separated-figure img{width:100%;height:auto;display:block;object-fit:contain}
.lesson-break{margin:26px 0 16px}
.flat-instruction{margin-bottom:11px!important}
.flat-figure{width:min(100%,465px);margin:12px 0 19px 20px}





.flat-original{display:none}
.flat-question{margin:12px 0 27px!important}
.zero-notes{display:flex;align-items:baseline;gap:8px;font-weight:600;letter-spacing:-.01em;color:var(--ink)}
.zero-notes .zero-char{font-size:1.35em;line-height:.92;color:#b56d0c;font-weight:700}
.zero-notes .notes-word{font-size:1em}
@media(max-width:700px){
 body{font-size:18px;line-height:1.58}
 .header-inner{padding:13px 17px}.brand{font-size:17px}.top-link{font-size:14px}
 .shell{padding:32px 17px 75px}
 .content h1{font-size:25px}
 .subtitle{font-size:18px;margin-bottom:23px}
 .equation-line{margin:20px 0 27px;padding-left:13px;gap:11px}
 .equation{font-size:clamp(28px,7.5vw,36px)}
 .right{font-size:17px}.first-question{padding-left:13px;margin-bottom:26px;font-size:21px}
 .content h2{margin-top:38px;font-size:20px}
 .chapter-divider{margin:34px 0}
 .build-figure,.separated-figure,.flat-figure{width:100%;max-width:none;margin-left:0}
 .separated-figure{max-width:350px}
 .flat-assembled{max-width:480px}
 .emphasis-line{font-size:22px}
}
@media print{body{background:white}.shell{max-width:none;box-shadow:none;padding:14mm 15mm}header{display:none}.build-step,.build-figure,.separated-figure,.flat-figure{break-inside:avoid}.content h2{break-after:avoid}}

/* The last picture uses three correctly cropped windows onto the original
   photographic source. No stretched digits or seams from background slicing. */
.flat-assembled{display:flex;gap:0;width:min(100%,420px);margin:0}
.flat-assembled .toy-digit{display:block;position:relative;overflow:hidden;flex:0 0 33.333333%;aspect-ratio:200/330;background:#fff}
.flat-assembled .toy-digit::before{content:"";position:absolute;top:0;width:435%;height:100%;background-image:url('538-flat-clean.webp');background-size:100% 100%;background-repeat:no-repeat}
.flat-assembled .toy-five::before{left:-35%}
.flat-assembled .toy-three::before{left:-172%}
.flat-assembled .toy-eight::before{left:-310%}
@media(max-width:700px){.flat-assembled{width:min(100%,420px)}}

/* Final flat 538 image: one cleaned photograph, not stitched CSS slices. */
.flat-assembled { display:none !important; }
.flat-figure .flat-original { display:block !important; width:100%; height:auto; }

.counting-columns-figure{max-width:700px;margin:22px auto 29px}
.counting-columns-figure img{display:block;width:100%;height:auto;object-fit:contain}
@media(max-width:700px){.counting-columns-figure{width:100%;margin:16px auto 24px}}
@media print{.counting-columns-figure{break-inside:avoid}}

.chapter-kicker{font-size:14px;color:#777b7d;letter-spacing:.07em;margin:0 0 8px}
.pv-248{margin:24px auto 33px;width:100%;max-width:860px}
.pv-248 img{display:block;width:100%;height:auto;object-fit:contain}
.read-248{margin-left:22px}
.group-keywords{font-size:1.05em;margin-top:-8px}
.content h2.pv-subhead{font-size:23px;font-weight:650;letter-spacing:0;margin:38px 0 16px}
.counting-example{margin-left:32px}
.pv-equation{font-size:clamp(23px,2.8vw,28px);font-weight:500;margin-left:20px}
.chapter-bottom-nav{display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-top:55px;padding-top:18px;border-top:1px solid #e6e6e3;font-size:15px}
.chapter-bottom-nav a{color:#8f5a16;text-decoration:none}
.chapter-bottom-nav a:hover{text-decoration:underline}
@media(max-width:700px){.read-248{margin-left:12px}.counting-example{margin-left:20px}.pv-equation{margin-left:10px}.pv-248{margin:16px auto 28px}}

/* Chap. 2 reading instruction and restrained mobile section headings */
.pv-chart-instruction{margin-top:-14px;font-size:18px;color:#555d61}
@media(max-width:700px){.content h2.pv-subhead{font-size:20px;margin-top:33px}.pv-chart-instruction{font-size:17px;margin-top:-12px}}

/* Place Value Chart: widen the desktop figure by 1/4 inch per side (48 CSS px total).
   Keep the spoken-number cue aligned with the chart's left edge. */
@media(min-width:701px){
 .pv-248,.read-248{width:calc(100% - 72px);max-width:698px;margin-left:auto;margin-right:auto}
}
@media(max-width:700px){.pv-248{width:100%;max-width:100%;margin-left:auto;margin-right:auto}.read-248{margin-left:0}}
.pv-chart-instruction{text-align:center}
