/* Task 35.5 — Heritage Cursor (visual only)
   Default: Heritage Arrow A · hotspot 2 2
   Clickable: Natural Hand (Task 35.4) · hotspot 10 1
   Does not alter Trust/Capital/Chamber logic or markup. */

@media (hover: hover) and (pointer: fine) {
  html.mkm-polish-27-2,
  html.mkm-polish-27-2 body {
    cursor: url("../assets/cursors/heritage-arrow.svg") 2 2,
            url("../assets/cursors/heritage-arrow.png") 2 2,
            auto;
  }

  html.mkm-polish-27-2 :is(
    a[href],
    button,
    summary,
    select,
    label[for],
    [role="button"],
    [role="tab"],
    [role="menuitem"],
    .nav-item,
    .gate-btn,
    .trust-access-row--clickable,
    .trust-guide,
    .modal-close,
    .convocation-location-btn,
    .messages-icon-btn,
    .messages-item,
    .messages-send-btn,
    .messages-refresh-btn,
    .page-btn,
    .back-btn,
    .change-password-btn,
    .admin-btn,
    .admin-quick-btn,
    .location-action-btn,
    .capital-btn-ghost,
    .capital-drawer-close,
    .capital-m-card,
    .alloc-legend-item,
    .mkm-cd-btn,
    .mkm-cd-close,
    .mkm-cd-copy,
    .members-table tbody tr,
    .investments-table.capital-table-polish tbody tr,
    #sanctum-view .sanctum-path-card,
    #login-submit,
    #login-eyeball,
    input[type="button"],
    input[type="submit"],
    input[type="reset"],
    input[type="checkbox"],
    input[type="radio"]
  ):not(:disabled):not([disabled]):not([aria-disabled="true"]) {
    cursor: url("../assets/cursors/heritage-hand.svg") 10 1,
            url("../assets/cursors/heritage-hand.png") 10 1,
            pointer;
  }

  /* Match higher-specificity rules already in Trust / Seal CSS */
  html.mkm-polish-27-2 #trust-view .trust-access-row--clickable:not([aria-disabled="true"]),
  html.mkm-polish-27-2 #convocation-modal .convocation-location-btn:not(:disabled),
  html.mkm-polish-27-2 .nav-item.logoutButton {
    cursor: url("../assets/cursors/heritage-hand.svg") 10 1,
            url("../assets/cursors/heritage-hand.png") 10 1,
            pointer;
  }

  /* setupConvocationClick sets inline style.cursor=pointer on #convocation-row.
     Inline beats stylesheet unless !important. Cover the row and ACTIVE pill. */
  html.mkm-polish-27-2 #convocation-row,
  html.mkm-polish-27-2 #convocation-row * {
    cursor: url("../assets/cursors/heritage-hand.svg") 10 1,
            url("../assets/cursors/heritage-hand.png") 10 1,
            pointer !important;
  }

  html.mkm-polish-27-2 :is(
    input,
    textarea,
    [contenteditable="true"]
  ):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]) {
    cursor: text !important;
  }

  html.mkm-polish-27-2 :is(button, input, select, textarea, .capital-btn-ghost, .mkm-cd-btn):disabled,
  html.mkm-polish-27-2 [aria-disabled="true"],
  html.mkm-polish-27-2 [disabled] {
    cursor: not-allowed !important;
  }
}

@media (hover: none), (pointer: coarse) {
  html.mkm-polish-27-2,
  html.mkm-polish-27-2 *,
  html.mkm-polish-27-2 #convocation-row,
  html.mkm-polish-27-2 #convocation-row * {
    cursor: auto !important;
  }
}
