/* ---------------------------------------------------------------------------
   The books are guarded.

   Owner, 2026-08-10, on the solved volume: "disable copy pasting and all things
   possible so we safeguard ourselves from copycats". Owner again, 2026-08-22,
   on the written notes: "as of now i was able to copy paste the text from the
   notes pages ... i dont want any user to be able to do that, so they will
   instead spend time here on the website, and read". The ordinary way out of a
   web page is closed on both: no selection, no long-press sheet, no drag,
   nothing on the printed sheet.

   ⛔ ONE SOURCE. This began as a block inside assets/css/qp-solution-page.css
   with its twin script inline in pages/core/qp-solution.php, and covered the
   solved volume alone. The written notes needed the same guard, and a second
   copy of a hundred lines is how a guard silently dies: one page gets a fix,
   the other does not, and nobody finds out until a reader copies a chapter. The
   rules live here, the behaviour lives in assets/js/copy-guard.js, and
   includes/copy-guard.php is what a page calls.

   ⚠️ BE HONEST ABOUT WHAT THIS IS WORTH. Every word of both books is in the
   HTTP response, because both are meant to be read by Google and quoted by
   Claude and ChatGPT (project_ai_crawler_posture), so anyone who fetches the
   URL without a browser has the whole thing whatever this file says. What is
   closed here is the route a copycat actually takes, which is select, copy,
   paste. It raises the cost; it is not a lock, and it must never be sold
   internally as one.

   ⛔ SCOPED TO THE READING SURFACES, and nothing here may reach past them. The
   crumb, the navbar, the footer, the search box and the ads all behave normally:
   a site that will not let you right-click is a broken site, not a protected
   one. Two roots today:
     .qps-page  the solved question-paper volume
     .mn-notes  the written notes book, both the whole book and one chapter
   .mn-guarded is the hook a third surface should use rather than adding a
   fourth class name here.
   --------------------------------------------------------------------------- */

.qps-page,
.mn-notes,
.mn-guarded {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  /* iOS raises its own Copy / Look Up / Share sheet on a long press, and once
     that sheet is open no script can take it back. 63% of readers are on a
     phone, so this line is doing more work than any of the others. */
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

/* A dragged selection lands as text in the next window and a dragged image
   lands as a file, both of which walk straight around the rules above. */
.qps-page img, .qps-page svg, .qps-page a,
.mn-notes img, .mn-notes svg, .mn-notes a,
.mn-guarded img, .mn-guarded svg, .mn-guarded a { -webkit-user-drag: none; }

/* ⛔ Never a field. There is none in either book today; this is here so that
   adding one cannot quietly ship a box nobody can type in. The script refuses
   the same targets, so the two halves agree. */
.qps-page input, .qps-page textarea, .qps-page [contenteditable="true"],
.mn-notes input, .mn-notes textarea, .mn-notes [contenteditable="true"],
.mn-guarded input, .mn-guarded textarea, .mn-guarded [contenteditable="true"] {
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

/* Print, and print-to-PDF with it, is the fastest way to lift a whole book, and
   printing was removed from this site everywhere else already
   (project_view_only_2026_07_15). It is also the first thing a reader reaches
   for once the clipboard stops answering, so closing the clipboard without
   closing this would buy very little. The sheet that comes out carries the
   imprint and nothing else.
   ⛔ No scolding. The reader is not told off for pressing a key, they are shown
   the address the book is read at. See the view-only note: the policy is not
   narrated at the reader. */
@media print {
  .qps-page > *,
  .mn-notes > *,
  .mn-guarded > * { display: none !important; }

  /* ⚠️ ONE imprint per page, not one per panel. The notes book renders TWO
     .mn-notes panels, the book itself and the "rest of this subject" links
     under it, and both are emptied above. Only the book carries .mn-bookish,
     so only the book prints the line. */
  .qps-page::before,
  .mn-notes.mn-bookish::before,
  .mn-guarded::before {
    content: "munotes.in";
    display: block;
    padding: 6rem 0;
    font-family: Lora, Georgia, "Times New Roman", serif;
    font-size: 12pt;
    letter-spacing: 0.16em;
    text-align: center;
    text-transform: none;
  }
}
