/* A deterrent for ordinary browser actions, not DRM or access control. */
body[data-content-protection] main,
body[data-content-protection] main * {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
body[data-content-protection] main input,
body[data-content-protection] main textarea,
body[data-content-protection] main select,
body[data-content-protection] main [contenteditable]:not([contenteditable="false"]),
body[data-content-protection] main [contenteditable]:not([contenteditable="false"]) * {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}
body[data-content-protection] main a[href] {
  -webkit-touch-callout: default;
}
.content-protection-notice {
  position: fixed;
  z-index: 10000;
  inset: auto 1rem 1rem;
  width: fit-content;
  max-width: calc(100% - 2rem);
  margin: 0 auto;
  padding: .8rem 1rem;
  border-radius: .5rem;
  background: #153e35;
  color: #fff;
  font: 500 1rem/1.5 system-ui, sans-serif;
  box-shadow: 0 2px 12px #0003;
  pointer-events: none;
}
.content-protection-notice[hidden] { display: none !important; }
@media print {
  html:has(body[data-content-protection]) { background: #fff !important; }
  body[data-content-protection] {
    display: block !important;
    margin: 0 !important;
    padding: 1cm !important;
    height: auto !important;
    min-height: 0 !important;
    background: #fff !important;
    color: #000 !important;
  }
  body[data-content-protection] > * { display: none !important; }
  body[data-content-protection]::before { display: none !important; }
  body[data-content-protection]::after {
    display: block !important;
    position: static !important;
    content: "Utskrift av innehållet är begränsad. Läs vidare på homeopati.se.";
    color: #000 !important;
    background: #fff !important;
    font: 12pt/1.5 system-ui, sans-serif !important;
  }
}
