/* Custom typography adjustments to match GitBook exactly */

:root {
  /* Adjust text colors for better contrast */
  --md-default-fg-color: #1f2328;
  --md-default-fg-color--light: #656d76;
  --md-default-fg-color--lighter: #8c959f;
  
  /* Adjust primary colors to match GitBook */
  --md-primary-fg-color: #0969da;
  --md-accent-fg-color: #0969da;
}

/* Main content typography adjustments */
.md-content {
  font-weight: 400;
  line-height: 1.6;
  color: var(--md-default-fg-color);
}

/* Headings - make them slightly bolder and adjust spacing */
.md-content h1 {
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 1rem;
  color: var(--md-default-fg-color);
}

.md-content h2 {
  font-weight: 600;
  line-height: 1.3;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--md-default-fg-color);
}

.md-content h3 {
  font-weight: 600;
  line-height: 1.35;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--md-default-fg-color);
}

.md-content h4 {
  font-weight: 600;
  line-height: 1.4;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--md-default-fg-color);
}

/* Paragraph text - adjust weight and spacing */
.md-content p {
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 1rem;
  color: var(--md-default-fg-color);
}

/* List items */
.md-content li {
  line-height: 1.6;
  margin-bottom: 0.25rem;
  color: var(--md-default-fg-color);
}

/* Navigation text */
.md-nav__title {
  font-weight: 700;
}

.md-nav__item .md-nav__link {
  font-weight: 500;
  line-height: 1.5;
}

.md-nav__item .md-nav__link--active {
  font-weight: 600;
}

/* Sidebar navigation adjustments */
.md-sidebar--primary .md-sidebar__scrollwrap {
  font-size: 0.8rem;
}

.md-sidebar--primary .md-nav__title {
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

/* Make main navigation sections bold and black */
.md-sidebar--primary .md-nav__list > .md-nav__item > .md-nav__link {
  font-weight: 600;
  font-size: 0.85rem;
  color: #1f2328 !important;
}

/* Make section headers (INSTANCES, STORAGE, etc.) more prominent and black */
.md-sidebar--primary .md-nav__list > .md-nav__item > .md-nav__link[data-md-level="0"] {
  font-weight: 700;
  color: #1f2328 !important;
}

/* Sub-navigation items should be slightly less bold but still dark */
.md-sidebar--primary .md-nav__list .md-nav__list .md-nav__link {
  font-weight: 500;
  font-size: 0.8rem;
  color: #1f2328 !important;
}

/* All sidebar navigation links should be black */
.md-sidebar--primary .md-nav__link {
  color: #1f2328 !important;
}

/* Active/current page should be highlighted */
.md-sidebar--primary .md-nav__link--active {
  color: #0969da !important;
  font-weight: 600;
}

/* Table of contents on the right */
.md-sidebar--secondary .md-nav__title {
  font-weight: 600;
  font-size: 0.75rem;
}

.md-sidebar--secondary .md-nav__link {
  font-size: 0.75rem;
  line-height: 1.4;
}

/* Code blocks */
.md-content pre code {
  font-weight: 400;
  line-height: 1.5;
}

.md-content code {
  font-weight: 500;
  background-color: rgba(175, 184, 193, 0.2);
  padding: 0.1em 0.25em;
  border-radius: 0.25rem;
}

/* Links */
.md-content a {
  color: var(--md-primary-fg-color);
  font-weight: 500;
}

.md-content a:hover {
  color: var(--md-accent-fg-color);
}

/* Tables */
.md-content table {
  font-size: 0.9rem;
  line-height: 1.5;
}

.md-content th {
  font-weight: 600;
}

/* Images - ensure proper spacing */
.md-content img {
  margin: 1rem 0;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Adjust the main content area spacing */
.md-main__inner {
  margin-top: 0;
}

.md-content__inner {
  margin-bottom: 2rem;
}

/* Fine-tune the header */
.md-header__title {
  font-weight: 600;
}

/* Adjust search box to match GitBook style */
.md-search__input {
  font-weight: 400;
}

/* Navigation buttons styling */
.nav-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: 0.5rem;
  border: 1px solid #e9ecef;
}

.nav-buttons .nav-item {
  flex: 1;
}

.nav-buttons .nav-item.next {
  text-align: right;
}

.nav-buttons .nav-label {
  font-size: 0.8rem;
  color: #6c757d;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  font-weight: 500;
}

.nav-buttons .nav-link {
  font-weight: 500;
  color: #0969da;
  text-decoration: none;
  font-size: 0.9rem;
}

.nav-buttons .nav-link:hover {
  color: #0550ae;
  text-decoration: underline;
}
