/* Supplied artwork, packaged as CUR with embedded click hotspots. */
:root {
  --cursor-default: url("assets/cursors/cursor_default.cur"), auto;
  --cursor-pointer: url("assets/cursors/cursor_pointer.cur"), pointer;
  cursor: var(--cursor-default);
}

/* Specificity also covers component stylesheets loaded after this file. */
:root :is(
  a[href],
  button:not(:disabled):not([aria-disabled="true"]),
  select:not(:disabled),
  summary,
  input[type="checkbox"]:not(:disabled),
  input[type="radio"]:not(:disabled),
  input[type="range"]:not(:disabled),
  input[type="color"]:not(:disabled),
  input[type="submit"]:not(:disabled),
  input[type="button"]:not(:disabled),
  label:has(input[type="checkbox"]:not(:disabled)),
  label:has(input[type="radio"]:not(:disabled)),
  [role="button"]:not([aria-disabled="true"]),
  [role="switch"]:not([aria-disabled="true"]),
  [role="tab"]:not([aria-disabled="true"])
) {
  cursor: var(--cursor-pointer);
}

:root :is(
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not(:disabled),
  textarea:not(:disabled),
  [contenteditable="true"]
) {
  cursor: text;
}

:root :is(button:disabled, input:disabled, select:disabled, textarea:disabled, [aria-disabled="true"]) {
  cursor: not-allowed;
}
