/* =========================================================
   CUSTOM CURSOR SET — "minimal glass" (EXPERIMENTAL, opt-in)

   Phase 2 of the cursor comparison. Only active when <html> has the
   class "custom-cursors"; without it this file has no effect and the
   site uses native cursors (phase 1).

   Toggle from the DevTools console:
     document.documentElement.classList.toggle('custom-cursors')

   Every url() has the equivalent native cursor as fallback.
   !important is used on purpose: existing rules declaring cursors are
   more specific (e.g. .layout .content-wrapper .skill-legend .level-badge),
   and this is a self-contained, switchable layer. If phase 2 is
   discarded, delete this file, its <link> and img/cursors/.
========================================================= */

/* default arrow (inherited by everything) */
html.custom-cursors {
  cursor: url("../img/cursors/default.svg") 2 2, default;
}

/* clickable */
html.custom-cursors :is(
  a[href],
  button:not(:disabled),
  summary,
  [data-modal-open],
  [id="menu-toggle"], /* attribute, not #id: keeps this :is() list low-specificity so "help" below can win */
  .theme-toggle-label,
  .custom-switch,
  .custom-switch *
) {
  cursor: url("../img/cursors/pointer.svg") 9 2, pointer !important;
}

/* text entry */
html.custom-cursors :is(
  input:not([type="checkbox"], [type="radio"], [type="submit"], [type="button"]),
  textarea
) {
  cursor: url("../img/cursors/text.svg") 11 11, text !important;
}

/* extra information (tooltips, abbreviations) */
html.custom-cursors :is(abbr[title], .tags li[data-level], .level-badge) {
  cursor: url("../img/cursors/help.svg") 2 2, help !important;
}

/* locked project slots */
html.custom-cursors .project[data-status="en-desarrollo"] {
  cursor: url("../img/cursors/locked.svg") 2 2, not-allowed !important;
}
