/* =========================================================== */
/* AG Cursor v3 (native)  - drop-in replacement for v2.1        */
/* The system draws the pointer (no lag); ag-cursor.js builds   */
/* the images from --accent / --ink / --paper and switches the  */
/* light or dark version as the mouse moves between areas.      */
/* Phones and tablets keep their normal touch behaviour.        */
/* =========================================================== */
.ag-native { --ag-cur-a: var(--ag-cur-a-dark), auto; --ag-cur-h: var(--ag-cur-h-dark), pointer; }
.ag-native.ag-on-light { --ag-cur-a: var(--ag-cur-a-light), auto; --ag-cur-h: var(--ag-cur-h-light), pointer; }

.ag-native, .ag-native * { cursor: var(--ag-cur-a) !important; }

/* anything clickable: the hand (links and buttons always show a hand, never a themed arrow) */
.ag-native :is(a[href], button, [role="button"], input:not([type="hidden"]), select, label[for], summary, [data-cursor], .ag-clickable),
.ag-native :is(a[href], button, [role="button"], select, label[for], summary, [data-cursor], .ag-clickable) * { cursor: var(--ag-cur-h) !important; }

/* typing and selecting keep the system text cursor */
.ag-native :is(textarea, [contenteditable=""], [contenteditable="true"],
  input:not([type="hidden"], [type="button"], [type="submit"], [type="reset"], [type="checkbox"], [type="radio"], [type="range"], [type="color"], [type="file"], [type="image"])) { cursor: text !important; }

/* dragging */
.ag-native.ag-native :is(.ag-grab, [data-cursor="grab"]) { cursor: grab !important; }
.ag-native.ag-native :is(.ag-grab, [data-cursor="grab"]):active { cursor: grabbing !important; }
