/* Site-wide copy protection (deterrent — not absolute security) */
html.site-protected,
html.site-protected body {
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

html.site-protected img,
html.site-protected a {
    -webkit-user-drag: none;
    user-drag: none;
}

html.site-protected input,
html.site-protected textarea,
html.site-protected select,
html.site-protected [contenteditable="true"],
html.site-protected .allow-copy,
html.site-protected .allow-copy * {
    -webkit-user-select: text;
    -moz-user-select: text;
    user-select: text;
    -webkit-touch-callout: default;
}

.protected-contact,
.no-copy-zone,
.protected-email-block {
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.protected-contact {
    display: inline;
    cursor: pointer;
    text-decoration: none;
    border-bottom: 1px dotted rgba(202, 163, 80, 0.55);
    color: inherit;
    font-weight: inherit;
}

.protected-contact:hover,
.protected-contact:focus-visible {
    color: var(--cut-gold, #caa350);
    outline: none;
}

.protected-email-part,
.protected-email-at {
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    pointer-events: none;
}

.protected-contact::selection,
.protected-email-part::selection,
.protected-email-at::selection {
    background: transparent;
    color: inherit;
}

@media print {
    html.site-protected::before {
        content: "Chinhoyi University of Technology Library — printed copy";
        display: block;
        font-size: 0.7rem;
        color: #64748b;
        margin-bottom: 0.5rem;
    }

    .protected-contact::after {
        content: " (contact via library desk)";
        font-size: 0.75rem;
        color: #64748b;
    }
}
