/*
 * Loaded only on Article/Details via _HomeLayout.
 * These are browser-level deterrents, not encryption: a determined visitor can
 * still use devtools or the CDN URL directly. They stop ordinary right-click
 * "Save image as", dragging an image to the desktop, and printing/PDF export.
 */

/* --- 1. Image download / drag protection --- */
body.article-protected #main img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /* Right-click then targets the wrapper instead of the <img>, so the
       browser's "Save image as..." context item never appears. */
    pointer-events: none;
}

body.article-protected #main {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* --- 2 & 3. Print / Save-as-PDF protection --- */
.article-print-blocked {
    display: none;
}

@media print {
    body.article-protected #main {
        display: none !important;
    }

    body.article-protected .article-print-blocked {
        display: block !important;
        position: absolute;
        top: 12%;
        left: 0;
        right: 0;
        padding: 0 2rem;
        text-align: center;
        font: 600 15px/1.6 Arial, Helvetica, sans-serif;
        color: #0f172a;
    }
}
