/* 이력서 탭 전용 — 일반 이력서 한 장처럼 보이게 하는 최소 스타일. 색·글꼴은 site.css 변수를 그대로 쓴다. */
body.cvpage{font-size:14.5px;line-height:1.68;}
.cv{max-width:880px;margin:26px auto 44px;background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:46px 54px 50px;}
.cv{word-break:keep-all;overflow-wrap:anywhere;}
.cv a{color:var(--accent-ink);}

/* 머리 — 이름·지원 분야·연락처 */
.cv-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap;padding-bottom:18px;border-bottom:2px solid var(--ink);}
.cv-head>div{flex:1 1 0;min-width:240px;}
.cv-head .btn{flex-shrink:0;}
.cv-head h1{margin:0;font-size:29px;font-weight:700;letter-spacing:-.02em;line-height:1.2;}
.cv-head h1 .en{font-size:15px;font-weight:500;color:var(--muted);margin-left:10px;letter-spacing:0;}
.cv p.cv-role{margin:7px 0 0;font-size:15px;color:var(--ink);font-weight:600;}
.cv ul.cv-contact{list-style:none;margin:12px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:3px 18px;font-size:13.5px;color:var(--body);}
.cv-contact li{margin:0;}
.cv-contact li span{color:var(--muted);margin-right:6px;}
.cv-head .btn{font-size:12.5px;padding:9px 14px;}

/* 구역 제목 */
.cv h2{font-size:16px;font-weight:700;letter-spacing:-.01em;margin:32px 0 12px;padding-bottom:6px;border-bottom:1px solid var(--ink);}
.cv h3{font-size:16px;font-weight:700;margin:0;letter-spacing:-.01em;}
.cv h4{font-size:14.5px;font-weight:700;margin:22px 0 8px;color:var(--ink);}
.cv p{margin:0 0 8px;}
.cv ul{margin:0;padding-left:18px;}
.cv li{margin:0 0 5px;}
.cv b{color:var(--ink);font-weight:600;}

/* 요약 — 수치 4개 */
.cv-nums{display:grid;grid-template-columns:repeat(4,1fr);gap:0;margin:14px 0 14px;border:1px solid var(--line);border-radius:6px;}
.cv-nums div{padding:12px 14px;border-left:1px solid var(--line);}
.cv-nums div:first-child{border-left:none;}
.cv-nums strong{display:block;font-size:17px;color:var(--ink);font-weight:700;letter-spacing:-.01em;font-variant-numeric:tabular-nums;white-space:nowrap;}
.cv-nums span{display:block;font-size:12.5px;color:var(--muted);line-height:1.5;margin-top:3px;}

/* 표 공통 */
.cv table{width:100%;border-collapse:collapse;font-size:13.5px;}
.cv th,.cv td{text-align:left;vertical-align:top;padding:8px 10px;border-bottom:1px solid var(--line);}
.cv thead th{font-size:12.5px;color:var(--muted);font-weight:600;border-bottom:1px solid var(--ink);white-space:nowrap;}
.cv tbody tr:last-child td,.cv tbody tr:last-child th{border-bottom:none;}
.cv table.kv th{width:112px;color:var(--ink);font-weight:600;white-space:nowrap;}
.cv table.hist td:first-child{white-space:nowrap;font-variant-numeric:tabular-nums;color:var(--muted);width:132px;}
.cv table.hist td:nth-child(2){white-space:nowrap;color:var(--ink);font-weight:600;width:176px;}
.cv table.bn{margin:8px 0 12px;}
.cv table.bn td:first-child{width:27%;}
.cv table.bn td:nth-child(2){width:36%;}
.cv p.cv-note{font-size:12.5px;color:var(--muted);margin:8px 0 0;}

/* 경력기술서 */
.cv-co{display:flex;justify-content:space-between;align-items:baseline;gap:12px;flex-wrap:wrap;margin:22px 0 6px;}
.cv-co:first-of-type{margin-top:4px;}
.cv-co .role{font-size:13.5px;color:var(--accent-ink);font-weight:600;margin-left:8px;}
.cv-co .when{font-size:13px;color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap;}
.cv p.cv-desc{color:var(--muted);font-size:13.5px;margin:0 0 8px;}
.cv-proj{border-top:1px solid var(--line);margin-top:16px;padding-top:2px;}
.cv-proj>h4{font-size:15px;margin-top:16px;}
.cv-proj>h4 .when{font-size:12.5px;color:var(--muted);font-weight:500;margin-left:8px;font-variant-numeric:tabular-nums;}
.cv-meta{margin:0 0 2px;font-size:13.5px;}
.cv-meta>div{display:grid;grid-template-columns:52px 1fr;gap:0 12px;margin-bottom:4px;}
.cv-meta dt{color:var(--ink);font-weight:600;}
.cv-meta dd{margin:0;}
.cv p.cv-lab{font-size:14px;font-weight:700;color:var(--ink);margin:20px 0 7px;}
.cv ul.cv-cases{list-style:none;padding:0;}
.cv-cases li{display:grid;grid-template-columns:190px 1fr;gap:12px;padding:7px 0;border-bottom:1px solid var(--line);margin:0;}
.cv-cases li:last-child{border-bottom:none;}
.cv-cases a{font-weight:600;}

