@font-face{font-family:WorksheetHandwriting;src:url('worksheet-assets/Andika-Regular.ttf') format('truetype');font-display:swap}
@font-face{font-family:WorksheetKorean;src:url('assets/PretendardVariable.woff2') format('woff2');font-display:swap}
@font-face{font-family:WorksheetEnglish;src:url('worksheet-assets/Andika-Regular.ttf') format('truetype');font-display:swap}
.worksheet-view{margin:0;background:#edf1e9;color:#25362c;font-family:WorksheetKorean,Arial,sans-serif;}
.worksheet-toolbar{max-width:960px;margin:18px auto;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 18px;}
.worksheet-toolbar a{color:#146443;text-decoration:none;white-space:nowrap;}
.worksheet-toolbar strong{font-size:18px;}.worksheet-toolbar p{font-size:13px;color:#627167;margin:7px 0 0;}
.worksheet-toolbar button{font:700 15px/1.4 WorksheetKorean,Arial,sans-serif;background:#146443;color:white;border:0;border-radius:10px;padding:12px 18px;cursor:pointer;white-space:nowrap;}
.worksheet-toolbar button:disabled{opacity:.5;cursor:wait;}
.worksheet-warning,.worksheet-error{max-width:192mm;margin:12px auto;color:#a74227;font:14px/1.6 WorksheetKorean,Arial,sans-serif;}
.worksheet-warning[hidden]{display:none;}
.worksheet-sheet,.worksheet-sheet *{box-sizing:border-box;}
.worksheet-sheet{width:192mm;height:277mm;margin:18px auto;padding:0;background:white;display:flex;flex-direction:column;gap:3mm;color:#24382c;font:12pt/1.4 WorksheetKorean,Arial,sans-serif;}
.worksheet-view .worksheet-sheet{box-sizing:content-box;border:9mm solid white;box-shadow:0 4px 22px #243d2215;}
.worksheet-sheet h1,.worksheet-sheet h2,.worksheet-sheet h3,.worksheet-sheet p{margin:0;letter-spacing:normal;}
.worksheet-sheet [lang=en]{font-family:WorksheetEnglish,Arial,sans-serif;}
.ws-header{display:flex;align-items:flex-end;justify-content:space-between;border-bottom:1.2pt solid #315642;padding-bottom:3mm;gap:5mm;flex:none;}
.ws-brand{font-size:8.5pt;letter-spacing:.6pt;color:#52715b;}
.ws-header h1{font-size:19pt;line-height:1.4;color:#174d34;}
.ws-header h1 small{font-size:10pt;margin-left:3mm;font-weight:500;}
.ws-name{font-size:9pt;white-space:nowrap;line-height:1.9;}
.ws-name span{display:inline-block;width:30mm;border-bottom:.6pt solid #8da092;margin-left:2mm;}
.ws-section{flex:none;min-width:0;}
.ws-section h2{display:flex;align-items:center;gap:2mm;font:700 11.5pt/1.5 WorksheetKorean,Arial,sans-serif;margin:0 0 2mm;color:#174d34;}
.ws-section h2 b{font:700 10pt/1.4 Arial,sans-serif;border:1pt solid #48795a;border-radius:50%;width:5mm;height:5mm;text-align:center;}
.ws-section h2 small{font-size:8.5pt;font-weight:400;color:#637768;margin-left:1mm;}
.ws-sound-grid{display:grid;grid-template-columns:1fr;gap:1mm;}
.ws-sound-row{display:grid;grid-template-columns:14mm minmax(0,1fr);align-items:center;gap:2mm;border-bottom:.5pt solid #d5ded3;padding:.8mm 0;break-inside:avoid;}
.ws-sound-label{font:700 17pt/1.2 WorksheetEnglish,Arial,sans-serif;color:#174d34;white-space:nowrap;}
.ws-words{display:grid;grid-template-columns:repeat(var(--word-columns),minmax(0,1fr));gap:1mm 3mm;font-size:13pt;line-height:1.25;}
.ws-word{display:flex;align-items:center;gap:2mm;min-width:0;white-space:nowrap;}
.ws-word-art{display:block;width:14mm;height:14mm;flex:none;}
.ws-phoneme{color:#c33b1d;font-weight:700;}
.ws-dense .ws-sound-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:.6mm 4mm;}
.ws-dense .ws-sound-row{grid-template-columns:10mm minmax(0,1fr);gap:1mm;padding:.5mm 0;}
.ws-dense .ws-word-art{width:11mm;height:11mm;}.ws-dense .ws-word{gap:1mm;}
.ws-dense .ws-words{font-size:11.5pt;gap:.5mm;}.ws-dense .ws-sound-label{font-size:14pt;}
.ws-alphabet-grid{display:grid;grid-template-columns:repeat(var(--trace-columns),minmax(0,1fr));gap:1mm 4mm;}
.ws-letter-practice{min-width:0;}
.ws-writing-grid{display:block;width:100%;height:16mm;overflow:visible;}
.ws-letter-practice .ws-writing-grid{height:auto;}
.ws-guidelines line{stroke:#9aa7ae;stroke-width:.75;vector-effect:non-scaling-stroke;}
.ws-guidelines [data-guide=middle]{stroke-dasharray:3 3;stroke:#b3bbc1;}
.ws-guidelines .ws-baseline{stroke:#718da2;stroke-width:1;}
.ws-guidelines .ws-cell-edge{stroke:#c1c9cf;stroke-width:.55;}
.ws-handwriting{font-family:WorksheetHandwriting,Arial,sans-serif;fill:#b6b9bc;font-weight:400;}
.ws-book{flex:none;}
.ws-book-grid{display:grid;grid-template-columns:57mm minmax(0,1fr);gap:6mm;align-items:center;padding:1mm 0;}
.ws-cover{width:57mm;margin:0;align-self:center;}
.ws-cover img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:contain;}
.ws-cover figcaption{font-size:10.5pt;line-height:1.25;text-align:center;margin:2mm 0 0;font-weight:700;color:#174d34;}
.ws-story{list-style:none;display:flex;flex-direction:column;gap:2mm;padding:0;margin:0;font-size:15pt;line-height:1.35;}
.ws-story li{padding:0;margin:0;break-inside:avoid;}
.ws-dense .ws-book-grid{grid-template-columns:50mm minmax(0,1fr);gap:6mm;}
.ws-dense .ws-cover{width:50mm;}.ws-dense .ws-story{font-size:13pt;line-height:1.3;gap:1.5mm;}
.ws-copy{flex:none;display:flex;flex-direction:column;}
.ws-daily{font-size:14pt;line-height:1.35;padding:0 0 1mm;}
.ws-sentence-lines{display:flex;flex-direction:column;gap:1mm;}
.ws-footer{flex:none;margin-top:auto;display:flex;justify-content:space-between;border-top:.5pt solid #d9dfd7;padding-top:1.5mm;color:#738674;font:8pt/1.2 WorksheetKorean,Arial,sans-serif;}
#worksheet-print-layer{display:none;}
@page{size:A4 portrait;margin:9mm;}
@media print{
 html,body.worksheet-view,body.printing-worksheet{margin:0!important;padding:0!important;background:white!important;}
 .worksheet-toolbar,.worksheet-warning{display:none!important;}
 #worksheet-pages{margin:0;padding:0;}
 .worksheet-sheet,.worksheet-view .worksheet-sheet{box-sizing:border-box;width:192mm;height:277mm;min-height:0;border:0;margin:0!important;padding:0;box-shadow:none;break-inside:avoid;break-after:page;page-break-after:always;-webkit-print-color-adjust:exact;print-color-adjust:exact;}
 .worksheet-sheet:last-child{break-after:auto;page-break-after:auto;}
 body.printing-worksheet>:not(#worksheet-print-layer){display:none!important;}
 body.printing-worksheet #worksheet-print-layer{display:block!important;}
 .worksheet-sheet .ws-phoneme{color:#c33b1d!important;}
}
@media screen and (max-width:850px){.worksheet-toolbar{flex-wrap:wrap;}.worksheet-toolbar>div{flex:1;min-width:190px;}#worksheet-pages{overflow-x:auto;}.worksheet-view .worksheet-sheet{margin:12px;}.worksheet-warning{padding:0 16px;}}
