/* =========================================================================
   §AITC — AIToolsay branded cursor
   -------------------------------------------------------------------------
   GENERATED by components/tools/build-cursor-css.php from cursor-css.tpl.
   Edit the template / the SVGs in the builder, then re-run it.

   The pointer is a NATIVE cursor (SVG via `cursor:url()`): it never lags,
   never covers text, and works with JS off.
     · arrow — brand-blue cut-glass arrow, everywhere, INCLUDING clickables
               (2026-11-16: user asked for no hover change and no ring)
     · text  — the native I-beam on every editable field
   Explicit native cursors elsewhere (grab, resize, not-allowed, wait…) are
   left alone: they are set on the element, so they beat inheritance.

   Only on fine pointers with hover (mouse/trackpad) — html.aitc-on is set by
   partials/aits-cursor only then. Touch devices get nothing.
   Light/dark: the vars are re-declared under body.theme-dark.
   ========================================================================= */

html.aitc-on {
    --aitc-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='4' y1='3' x2='22' y2='26' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='0' stop-color='%237FB4FF'/%3E%3Cstop offset='.55' stop-color='%233680ED'/%3E%3Cstop offset='1' stop-color='%231F56B8'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg transform='translate(0 1.2)' fill='none' stroke='%230B1B3A' stroke-linejoin='round'%3E%3Cpath d='M4.6 3.1C3.9 2.8 3.2 3.5 3.5 4.2L12.1 27.7C12.4 28.5 13.5 28.5 13.8 27.7L16.9 18.9C17 18.5 17.3 18.2 17.7 18.1L26.6 15C27.4 14.7 27.4 13.6 26.6 13.3Z' stroke-width='5' stroke-opacity='.10'/%3E%3Cpath d='M4.6 3.1C3.9 2.8 3.2 3.5 3.5 4.2L12.1 27.7C12.4 28.5 13.5 28.5 13.8 27.7L16.9 18.9C17 18.5 17.3 18.2 17.7 18.1L26.6 15C27.4 14.7 27.4 13.6 26.6 13.3Z' stroke-width='3.2' stroke-opacity='.18'/%3E%3C/g%3E%3Cpath d='M4.6 3.1C3.9 2.8 3.2 3.5 3.5 4.2L12.1 27.7C12.4 28.5 13.5 28.5 13.8 27.7L16.9 18.9C17 18.5 17.3 18.2 17.7 18.1L26.6 15C27.4 14.7 27.4 13.6 26.6 13.3Z' fill='url(%23g)' stroke='%23FFFFFF' stroke-width='1.7' stroke-linejoin='round'/%3E%3Cpath d='M4.2 3.6L17.3 18.5L13.8 27.7C13.5 28.5 12.4 28.5 12.1 27.7L3.5 4.2Z' fill='%230B2A66' fill-opacity='.22'/%3E%3Cpath d='M5.6 5.2L9.3 15.4' stroke='%23fff' stroke-opacity='.55' stroke-width='1.1' stroke-linecap='round'/%3E%3C/svg%3E") 4 3, auto;
    --aitc-ptr:   url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='4' y1='3' x2='22' y2='26' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='0' stop-color='%237FB4FF'/%3E%3Cstop offset='.55' stop-color='%233680ED'/%3E%3Cstop offset='1' stop-color='%231F56B8'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg transform='translate(0 1.2)' fill='none' stroke='%230B1B3A' stroke-linejoin='round'%3E%3Cpath d='M4.6 3.1C3.9 2.8 3.2 3.5 3.5 4.2L12.1 27.7C12.4 28.5 13.5 28.5 13.8 27.7L16.9 18.9C17 18.5 17.3 18.2 17.7 18.1L26.6 15C27.4 14.7 27.4 13.6 26.6 13.3Z' stroke-width='5' stroke-opacity='.10'/%3E%3Cpath d='M4.6 3.1C3.9 2.8 3.2 3.5 3.5 4.2L12.1 27.7C12.4 28.5 13.5 28.5 13.8 27.7L16.9 18.9C17 18.5 17.3 18.2 17.7 18.1L26.6 15C27.4 14.7 27.4 13.6 26.6 13.3Z' stroke-width='3.2' stroke-opacity='.18'/%3E%3C/g%3E%3Cpath d='M4.6 3.1C3.9 2.8 3.2 3.5 3.5 4.2L12.1 27.7C12.4 28.5 13.5 28.5 13.8 27.7L16.9 18.9C17 18.5 17.3 18.2 17.7 18.1L26.6 15C27.4 14.7 27.4 13.6 26.6 13.3Z' fill='url(%23g)' stroke='%23FFFFFF' stroke-width='1.7' stroke-linejoin='round'/%3E%3Cpath d='M4.2 3.6L17.3 18.5L13.8 27.7C13.5 28.5 12.4 28.5 12.1 27.7L3.5 4.2Z' fill='%230B2A66' fill-opacity='.22'/%3E%3Cpath d='M5.6 5.2L9.3 15.4' stroke='%23fff' stroke-opacity='.55' stroke-width='1.1' stroke-linecap='round'/%3E%3C/svg%3E") 4 3, pointer;

    cursor: var(--aitc-arrow);
}
html.aitc-on body.theme-dark {
    --aitc-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='4' y1='3' x2='22' y2='26' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='0' stop-color='%23B9D8FF'/%3E%3Cstop offset='.55' stop-color='%2360A4F5'/%3E%3Cstop offset='1' stop-color='%233680ED'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg transform='translate(0 0)' fill='none' stroke='%233680ED' stroke-linejoin='round'%3E%3Cpath d='M4.6 3.1C3.9 2.8 3.2 3.5 3.5 4.2L12.1 27.7C12.4 28.5 13.5 28.5 13.8 27.7L16.9 18.9C17 18.5 17.3 18.2 17.7 18.1L26.6 15C27.4 14.7 27.4 13.6 26.6 13.3Z' stroke-width='6' stroke-opacity='.22'/%3E%3Cpath d='M4.6 3.1C3.9 2.8 3.2 3.5 3.5 4.2L12.1 27.7C12.4 28.5 13.5 28.5 13.8 27.7L16.9 18.9C17 18.5 17.3 18.2 17.7 18.1L26.6 15C27.4 14.7 27.4 13.6 26.6 13.3Z' stroke-width='4' stroke-opacity='.40'/%3E%3C/g%3E%3Cpath d='M4.6 3.1C3.9 2.8 3.2 3.5 3.5 4.2L12.1 27.7C12.4 28.5 13.5 28.5 13.8 27.7L16.9 18.9C17 18.5 17.3 18.2 17.7 18.1L26.6 15C27.4 14.7 27.4 13.6 26.6 13.3Z' fill='url(%23g)' stroke='%23FFFFFF' stroke-width='1.7' stroke-linejoin='round'/%3E%3Cpath d='M4.2 3.6L17.3 18.5L13.8 27.7C13.5 28.5 12.4 28.5 12.1 27.7L3.5 4.2Z' fill='%230B2A66' fill-opacity='.18'/%3E%3Cpath d='M5.6 5.2L9.3 15.4' stroke='%23fff' stroke-opacity='.55' stroke-width='1.1' stroke-linecap='round'/%3E%3C/svg%3E") 4 3, auto;
    --aitc-ptr:   url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='4' y1='3' x2='22' y2='26' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='0' stop-color='%23B9D8FF'/%3E%3Cstop offset='.55' stop-color='%2360A4F5'/%3E%3Cstop offset='1' stop-color='%233680ED'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg transform='translate(0 0)' fill='none' stroke='%233680ED' stroke-linejoin='round'%3E%3Cpath d='M4.6 3.1C3.9 2.8 3.2 3.5 3.5 4.2L12.1 27.7C12.4 28.5 13.5 28.5 13.8 27.7L16.9 18.9C17 18.5 17.3 18.2 17.7 18.1L26.6 15C27.4 14.7 27.4 13.6 26.6 13.3Z' stroke-width='6' stroke-opacity='.22'/%3E%3Cpath d='M4.6 3.1C3.9 2.8 3.2 3.5 3.5 4.2L12.1 27.7C12.4 28.5 13.5 28.5 13.8 27.7L16.9 18.9C17 18.5 17.3 18.2 17.7 18.1L26.6 15C27.4 14.7 27.4 13.6 26.6 13.3Z' stroke-width='4' stroke-opacity='.40'/%3E%3C/g%3E%3Cpath d='M4.6 3.1C3.9 2.8 3.2 3.5 3.5 4.2L12.1 27.7C12.4 28.5 13.5 28.5 13.8 27.7L16.9 18.9C17 18.5 17.3 18.2 17.7 18.1L26.6 15C27.4 14.7 27.4 13.6 26.6 13.3Z' fill='url(%23g)' stroke='%23FFFFFF' stroke-width='1.7' stroke-linejoin='round'/%3E%3Cpath d='M4.2 3.6L17.3 18.5L13.8 27.7C13.5 28.5 12.4 28.5 12.1 27.7L3.5 4.2Z' fill='%230B2A66' fill-opacity='.18'/%3E%3Cpath d='M5.6 5.2L9.3 15.4' stroke='%23fff' stroke-opacity='.55' stroke-width='1.1' stroke-linecap='round'/%3E%3C/svg%3E") 4 3, pointer;
}

