/* mnjul/html-resume adaptation, modified 2026-09-18.
 * Two-page A4 research CV with restrained typography and mobile reflow.
 * Original timeline structure and base styles: vendor/html-resume (Apache-2.0). */
@font-face {
  font-family: "CV Noto Sans KR";
  src: url("./fonts/NotoSansKR-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  --ink: #222;
  --muted: #555;
  --accent: #222;
  --line: #b9b9b9;
  --date-block-width: 26mm;
  --decorator-horizontal-margin: 4.5mm;
  --decorator-border: 1px solid var(--line);
  --row-blocks-padding-top: 0;
}
html { background: #f3f3f3; }
body.cv-document {
  width: auto;
  height: auto;
  margin: 0;
  font-family: "CV Noto Sans KR", sans-serif;
  font-size: 10.25pt;
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink);
  hyphens: none;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
button { font: inherit; }
p, ul, dl { margin: 0; }
strong { font-weight: 700; }
.toolbar {
  max-width: 210mm;
  margin: 22px auto 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
}
.toolbar-actions { display: flex; align-items: center; gap: 10px; }
.toolbar button, .toolbar .download {
  display: inline-block;
  border: 1px solid #c2cdd0;
  border-radius: 2px;
  background: white;
  padding: 9px 15px;
  color: var(--ink);
  cursor: pointer;
}
.toolbar .download { background: white; border-color: #bbb; color: var(--ink); }
.cv-document #main { float: none; width: auto; padding: 0; font-size: inherit; }
.sheet {
  position: relative;
  width: 210mm;
  height: 297mm;
  margin: 0 auto 24px;
  padding: 12mm 16mm 15mm;
  background: #fff;
  break-after: page;
}
.sheet:last-child { break-after: auto; }
.sheet-content { position: relative; }
.cv-document h1, .cv-document h2, .cv-document h3 { color: var(--ink); text-transform: none; }
.cv-document #title {
  position: relative;
  left: 0;
  margin: 0 0 3mm;
  min-height: 29mm;
  padding-right: 30mm;
  padding-bottom: 0;
  border-bottom: none;
  line-height: inherit;
  text-transform: none;
}
.eyebrow { font-size: 8pt; font-weight: 500; letter-spacing: .8px; color: var(--muted); margin-bottom: .8mm; }
.cv-document #title h1 { font-size: 24pt; line-height: 1.25; font-weight: 700; letter-spacing: -.4px; }
#title h1 span { font-size: 15pt; font-weight: 400; letter-spacing: 0; margin-left: 3mm; }
.position { font-size: 9.5pt; margin-top: 1.2mm; }
.contact { display: flex; flex-wrap: wrap; gap: 1mm 5mm; margin-top: 1.5mm; font-size: 9pt; }
.portfolio-qr {
  position: absolute;
  top: 0;
  right: 0;
  width: 24mm;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1mm;
  color: var(--muted);
  font-size: 7.5pt;
  line-height: 1.2;
}
.portfolio-qr img { display: block; width: 24mm; height: 24mm; background: white; }
.summary { font-size: 10.25pt; line-height: 1.5; margin: 0 0 3mm; }
.cv-document .main-block { margin-top: 3.5mm; }
.cv-document #main h2 {
  position: static;
  display: flex;
  align-items: baseline;
  gap: 3mm;
  margin: 0 0 2.2mm;
  padding-bottom: 1.1mm;
  border-bottom: .5pt solid var(--line);
  font-size: 12pt;
  font-weight: 700;
  line-height: 1.3;
  color: var(--accent);
}
.cv-document #main h2::after { display: none; }
h2 span { font-size: 8.5pt; font-weight: 400; color: var(--muted); }
.cv-document .blocks { display: flow-root; margin: 0 0 2.3mm; break-inside: avoid; }
.cv-document .blocks > div { padding-top: 0; }
.cv-document .date {
  float: right;
  padding: .5mm 0 0 4mm !important;
  font-size: 9pt;
  color: var(--muted);
  line-height: 1.4;
  text-align: right;
  font-weight: 400;
}
.cv-document .date span, .date small { display: inline; }
.cv-document .date span:nth-child(2)::before { content: "-"; position: static; display: inline; height: auto; margin: 0 1mm; }
.date br { display: none; }
.date small { font-size: 8.5pt; margin-left: 1mm; font-weight: 400; }
.cv-document .decorator { display: none; }
.cv-document .decorator::before { display: none; }
.cv-document .decorator::after {
  width: 5px; height: 5px; top: 9px; left: -3px; border-radius: 50%; background: var(--accent);
}
.cv-document .blocks:last-child .decorator { margin-bottom: 4mm; }
.cv-document .details {
  min-width: 0;
  display: block;
  padding: 0 !important;
}
.cv-document .details h3 { font-size: 10.5pt; font-weight: 650; line-height: 1.45; margin: 0 0 .4mm; }
.cv-document .details p { margin-top: .3mm; }
.meta { color: var(--muted); font-size: 9.25pt; }
.cv-document #main ul { margin: .6mm 0 0; padding-left: 4mm; }
.cv-document #main li { list-style-type: disc; margin: 0 0 .5mm; padding-left: 0; }
.cv-document #main li::before { content: none; }
li::marker { color: var(--muted); font-size: .75em; }
.running-header { display: flex; justify-content: space-between; color: var(--muted); font-size: 8.5pt; margin-bottom: 3mm; }
.running-header > span:first-child { color: var(--ink); font-weight: 600; }
.roman-name { padding-left: 2mm; font-weight: 400; }
.running-header + .main-block { margin-top: 0; }
.cv-document .publication { margin-bottom: 2.3mm; }
.cv-document .publication .details h3 { font-size: 10.5pt; margin: .6mm 0 .4mm; line-height: 1.42; }
.pub-label { color: var(--muted); font-size: 8.5pt; font-weight: 400; }
.badge { display: inline; margin-left: 2mm; font-size: inherit; font-weight: 500; }
.authors { font-size: 9.25pt; }
.venue { font-size: 9pt; color: var(--muted); line-height: 1.4; }
.award, .activity { display: grid; grid-template-columns: 27mm minmax(0, 1fr); gap: 3mm; break-inside: avoid; }
.award { margin-bottom: 1.5mm; }
.award time, .date-text { color: var(--muted); font-size: 9pt; padding-top: .3mm; }
.award h3, .activity h3 { font-size: 10pt; font-weight: 650; line-height: 1.4; }
.award h3 span { margin-left: 2mm; font-size: 9pt; font-weight: 400; color: var(--muted); }
.award p, .activity p { font-size: 9.5pt; margin-top: .3mm; line-height: 1.4; }
.activity { margin-bottom: 1.5mm; }
.activity > div { display: flex; align-items: baseline; gap: 3mm; min-width: 0; }
.activity h3 { flex: 0 0 40mm; }
.activity p { flex: 1; min-width: 0; margin-top: 0; }
.scholarship { display: grid; grid-template-columns: 27mm minmax(0, 1fr); gap: 3mm; margin-bottom: 2mm; break-inside: avoid; }
.scholarship h3 { font-size: 10pt; font-weight: 650; line-height: 1.4; }
.scholarship p { font-size: 9.5pt; margin-top: .4mm; line-height: 1.4; }
.page-footer {
  position: absolute;
  bottom: 8mm;
  left: 16mm;
  right: 16mm;
  display: flex;
  justify-content: space-between;
  padding-top: 0;
  font-size: 8pt;
  letter-spacing: .35px;
  color: var(--muted);
}
.web-credit { margin: 0 auto 30px; padding: 0 20px; text-align: center; color: var(--muted); font-size: 12px; }
body.cv-english { font-size: 10pt; line-height: 1.38; word-break: normal; }
.cv-english .summary { font-size: 10pt; line-height: 1.4; }
.cv-english .main-block { margin-top: 2.6mm; }
.cv-english #main h2 { margin-bottom: 1.8mm; }
.cv-english .blocks { margin-bottom: 1.6mm; }
.cv-english .activity { margin-bottom: 1mm; }
.cv-english .details h3 { font-size: 10.25pt; line-height: 1.38; }
.cv-english .activity p { font-size: 9.25pt; line-height: 1.35; }
.cv-english .activity h3 { flex-basis: 43mm; }
.cv-english .activity, .cv-english .scholarship { grid-template-columns: 29mm minmax(0, 1fr); }
@media print, screen and (min-width: 841px) {
  .cv-english .sheet { padding-left: 14mm; padding-right: 14mm; }
  .cv-english .page-footer { left: 14mm; right: 14mm; }
}
@page { size: A4 portrait; margin: 0; }
@media print {
  html { background: white; }
  .toolbar, .web-credit { display: none; }
  .sheet { margin: 0; box-shadow: none; }
  a { color: inherit; }
}
@media screen and (max-width: 840px) {
  .toolbar { margin: 16px 20px; }
  .sheet { width: calc(100% - 32px); height: auto; min-height: 0; padding: 32px 26px 24px; margin-bottom: 16px; }
  .page-footer { position: static; margin-top: 32px; }
}
@media screen and (max-width: 560px) {
  body.cv-document { font-size: 14px; }
  .cv-english .summary { font-size: 14px; }
  .toolbar { font-size: 12px; margin: 12px 16px; }
  .toolbar { flex-wrap: wrap; }
  .toolbar button, .toolbar .download { padding: 8px 10px; }
  .toolbar-actions { gap: 6px; }
  .sheet { padding: 26px 20px 22px; }
  .cv-document #title h1 { font-size: 28px; }
  .cv-document #title { padding-right: 0; }
  .portfolio-qr { position: static; width: auto; flex-direction: row; gap: 10px; margin-top: 12px; font-size: 12px; }
  .portfolio-qr img { width: 90px; height: 90px; }
  #title h1 span { display: block; margin-left: 0; font-size: 20px; }
  .position { font-size: 13px; }
  .contact { flex-direction: column; gap: 4px; font-size: 12px; }
  .summary { font-size: 14px; }
  .cv-document .main-block { margin-top: 22px; }
  .cv-document #main h2 { display: block; font-size: 18px; margin-bottom: 12px; }
  h2 span { display: block; margin-top: 3px; font-size: 12px; }
  .cv-document .blocks { display: block; margin-bottom: 17px; }
  .cv-document .date { float: none; padding: 0 0 5px !important; font-size: 12px; text-align: left; }
  .date span, .date small { display: inline; margin-right: 4px; }
  .date br { display: none; }
  .decorator { display: none; }
  .cv-document .details { padding: 0; }
  .cv-document .details h3, .cv-document .publication .details h3 { font-size: 15px; }
  .award, .activity { grid-template-columns: minmax(0, 1fr); gap: 2px; margin-bottom: 14px; }
  .activity > div { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: 10px; }
  .activity h3 { font-size: 13px; }
  .activity p { font-size: 12px; }
  .award h3 span { display: block; margin-left: 0; }
  .date-text br { display: none; }
  .scholarship { grid-template-columns: minmax(0, 1fr); gap: 2px; margin-bottom: 14px; }
  .cv-english .activity, .cv-english .scholarship { grid-template-columns: minmax(0, 1fr); }
  .running-header { font-size: 11px; gap: 10px; }
  .roman-name { display: none; }
  .page-footer { font-size: 9px; letter-spacing: 0; }
}
