/* Disable selection/callout globally */
html, body {
  -webkit-text-size-adjust: 100%;
  -webkit-user-select: none;
  user-select: none;

  -webkit-touch-callout: none;      /* iOS long-press menu */
  -webkit-tap-highlight-color: transparent;
  caret-color: transparent;         /* hide caret when selection is blocked */
}

/* Keep form fields usable */
input, textarea, select, button {
  -webkit-user-select: text;
  user-select: text;
  caret-color: auto;
}

/* If you have any explicit selectable areas, opt-in with .allow-select */
.allow-select {
  -webkit-user-select: text !important;
  user-select: text !important;
  caret-color: auto !important;
}

/* Optional: per-block no-copy helper */
.no-copy {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  caret-color: transparent;
}

/* Prevent iOS image save sheet */
img {
  -webkit-user-drag: none;
  user-drag: none;
}

/* Hard print sabotage */
@media print {
  /* Remove colors backgrounds */
  * {
    color: #000 !important;
    background: transparent !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  /* Hide everything by default */
  body * {
    visibility: hidden !important;
  }
  /* Ensure layout collapses */
  html, body {
    height: auto !important;
    overflow: visible !important;
  }
}
