/* A4 academic CV: one accent, no decoration or gradients. */
@font-face { font-family: Inter; src: url(../fonts/inter-latin-wght-normal.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@page { size: A4; margin: 18mm 19mm 22mm; }
* { box-sizing: border-box; }
body { margin: 0; color: #0f172a; background: white; font: 10.5pt/1.45 Inter, Arial, sans-serif; }
a { color: #1e3a8a; text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 29pt; line-height: 1.2; letter-spacing: -.025em; color: #1e3a8a; margin-bottom: 10px; }
h1 span { font-size: 20pt; font-family: 'Noto Sans CJK SC', 'Noto Sans SC', sans-serif; }
h2 { font-size: 12pt; line-height: 1.35; color: #1e3a8a; margin: 18px 0 9px; padding-bottom: 5px; border-bottom: 1px solid #d9e2f2; break-after: avoid; }
h3 { font-size: 11pt; line-height: 1.4; color: #1e3a8a; margin-bottom: 5px; break-after: avoid; }
p { margin-bottom: 8px; }
.cv-kicker { font-size: 9pt; margin-bottom: 12px; color: #475569; }
.cv-title { font-weight: 600; }
.cv-contact, .cv-note { font-size: 9pt; line-height: 1.45; }
.cv-summary { margin: 17px 0; }
.cv-page { break-after: page; }
.cv-page:last-child { break-after: auto; }
.cv-record { margin: 0; }
.cv-record > div { display: grid; grid-template-columns: 27mm 1fr; gap: 3mm; margin-bottom: 7px; break-inside: avoid; }
.cv-record dt { font-size: 9.5pt; padding-top: 1px; font-weight: 500; }
.cv-record dd { margin: 0; }
.cv-continuation > p { color: #475569; font-size: 9pt; margin-bottom: 4px; }
.cv-continuation h2 { margin-top: 0; font-size: 17pt; border: 0; margin-bottom: 15px; }
.cv-case { margin-bottom: 12px; break-inside: avoid; }
.cv-case p { margin-bottom: 4px; }
.cv-papers { margin: 0; padding-left: 20px; }
.cv-papers li { margin-bottom: 10px; padding-left: 4px; break-inside: avoid; }
.cv-papers li > a { font-weight: 600; text-decoration: none; }
.cv-papers p { font-size: 9.5pt; margin: 2px 0 0; }
.cv-note { margin-top: 10px; color: #475569; }
@media screen {
  body { background: #f1f5f9; padding: 24px; }
  .cv-page { width: 210mm; min-height: 297mm; margin: 0 auto 24px; padding: 18mm 19mm 22mm; background: white; }
}
@media screen and (max-width: 840px) {
  body { padding: 0; }
  .cv-page { width: 100%; min-height: 0; padding: 24px; margin: 0 0 16px; }
  .cv-record > div { grid-template-columns: 1fr; gap: 2px; }
}
