/*
 * sphinx-rtd-theme caps main content at ~800px for readability.
 * Override so clinical screenshots and wide tables use the full viewport.
 */
:root {
  /* Match sphinx-rtd-theme sidebar (.wy-nav-side). */
  --dbs-docs-canvas: #343131;
}

/* Dark outer canvas (same tone as the left navigation column). */
html,
body,
.wy-body-for-nav,
.wy-grid-for-nav,
.wy-nav-content-wrap {
  background: var(--dbs-docs-canvas);
}

/* Readable "window" for prose, screenshots, and tables. */
.wy-nav-content {
  max-width: none;
  background: #ffffff;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.28);
}

.wy-nav-content-wrap {
  max-width: 100%;
}

/* Full application window (wizard steps, session views). */
.rst-content img.screenshot-full,
.wy-nav-content img.screenshot-full {
  width: 100% !important;
  max-width: 100%;
  height: auto;
}

/*
 * Dialogs, home screen, and other partial captures.
 * Never upscale beyond the PNG's intrinsic width; shrink only on narrow viewports.
 */
.rst-content img.screenshot-native,
.wy-nav-content img.screenshot-native {
  width: auto !important;
  max-width: 100%;
  height: auto;
}

/* Back-compat alias (older docs / branches). */
.rst-content img.screenshot-medium,
.wy-nav-content img.screenshot-medium {
  width: auto !important;
  max-width: 100%;
  height: auto;
}
