/*  Content protection – client requirement: article text should not be
    casually copied off the site.

    Scope is deliberate. Only article text carries [data-protected]:
      • the whole <main> on /articles/*.html
      • each article card (its blurb is the article's own lead paragraph)
      • search result snippets, which quote article bodies
    The header, footer, contact details, newsletter and every form field stay
    fully selectable, so nobody is blocked from copying an email address or
    pasting into a form.

    Read the caveat in public/js/protect.js before relying on this: it stops
    casual copy/paste, not a determined visitor.                              */

[data-protected],
[data-protected] *,
.vd-search-panel,
.vd-search-panel * {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;   /* no iOS/Android long-press copy callout */
}

/*  Form controls must stay usable even inside a protected region – the search
    box on the Knowledge Center hub sits inside one.                          */
[data-protected] input,
[data-protected] textarea,
[data-protected] select,
[data-protected] [contenteditable="true"],
.vd-search-panel input {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

/*  Figures are article content too – block the drag-to-desktop shortcut and
    the long-press "save image" affordance.                                   */
[data-protected] img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  user-drag: none;
}

/*  Print-to-PDF is a copy route, so protected content is withheld from print
    and replaced with an attribution line. Delete this block if the client
    would rather allow printing.                                              */
@media print {
  [data-protected] { display: none !important; }
  [data-protected]::after { content: none; }
  body::after {
    content: "© VIDYUTT Anusandhan and Abhiyantriki Private Limited. "
             "This article is available at vidyutt.com and may not be reproduced.";
    display: block;
    padding: 24px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 12pt;
    line-height: 1.6;
  }
}
