/* Native, static cursors only. No tracking, event listeners or hidden system cursor.
 * Explicit SVG dimensions + viewBox keep the assets small and resolution-independent.
 * Respect accessibility preferences and never change primary touch/pen behaviour.
 */
@media (hover: hover) and (pointer: fine) and (forced-colors: none) and (prefers-contrast: no-preference) and (prefers-reduced-motion: no-preference) {
    html, body {
        cursor: url("../images/cursors/crimeq-arrow.svg") 3 2, default;
    }

    /* Cursor-only priority beats existing page-specific/inline pointer declarations.
     * Child icons/text keep the same hand as their interactive parent.
     */
    :where(:is(a[href], button, summary, select, label[for], [role="button"], [role="link"], input:is([type="button"], [type="submit"], [type="reset"], [type="checkbox"], [type="radio"], [type="color"], [type="file"])):not(:disabled):not([aria-disabled="true"]),
    :is(a[href], button, summary, [role="button"], [role="link"]):not(:disabled):not([aria-disabled="true"]) *) {
        cursor: url("../images/cursors/crimeq-hand.svg") 13 2, pointer !important;
    }

    /* Editing and selection retain the recognisable platform I-beam. */
    :where(input:not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="range"]):not([type="file"]):not([type="hidden"]),
    textarea, [contenteditable="true"], [contenteditable=""], [contenteditable="plaintext-only"],
    :is([contenteditable="true"], [contenteditable=""], [contenteditable="plaintext-only"]) *) {
        cursor: text !important;
    }

    :is(button, input, select, textarea):disabled,
    :is(button, input, select, textarea):disabled *,
    [aria-disabled="true"], [aria-disabled="true"] * {
        cursor: not-allowed !important;
    }
    /* Native resize handles, range sliders and grab/grabbing map gestures are untouched. */
}
