/* ============================================================
   protect.css — content copy guard (public site only)
   Pairs with /assets/js/protect.js. Remove both to undo.
   Anything inside [data-allow-copy] stays fully selectable.
   ============================================================ */

html.rt-protected body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;   /* no iOS long-press "Copy / Share" sheet */
  -webkit-tap-highlight-color: transparent;
}

/* People must still be able to type, paste and select in anything they fill in. */
html.rt-protected input,
html.rt-protected textarea,
html.rt-protected select,
html.rt-protected [contenteditable="true"],
html.rt-protected [data-allow-copy],
html.rt-protected [data-allow-copy] * {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

/* Images: no drag-to-desktop, no long-press save sheet. */
html.rt-protected img,
html.rt-protected svg,
html.rt-protected picture {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
  pointer-events: none;
}

/* ...but an image wrapped in a link or button still has to be clickable. */
html.rt-protected a img,
html.rt-protected button img,
html.rt-protected a svg,
html.rt-protected button svg,
html.rt-protected label img,
html.rt-protected [role="button"] img,
html.rt-protected [data-allow-copy] img {
  pointer-events: auto;
}

/* Nothing shows up highlighted even if a selection slips through. */
html.rt-protected ::selection { background: transparent; color: inherit; }
html.rt-protected ::-moz-selection { background: transparent; color: inherit; }
html.rt-protected input::selection,
html.rt-protected textarea::selection,
html.rt-protected [data-allow-copy] ::selection {
  background: #6A0DAD; color: #fff;
}

/* Small notice shown when someone tries to copy. */
.rt-guard-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 14px);
  z-index: 99999;
  max-width: calc(100vw - 32px);
  padding: 11px 18px;
  border-radius: 10px;
  background: rgba(20, 8, 32, .94);
  color: #fff;
  font: 500 14px/1.4 Inter, system-ui, sans-serif;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .28);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.rt-guard-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  .rt-guard-toast { transition: none; }
}

/* Printing the page gives a notice, not the content. */
@media print {
  html.rt-protected body > *:not(.rt-print-notice) { display: none !important; }
  html.rt-protected body::before {
    content: "This page is copyright Ratawa Technologies and is not available for printing. Please visit ratawatechnologies.com";
    display: block;
    padding: 40px;
    font: 500 14px/1.6 Inter, system-ui, sans-serif;
  }
}
