/* schoolbooks.ai — strip download / print / editor controls from the PDF.js
   viewer so sample PDFs can only be browsed, not saved. This is deterrent UI,
   NOT cryptographic protection — anyone determined can still capture content
   by other means (screen capture, devtools, etc.). */

/* Primary toolbar buttons we don't want shown */
#downloadButton,
#printButton,
#editorModeButtons,
#editorModeSeparator,
#editorFreeTextButton,
#editorInkButton,
#editorStampButton,
#editorHighlightButton,
#editorHighlightParamsToolbar,
#editorFreeTextParamsToolbar,
#editorInkParamsToolbar,
#editorStampParamsToolbar,
#openFile {
  display: none !important;
}

/* Secondary toolbar items (the kebab menu) */
#secondaryDownload,
#secondaryPrint,
#secondaryOpenFile,
#documentPropertiesButton {
  display: none !important;
}

/* Disable user text selection inside the rendered PDF content.
   Keeps right-click menu less useful on text. */
#viewer,
#viewer .textLayer,
#viewer .textLayer > span {
  user-select: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
}

/* Prevent the rendered canvases / images from being dragged out of the viewer
   (which in many browsers triggers a "save image" flow). */
#viewer canvas,
#viewer img,
.page canvas,
.page img {
  -webkit-user-drag: none !important;
  user-drag: none !important;
  pointer-events: auto;
}
