/* Custom styles for RightInsight documentation */

/* Ensure primary color is applied to header */
.md-header {
  background-color: #1f5157 !important;
}

/* Apply primary color to navigation tabs */
.md-tabs {
  background-color: #1f5157 !important;
}

/* Apply primary color to active navigation items */
.md-nav__item--active .md-nav__link {
  color: #1f5157 !important;
}

/* Apply primary color to links */
.md-content a {
  color: #1f5157 !important;
}

/* Apply primary color to buttons and interactive elements */
.md-button {
  background-color: #1f5157 !important;
  border-color: #1f5157 !important;
}

/* Apply primary color to search highlights */
.md-search-result__meta {
  color: #1f5157 !important;
}

/* Ensure logo is properly displayed */
.md-header__button.md-logo img {
  height: 3.5rem;
  width: auto;
}

/* Reduce padding around logo for less whitespace */
.md-header__button.md-logo {
  padding: 0.2rem 0.5rem;
  margin: 0;
}

/* Hide the site title text since logo already contains "RightInsight" */
.md-header__title {
  visibility: hidden;
  width: 0;
  overflow: hidden;
}

/* Fix navigation active states - only show active color for current page and section header */
.md-nav__item--nested > .md-nav__link:not(.md-nav__link--active) {
  color: inherit !important;
}

.md-nav__item--nested > .md-nav__link--active {
  color: #1f5157 !important;
  font-weight: 600;
}

/* Ensure only the actual current page shows as active, not all items in the section */
.md-nav__item:not(.md-nav__item--active) .md-nav__link {
  color: inherit !important;
}
