/* -------------------------------
   Typography improvements
--------------------------------*/
.md-typeset {
  line-height: 1.7;
  font-size: 0.8rem;
}

.md-typeset h1 {
  font-weight: 800;
  margin-top: 1.5rem;
}

.md-typeset h2 {
  font-weight: 400;
  color: rgb(24, 24, 228);
  margin-top: 1.4rem;
}

.md-typeset h3 {
  font-weight: 300;
}

.md-typeset pre,
.md-typeset div.highlight pre {
  border-radius: 8px !important;
  padding: 1rem !important;
  background-color: #f6f8fa !important;
}


.md-typeset code,
.md-typeset pre code {
  font-family: 'Fira Code', 'Source Code Pro', monospace !important;
  font-size: 0.85rem;
}



/* -------------------------------
   Content width (more readable)
--------------------------------*/

.md-grid {
  max-width: 1600px;
}


/* -------------------------------
   Code block styling
--------------------------------*/

.md-typeset pre {
  border-radius: 8px;
  padding: 0.2rem;
}

.md-typeset code {
  font-size: 0.85em;
}


/* -------------------------------
   Sidebar readability
--------------------------------*/

.md-nav__title {
  font-weight: 700;
}

.md-nav__link {
  font-size: 0.72rem;
}

.md-nav__link--active {
  font-weight: 600;
}


/* -------------------------------
   Top-level navigation sections
--------------------------------*/

/* Force consistent styling for top-level sections */
.md-nav--primary > .md-nav__list > .md-nav__item > .md-nav__link {
  font-size: 0.85rem;
  font-weight: 700;
  padding-left: 0;
}

.md-nav--primary > .md-nav__list > .md-nav__item {
  margin-top: 0.4rem;
  margin-bottom: 0.4rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

/* -------------------------------
   Footer styling
--------------------------------*/

.md-footer-meta {
  background-color: var(--md-primary-fg-color);
  color: white;
  border-top: none;
}

.md-footer-meta a {
  color: white;
  text-decoration: none;
  margin: 0 0.4rem;
}

.md-footer-meta a:hover {
  text-decoration: underline;
}


/* -------------------------------
   Image styling
--------------------------------*/

.md-typeset img {
  border-radius: 6px;
  margin: 1rem 0;
}


/* -------------------------------
   Table styling
--------------------------------*/

.md-typeset table {
  font-size: 0.8rem;
}

.md-typeset th {
  font-weight: 600;
}