/* Sticky blackout after a screenshot / print attempt. Stays until refresh. */
.screenshot-shield {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: #000;
  color: #f5f5f4;
  box-sizing: border-box;
}

/* Soft cover while tab/window is away or Ctrl+Shift is held.
   Imperatively mounted on <html> so paint happens before the tab freezes. */
.screenshot-shield--soft {
  pointer-events: none;
  display: block;
}

.screenshot-shield__card {
  max-width: 28rem;
  text-align: center;
}

.screenshot-shield__title {
  margin: 0 0 0.75rem;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: clamp(1.15rem, 2.4vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: #fafaf9;
}

.screenshot-shield__body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  font-weight: 400;
  line-height: 1.55;
  color: #a8a29e;
}

/* Easy-save deterrents (feature flag: easySaveBlock). */
html.atlas-easy-save-guard,
html.atlas-easy-save-guard body {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

html.atlas-easy-save-guard img,
html.atlas-easy-save-guard picture,
html.atlas-easy-save-guard svg,
html.atlas-easy-save-guard canvas,
html.atlas-easy-save-guard video {
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: auto;
}

html.atlas-easy-save-guard input,
html.atlas-easy-save-guard textarea {
  -webkit-user-select: text;
  user-select: text;
}

/* Print / PDF path (feature flag: printBlock). */
@media print {
  html.atlas-print-guard body * {
    display: none !important;
  }

  html.atlas-print-guard body::before {
    content: "Printing is disabled for this document.";
    display: block !important;
    padding: 2rem;
    font-family: ui-sans-serif, system-ui, sans-serif;
    font-size: 1rem;
    color: #000;
  }

  html.atlas-print-guard .atlas-viewer-watermark {
    display: none !important;
  }
}

/* Per-viewer attribution watermark (feature flag: viewerWatermark). */
.atlas-viewer-watermark {
  position: fixed;
  inset: -20%;
  z-index: 2147483645;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 4rem;
  padding: 2rem;
  transform: rotate(-28deg);
  opacity: 0.11;
  color: #1c1917;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: clamp(0.7rem, 1.4vw, 0.85rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.2;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
}

.atlas-viewer-watermark span {
  display: block;
  width: 140%;
}
