@font-face{font-family:"Noto Worksheet";src:url("/assets/noto-worksheet-regular.woff") format("woff");font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:"Noto Worksheet";src:url("/assets/noto-worksheet-bold.woff") format("woff");font-style:normal;font-weight:700;font-display:swap}
.arithmetic-print{
 display:flex;flex-direction:column;box-sizing:border-box;
 font:400 var(--worksheet-size,12pt)/1.45 "Noto Worksheet","Noto Sans KR","Malgun Gothic",sans-serif;
 color:#18232f;background:#fff;
}
.worksheet-size-10{--worksheet-size:10pt}
.worksheet-size-11{--worksheet-size:11pt}
.worksheet-size-12{--worksheet-size:12pt}
.worksheet-size-13{--worksheet-size:13pt}
.worksheet-size-14{--worksheet-size:14pt}
.worksheet-size-15{--worksheet-size:15pt}
.worksheet-size-16{--worksheet-size:16pt}
.worksheet-size-17{--worksheet-size:17pt}
.worksheet-size-18{--worksheet-size:18pt}
.arithmetic-print .arithmetic-header{border-bottom:2px solid #233143;margin:0 0 .7em;padding:0 0 .5em}
.arithmetic-print .arithmetic-header h2{font-size:1.52em;line-height:1.22;margin:.16em 0 .24em;overflow-wrap:anywhere}
.arithmetic-print .arithmetic-header p{margin:.2em 0}
.arithmetic-print .arithmetic-kicker,.arithmetic-print .arithmetic-student{font-size:.76em;color:#374454}
.arithmetic-print .arithmetic-header:has(> .arithmetic-instruction){border-bottom:0;padding-bottom:0}
.arithmetic-print .arithmetic-instruction{border-top:2px solid #233143;padding-top:.5em;font-size:.82em;margin:.48em 0 0}
.arithmetic-print .arithmetic-footer{
 display:flex;justify-content:space-between;gap:12px;margin-top:auto;padding-top:.62em;
 border-top:1px solid #a3acb6;font-size:.72em;color:#374454;
}
.arithmetic-print .qno{font-size:.75em;font-variant-numeric:tabular-nums}
.arithmetic-print .arithmetic-work-grid,.arithmetic-print .answer-grid{margin-bottom:.66em}
.arithmetic-print .answer-grid>div{padding:.28em 0}
.arithmetic-print .arithmetic-item{border-bottom:0}
.arithmetic-print.worksheet-columns-1 :is(.arithmetic-work-grid,.answer-grid){display:grid;grid-template-columns:minmax(0,1fr)}
.arithmetic-print.worksheet-columns-2 :is(.arithmetic-work-grid,.answer-grid){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:clamp(10px,4vw,30px)}
.arithmetic-print.worksheet-columns-2 .arithmetic-item:nth-child(n+3),
.arithmetic-print.worksheet-columns-2 .answer-grid>div:nth-child(n+3){border-top:1px solid #d0d5dc}
@media print{
 @page{size:A4;margin:13mm}
 body:has(> .arithmetic-print)>h1{display:none}
 .arithmetic-print{min-height:250mm;break-inside:avoid;box-shadow:none;padding:0;color:#151515}
 .arithmetic-print .arithmetic-header{border-color:#252525}
 .arithmetic-print.worksheet-columns-2 :is(.arithmetic-work-grid,.answer-grid){column-gap:8mm}
 .arithmetic-print.arithmetic-answer + .arithmetic-print.arithmetic-answer{break-before:page}
}

@media print{.arithmetic-print .arithmetic-footer{justify-content:flex-end}.arithmetic-print .arithmetic-footer span:first-child{display:none}}

.worksheet-typesetting{font-size:var(--worksheet-size,12pt);overflow-wrap:anywhere}
.worksheet-typesetting .qtext{font-size:1em}
.worksheet-typesetting .qno{font-size:.8em}
.worksheet-typesetting.worksheet-columns-1 :is(.question-grid,.answer-grid){grid-template-columns:minmax(0,1fr)!important}
.worksheet-typesetting.worksheet-columns-2 :is(.question-grid,.answer-grid){grid-template-columns:repeat(2,minmax(0,1fr))!important;column-gap:clamp(12px,4vw,30px)}
.worksheet-typesetting :is(.question,.answer-grid>div){break-inside:avoid}

.arithmetic-print .arithmetic-header :is(h2,.arithmetic-kicker),
.worksheet-typesetting .sheet-heading,
.eng-paper > h2{text-align:center}
.arithmetic-print .arithmetic-student,
.worksheet-typesetting:not(.answer-sheet) .sheet-heading > span,
.eng-paper header > p{text-align:right}
.worksheet-typesetting .sheet-heading{display:block}
.worksheet-typesetting:not(.answer-sheet) .sheet-heading{border-bottom:2px solid #233143;padding-bottom:.5em}
.worksheet-typesetting .sheet-heading > span{display:block;margin-top:.45em}

.worksheet-columns-2 :is(.arithmetic-work-grid,.question-grid,.answer-grid,.eng-flow){position:relative}
.worksheet-columns-2 :is(.arithmetic-work-grid,.question-grid,.answer-grid,.eng-flow)::before{
 content:"";position:absolute;inset-block:0;left:50%;border-left:1px solid #77828c;pointer-events:none;
}
.eng-doc.worksheet-columns-2 ol.eng-flow{padding-inline-start:0;list-style-position:inside}
