/* Logo and navbar styling */
#logo {
  height: 40px;
  max-height: 40px;
  width: auto;
}

.navbar-brand {
  padding: 5px 15px;
  margin-left: -15px;
}

.navbar-collapse {
  margin-left: 20px;
}

/* Print-specific CSS for PDF generation */
/* Hides navigation elements that appear as overlays in generated PDFs */

@media print {
  /* Hide all navigation and sidebar elements */
  .sidenav,
  .affix,
  .bs-docs-sidebar,
  .hidden-print,
  .sideaffix,
  .col-md-2,
  nav,
  .breadcrumb,
  .contribution,
  .navbar,
  .navbar-header,
  .subnav,
  header,
  footer,
  .hide-when-search {
    display: none !important;
  }

  /* Expand content to full width */
  .col-md-10 {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  /* Ensure article takes full width */
  .article.grid-right {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Ensure body content is visible */
  .body-content {
    display: block !important;
  }
}
