 

 
:root { --pg-page-h: 293mm; }

.pg-wrap { display: grid; gap: 16px; justify-items: center; padding: 10px 0 14px; }
.pg-frame { overflow-x: auto; background: #E8ECF3; }
.pg-empty { padding: 40px; text-align: center; color: var(--ink-500); font-size: 15px; }

section.pg-page {
  position: relative; width: 210mm; height: var(--pg-page-h); box-sizing: border-box;
  padding: 11mm 13mm 8mm;
  background: #fff; color: var(--ink-900);
  border: 1px solid #d5dbe6;
  display: flex; flex-direction: column; overflow: hidden;
  font-family: var(--sans); font-size: 10pt; line-height: 1.55; word-break: keep-all;
}
section.pg-page.pg-probe { position: absolute; left: -10000px; top: 0; visibility: hidden; pointer-events: none; }

 
.pg-head { flex: none; }
.pg-brand {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding-bottom: 2.5mm; border-bottom: 1px solid var(--ink-900);
}
.pg-brand img { height: 9mm; width: auto; display: block; }
.pg-brand span { font-size: 8.5pt; font-weight: 700; letter-spacing: .04em; color: var(--ink-500); }
.pg-titlerow {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6mm; align-items: end;
  padding: 3mm 0 2.5mm;
}
.pg-eyebrow { display: block; font-size: 8.5pt; font-weight: 700; color: var(--rp-primary); margin-bottom: 1mm; }
.pg-titlebox h1 {
  font-family: var(--serif); font-size: 17pt; font-weight: 900; line-height: 1.25; margin: 0;
  color: var(--ink-900); letter-spacing: -.01em; text-wrap: balance;
}
.pg-titlebox p { margin: 1.5mm 0 0; font-size: 9pt; color: var(--ink-500); }
.pg-meta { border-collapse: collapse; font-variant-numeric: tabular-nums; }
.pg-meta th, .pg-meta td { border: 1px solid var(--ink-900); padding: 1.2mm 3mm; text-align: center; white-space: nowrap; }
.pg-meta th { font-size: 7.5pt; font-weight: 700; color: var(--ink-500); background: var(--fill-100); }
.pg-meta td { font-size: 10pt; font-weight: 800; }
.pg-idrow {
  display: flex; align-items: center; gap: 2.5mm; padding-top: 2.5mm;
  border-top: 3px solid var(--ink-900); font-size: 9pt; font-weight: 700; color: var(--ink-700);
}
.pg-idrow i { flex: 1; height: 7mm; border: 1px solid var(--ink-900); }
.pg-idrow i.short { flex: 0 0 26mm; }
.pg-head.pg-first { margin-bottom: 4mm; }

 
.pg-run {
  display: flex; align-items: center; gap: 3mm; padding-bottom: 2mm; margin-bottom: 4mm;
  border-bottom: 1px solid var(--ink-900); font-size: 8.5pt; color: var(--ink-500);
}
.pg-run img { height: 6mm; width: auto; }
.pg-run-title { font-weight: 700; color: var(--ink-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-run-sec { margin-left: auto; font-weight: 700; white-space: nowrap; }

 
 
.pg-body {
  flex: 1; min-height: 0;
  display: grid; grid-template-columns: repeat(var(--pg-cols, 1), minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr);
  column-gap: 8mm; align-items: stretch;
}
.pg-col { min-width: 0; position: relative; }
 
.pg-col + .pg-col::before {
  content: ""; position: absolute; left: -4mm; top: 0; bottom: 0; width: 1px;
  background: var(--ink-500);
}
.pg-item { break-inside: avoid; margin-bottom: 4mm; }
.pg-item.pg-part-first, .pg-item.pg-part-mid { margin-bottom: 0; }
.pg-item.pg-over { outline: 1px dashed var(--rp-secondary); outline-offset: 2px; }    

 
.pg-sec-title {
  font-family: var(--serif); font-size: 14pt; font-weight: 900; margin: 0 0 1mm;
  padding-bottom: 1.5mm; border-bottom: 3px solid var(--ink-900);
}

 
.pg-psg { border: 1px solid var(--ink-900); padding: 2.5mm 3mm; font-size: 9pt; line-height: 1.6; }
.pg-psg h3 { font-size: 8.5pt; font-weight: 800; margin: 0 0 1.5mm; padding-bottom: 1.2mm; border-bottom: 1px solid var(--line-300); }
.pg-psg.pg-first { border-bottom: 0; padding-bottom: 1.5mm; }
.pg-psg.pg-mid { border-top: 0; border-bottom: 0; padding-top: 0; padding-bottom: 1.5mm; }
.pg-psg.pg-last { border-top: 0; padding-top: 0; }
.pg-psg .pg-cont { display: block; font-size: 7.5pt; color: var(--ink-500); margin-bottom: 1mm; }

 
.pg-foot {
  flex: none; display: flex; align-items: center; justify-content: space-between;
  margin-top: 3mm; padding-top: 2mm; border-top: 1px solid var(--line-300);
  font-size: 8pt; color: var(--ink-500);
}
.pg-foot b { font-variant-numeric: tabular-nums; color: var(--ink-900); font-size: 9pt; }

 
section.pg-page .pp-q { margin: 0; }
section.pg-page .pp-q-head b { font-size: 11pt; }
section.pg-page .pp-pt, section.pg-page .pp-a { font-size: 8.5pt; }
section.pg-page .pp-stem { font-size: 10pt; margin-bottom: 1.5mm; }
 
section.pg-page .pp-stem-body { font-size: 10pt; margin-top: 1.5mm; }
 
section.pg-page .pp-ch { gap: 1mm; margin-top: 3mm; }
section.pg-page .pp-ch li { font-size: 9.5pt; grid-template-columns: 5mm minmax(0, 1fr); gap: 1mm; }
section.pg-page .pp-sol { font-size: 9pt; margin-top: 2mm; padding: 2mm 2.5mm; }
section.pg-page .pp-sol p { margin-bottom: 1.2mm; }
section.pg-page .pp-steps li { font-size: 9pt; }
section.pg-page .pp-key { margin: 0; }
section.pg-page .pp-key h2 { font-size: 9.5pt; }
section.pg-page .pp-key td { padding: 1.2mm 1mm; }
section.pg-page .pp-key td b { font-size: 7.5pt; }
section.pg-page .pp-key td span { font-size: 10.5pt; }

section.pg-page .vq-q { margin: 0; grid-template-columns: 9mm minmax(0, 1fr); gap: 2mm; }
section.pg-page .vq-q-no { font-size: 13pt; }
section.pg-page .vq-q-no span { font-size: 7.5pt; }
section.pg-page .vq-material { font-size: 9pt; line-height: 1.55; padding: 2mm 2.5mm; margin-bottom: 2mm; }
 
section.pg-page .vq-material.pg-first { border-bottom: 0; padding-bottom: 1.5mm; margin-bottom: 0; }
section.pg-page .vq-material.pg-mid { border-top: 0; border-bottom: 0; padding-top: 0; padding-bottom: 1.5mm; margin-bottom: 0; }
section.pg-page .vq-material.pg-last { border-top: 0; padding-top: 0; }
section.pg-page .vq-stem { font-size: 10pt; margin-bottom: 1.5mm; }
section.pg-page .vq-choices { gap: 1mm; margin-top: 3mm; }    
section.pg-page .vq-choices li { font-size: 9.5pt; grid-template-columns: 5mm minmax(0, 1fr); gap: 1.5mm; }
section.pg-page .vq-blank { height: 22mm; }
section.pg-page .vq-k { padding: 2.5mm 0; }
section.pg-page .vq-k-head > b { font-size: 11pt; }
section.pg-page .vq-k-ans { font-size: 10pt; }
section.pg-page .vq-k-diff, section.pg-page .vq-k-std { font-size: 8.5pt; }
section.pg-page .vq-k p { font-size: 9pt; line-height: 1.55; }
section.pg-page .vq-k-wrong li { font-size: 9pt; }

 
section.pg-page .pp-ch.inline, section.pg-page .vq-choices.inline {
  display: flex; flex-wrap: wrap; gap: 1mm 5.5mm; margin-top: 1mm;
}
section.pg-page .pp-ch.inline li, section.pg-page .vq-choices.inline li {
  display: flex; gap: 1.2mm; align-items: baseline; white-space: nowrap;
}

 
section.pg-page .katex { font-size: 1em; }
section.pg-page .katex-display { margin: 1.5mm 0; overflow: hidden; }

 
#pg-print-area { position: absolute; left: -10000px; top: 0; width: 210mm; }
@media print {
  @page { size: A4; margin: 0; }
  body.pg-printing > *:not(#pg-print-area) { display: none !important; }
  body.pg-printing { background: #fff; margin: 0; }
  body.pg-printing #pg-print-area { position: static; left: auto; width: auto; }
   
  #pg-print-area, #pg-print-area .pg-wrap { display: block; padding: 0; gap: 0; }
  #pg-print-area section.pg-page {
    height: var(--pg-page-h); border: 0; margin: 0;    
    break-after: page; page-break-after: always;
    print-color-adjust: exact; -webkit-print-color-adjust: exact;
  }
  #pg-print-area section.pg-page:last-child { break-after: auto; page-break-after: auto; }
  #pg-print-area .pg-item.pg-over { outline: 0; }
}

 
section.pg-page .pp-sol-head { font-size: 9pt; margin-bottom: 1mm; }
section.pg-page .pp-sol-head b { font-size: 10pt; }

 
section.pg-page .pp-wrong li { font-size: 8.6pt; grid-template-columns: 4mm minmax(0, 1fr); gap: .8mm; }
section.pg-page .pp-trans, section.pg-page .pp-vocab { margin-top: 1.4mm; font-size: 8.6pt; }
section.pg-page .pp-vocab dl { gap: .4mm 3mm; }

 
section.pg-page .pp-fig { margin: 2mm 0 .6mm; }
section.pg-page .pp-fig svg { max-width: 58mm; max-height: 42mm; }
section.pg-page .pp-bogi { margin-top: 2.4mm; padding: 1.6mm 2.6mm 1.8mm; }
section.pg-page .pp-bogi-title { font-size: 9pt; margin-bottom: 1mm; }
section.pg-page .pp-bogi ul > li { font-size: 9.5pt; grid-template-columns: 4.2mm minmax(0, 1fr); gap: 1mm; }
section.pg-page .pp-proof { margin-top: 2.4mm; padding: 1.8mm 2.8mm; font-size: 9.5pt; line-height: 1.75; }
section.pg-page .pp-part { margin-bottom: 1mm; }
section.pg-page .pp-part.hi { padding-left: 2mm; }
section.pg-page .pp-steps-box { margin-bottom: 1mm; }

 
section.pg-page .vq-fig { margin: 1.5mm 0 2mm; text-align: center; }
section.pg-page .vq-fig svg { max-width: 100%; max-height: 62mm; width: auto; height: auto; }
section.pg-page .vq-material .vq-fig { margin: 1.5mm 0 2.5mm; }
