/*
 * Layout overrides for CORHEL reports.
 *
 * Target proportions (at desktop widths):
 *   left nav sidebar  : ~20%
 *   content           : ~70%
 *   right margin      : ~10%
 *
 * sphinx_immaterial inherits the Material for MkDocs grid, which caps the
 * overall container at ~76rem and gives the sidebar a fixed pixel width.
 * We remove both constraints here so the page fills the viewport.
 */

/* ── 1. Remove the max-width cap on the page grid ── */
.md-grid {
  max-width: 100% !important;
}

/* ── 2. Suppress the right-side TOC column ──
   That pane would fight with our right margin budget. */
.md-sidebar--secondary {
  display: none !important;
}

/* ── 3. Size the navigation sidebar to 20 % of the viewport ──
   The theme shows the sidebar only above its "tablet" breakpoint (~76.25 em).
   Below that it becomes an off-canvas drawer, so these rules only apply
   when the sidebar is actually visible. */
@media screen and (min-width: 76.25em) {
  .md-sidebar--primary {
    width: 20vw !important;
  }

  /* The inner nav scroll container must match. */
  .md-sidebar--primary .md-sidebar__scrollwrap {
    width: 20vw !important;
  }

  /* ── 4. Content area: fill what the sidebar left, then leave a 10 % right
     margin. We target the <article> wrapper so padding/margins are clean. */
  .md-content__inner {
    max-width: none !important;
    margin-right: 10vw !important;
  }
}
