/* ==================================================
   PRINT ONLY - ZERO MARGIN TOP (상단 여백 제거 최종)
   ================================================== */

@media print {
    /* 1. 페이지 전체 여백을 0으로 설정 (가장 중요) */
    @page {
        margin-top: 0 !important;
        margin-bottom: 1cm;
    }

    /* 2. 모든 상위 컨테이너의 여백과 높이 초기화 */
    html, body, .site, #page, .site-header, .inside-header, #masthead {
        margin-top: 0 !important;
        padding-top: 0 !important;
        height: auto !important;
        min-height: 0 !important;
    }

    /* 3. 헤더 영역을 아예 보이지 않게 하고 공간 삭제 */
    .site-header, .inside-header, .header-widget {
        display: none !important;
        visibility: hidden !important;
    }

    /* 4. 본문 내용 시작점을 위로 강제 끌어올리기 */
    /* -50px 정도 마진을 주어 테마가 남긴 미세한 빈 공간까지 덮어버립니다. */
    .site-content, 
    .content-area, 
    #main, 
    .entry-content, 
    .geo-content {
        margin-top: -30px !important; /* 위로 더 올리려면 숫자를 더 키우세요 (예: -50px) */
        padding-top: 0 !important;
        position: relative !important;
        top: 0 !important;
    }

    /* 5. 제목(H1)의 상단 여백 제거 */
    h1.entry-title, 
    .entry-header,
    .page-header {
        margin-top: 0 !important;
        padding-top: 10px !important; /* 글자가 잘리지 않을 정도만 부여 */
    }

    /* 6. 기타 인쇄 불필요 요소 제거 */
    .sidebar, .site-footer, .main-navigation, .geo-share-wrap {
        display: none !important;
    }
}