/* Resume typography and themes. Also inlined into the "Export HTML" file. */
.resume {
  font-family: "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 10.5pt;
  line-height: 1.45;
  color: #1f2933;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
article.resume { max-width: 210mm; margin: 0 auto; }
body > article.resume { padding: 16mm; }
.resume h1 { font-size: 22pt; margin: 0 0 0.2em; line-height: 1.15; }
.resume h1 + p { margin-top: 0; color: #52606d; }
.resume h2 {
  font-size: 12pt;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 1.2em 0 0.5em;
  padding-bottom: 0.2em;
  border-bottom: 1px solid #cbd2d9;
}
.resume h3 { font-size: 11pt; margin: 0.9em 0 0.1em; }
.resume h3 + p { margin-top: 0; color: #616e7c; }
.resume p { margin: 0.4em 0; }
.resume ul, .resume ol { margin: 0.3em 0 0.6em; padding-left: 1.3em; }
.resume li { margin: 0.15em 0; }
.resume a { color: #1d4ed8; text-decoration: none; }
.resume code { font-family: ui-monospace, Consolas, monospace; font-size: 0.92em; background: #f1f3f5; padding: 0 0.25em; border-radius: 3px; }
.resume pre { background: #f1f3f5; padding: 0.6em; border-radius: 4px; overflow: auto; }
.resume pre code { background: none; padding: 0; }
.resume blockquote { margin: 0.5em 0; padding-left: 0.8em; border-left: 3px solid #cbd2d9; color: #52606d; }
.resume hr { border: 0; border-top: 1px solid #cbd2d9; margin: 1em 0; }
.resume h2, .resume h3 { break-after: avoid; page-break-after: avoid; }
.resume li { break-inside: avoid; page-break-inside: avoid; }

/* Standalone export (Export HTML / CLI): print with the same margins as the in-app print. */
body.resume-export { margin: 0; }
@media print {
  @page { margin: 14mm; }
  body > article.resume { padding: 0; max-width: none; }
}

/* Modern: accent colour, centred header */
.theme-modern h1 { color: #1e3a8a; text-align: center; }
.theme-modern h1 + p { text-align: center; }
.theme-modern h2 { color: #1e3a8a; border-bottom: 2px solid #3b82f6; }
.theme-modern h3 { color: #0f172a; }

/* Compact: tighter spacing to fit more on one page */
.theme-compact { font-size: 9.5pt; line-height: 1.3; }
.theme-compact h1 { font-size: 18pt; }
.theme-compact h2 { font-size: 10.5pt; margin: 0.8em 0 0.3em; }
.theme-compact h3 { font-size: 10pt; margin: 0.6em 0 0; }
.theme-compact p { margin: 0.2em 0; }
.theme-compact ul, .theme-compact ol { margin: 0.15em 0 0.35em; }
.theme-compact li { margin: 0.05em 0; }
