/*
 * HelpSafe Law
 * Print
 *
 * Стили печати и сохранения правовых материалов в PDF.
 */

@media print {

    /* ========================================================
       1. ОБЩИЕ НАСТРОЙКИ
       ======================================================== */

    @page {
        margin:
            18mm;
    }

    body {
        background:
            #ffffff !important;

        color:
            #000000 !important;

        font-size:
            11pt;

        line-height:
            1.5;
    }


    /* ========================================================
       2. УБИРАЕМ ИНТЕРФЕЙС
       ======================================================== */

    .site-header,
    .mobile-menu,
    .site-footer,
    .mobile-menu-toggle,
    .law-search,
    .law-text-link {
        display:
            none !important;
    }


    /* ========================================================
       3. ОСНОВНОЙ КОНТЕНТ
       ======================================================== */

    .site-main {
        overflow:
            visible;
    }

    .law-container {
        max-width:
            none;

        padding:
            0;
    }

    .law-section {
        padding:
            20px 0;

        page-break-inside:
            avoid;
    }


    /* ========================================================
       4. ССЫЛКИ
       ======================================================== */

    a {
        color:
            #000000 !important;

        text-decoration:
            none !important;
    }


    /* ========================================================
       5. УБИРАЕМ ДЕКОР
       ======================================================== */

    .law-hero,
    .law-section--how {
        background:
            #ffffff !important;
    }

    .law-hero::before,
    .law-hero::after,
    .law-direction-card::after {
        display:
            none !important;
    }


    /* ========================================================
       6. КАРТОЧКИ
       ======================================================== */

    .law-direction-card,
    .law-question-card,
    .law-act-card,
    .law-warning {
        box-shadow:
            none !important;

        border:
            1px solid #cccccc !important;

        break-inside:
            avoid;
    }


    /* ========================================================
       7. ТЁМНЫЕ БЛОКИ
       ======================================================== */

    .law-section--how,
    .law-direction-card--large {
        color:
            #000000 !important;
    }

    .law-section--how h2,
    .law-section--how h3,
    .law-section--how p,
    .law-direction-card--large h3,
    .law-direction-card--large p {
        color:
            #000000 !important;
    }


    /* ========================================================
       8. ССЫЛКИ В ПЕЧАТНОМ ВИДЕ
       ======================================================== */

    .law-content a[href]::after {
        content:
            " (" attr(href) ")";

        font-size:
            8pt;

        word-break:
            break-all;
    }
}