/* The primary sidebar on the left. */
/* e.g., between-pages navigation. */
.sidebar-primary-items__end {
  margin-bottom: 1em;
}
/*********************************************
* Left Nav Bar *
*********************************************/

.bd-sidebar-primary {
  top: 0;
  max-height: 100vh;
  padding: 1rem;
  transition: margin-left 0.3s ease 0s, opacity 0.3s ease 0s, visibility 0.3s ease 0s;
}

@media (max-width: 960px) {
  .bd-sidebar-primary {
    z-index: 1051; 
  }
}

.bd-sidebar-primary .sidebar-primary-items__start {
  border-top: none;
}

@media (min-width: 1200px) { 
  .bd-sidebar-primary {
    flex-basis: 250px; 
  }
}

@media (min-width: 1200px) {
  input#pst-primary-sidebar-checkbox:checked ~ .bd-container .bd-sidebar-primary {
    margin-left: -250px; 
    visibility: hidden;
    opacity: 0;
  }
}

@media (min-width: 960px) {
  .bd-sidebar-primary {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 24px 40px;
    width: 410px;
    background: #F5F5F5;
    flex: none;
    order: 0;
    align-self: stretch;
    flex-grow: 0;
    max-height: calc(100vh - 72px);
    position: sticky;
    top: 72px;
  }

  .bd-sidebar-primary .nav-link {
    font-size: 16px;
    font-family: 'Boeing Meso';
    font-weight: 400;
    line-height: 24px;
    letter-spacing: 0.15px;
    color: #263746;
  }
}


html[data-theme='dark'] .bd-sidebar-primary{
  background: #1B2732;
}

.last-updated {
  width: 272px;
  height: 21px;

  /* Body/Regular/Small */
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  /* line-height: 21px; */
  /* identical to box height, or 150% */
  letter-spacing: 0.15px;

  color: #3C5472;

  /* Inside auto layout */
  flex: none;
  order: 2;
  align-self: stretch;
  flex-grow: 0;

}
html[data-theme='dark'] .last-updated{
  color: #B7C9DC;
}

/* Navbar Brand Logo */
.navbar-brand.logo {
  pointer-events: none;
  justify-content: left;
  gap: 0rem;
  align-items: start;
}

.navbar-brand.logo img {
  display: none;
}

.navbar-brand.logo::before {
  content: "Technical Documentation";
  display: inline-block;
  text-align: left;
  font-size: 1.5em;
  font-weight: bold;
  color: #2c3e50;
  line-height: 1;
  text-decoration: none;
  pointer-events: none;
  margin-right: 30px;
}

@media only screen and (max-width: 960px) {
  .navbar-brand.logo::before {
    font-size: 18px;
      }
}

.navbar-brand.logo::after {
  content: "Boeing Cascade Climate Impact Model";
  display: block;
  font-size: 1.2em;
  color: #2c3e50;
  line-height: 1;
  text-decoration: none;
  pointer-events: none;
  margin-right: 30px;
}

@media only screen and (max-width: 960px) {
  .navbar-brand.logo::after {
    font-size: 14px;
      }
}

html[data-theme="dark"] .navbar-brand.logo::before {
  color: #FFFFFF;
}

html[data-theme="dark"] .navbar-brand.logo::after {
  color: #FFFFFF;
}

.bd-sidebar-secondary-items.bd-toc.noprint {
  position: relative;
}

/* Links and Captions */
.bd-links.bd-docs-nav {
  border: none;
  border-radius: 0;
  overflow: hidden;
}

.bd-links.bd-docs-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bd-links.bd-docs-nav li {
  border-bottom: 1px solid #ddd;
}

.bd-links.bd-docs-nav a {
  display: block;
  padding: 10px 15px;
  text-decoration: none;
  color: #333;
  background-color: #fff;
}

nav.bd-links li > a {
  margin-right: 0px;
}

html[data-theme='dark'] .bd-links.bd-docs-nav a {
  background: #14191F;
  color: #FFFF;
}

html[data-theme='dark'] .bd-links.bd-docs-nav li:not(.current) a {
  background: #14191F;
  color: #FFFF;
}

html[data-theme='dark'] .bd-links.bd-docs-nav .current a {
  background: #01457A;
  color: #FFFF;
}

html[data-theme='dark'] .bd-links.bd-docs-nav li.has-children ul {
  background-color: #14191F;
}

html[data-theme='dark'] .bd-links.bd-docs-nav li.has-children ul li {
  background-color: #14191F;
  border-bottom: #ddd;
}

html[data-theme='dark'] .bd-links.bd-docs-nav li.has-children ul a {
  background-color: #14191F;
}

html[data-theme='dark'] .bd-links.bd-docs-nav li {
  border-bottom: 1px solid #4C6D95;
}

.bd-links.bd-docs-nav a:hover {
  background-color: #fff;
  text-decoration-thickness: 1px;
}

.bd-links.bd-docs-nav .current a {
  background-color: #e6f0ff;
  color: #0171C1;
  font-weight: normal;
}

.bd-links.bd-docs-nav li.current {
  background-color: #e6f0ff;
}

.navbar-nav {
  background-color: var(--pst-color-background);
}

li.has-children {
  position: relative;
  background-color: var(--pst-color-background); /* Match the primary sidebar background color */
}

li.has-children > details > summary {
  position: absolute;
  right: 4px;
  top: 8px;
}

li.has-children > details > summary .toctree-toggle {
  background-color: transparent;
}

.bd-links.bd-docs-nav li.has-children ul {
  padding-left: 15px;
  background-color: #fff;
}

.bd-links.bd-docs-nav li.has-children ul li {
  background-color: #fff;
  border-bottom: 1px solid #ddd;
}

.bd-links.bd-docs-nav li.has-children ul a {
  background-color: #fff;
  padding: 10px 15px;
}

.bd-links.bd-docs-nav li.has-children.toctree-toggle.fa-chevron-down {
  font-size: 4rem;
}
.bd-links.bd-docs-nav li.has-children ul a:hover {
  background-color: #fff;
}

.bd-links.bd-docs-nav li:not(.current) a {
  background-color: #fff;
  color: #333;
}

.bd-sidebar-primary li.has-children > .reference {
  padding-top: 10px;
}
.sidebar-primary__section {
  margin-bottom: 10px; 
}

/* Search Bar */
button.btn.navbar-btn.search-button-field.search-button__button,
div.search-button__wrapper {
  display: flex;
}

.search-button-field {
  background-color: transparent;
  border-radius: 4px;
  background: transparent;
  border: 1px solid #8F8F8F;
}

.search-button__default-text {
  font-size: var(--bs-nav-link-font-size);
  font-weight: var(--bs-nav-link-font-weight);
  margin-right: 0.5em;
  margin-left: 0.5em;
}

.kbd-shortcut__modifier, .search-button__kbd-shortcut {
  display: none !important;
}
/* End Search Bar */

