:root {
    --sd-fontsize-tabs-label: 1rem;
    --sd-fontsize-dropdown-title: 1rem;
    --pst-font-size-base: 15px;
    --pst-font-family-base: YourPreferredFont, var(--pst-font-family-base-system);
  }
  
.sd-tab-set {
    font-size: var(--pst-font-size-base);
    font-family: var(--pst-font-family-base);
  }

.sd-tab-content {
    border: none !important;
  }
  
  
  /* a.navbar-brand.logo {
    display: none !important;
} */

/* .sidebar-toggle.primary-toggle {
    display: none !important;
} */

.copybtn {
    opacity: 1 !important; /* Make the button fully visible */
    transition: none;     /* Remove the hover transition effect */
}

.navbar-brand img {
    height: 30px;  /* Adjust the logo height */
    width: auto;   /* Maintain aspect ratio */
    margin-right: 10px; /* Add spacing */
}

/* Hide the hamburger menu button */
/* .navbar-toggler {
    display: none !important;
} */

/* Hide the settings, download, and fullscreen icons */
.navbar-icon-links {
    display: none !important;
}

/* Optional: Hide other toolbar buttons (adjust if needed) */
.navbar-right {
    display: none !important;
}

html[data-theme="dark"] {
    .sphinx-tabs-panel {
        background: none !important;
    }
    .sphinx-tabs-tab {
        color: #fff !important;
        background: none !important;
    }
}

/* Ensure vertical stacking of navbars */
.navbar-container {
    margin-bottom: 0; /* Remove unnecessary spacing between the two bars */
    width: 100%; /* Ensure full width */
}

/* Add spacing between navbars, if desired */
.navbar-general {
    border-bottom: 1px solid #ddd; /* Optional: Add separator line */
}

.navbar-docs {
    border-top: 1px solid #444; /* Optional: Add separator line */
}

/* Style the docs navigation */
.docs-nav-container {
    text-align: center; /* Center the navigation */
    margin-bottom: 2rem; /* Add spacing below the navigation */
}

.docs-nav {
    display: inline-flex;
    gap: 2rem; /* Space between links */
    justify-content: center;
    align-items: center;
}

.docs-nav-link {
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    color: #0078d4; /* Use your site's color scheme */
}

.docs-nav-link:hover {
    text-decoration: underline;
}

/*
 .bd-sidebar-secondary {
    width: 20em;
    max-width: 100%;
    overflow-x: hidden;
}*/

/* Hide the right sidebar ("bd-sidebar-secondary") on screens smaller than 992px */
/* @media (max-width: 991px) {
  .bd-sidebar-secondary {
    display: none !important;
  }
} */

@media (min-width: 992px) {
  /* Hide navbar/sidebar toggles on desktop only */
  .sidebar-toggle.primary-toggle,
  .navbar-toggler {
    display: none !important;
  }
}


/* .bd-sidebar-secondary .bd-sidebar__content {
    width: 20em;
    max-width: 100%;
} */

/* Ensure TOC properly tracks the active section */
.bd-toc nav ul li a {
    transition: none !important;
}

/* Force the currently active section to highlight correctly */
.bd-toc nav ul li.active > a {
    font-weight: bold;
    color: #0078d4; /* Adjust to match your theme */
}

.bd-toc nav ul li a:hover {
    text-decoration: underline;
}

.bd-toc nav ul li.active {
    display: block !important; /* Ensures visibility */
}

.bd-main .bd-content .bd-article-container {
  max-width: 100%;  /* default is 60em */
}

.bd-page-width {
  max-width: 95%; /* default is 88rem */
}

h1, h2, h3, h4, h5, h6 {
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
}

pre {
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Code block container */
div.highlight {
    overflow-x: auto;        /* scroll horizontally if needed */
}

/* Code block itself */
div.highlight pre {
    white-space: pre;        /* preserve line breaks and spacing, no wrap */
    overflow-x: auto;        /* scroll if content is wider than box */
}
