/* ============================================================
   Guardian Law — Print Stylesheet
   헤더/푸터/사이드바 숨김, 본문만 인쇄
   ============================================================ */

@media print {
    /* 비필수 요소 숨김 */
    .gl-header,
    .gl-footer,
    .gl-sidebar,
    .gl-float-kakao,
    .gl-scroll-top,
    .gl-reading-progress,
    .gl-toc,
    .gl-post-nav,
    .gl-related-posts,
    .gl-hero-cta,
    .gl-hero__cta,
    .gl-btn,
    .gl-skip-to-content,
    .gl-mobile-nav,
    .gl-mobile-bottom-bar,
    .gl-breadcrumbs,
    .gl-category-hero-actions,
    .gl-sidebar-cta-buttons,
    iframe,
    video {
        display: none !important;
    }

    /* 레이아웃 리셋 */
    body {
        font-size: 12pt;
        line-height: 1.6;
        color: #000;
        background: #fff;
    }

    .gl-single-layout {
        display: block;
        max-width: 100%;
        padding: 0;
    }

    .gl-post-content {
        font-size: 11pt;
    }

    .gl-post-title {
        font-size: 20pt;
        color: #000;
    }

    /* 링크 URL 표시 */
    .gl-post-content a[href]::after {
        content: ' (' attr(href) ')';
        font-size: 9pt;
        color: #666;
    }

    .gl-post-content a[href^="#"]::after,
    .gl-post-content a[href^="javascript"]::after {
        content: '';
    }

    /* 페이지 브레이크 방지 */
    .gl-post-content h2,
    .gl-post-content h3 {
        page-break-after: avoid;
    }

    .gl-post-content img,
    .gl-post-content table {
        page-break-inside: avoid;
    }

    /* 이미지 최대 너비 */
    img {
        max-width: 100% !important;
        box-shadow: none !important;
    }
}
