/* ══════════════════════════════════════════════════════════
   Notes → "Export as PDF" (js/editor.js, html2pdf)
   The export is built with these classes instead of .editor, so none of the
   dark-theme editor styles (light text, dark table cells…) end up on paper.
   ══════════════════════════════════════════════════════════ */
.ep-pdf-doc {
  width: 180mm; box-sizing: border-box; background: #fff; color: #1f2937;
  font-family: Arial, Helvetica, sans-serif; font-size: 11.5pt; line-height: 1.55;
}
.ep-pdf-doc * { box-sizing: border-box; }

/* Header */
.ep-pdf-head { border-bottom: 2px solid #1f2937; padding-bottom: 9px; margin-bottom: 16px; }
.ep-pdf-eyebrow { font-size: 8pt; letter-spacing: .14em; text-transform: uppercase; color: #64748b; margin-bottom: 4px; }
.ep-pdf-title { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: 20pt; line-height: 1.2; color: #111827; }
.ep-pdf-date { margin-top: 3px; font-size: 9.5pt; color: #475569; }

/* Sections (Notes / Grammar / Vocabulary / Pronunciation / Answer key) */
.ep-pdf-section + .ep-pdf-section { margin-top: 20px; }
.ep-pdf-sec-head {
  display: block; margin: 0 0 10px; padding: 4px 0 4px 10px;
  border-left: 4px solid var(--sec, #2563eb);
  font-size: 9pt; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sec, #2563eb);
}

/* Body text (what was inside the editor) */
.ep-pdf-body { color: #1f2937; font-family: Arial, Helvetica, sans-serif; }
.ep-pdf-body h1 { font-size: 1.55em; margin: .6em 0 .3em; color: #111827; line-height: 1.25; }
.ep-pdf-body h2 { font-size: 1.3em; margin: .6em 0 .3em; color: #111827; line-height: 1.3; }
.ep-pdf-body h3 { font-size: 1.12em; margin: .5em 0 .25em; color: #111827; }
.ep-pdf-body p { margin: .25em 0; min-height: 0; }
.ep-pdf-body p:empty { min-height: .8em; }
.ep-pdf-body ul, .ep-pdf-body ol { padding-left: 1.5em; margin: .3em 0; }
.ep-pdf-body li { margin: .12em 0; }
.ep-pdf-body hr { border: none; border-top: 1px solid #cbd5e1; margin: .9em 0; }
.ep-pdf-body blockquote { border-left: 3px solid #94a3b8; padding-left: 10px; margin: .5em 0; color: #334155; }
.ep-pdf-body a, .ep-pdf-body a.note-index-link {
  color: #1d4ed8; background: none; border: none; padding: 0; text-decoration: underline; font-weight: 500;
}
.ep-pdf-body img { max-width: 100%; height: auto; }
.ep-pdf-body table { border-collapse: collapse; margin: .5em 0; max-width: 100%; table-layout: auto; }
.ep-pdf-body td, .ep-pdf-body th {
  border: 1px solid #cbd5e1; padding: 5px 8px; vertical-align: top; font-size: .95em;
  background: #fff; color: #1f2937;
}
.ep-pdf-body th { background: #f1f5f9; font-weight: 700; }
.ep-pdf-body .highlight-box { background: #f8fafc; border-left: 3px solid #475569; padding: 8px 12px; border-radius: 4px; margin: .5em 0; }
.ep-pdf-body [class^="err-"] { padding: 0 1px; border-radius: 0; background: none; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }

/* Teacher comments */
.ep-pdf-notes { margin-top: 24px; padding-top: 9px; border-top: 1px solid #cbd5e1; }
.ep-pdf-notes-h { font-size: 8.5pt; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #475569; margin-bottom: 6px; }
.ep-pdf-notes p { font-size: 10pt; margin: 0 0 4px; color: #1f2937; }
.ep-pdf-notes sup { color: #475569; font-weight: 700; }
/* Each section's own comments, right below it */
.ep-pdf-section .ep-pdf-notes { margin-top: 12px; padding: 8px 12px 6px; border-top: 0; border-left: 3px solid var(--sec, #94a3b8); background: #f8fafc; border-radius: 0 6px 6px 0; }
