h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700 !important;
  color: var(--md-default-fg-color--light);
}

h2 {
  margin-top: 2.2em;
  padding-bottom: 0.3em;
  border-bottom: 0.1em solid var(--md-default-fg-color--light);
}

h3 {
  border-bottom: 0.01em solid var(--md-default-fg-color--light);
}

/* Adjust header title spacing */
.md-header__title {
  margin-left: 0 !important;
}

article.md-content__inner {
  padding-bottom: 40px;
}

/* Slightly increase navigation line height */
.md-nav__link .md-ellipsis,
.md-nav__item .md-ellipsis {
  line-height: 1.35; /* Adjust within the range of 1.35 to 1.5 */
}

.md-nav--primary .md-nav__item--active > .md-nav__link {
  color: var(--md-default-fg-color);
  background-color: color-mix(
    in srgb,
    var(--md-default-fg-color) 6%,
    transparent
  );
  padding-left: 0.7rem;
  margin-left: -0.7rem;
}

.md-nav--primary .md-nav__item--active > .md-nav__link--active,
.md-nav--secondary .md-nav__link--active {
  font-weight: 700;
  color: var(--md-primary-fg-color);
  background-color: color-mix(
    in srgb,
    var(--md-primary-fg-color) 12%,
    transparent
  );
  border-left: 0.2rem solid var(--md-primary-fg-color);
  padding-left: 0.5rem;
  margin-left: -0.7rem;
  border-radius: 0 0.2rem 0.2rem 0;
}

div.cmd code {
  background-color: #000000 !important;
  color: #ffffff !important;
  font-family: monospace;
}

.md-grid {
  max-width: 95%;
}

em {
  font-style: normal;
  font-weight: bold;
}

strong {
  font-style: normal;
  font-weight: bold;
  color: var(--md-primary-fg-color);
}

article img {
  border: 0.02em solid #ddd;
}

.search-shortcut-hint {
  display: none;
}

.md-typeset table:not([class]) {
  border-top: none;
  border-left: 0.05rem solid var(--md-typeset-table-color);
  border-right: 0.05rem solid var(--md-typeset-table-color);
  border-bottom: 0.05rem solid var(--md-typeset-table-color);
}

.md-typeset table:not([class]) td {
  border-top: 0.05rem solid var(--md-typeset-table-color);
  border-left: none;
  border-right: none;
  border-bottom: none;
}

.md-typeset table:not([class]) th {
  border-top: 0.05rem solid var(--md-typeset-table-color);
  border-left: none;
  border-right: none;
  border-bottom: none;
}

@media screen and (min-width: 60em) {
  .search-shortcut-hint {
    display: flex;
    gap: 0.2rem;
    position: absolute;
    top: 50%;
    right: 0.5rem;
    transform: translateY(-50%);
    pointer-events: none;
  }

  .search-shortcut-hint kbd {
    padding: 0 0.3rem;
    border: 0.05rem solid currentcolor;
    border-radius: 0.2rem;
    font-family: inherit;
    font-size: 0.55rem;
    line-height: 1rem;
    opacity: 0.7;
  }

  .md-search__form:focus-within .search-shortcut-hint {
    display: none;
  }
}
