/* Best-effort anti-copy styles.
   Note: This cannot fully prevent copying; it only discourages selection/copy on marked areas. */

/* Main protected wrapper */
.no-copy {
    /* Disable selection */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;

    /* iOS Safari context menu / callout */
    -webkit-touch-callout: none;

    /* Prevent drag selection */
    -webkit-user-drag: none;
    user-drag: none;

    cursor: default;
}

/* In some browsers, selection can start from children; enforce */
.no-copy * {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;

    -webkit-user-drag: none;
    user-drag: none;
}

/* Allow copy/select inside specific exceptions */
.no-copy .allow-copy,
.no-copy .allow-copy * {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;

    -webkit-user-drag: auto !important;
    user-drag: auto !important;

    cursor: text;
}

/* Never break forms: inputs must remain usable */
.no-copy input,
.no-copy textarea,
.no-copy select,
.no-copy button,
.no-copy [contenteditable="true"] {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;

    cursor: auto;
}

/* Optional: prevent long-press highlight on mobile (still best-effort) */
.no-copy a,
.no-copy button {
    -webkit-tap-highlight-color: transparent;
}
/* Watermark overlay (best-effort) */
.watermark {
    position: relative;
}

.watermark::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;

    /* Set by JS as CSS var: --wm-bg */
    background-image: var(--wm-bg);
    background-repeat: repeat;
    background-size: 360px 220px;

    opacity: 0.18;
    z-index: 5;
}

@media print {
    .watermark::after {
        opacity: 0.30;
    }
}