/* 경력기술서 탭 — 프로젝트마다 「주요 역할」 + 「문제 해결」 소제목 */
.cv p.cv-stack{font-size:12.5px;color:var(--muted);margin:-3px 0 4px;}
.cv h5.cv-ps{font-size:14.5px;font-weight:700;color:var(--ink);margin:22px 0 7px;padding-top:14px;border-top:1px dashed var(--line);letter-spacing:-.01em;}
.cv h5.cv-ps .no{color:var(--accent-ink);margin-right:7px;font-variant-numeric:tabular-nums;}
.cv h5.cv-ps .when{font-size:12.5px;color:var(--muted);font-weight:500;margin-left:8px;}
.cv p.cv-lab+ul{margin-bottom:4px;}
.cv figure.dg{margin:12px 0 4px;}
.cv figure.dg .dgw{border-radius:8px;}
.cv p.cv-more{font-size:13px;margin:8px 0 0;}
.cv-short h4{margin:14px 0 5px;font-size:14.5px;}
.cv-short h4 .when{font-size:12.5px;color:var(--muted);font-weight:500;margin-left:8px;font-variant-numeric:tabular-nums;}

@media (max-width:720px){
  .cv{margin:0 0 28px;border-left:none;border-right:none;border-top:none;border-radius:0;padding:24px 20px 32px;}
  .cv-head h1{font-size:25px;}
  .cv-nums{grid-template-columns:repeat(2,1fr);}
  .cv-nums div:nth-child(3){border-left:none;}
  .cv-nums div:nth-child(n+3){border-top:1px solid var(--line);}
  .cv table.kv th{width:92px;padding-left:0;}
  .cv table.kv td{padding-right:0;}
  .cv table.hist,.cv table.hist tbody,.cv table.hist tr,.cv table.hist td{display:block;width:auto!important;}
  .cv table.hist thead{display:none;}
  .cv table.hist tr{padding:9px 0;border-bottom:1px solid var(--line);}
  .cv table.hist td{border:none;padding:0;white-space:normal!important;}
  .cv table.bn,.cv table.bn tbody,.cv table.bn tr,.cv table.bn td{display:block;width:auto!important;}
  .cv table.bn thead{display:none;}
  .cv table.bn tr{padding:10px 0;border-bottom:1px solid var(--line);}
  .cv table.bn td{border:none;padding:2px 0;}
  .cv table.bn td::before{content:attr(data-l);display:block;font-size:11.5px;color:var(--muted);font-weight:600;margin-top:4px;}
  .cv-cases li{grid-template-columns:1fr;gap:1px;}
}

/* 인쇄 = PDF 저장. 테마와 무관하게 흰 바탕·검은 글씨, A4 */
@page{size:A4;margin:12mm 13mm;}
@media print{
  :root,:root[data-theme="dark"],:root[data-theme="light"]{--ground:#fff;--surface:#fff;--surface2:#f4f4f4;--ink:#000;--body:#1c1c1c;--muted:#444;--faint:#666;--line:#bdbdbd;--accent:#0C5E46;--accent-ink:#0C5E46;color-scheme:light;}
  header.nav,footer,.btn{display:none!important;}
  body.cvpage{background:#fff;font-size:9.6pt;line-height:1.5;}
  .cv{max-width:none;margin:0;padding:0;border:none;border-radius:0;}
  .cv a{color:inherit;text-decoration:none;}
  .cv h2{margin:13px 0 7px;font-size:11.5pt;}
  .cv h3{font-size:11.5pt;}
  .cv h4,.cv-proj>h4{font-size:10.4pt;margin:8px 0 5px;}
  .cv-head{padding-bottom:10px;}
  .cv-head h1{font-size:20pt;}
  .cv p.cv-role{font-size:10.5pt;margin-top:4px;}
  .cv ul.cv-contact{margin-top:6px;font-size:9.4pt;}
  .cv li{margin-bottom:2.5px;}
  .cv p{margin-bottom:5px;}
  .cv p.cv-lab{font-size:9.8pt;margin:10px 0 4px;}
  .cv-meta{font-size:9.4pt;}
  .cv-meta>div{margin-bottom:2px;}
  .cv-nums{margin:8px 0 9px;}
  .cv-nums div{padding:7px 11px;}
  .cv-nums strong{font-size:12pt;}
  .cv-nums span{font-size:8.6pt;}
  .cv th,.cv td{padding:4px 8px;}
  .cv-co{margin:11px 0 3px;}
  .cv-proj{margin-top:7px;}
  .cv p.cv-desc,.cv p.cv-note{font-size:9pt;}
  .cv-cases li{padding:4px 0;}
  .cv table.hist,.cv table.kv{break-inside:avoid;page-break-inside:avoid;}
  .cv h2,.cv h3,.cv h4,.cv-lab,.cv-co,.cv p.cv-desc{break-after:avoid;page-break-after:avoid;}
  .cv li,.cv tr,.cv-nums,.cv-meta>div{break-inside:avoid;page-break-inside:avoid;}
  .cv table{font-size:9.4pt;}
  .cv p.cv-stack{font-size:8.8pt;}
  .cv h5.cv-ps{font-size:10pt;margin:10px 0 4px;padding-top:7px;break-after:avoid;page-break-after:avoid;}
  .cv figure.dg{margin:7px 0 2px;break-inside:avoid;page-break-inside:avoid;}
  .cv figure.dg .dgw{overflow:visible;padding:6px;border-color:#bdbdbd;background:#fff;}
  .cv figure.dg svg{min-width:0;}
  .cv figure.dg figcaption{font-size:8.6pt;margin-top:4px;}
  .cv figure.dg figcaption::before{content:none!important;}
  .cv p.cv-more{font-size:9pt;}
  .cv-short h4{margin:7px 0 3px;}
}
