/* 인쇄 시 여백 설정 */
@media print {
    @page {
        size: A3;
    }
    body {
        margin: 0;
        /* A3 가용영역 확장(폭↑) + 세로 간격 축소로 페이지 수 감소 */
        max-width: 297mm; /* A3 width */
        padding-block: 10mm;
        padding-inline: 24mm !important;
    }
    .header {
        break-after: avoid;
        margin-bottom: 14px;
    }
    h2 {
        /* 제목 간 세로 여백을 줄여 인쇄 페이지 길이 완화 */
        margin-top: 24px;
        margin-bottom: 10px;
        font-size: 13.5pt;
    }
    p {
        /* 인쇄 페이지 수 감소 목적: 줄 간격/아래 여백을 약간 축소 */
        line-height: 1.45;
        margin-bottom: 6px;
        font-size: 11pt;
    }
    li {
        margin-bottom: 2px;
        font-size: 11pt;
    }
    .contact-info {
        gap: 12px;
        flex-wrap: wrap;
    }
    .contact-info li::after {
        color: #bbb;
    }
}
/* 기본 설정 */
body {
    font-family: "Noto Sans KR", "Malgun Gothic", sans-serif;
    color: #333333;
    background-color: #ffffff;
    line-height: 1.6;
    margin: 0 auto;
    width: 100%;
    /* 웹 미리보기/업로드 화면에서 불필요한 줄바꿈을 줄이기 위해
       A4(mm) 폭으로 고정하지 않음 */
    max-width: 900px;
    padding-block: 32px;
    padding-inline: clamp(18px, 4vw, 40px);
    box-sizing: border-box;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

/* 타이포그래피 */
h1 {
    font-size: 26pt;
    font-weight: 700;
    margin: 0 0 5px 0;
    color: #111;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 13pt;
    font-weight: 700;
    color: #2563eb; /* 절제된 파란색 포인트 */
    border-bottom: 2px solid #2563eb;
    padding-bottom: 6px;
    margin-top: 35px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

h3 {
    font-size: 12pt;
    font-weight: 700;
    margin: 20px 0 5px 0;
    color: #000;
}

p {
    margin: 0 0 10px 0;
    font-size: 10.5pt;
    text-align: justify;
    word-break: keep-all;
}

a {
    color: #444;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: rgba(0, 0, 0, 0.2);
}

a:hover {
    color: #1d4ed8;
    text-decoration-color: #1d4ed8;
}

/* 헤더 섹션 */
.header {
    margin-bottom: 30px;
}

.role {
    font-size: 14pt;
    color: #555;
    font-weight: 500;
    margin-bottom: 15px;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    font-size: 10pt;
    color: #444;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
}

.contact-info li {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.contact-info li > a {
    word-break: break-all;
    color: inherit;
    text-decoration-color: rgba(0, 0, 0, 0.25);
}

.contact-info li > a:hover {
    color: #1d4ed8;
    text-decoration-color: #1d4ed8;
}

.contact-info li::after {
    content: "·";
    margin-left: 14px;
    margin-right: 2px;
    color: #c4c4c4;
    font-weight: 700;
    flex-shrink: 0;
}

.contact-info li:last-child::after {
    display: none;
}

/* Summary & Core Strengths */
.summary-text strong {
    background-color: rgba(37, 99, 235, 0.05);
    color: #1d4ed8;
    padding: 0 2px;
}

/* Summary 넘버링: strong과 구분, 테마 내 회색 톤 */
.summary-text .summary-num {
    font-weight: 700;
    background: none;
    padding: 0;
}

.summary-text .summary-item {
    display: block;
    margin-bottom: 0.5em;
}

.summary-text .summary-item:last-child {
    margin-bottom: 0;
}

ul {
    padding-left: 20px;
    margin: 5px 0 15px 0;
}

li {
    font-size: 10.5pt;
    margin-bottom: 4px;
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 8px 10px;
    font-size: 10.5pt;
}

.skill-category {
    font-weight: 700;
    color: #444;
}

/* Project 섹션 */
.project-item {
    margin-bottom: 30px;
    padding: 0;
    border: none;
    background: none;
}

.project-item + .project-item {
    margin-top: 28px;
    padding-top: 16px;
    border-top: 2px solid #e5e7eb;
}

@media print {
    /* 인쇄 시 프로젝트 블록 세로 여백을 줄여 페이지 수 완화 */
    .project-item {
        margin-bottom: 18px;
    }
    .project-item + .project-item {
        margin-top: 18px;
        padding-top: 10px;
    }
    ul {
        margin: 4px 0 10px 0;
    }
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 6px;
    margin-bottom: 12px;
}

.project-title {
    font-size: 12pt;
    font-weight: 700;
    color: #000;
}

.project-links a {
    font-size: 9pt;
    color: #444;
    text-decoration-color: rgba(0, 0, 0, 0.2);
}

.project-links a:hover {
    color: #1d4ed8;
    text-decoration-color: #1d4ed8;
}

.project-link-private {
    font-size: 9pt;
    color: #94a3b8;
    font-style: normal;
}

.project-meta {
    font-size: 9.5pt;
    color: #666;
    margin-bottom: 8px;
    font-family: "Noto Sans KR", sans-serif;
}

.project-desc {
    font-style: italic;
    color: #555;
    margin-bottom: 12px;
    font-size: 10pt;
}

.project-details ul {
    list-style-type: disc;
}

.project-details ul ul {
    list-style-type: circle;
    margin-top: 3px;
    margin-bottom: 8px;
    color: #555;
    font-size: 10pt;
}

.project-sub-title {
    font-weight: 700;
    display: block;
    margin-bottom: 2px;
    color: #333;
}

/* Education */
.education-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 10.5pt;
}

.edu-school {
    font-weight: 700;
}

.edu-period {
    color: #666;
}

/* 기타 */
.divider {
    margin: 0 5px;
    color: #ccc;
}

@media (max-width: 768px) {
    body {
        margin: 0;
        max-width: 100%;
        padding-inline: 16px;
        padding-block: 16px;
    }

    .header {
        margin-bottom: 24px;
    }

    .contact-info {
        gap: 10px 14px;
        font-size: 9.5pt;
        justify-content: flex-start;
    }

    .contact-info li::after {
        margin-left: 12px;
    }
}

@media (max-width: 480px) {
    .contact-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .contact-info li::after {
        display: none;
    }
}

/* 인쇄용 최종 오버라이드(아래쪽 기본 규칙에 의해 덮이지 않게 !important 강제) */
@media print {
    h2 {
        font-size: 13.5pt !important;
    }
    p {
        font-size: 11pt !important;
        line-height: 1.45 !important;
    }
    /* "지원 동기"처럼 section 직계 p(서술형)는 줄간격이 너무 타이트해 보일 수 있어 약간 완화 */
    section > p:not(.summary-text) {
        line-height: 1.55 !important;
    }
    li {
        font-size: 11pt !important;
    }
    .skills-grid {
        font-size: 11pt !important;
    }
    .project-meta {
        font-size: 10pt !important;
    }
    .project-desc {
        font-size: 10.5pt !important;
    }
    .project-links a {
        font-size: 9.5pt !important;
    }
    .education-item {
        font-size: 11pt !important;
    }
}
