/*
 * Companion CSS to security-disable-copy.js (22 May 2026).
 * Suppresses text selection on the body — but keeps form inputs
 * and contenteditable elements fully selectable so users can edit.
 *
 * Also restores selection on a few utility surfaces where copying
 * is operationally required:
 *   - Audit-log entries on the OBF show page (paras may need to
 *     paste an event description into a bug report)
 *   - <code>/<pre> blocks
 *   - Anything explicitly tagged with the .allow-select utility class
 */

body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Admin sessions: JS adds .portal-admin-user to body — restore everything. */
body.portal-admin-user,
body.portal-admin-user * {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

/* Form inputs must remain selectable so users can edit, copy, and
   paste within the fields they're typing into. */
input,
textarea,
select,
[contenteditable="true"],
.allow-select,
.allow-select *,
code,
pre {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}
