/* Quantrex — hide MARKS / third-party watermarks site-wide */

/* Baked-in gray "MARKS" text on CDN question diagrams — boost contrast to whiten watermark */
img.qx-no-wm:not(.qx-pool-fig),
.qx-fig-img:not(.qx-pool-fig),
.qx-fig img:not(.qx-pool-fig),
.qx-opt-fig img:not(.qx-pool-fig),
.qx-content img[src*="cdn-question-pool"]:not(.qx-pool-fig),
.qx-content img[src*="/pyq/jee_main/"],
.mtk-q-text img[src*="cdn-question-pool"],
.mtk-q-text img[src*="/pyq/"],
.mtk-opt-text img[src*="cdn-question-pool"],
.mtk-opt-text img[src*="/pyq/"],
.qa-q img[src*="cdn-question-pool"],
.qx-prac-q img[src*="cdn-question-pool"],
.qx-prac-opt-text img[src*="cdn-question-pool"],
.qx-diagram-modal img[src*="cdn-question-pool"],
.marks-result img[src*="cdn-question-pool"],
.sol-body img[src*="cdn-question-pool"] {
  /* Filters removed — handled by corner overlay only; clarity in qx-image-quality.css */
  filter: none;
  -webkit-filter: none;
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* HTML overlay watermarks from imported content — never hide real pool diagrams */
[class*="watermark"]:not(.qx-pool-fig-wrap):not(:has(img.qx-pool-fig)),
[class*="Watermark"]:not(.qx-pool-fig-wrap):not(:has(img.qx-pool-fig)),
[data-brand="marks"]:not(:has(img.qx-pool-fig)),
[data-watermark]:not(:has(img.qx-pool-fig)),
.marks-brand:not(:has(img.qx-pool-fig)),
.getmarks-brand:not(:has(img.qx-pool-fig)),
.watermark-text:not(:has(img.qx-pool-fig)),
.watermark-overlay:not(:has(img.qx-pool-fig)),
img[src*="watermark"]:not(.qx-pool-fig):not(.qx-no-wm):not(.qx-fig-img):not(.qx-brand-logo),
img[src*="marks-premium"]:not(.qx-pool-fig):not(.qx-no-wm),
img[src*="marks_selected"]:not(.qx-pool-fig):not(.qx-no-wm),
img[src*="getmarks-brand"]:not(.qx-pool-fig):not(.qx-no-wm),
img[src*="web_assets"][alt*="Marks"]:not(.qx-pool-fig):not(.qx-no-wm),
img[alt*="Get Marks App"]:not(.qx-pool-fig):not(.qx-no-wm) {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  max-height: 0 !important;
  overflow: hidden !important;
}

.qx-diag-watermark {
  display: none !important;
}

.qx-brand-overlay,
img.qx-quantrex-wm-overlay,
canvas.qx-premium-wm-canvas {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  max-height: 0 !important;
  overflow: hidden !important;
}

.qx-fig-inner.qx-wm-active .qx-premium-wm-sheet,
.qx-wm-active .qx-premium-wm-sheet,
.qx-brand-covered.qx-wm-active .qx-premium-wm-sheet,
.qx-premium-wm-active .qx-premium-wm-sheet {
  display: none !important;
}

.qx-diagram-slot .qx-premium-wm-sheet,
#qxDiagramSlot .qx-premium-wm-sheet,
.qx-question-body .qx-premium-wm-sheet {
  display: none !important;
}

.qx-wm-corner-badge {
  display: none !important;
}

.qx-marks-strip {
  display: none !important;
}

.qx-fig-inner.qx-wm-canvas-active .qx-marks-strip {
  display: none !important;
}

.qx-wm-mask,
.qx-marks-scrub {
  display: none !important;
}

img.qx-pool-fig,
img.qx-no-wm.qx-pool-fig,
.qx-pool-fig-wrap,
.qx-pool-fig-wrap img,
.qx-fig img.qx-pool-fig,
.qx-opt-fig img.qx-pool-fig {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  max-height: none !important;
  pointer-events: auto !important;
  overflow: visible !important;
}

/* Keep legitimate UI icons visible */
img.qx-marks-icon,
img.fc-img,
.marks-exam-ic-img,
.marks-board-subj-ic,
.exam-pill-logo,
.subj-mini-ic img,
.dash-board-logo,
.dash-tool-logo,
.qx-exam-logo {
  filter: none !important;
  -webkit-filter: none !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  max-height: none !important;
}