html.aitc-on body { cursor: var(--aitc-arrow); }

/* ---- Clickables → same arrow (no hover swap, no OS hand) --------------------------------------- */
html.aitc-on body :is(
    a[href], button, summary, label[for], select,
    [role="button"], [role="link"], [role="tab"], [role="menuitem"], [role="option"], [role="switch"], [role="checkbox"], [role="radio"],
    .btn, [onclick], [wire\:click], [data-bs-toggle], [data-toggle],
    input[type="submit"], input[type="button"], input[type="reset"], input[type="checkbox"],
    input[type="radio"], input[type="range"], input[type="color"], input[type="file"], input[type="image"]
) { cursor: var(--aitc-ptr); }

/* children of a link/button inherit the link's cursor, but only if nothing
   else re-declared it — the img/svg/span inside a card link must not drop
   back to the plain arrow. */
html.aitc-on body :is(a[href], button, [role="button"], .btn) * { cursor: inherit; }

/* ---- Editable text → native I-beam (never the arrow over a caret) ------- */
html.aitc-on body :is(
    textarea,
    input:not([type]),
    input:is([type="text"], [type="search"], [type="email"], [type="url"], [type="tel"], [type="password"], [type="number"], [type="date"], [type="datetime-local"], [type="month"], [type="time"], [type="week"]),
    [contenteditable=""], [contenteditable="true"], [contenteditable="plaintext-only"],
    .tox-edit-area, .ql-editor, .CodeMirror, .cm-content
),
html.aitc-on body :is([contenteditable=""], [contenteditable="true"]) * { cursor: text; }

/* ---- Disabled → native not-allowed ---------------------------------------- */
html.aitc-on body :is(:disabled, [aria-disabled="true"], .disabled),
html.aitc-on body :is(:disabled, [aria-disabled="true"], .disabled) * { cursor: not-allowed; }

/* ---- JS fallback: elements whose OWN stylesheet says pointer/default ----- */
html.aitc-on body [data-aitc-c="p"] { cursor: var(--aitc-ptr) !important; }
html.aitc-on body [data-aitc-c="a"] { cursor: var(--aitc-arrow) !important; }
