/* Keep our custom CSS minimal so it doesn't fight Docsify plugins. */

.sidebar-nav img[alt="logo"] {
  max-width: 170px;
  display: block;
  margin: 16px auto;
}

/* Slightly more compact sidebar spacing */
.sidebar ul,
.sidebar ul li {
  margin-left: 2%;
}

/* Improve sidebar readability + spacing */
.sidebar-nav {
  padding: 12px 12px 18px 12px;
}

.sidebar-nav > ul > li {
  margin: 6px 0;
}

.sidebar-nav a {
  line-height: 1.35;
  padding: 4px 0;
  display: inline-block;
}

/* Indent nested items a bit more */
.sidebar-nav ul ul {
  margin-left: 14px;
}

/* Make the search box align with sidebar padding */
.search {
  padding: 0 12px;
}

/* --- Content rendering tweaks --- */

/* Screenshots in the docs can become too large; keep them readable.
   Users can still click to open in a new tab if needed. */
.markdown-section img {
  /* Don't force stretching (prevents blur on some screenshots) */
  width: auto;
  height: auto;
  max-width: min(900px, 100%);
  max-height: 65vh;

  display: block;
  margin: 12px auto;

  /* Prefer crisp downscaling when supported */
  image-rendering: auto;
  -webkit-font-smoothing: antialiased;
}

/* Smaller screenshots (used on Getting Started page) */
.markdown-section img.doc-screenshot {
  max-width: min(560px, 100%);
  max-height: 52vh;
}
