/* ═══════════════════════════════════════════════════════════
   EDUPLEX ExamMakers – 인쇄 전용 스타일
   A4 (210mm × 297mm), 사방 20mm 여백
═══════════════════════════════════════════════════════════ */

@media print {
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }

  @page {
    size: A4 portrait;
    margin: 20mm;
  }

  body {
    font-family: 'Malgun Gothic', 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
    font-size: 11pt;
    color: #000;
    background: #fff;
    margin: 0;
    padding: 0;
  }

  /* 인쇄 불필요 요소 숨김 */
  .no-print,
  .eem-result-toolbar,
  .eem-pub-tabs,
  .eem-pub-header,
  .eem-pub-footer,
  nav, header, footer,
  .site-header, .site-footer,
  .widget-area, .sidebar,
  #wpadminbar { display: none !important; }

  /* 래퍼 */
  .eem-print-wrap {
    width: 100%;
    padding: 0;
    margin: 0;
    background: #fff;
    box-shadow: none !important;
  }

  /* 헤더 */
  .eem-print-header {
    text-align: center;
    border-bottom: 2px solid #000;
    padding-bottom: 6pt;
    margin-bottom: 10pt;
    page-break-after: avoid;
  }
  .eem-print-header h1 { font-size: 16pt; margin: 0 0 3pt; }
  .eem-print-header .meta { font-size: 10pt; color: #444; }

  .eem-print-meta-row {
    display: flex; justify-content: space-between;
    font-size: 10pt; margin-bottom: 8pt; color: #555;
  }

  /* 2단 그리드 */
  .eem-print-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 10mm;
    column-gap: 10mm;
  }

  /* 문제 */
  .eem-question {
    margin-bottom: 12pt;
    font-size: 10.5pt;
    line-height: 1.55;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .eem-question .num {
    font-weight: bold;
    display: inline-block;
    min-width: 20pt;
  }
  .eem-question .text { display: inline; }
  .eem-question .options {
    list-style: none; padding: 3pt 0 0 20pt; margin: 0;
  }
  .eem-question .options li { margin-bottom: 2pt; font-size: 10pt; }
  .eem-question .answer-line {
    border-bottom: 1px solid #888;
    min-height: 16pt;
    margin: 4pt 0 4pt 20pt;
  }
  .eem-question .answer-reveal {
    background: #f5f5f5;
    padding: 2pt 5pt;
    font-size: 9.5pt;
    color: #333;
    margin-top: 3pt;
    border-left: 3pt solid #0078d7;
  }

  /* 해설지 */
  .eem-answer-item {
    margin-bottom: 14pt;
    padding: 8pt;
    background: #fafafa;
    border-radius: 3pt;
    break-inside: avoid;
  }
  .eem-answer-num  { font-weight: bold; font-size: 11pt; color: #0078d7; margin-bottom: 3pt; }
  .eem-answer-ans  { color: #cc0000; font-weight: bold; margin-bottom: 3pt; }
  .eem-answer-expl { color: #333; line-height: 1.6; border-left: 3pt solid #0078d7; padding-left: 6pt; }
}
