@font-face{font-family:Workbook;src:url(PretendardVariable.ttf)}*{box-sizing:border-box}body{margin:0;color:#173735;background:#eef2ee;font:15px/1.55 Workbook,Arial,sans-serif}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button{cursor:pointer;border:1px solid #c2cfca;background:#fff;padding:9px 13px;border-radius:7px;color:#173735}button:hover{background:#e3efea}.primary{background:#14584e;color:#fff;border-color:#14584e}.primary:hover{background:#237466}a{color:inherit;text-decoration:none}a:hover{text-decoration:underline}input[type=checkbox]{accent-color:#14584e}h1,h2,p{margin:0 0 14px}h1{font-size:35px;line-height:1.2;letter-spacing:-1px}h2{font-size:21px;line-height:1.3}small,.muted{font-size:12px;color:#5b716b}em{font-style:normal;color:#2d7661}.catalog{max-width:1220px;padding:30px 40px;margin:auto}.brand{display:flex;justify-content:space-between;border-bottom:1px solid #b6c7be;padding-bottom:20px;font-size:12px;font-weight:700;letter-spacing:1.6px}.hero{display:flex;justify-content:space-between;gap:60px;padding:65px 40px 40px}.hero h1{font-size:57px;line-height:1.13;margin-bottom:25px}.eyebrow{font-size:13px;color:#417764}.hero p{line-height:1.8}.hero-paper{background:#fffcf4;transform:rotate(4deg);width:330px;flex-shrink:0;padding:30px;border-radius:6px;box-shadow:0 20px 50px #304f3620;border:1px solid #dddcd0}.hero-paper>span{font-size:11px;letter-spacing:3px}.hero-paper h2{margin-top:30px}.hero-sum{font-size:48px;border-top:1px solid #bad0be;border-bottom:1px solid #bad0be;margin:20px 0;padding:10px 0}.hero-steps{font-size:18px;line-height:2}.stats{display:grid;grid-template-columns:repeat(4,1fr);border-block:1px solid #bdcec3;margin:30px 0 16px}.stats>div{padding:20px;font-size:13px;border-right:1px solid #bdcec3}.stats b{display:block;font-size:32px}.how{padding:23px;background:#e0eae1;border-radius:12px;margin:30px 0}.how p{margin:8px 0 0}.filters{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.filters input,.filters select{padding:11px;border:1px solid #c1d0c5;border-radius:6px;background:white}#search{flex:1;min-width:200px}#count{margin-top:15px;font-size:13px}#catalog-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin:15px 0 35px}.book-card{background:#fffdf7;border:1px solid #d4ddd2;border-radius:10px;padding:21px;display:flex;flex-direction:column;min-height:290px}.book-card>div:first-child{display:flex;justify-content:space-between;gap:5px;align-items:center}.book-card label{font-size:11px}.badge{font-size:10px;padding:4px 6px;border-radius:4px;background:#e6efe9}.badge.draft{background:#f6e7c4;color:#705117}.book-card>.muted{margin-top:24px}.book-card h2{font-size:23px}.book-card p{font-size:14px}.card-bottom{margin-top:auto;padding-top:24px;display:flex;gap:10px;justify-content:space-between;align-items:end}.open-book{font-size:13px;font-weight:700;white-space:nowrap}.toolbar{position:sticky;top:0;z-index:10;background:#fffffff2;box-shadow:0 1px 10px #0001;padding:12px;display:flex;gap:8px;align-items:center;justify-content:center;flex-wrap:wrap;font-size:13px}.toolbar select{padding:9px;border-radius:5px;border:1px solid #c2cfca}.screen-note{max-width:780px;margin:18px auto;padding:0 16px;font-size:12px;color:#56726a}.sheet{width:186mm;min-height:270mm;background:white;margin:20px auto;padding:12mm 11mm 15mm;position:relative;box-shadow:0 2px 12px #0001;break-after:page}.sheet header{display:flex;justify-content:space-between;font-size:10px;color:#637770;border-bottom:1px solid #bacac2;padding-bottom:9px;margin-bottom:20px}.sheet footer{position:absolute;bottom:6mm;left:11mm;right:11mm;display:flex;justify-content:space-between;font-size:9px;color:#667971;border-top:1px solid #d6e0d9;padding-top:5px}.sheet h2{font-size:19px}.sheet h2 small{display:block;font-weight:400;margin-top:5px}.cover-label{display:inline-block;color:#337565;font-size:12px;margin:10px 0 25px}.lead{font-size:21px;line-height:1.6;margin:25px 0}.learning-route{display:flex;justify-content:space-between;font-size:12px;background:#edf5f0;padding:17px;margin:22px 0}.example{border:1px solid #a9c6b6;border-radius:7px;padding:18px;margin:22px 0}.example h2{font-size:15px;color:#387563}.question-text{font-size:18px;line-height:1.5;margin-bottom:12px}.solution{padding-left:20px;margin:10px 0;font-size:13px;line-height:1.65}.solution li{padding-left:3px;margin-bottom:3px;overflow-wrap:anywhere}.principle .solution{font-size:12px;line-height:1.5}.principle aside{font-size:13px;background:#f3f5ef;padding:14px}.principle aside p{margin:4px 0 0}.book-info{font-size:12px;margin-top:24px}.book-info p{margin-bottom:10px}.cards{display:grid;gap:14px}.question{border-top:1px solid #c5d2cc;padding:12px 0 9px;break-inside:avoid;position:relative;min-height:200px}.qtop{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.qtop strong{font-size:15px;color:#27735f}.qtop small{font-size:9px;max-width:80%;overflow-wrap:anywhere}.answers{display:grid;grid-template-columns:repeat(2,1fr);gap:8px 16px;font-size:12px}.answers label{display:flex;align-items:center;justify-content:space-between;gap:8px}.answers input{width:64px;min-width:40px;height:29px;border:1px solid #819b8f;border-radius:3px;text-align:center;font-size:17px;background:transparent;color:#14584e}.paperblank{display:none}.working{border-bottom:1px dotted #b9c8c1;color:#89978f;font-size:10px;margin-top:12px;min-height:25px}.online{display:flex;gap:6px;align-items:center;margin-top:9px}.online button{font-size:10px;padding:4px 7px}.result{font-size:11px}.quantity{display:block;max-width:100%;fill:#397362;margin:3px 0 10px}.quantity text{fill:#50645c;font-size:9px}.per-2 .question{min-height:375px}.per-2 .answer-card{min-height:350px}.per-4 .question{min-height:174px}.vertical{float:right;width:130px;margin:0 0 8px 16px;font:25px/1.5 monospace;text-align:right}.vertical span{display:block}.vertical hr{margin:0;border:0;border-top:1px solid #566e63}.gridwork{height:95px;background-image:linear-gradient(#d9e1dc 1px,transparent 1px),linear-gradient(90deg,#d9e1dc 1px,transparent 1px);background-size:24px 24px}.division{float:none;text-align:left;margin:0 0 15px}.nested{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:12px}.basket{padding:9px;border:1px solid #7f9e8d;font-size:10px}.pouch{display:inline-block;border:1px solid #adbbb3;padding:5px;margin:3px;color:#326652}dialog{width:460px;border:1px solid #b4c8bd;border-radius:12px;padding:25px}dialog::backdrop{background:#1237}textarea{display:block;width:100%;margin:10px 0 20px;border:1px solid #b4c8bd;padding:10px}dialog button{margin-right:8px}.question:has(.vertical){display:flow-root}
@page{size:A4;margin:13.5mm 12mm} @media print{body{background:#fff;color:#111;font-size:12px}.toolbar,.screen-note,.online,dialog{display:none!important}.sheet{width:186mm;height:270mm;min-height:0;margin:0;padding:7mm 8mm 12mm;box-shadow:none;overflow:visible}.sheet:last-child{break-after:auto}.sheet header{margin-bottom:14px}.sheet footer{left:8mm;right:8mm;bottom:3mm}.sheet h1{font-size:30px}.sheet h2{font-size:17px}.question-text{font-size:16px}.cards{gap:10px}.question{padding:10px 0 6px}.per-4 .question{min-height:174px}.per-2 .question{min-height:360px}.per-2 .answer-card{min-height:340px}.answers input{display:none}.paperblank{display:block;width:60px;min-width:40px;height:25px;border:1px solid #777;border-radius:3px}.quantity{fill:#333}.quantity text{fill:#222}.solution{font-size:12px}.cover-label,.qtop strong{color:#222}.lead{font-size:19px}.learning-route{border:1px solid #ccc;background:white}.example{margin:16px 0;padding:14px;border-color:#888}.principle aside{border:1px solid #ccc;background:white}.book-info{margin-top:18px}.working{min-height:27px}.book-info .muted{font-size:11px}.principle .quantity{max-height:90px}body[data-print=problems] .sheet:not([data-section=problems]),body[data-print=solutions] .sheet:not([data-section=solutions]){display:none}.sheet footer{color:#444}}
@media screen and (max-width:800px){.catalog{padding:20px}.hero{padding:35px 0;gap:20px}.hero h1{font-size:40px}.hero-paper{width:240px;padding:20px}.hero-sum{font-size:33px}#catalog-cards{grid-template-columns:repeat(2,1fr)}.sheet{width:calc(100% - 24px);min-height:0;padding:25px 22px 60px}.sheet footer{left:22px;right:22px}.toolbar{position:static}.per-2 .question,.per-4 .question{min-height:0}.cards{gap:20px}.answers{grid-template-columns:1fr}.stats>div{padding:12px}.stats b{font-size:26px}}@media screen and (max-width:540px){.hero-paper{display:none}.hero h1{font-size:46px}#catalog-cards{grid-template-columns:1fr}.stats{grid-template-columns:repeat(2,1fr)}.learning-route{font-size:10px;padding:10px}.sheet h1{font-size:28px}.lead{font-size:18px}}
@media print{.per-4 .question{padding:8px 0 4px}.per-4 .qtop{margin-bottom:4px}.per-4 .question-text{margin-bottom:6px}.per-4 .working{margin-top:6px;min-height:18px}.per-4 .quantity{max-height:58px;margin-bottom:6px}}
.per-3 .question{min-height:270px}@media print{.per-3 .question{min-height:250px}.per-3 .quantity{max-height:85px}}
/* Workbook reading and printed contents. */
.reader-controls{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;position:sticky;top:0;z-index:9;background:#e4ede6f5;border-bottom:1px solid #becdc2;padding:10px 16px;font-size:13px}.view-switch,.reader-turn{display:flex;align-items:center;gap:5px}.view-switch button[aria-pressed=true]{background:#14584e;color:white}.reader-turn label{white-space:nowrap}.reader-turn input{width:57px;padding:7px 3px;border:1px solid #9cb6a8;border-radius:5px;text-align:center;background:white}button:disabled{opacity:.4;cursor:default}#reader-status{font-size:11px;color:#4b6559;min-width:125px}.page-nav{position:absolute;left:11mm;right:11mm;bottom:15mm;display:flex;justify-content:space-between;align-items:center;font-size:12px}.page-nav button{padding:5px 12px;font-size:12px}.contents h1{margin:10px 0 20px}.toc-intro{font-size:14px;color:#567466;line-height:1.8;margin-bottom:24px}.toc-list{margin:0;padding:0;list-style:none}.toc-list li{border-bottom:1px solid #d6e1d8}.toc-list a{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:10px 4px;font-size:13px}.toc-list a:hover{background:#edf4ed;text-decoration:none}.toc-list a span{min-width:0}.toc-list small{display:block;font-size:10px;color:#658171}.toc-list b{font-variant-numeric:tabular-nums;white-space:nowrap} .sheet:focus{outline:none}.sheet:focus-visible{outline:2px solid #337d64;outline-offset:3px}
@media screen{body:not([data-mode=index]) .toolbar{position:static}.reader-hidden{display:none!important}.sheet{padding-bottom:32mm;scroll-margin-top:110px}.books[data-layout=spread]{display:flex;justify-content:center;align-items:flex-start;gap:12px;padding:0 12px}.books[data-layout=spread] .sheet{width:186mm;flex-shrink:0;zoom:var(--spread-scale);margin:20px 0;box-shadow:0 4px 15px #183a2820}.books[data-layout=spread] .sheet:first-child{border-radius:4px 0 0 4px}.books[data-layout=spread] .sheet:last-child{border-radius:0 4px 4px 0}.books[data-layout=spread] .answers{grid-template-columns:repeat(2,1fr)}}
@media screen and (max-width:600px){.reader-controls{gap:7px;padding:8px}.reader-controls button{padding:7px 9px;font-size:12px}#reader-status{width:100%;text-align:center}.page-nav{left:22px;right:22px}.toc-list a{font-size:12px}.sheet{scroll-margin-top:145px}}
@media print{.reader-controls,.page-nav{display:none!important}.books{display:block!important;padding:0!important}.books .sheet{zoom:1!important}.toc-intro{font-size:12px;line-height:1.6;margin-bottom:15px}.toc-list a{padding:7px 3px;font-size:12px;color:#111}.toc-list small{font-size:9px}.contents .cover-label{margin:6px 0 12px}}
/* First page: a compact table of contents, matching the books. */
.catalog-list{max-width:1000px;margin:28px auto 45px;padding:34px 46px 40px;background:#fffefb;border:1px solid #dce2d8;box-shadow:0 3px 15px #28432908}.catalog-heading{border-bottom:2px solid #314e40;margin-bottom:18px;padding-bottom:14px}.catalog-heading>p:first-child{font-size:12px;letter-spacing:.5px;margin-bottom:9px;color:#59705f}.catalog-heading h1{font-size:32px;margin-bottom:9px}.catalog-heading .muted{margin:0}.catalog-instruction{font-size:13px;color:#5c6c60;margin-bottom:18px}.catalog-list .filters{gap:7px}.catalog-list .filters input,.catalog-list .filters select{font-size:13px;padding:8px}.catalog-selection{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:12px 0 8px}.catalog-selection #count{margin:0 auto 0 0;font-size:12px}.catalog-selection button{font-size:12px;padding:6px 9px}.catalog-list #catalog-cards{display:block;margin:8px 0 26px}.catalog-chapter{margin:0 0 26px}.catalog-chapter h2{font-size:17px;font-weight:650;border-bottom:1px solid #8fa693;padding:12px 0 10px;margin:0}.catalog-chapter h2 small{font-size:11px;font-weight:400;margin-left:8px}.catalog-rows{list-style:none;padding:0;margin:0}.catalog-row{display:flex;align-items:stretch;border-bottom:1px solid #e1e5dd;min-height:61px}.catalog-row:hover{background:#f2f6ef}.catalog-check{display:flex;align-items:center;justify-content:center;width:35px;flex-shrink:0;cursor:pointer}.catalog-check input{width:15px;height:15px}.catalog-entry{flex:1;min-width:0;display:grid;grid-template-columns:28px minmax(0,1fr) 68px 80px 15px;align-items:center;gap:12px;padding:10px 4px 10px 0}.catalog-entry:hover{text-decoration:none}.catalog-number{font-size:12px;color:#899180;font-variant-numeric:tabular-nums}.catalog-name strong{font-size:15px;font-weight:550;display:block;line-height:1.4}.catalog-name small{display:block;font-size:10px;color:#7b8777;margin-top:3px}.catalog-amount{font-size:12px;text-align:right;color:#4d624f;white-space:nowrap;font-variant-numeric:tabular-nums}.catalog-state{font-size:11px;text-align:right;color:#7c8878;white-space:nowrap}.catalog-state.draft{color:#90672e}.catalog-arrow{font-size:20px;color:#819178;text-align:right}.catalog-help{border-top:1px solid #c9d1c4;padding-top:15px;font-size:12px;color:#64725e}.catalog-help summary{cursor:pointer}.catalog-help p{margin-top:12px}.catalog-empty{padding:25px 0;color:#64725e;font-size:14px}.catalog-entry:focus-visible{outline:2px solid #417359;outline-offset:1px}
@media screen and (max-width:650px){.catalog-list{margin:0;padding:24px 16px;border:0;box-shadow:none;min-height:100vh}.catalog-heading h1{font-size:27px}.catalog-entry{grid-template-columns:22px minmax(0,1fr) 55px 12px;gap:7px}.catalog-state{grid-column:3;grid-row:2;font-size:10px;line-height:1}.catalog-name{grid-row:1 / span 2}.catalog-number{grid-row:1 / span 2}.catalog-arrow{grid-column:4;grid-row:1 / span 2}.catalog-amount{align-self:end}.catalog-entry{row-gap:4px}.catalog-name strong{font-size:14px}.catalog-check{width:28px}.catalog-selection #count{width:100%;margin-bottom:3px}.catalog-selection button{font-size:11px;padding:6px 8px}.catalog-list .filters input{flex-basis:100%}.catalog-list .filters select{flex:1;min-width:0}}
@media print{.catalog-list{box-shadow:none;border:0;margin:0;padding:0;max-width:none}.catalog-list .filters,.catalog-selection,.catalog-check,.catalog-help,.catalog-instruction{display:none}.catalog-chapter h2{break-after:avoid}.catalog-row{break-inside:avoid}.catalog-heading{margin-bottom:10px}.catalog-entry{color:#111}}
/* Pencil-first worksheets: same blank paper on screen and in print. */
.pencil-grid{display:block;max-width:100%;margin:12px auto 8px;overflow:visible}.pencil-grid text{font-family:Workbook,Arial,sans-serif;text-anchor:middle;fill:#202c29;font-weight:500}.pencil-grid .pencil-rule{stroke:#cbd3ce;stroke-width:.65;fill:none}.pencil-grid .calculation-rule{stroke:#273e34;stroke-width:1.5;fill:none}.pencil-grid text.ink-accent{fill:#a45548}.pencil-grid .exchange-strike{stroke:#a45548;stroke-width:1;fill:none}.paper-exercises{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:32px;row-gap:20px}.paper-exercises.per-4 .question{min-height:290px;padding:10px 5px;border-top:0}.pencil-question .qtop small{font-size:8px;color:#8a958d}.pencil-question .qtop strong{border:1px solid #9aaba0;border-radius:50%;width:25px;height:25px;text-align:center;line-height:24px;font-size:12px;font-weight:500}.pencil-question .question-text{font-size:19px;line-height:1.7}.write-answer{display:inline-block;width:65px;height:22px;border-bottom:1px solid #6e7b72;vertical-align:baseline;margin:0 5px}.pencil-steps{padding-left:18px;margin:14px 0 0;font-size:13px;line-height:1.6}.pencil-steps li{padding:3px 0;min-height:28px}.write-line{display:inline-block;min-width:75px;height:21px;border-bottom:1px solid #9aa59d;margin-left:12px;vertical-align:bottom}.pencil-space{height:72px;margin-top:18px;background:repeating-linear-gradient(to bottom,transparent 0,transparent 31px,#e0e5df 31px,#e0e5df 32px)}.pencil-space.short{height:36px;margin-top:8px}.answer-card:has(.pencil-grid){display:flow-root}.answer-card .pencil-grid{float:right;width:145px;height:auto;margin:6px 0 10px 18px}.paper-title>span{font-size:11px;letter-spacing:1px;color:#5a7566}.paper-title h1{font-size:25px;margin:8px 0 12px;line-height:1.3;letter-spacing:-.4px}.paper-title>p{font-size:11px;text-align:right;margin-bottom:17px}.paper-example{background:#edf4ef;border:1px solid #c1d3c6;padding:14px 12px;margin-bottom:18px;border-radius:7px}.paper-example>h2{font-size:14px;margin:0 0 6px}.paper-example h2 small{display:inline;margin-left:5px;font-size:9px}.example-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.example-step{position:relative;min-width:0}.example-step>b{font-size:10px;font-weight:500;color:#49715a}.example-step:not(:last-child):after{content:'→';position:absolute;right:-13px;top:45%;color:#668574;font-size:14px}.example-step .pencil-grid{max-height:145px;width:100%;height:auto;margin:5px auto 8px}.example-step p{font-size:11px;line-height:1.5;margin:0;word-break:keep-all}.formula-example .example-step p{font-size:15px;line-height:1.8;padding:12px 0}.formula-example:has(.example-step:only-child){grid-template-columns:1fr}.practice-heading{font-size:16px!important;margin:17px 0 10px}.sample-sheet .paper-exercises.per-4 .question{min-height:230px;padding:7px 0}.sample-sheet .pencil-grid{margin-top:8px}.sample-sheet .paper-exercises .pencil-grid{max-height:220px;width:auto}.sample-sheet .paper-exercises .question-text{font-size:17px}.sample-sheet .pencil-space{height:76px}.sample-link{font-weight:600;text-decoration:underline;margin-left:10px}.sheet .question-text,.pencil-steps{color:#23392d}
@media screen and (max-width:600px){.paper-exercises{column-gap:15px;row-gap:15px}.paper-exercises.per-4 .question{min-height:230px}.sample-sheet .paper-exercises.per-4 .question{min-height:190px}.paper-exercises .pencil-grid{width:100%;height:auto}.pencil-question .qtop small{font-size:6px;max-width:68%}.paper-title h1{font-size:21px}.paper-example{padding:10px 8px}.example-strip{gap:10px}.example-step p{font-size:9px}.sample-sheet .paper-exercises .question-text{font-size:14px}.pencil-steps{font-size:12px}.write-line{min-width:45px;margin-left:6px}.answer-card .pencil-grid{float:none;width:145px;margin:10px auto}.sample-link{display:block;margin:7px 0 0}}
@media print{.pencil-grid text{fill:#222}.pencil-grid text.ink-accent{fill:#654c40}.pencil-grid .pencil-rule{stroke:#b7c0b9}.pencil-grid .calculation-rule{stroke:#222}.paper-exercises.per-4 .question{min-height:285px}.paper-exercises.per-4 .qtop{margin-bottom:6px}.sample-sheet .paper-exercises.per-4 .question{min-height:228px}.sample-sheet .paper-exercises{row-gap:16px}.paper-example{background:#f3f6f3;print-color-adjust:exact;-webkit-print-color-adjust:exact}.pencil-question .qtop small{font-size:7px}.pencil-space{background:repeating-linear-gradient(to bottom,transparent 0,transparent 31px,#d8dfd9 31px,#d8dfd9 32px);print-color-adjust:exact}.answer-card .pencil-grid{float:right;width:138px;margin:6px 0 10px 15px}.paper-title h1{font-size:23px}.sample-sheet header{margin-bottom:13px}.sample-sheet .pencil-steps{font-size:12px}.sample-sheet .question-text{font-size:16px}}
.sample-sheet .example-step .pencil-grid{max-height:115px}.sample-sheet .paper-exercises .pencil-grid{max-height:205px}.sample-sheet .paper-example{padding-top:10px;padding-bottom:10px}.sample-sheet .paper-title>p{margin-bottom:12px}
/* Eight practice questions per sheet; seal roles stay in the page heading. */
.paper-exercises.per-8{row-gap:8px;column-gap:28px}.paper-exercises.per-8 .question{min-height:185px;padding:5px 0;border-top:0}.per-8 .qtop{margin-bottom:5px}.per-8 .pencil-grid{max-height:158px;width:auto;height:auto;margin:3px auto}.per-8 .question-text{font-size:15px;line-height:1.45;margin-bottom:5px}.per-8 .quantity{max-height:55px;margin:2px 0 5px}.per-8 .pencil-steps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 10px;font-size:11px;line-height:1.35;margin:4px 0 0;padding-left:15px}.per-8 .pencil-steps li{padding:1px 0;min-height:23px}.per-8 .write-line{min-width:45px;height:18px;margin-left:5px}.per-8 .pencil-space{height:28px;margin-top:5px}.per-8 .pencil-space.short{height:20px}.per-8 .nested{margin:3px 0 6px;gap:4px}.per-8 .basket{padding:4px}.per-8 .pouch{padding:2px;margin:2px}.per-8 .qtop strong{width:21px;height:21px;line-height:20px;font-size:11px}
.sample-sheet .paper-exercises.per-8 .question{min-height:150px;padding:3px 0}.sample-sheet .paper-exercises.per-8 .pencil-grid{max-height:137px}.sample-sheet .paper-exercises.per-8 .question-text{font-size:14px}.sample-sheet .example-step .pencil-grid{max-height:85px}.sample-sheet .paper-example{margin-bottom:10px;padding:8px 10px}.sample-sheet .paper-title h1{font-size:21px;margin:4px 0 6px}.sample-sheet .paper-title>p{margin-bottom:8px}.sample-sheet .practice-heading{margin:10px 0 5px;font-size:14px!important}.sample-sheet .paper-title>span{font-size:10px}.sample-sheet .paper-exercises.per-8 .pencil-space{height:24px}.sample-sheet .paper-exercises.per-8 .pencil-space.short{height:12px}
@media print{.paper-exercises.per-8 .question{min-height:180px}.sample-sheet .paper-exercises.per-8{row-gap:6px}.sample-sheet .paper-exercises.per-8 .question{min-height:145px}.sample-sheet header{margin-bottom:9px}.sample-sheet .example-step p{font-size:10px}}
@media screen and (max-width:600px){.per-8 .pencil-steps{grid-template-columns:1fr}.paper-exercises.per-8 .question{min-height:190px}.sample-sheet .paper-exercises.per-8 .pencil-grid{width:100%;height:auto}.sample-sheet .paper-exercises.per-8 .question{min-height:180px}}
.per-8 .pencil-space.short{height:10px}.per-8 .quantity{max-height:45px}.sample-sheet .paper-exercises.per-8 .question:has(.pencil-grid) .qtop{position:absolute;top:4px;left:0;right:0}.sample-sheet .paper-exercises.per-8 .pencil-grid{max-height:143px}.sample-sheet .paper-exercises.per-8 .question:has(.pencil-grid){padding-top:3px}
.sample-sheet .paper-title>p{margin-bottom:0}
/* Short, single-answer arithmetic: sixteen problems, four columns by four rows. */
.paper-exercises.per-16{grid-template-columns:repeat(4,minmax(0,1fr));column-gap:18px;row-gap:16px}.paper-exercises.per-16 .question{min-height:170px;padding:7px 0;border-top:0}.per-16 .qtop{display:block;position:relative;margin-bottom:10px}.per-16 .qtop strong{width:22px;height:22px;line-height:21px;display:inline-block;font-size:11px}.per-16 .qtop small{display:block;max-width:100%;font-size:6px;margin-top:4px;overflow-wrap:anywhere}.per-16 .question-text{font-size:17px;line-height:1.65;margin:5px 0 10px;word-break:keep-all}.per-16 .write-answer{width:40px;margin:0 2px;height:19px}.per-16 .quantity{height:auto!important;max-height:48px;max-width:100%;width:100%;margin:8px 0 6px}.per-16 .pencil-space{height:28px;margin:12px 0 0}.sample-sheet .paper-exercises.per-16 .question{min-height:145px;padding:5px 0}.sample-sheet .paper-exercises.per-16 .question-text{font-size:16px}.sample-sheet .paper-exercises.per-16 .pencil-space{height:22px}.sample-sheet .paper-exercises.per-16{row-gap:10px}
@media screen and (max-width:600px){.paper-exercises.per-16{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 18px}.paper-exercises.per-16 .question,.sample-sheet .paper-exercises.per-16 .question{min-height:160px}}
@media print{.paper-exercises.per-16{grid-template-columns:repeat(4,minmax(0,1fr));column-gap:16px;row-gap:14px}.paper-exercises.per-16 .question{min-height:165px}.sample-sheet .paper-exercises.per-16 .question{min-height:143px}.per-16 .qtop small{font-size:6px}.sample-sheet .paper-exercises.per-16{row-gap:8px}}
.formula-example .example-step:only-child{display:flex;gap:12px;align-items:center}.formula-example .example-step:only-child p{padding:4px 0}.sample-sheet .paper-exercises.per-16 .pencil-space{height:14px;margin-top:8px}
/* Learning spread: principle + worked example + eight questions, then 12–16. */
.paper-principle{font-size:14px;line-height:1.5;margin:8px 0 12px;word-break:keep-all}.learning-sheet .paper-title h1{font-size:22px;margin:4px 0 6px}.learning-sheet .paper-title>p{margin:0;font-size:10px}.learning-sheet .paper-example{padding:8px 10px;margin-bottom:9px}.learning-sheet .example-step .pencil-grid{max-height:112px}.learning-sheet .example-step p{font-size:10px}.learning-sheet .practice-heading{font-size:14px!important;margin:9px 0 7px;display:flex;justify-content:space-between;align-items:baseline}.learning-sheet .practice-heading small{display:inline;font-size:10px;margin:0}.learning-sheet .paper-exercises.per-8{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 24px}.learning-sheet .paper-exercises.per-8 .question{min-height:140px;padding:3px 0}.learning-sheet .paper-exercises.per-8 .question-text{font-size:14px}.learning-sheet .paper-exercises.per-8 .quantity{max-height:42px}.learning-sheet .paper-exercises.per-8 .pencil-space{height:22px;margin-top:5px}.learning-sheet .paper-exercises.per-8 .pencil-space.short{height:10px}
.paper-exercises.per-12{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 22px}.paper-exercises.per-12 .question{min-height:194px;border:0;padding:6px 0}.per-12 .question-text{font-size:15px;line-height:1.5;margin:5px 0 8px}.per-12 .pencil-steps{font-size:11px;line-height:1.4;padding-left:15px;margin:7px 0}.per-12 .pencil-steps li{min-height:25px;padding:1px 0}.per-12 .write-line{min-width:40px;margin-left:5px;height:19px}.per-12 .pencil-space{height:26px;margin-top:8px}.per-12 .pencil-space.short{height:10px}.per-12 .quantity{max-height:55px;margin:5px 0}.per-12 .write-answer{width:48px}.per-12 .qtop{margin-bottom:5px}
/* Four columns leave room for long division's eight writing rows. */
.learning-sheet .paper-exercises.grid-practice,.practice-sheet .paper-exercises.grid-practice{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px 16px}.learning-sheet .paper-exercises.grid-practice .question,.practice-sheet .paper-exercises.grid-practice .question{min-height:234px;padding:5px 0;border:0}.learning-sheet .paper-exercises.grid-practice .qtop,.practice-sheet .paper-exercises.grid-practice .qtop{position:static;margin-bottom:6px}.learning-sheet .paper-exercises.grid-practice .pencil-grid,.practice-sheet .paper-exercises.grid-practice .pencil-grid{max-height:216px;width:auto;height:auto;max-width:100%;margin:0 auto}.learning-sheet .paper-exercises.grid-practice .qtop strong{width:22px;height:22px;line-height:21px}.learning-sheet:has(.per-2) .paper-exercises{grid-template-columns:1fr}.learning-sheet:has(.per-2) .question{min-height:265px}.book-guidance p{margin:12px 0}
@media print{.learning-sheet header{margin-bottom:9px}.paper-principle{font-size:13px;margin:7px 0 10px}.learning-sheet .paper-exercises.per-8 .question{min-height:138px}.learning-sheet .paper-exercises.grid-practice .question,.practice-sheet .paper-exercises.grid-practice .question{min-height:234px}.paper-exercises.per-12 .question{min-height:194px}}
@media screen and (max-width:600px){.paper-exercises.per-12,.learning-sheet .paper-exercises.grid-practice,.practice-sheet .paper-exercises.grid-practice{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.learning-sheet .paper-exercises.per-8 .question{min-height:170px}.learning-sheet .practice-heading{display:block}.learning-sheet .practice-heading small{display:block;margin-top:5px}.learning-sheet .paper-exercises.grid-practice .question{min-height:234px}.paper-principle{font-size:13px}}
.learning-sheet .paper-exercises.per-1{grid-template-columns:1fr}.learning-sheet .paper-exercises.per-1 .question{min-height:300px}.learning-sheet .paper-exercises.per-8:not(.grid-practice) .pencil-steps li{min-height:21px}.learning-sheet .paper-exercises.per-8:not(.grid-practice) .pencil-steps{line-height:1.25}
.learning-sheet .paper-exercises.per-4 .question{min-height:240px;padding:5px 0}.learning-sheet .paper-exercises.per-4 .question-text{font-size:16px}.learning-sheet .paper-exercises.per-4 .pencil-steps{font-size:12px}.learning-sheet .paper-exercises.per-4 .pencil-space{height:28px}
/* Compact answer keys: row-major numbering, complete steps, no writing blanks. */
.solution-sheet .answer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 26px;align-items:start}.solution-sheet .answer-card{min-height:0;padding:9px 0 5px;display:flow-root}.solution-sheet .qtop{margin:0 0 6px}.solution-sheet .qtop strong{font-size:14px}.solution-sheet .solution{font-size:13px;line-height:1.5;margin:5px 0 0;padding-left:18px}.solution-sheet .solution li{margin:0 0 3px;padding-left:1px;overflow-wrap:break-word}.solution-sheet .question-text{font-size:14px;line-height:1.45;margin:3px 0 7px;word-break:keep-all}.solution-sheet .answer-card .pencil-grid{float:right;width:92px;height:auto;margin:3px 0 5px 10px}.solution-sheet .answer-density-4{row-gap:22px}.solution-sheet .answer-density-4 .answer-card{min-height:365px}.solution-sheet .answer-density-6 .answer-card{min-height:230px}.solution-sheet .answer-density-8 .answer-card{min-height:175px}.solution-sheet .answer-density-10 .answer-card{min-height:138px}.solution-sheet .answer-density-16{gap:10px 26px}.solution-sheet .answer-density-16 .answer-card{min-height:89px;padding:6px 0 3px}.solution-sheet .answer-density-16 .question-text{margin-bottom:4px}.solution-sheet .answer-density-16 .qtop{margin-bottom:3px}.solution-sheet .write-answer{height:14px;width:35px}.solution-sheet>h2{margin-bottom:13px}
@media print{.solution-sheet .answer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.solution-sheet .answer-card .pencil-grid{width:92px}.solution-sheet .solution{font-size:13px;line-height:1.5}}
@media screen and (max-width:600px){.solution-sheet .answer-grid{grid-template-columns:1fr;gap:14px}.solution-sheet .answer-grid .answer-card{min-height:0;padding:12px 0}.solution-sheet .answer-card .pencil-grid{float:right;width:100px}.solution-sheet .solution{font-size:14px}}
