
/* Global text-selection deterrent */
html.tss-protected body {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none;
}

/* Keep form fields usable */
html.tss-protected input,
html.tss-protected textarea,
html.tss-protected select,
html.tss-protected [contenteditable="true"],
html.tss-protected .allow-copy {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    user-select: text !important;
    -webkit-touch-callout: default;
}

/* Print copyright notice */
@media print {
    body::after {
        content: "Copyright The Science Signal. All rights reserved.";
        display: block;
        padding: 20px;
        border-top: 1px solid #777;
        font-size: 12pt;
    }
}









/*Screenshot Prevention*/




/* Screenshot deterrence: visible ownership watermark */
body {
    position: relative;
}

.tss-screen-watermark {
    position: fixed;
    inset: 0;
    z-index: 999999;
    pointer-events: none;
    overflow: hidden;
    display: none;
    opacity: 0.12;
    background-image: repeating-linear-gradient(
        -30deg,
        transparent 0,
        transparent 150px,
        rgba(100, 100, 100, 0.02) 150px,
        rgba(100, 100, 100, 0.02) 151px
    );
}

.tss-screen-watermark span {
    position: absolute;
    top: 45%;
    left: 50%;
    width: 100%;
    text-align: center;
    transform: translate(-50%, -50%) rotate(-25deg);
    font-size: clamp(22px, 4vw, 54px);
    font-weight: 700;
    color: #777;
    white-space: nowrap;
    user-select: none;
}

/* Show the watermark when printing */
@media print {
    .tss-screen-watermark {
        display: block !important;
        position: fixed;
    }

    body::after {
        content: "© The Science Signal — Unauthorized reproduction prohibited.";
        display: block;
        padding: 20px;
        font-size: 12pt;
    }
}
