/*
 * Custom CSS for Nsight Compute docs (RST toolchain 1.4+).
 * Widens the main content area and reduces empty margins so images and text
 * are not cramped. The 1.4 toolchain uses pydata-sphinx-theme which defaults
 * to a narrow content width and a right-hand "On this page" sidebar.
 */

/* Use full available width for the page container (reduces outer empty space). */
.bd-page-width {
  max-width: 100%;
}

/* Widen the main article content so images and text have more room. */
.bd-main .bd-content .bd-article-container {
  max-width: 100%;
  min-width: 50vw; /* ensure content gets a large share of the viewport */
}

/* Resizable splitters between TOC, content, and "On this page". */
.rst-sidebar-resizer {
  flex: 0 0 10px;
  width: 10px;
  min-width: 10px;
  cursor: col-resize;
  background: transparent;
  transition: background 0.15s ease;
  z-index: 100;
  position: relative;
  pointer-events: auto;
}
.rst-sidebar-resizer:hover,
.rst-sidebar-resizer:active,
body.rst-resizing .rst-sidebar-resizer {
  background: rgba(0, 0, 0, 0.12);
}
html[data-theme="dark"] .rst-sidebar-resizer:hover,
html[data-theme="dark"] .rst-sidebar-resizer:active,
html[data-theme="dark"] body.rst-resizing .rst-sidebar-resizer {
  background: rgba(255, 255, 255, 0.15);
}
body.rst-resizing {
  cursor: col-resize;
  user-select: none;
}
body.rst-resizing * {
  cursor: col-resize !important;
}
