:root {
  --md-primary-fg-color: rgb(64, 90, 28);
  --md-primary-fg-color--light: rgb(84, 110, 48);
  --md-primary-fg-color--dark: rgb(44, 70, 8);
  --md-accent-fg-color: rgb(64, 90, 28);
}

[data-md-color-scheme="slate"] {
  --md-primary-fg-color: rgb(64, 90, 28);
  --md-primary-fg-color--light: rgb(84, 110, 48);
  --md-primary-fg-color--dark: rgb(44, 70, 8);
  --md-accent-fg-color: rgb(64, 90, 28);
}

/* White background for logo */
.md-header__button.md-logo img,
.md-header__button.md-logo svg {
  background-color: white;
  padding: 4px;
  border-radius: 4px;
}

/* Improved hyperlink styling for better visibility */
.md-content a {
  color: #1976d2;
  text-decoration: underline;
  text-decoration-color: rgba(25, 118, 210, 0.4);
  text-underline-offset: 2px;
  transition: all 0.2s ease;
}

.md-content a:hover {
  color: #1565c0;
  text-decoration-color: #1565c0;
  text-decoration-thickness: 2px;
}

/* Dark mode hyperlinks */
[data-md-color-scheme="slate"] .md-content a {
  color: #64b5f6;
  text-decoration-color: rgba(100, 181, 246, 0.4);
}

[data-md-color-scheme="slate"] .md-content a:hover {
  color: #90caf9;
  text-decoration-color: #90caf9;
}

/* H1 headings with underline */
.md-content h1 {
  margin-top: 2rem;
  margin-bottom: 0.5em;
  padding-bottom: 0.3em;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

[data-md-color-scheme="slate"] .md-content h1 {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

/* Center all images horizontally */
.md-content img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Larger font size for directory/section labels in sidebar */
.md-nav__item--section > .md-nav__link {
  font-size: 1.1rem;
  font-weight: 600;
}
