/* ── Copy Protection ─────────────────────────────────────────── */
.doc-body,
#page-container {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Allow selection in code blocks for legitimate reference */
.doc-body code,
.doc-body pre {
  -webkit-user-select: text;
  user-select: text;
}

/* ── Watermark Layer ─────────────────────────────────────────── */
#watermark-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9000;
  overflow: hidden;
}

.watermark-tile {
  position: absolute;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink);
  opacity: 0.028;
  white-space: nowrap;
  transform: rotate(-28deg);
  font-family: var(--font);
  letter-spacing: 0.08em;
  pointer-events: none;
}

/* ── Right-Click Block ───────────────────────────────────────── */
body.security-active {
  -webkit-touch-callout: none;
}

/* ── Print Block ─────────────────────────────────────────────── */
@media print {
  body::after {
    content: 'GANT EXCHANGE — CONFIDENTIAL — PRINTING DISABLED';
    position: fixed;
    inset: 0;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: #ccc;
    z-index: 99999;
  }

  #app-shell { display: none !important; }
}

/* ── Copy Attempt Toast ──────────────────────────────────────── */
#copy-toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--ink);
  color: var(--ivory);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 10px 18px;
  border-radius: var(--r);
  z-index: 9997;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

#copy-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ── Dev Tools Warning ───────────────────────────────────────── */
#devtools-warning {
  position: fixed;
  inset: 0;
  background: var(--ivory);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  flex-direction: column;
  gap: 16px;
  text-align: center;
  padding: 40px;
}

#devtools-warning.show {
  display: flex;
}

.devtools-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}

.devtools-body {
  font-size: 13px;
  color: var(--ink-2);
  max-width: 400px;
  line-height: 1.7;
}
