/* 260531Ch: Keep IPAnalyzer screenshots and tables readable in the MkDocs layout. */
.md-typeset img {
  max-width: 100%;
  height: auto;
}

.md-typeset table {
  font-size: 0.75rem;
}

.md-typeset table:not([class]) th,
.md-typeset table:not([class]) td {
  padding: 0.3em 0.9em;
}

/* 260531Ch: Use the header language selector only; hide the duplicate language tab bar. */
.md-tabs {
  display: none;
}

.md-header,
.md-tabs {
  background-color: var(--md-default-bg-color);
  color: var(--md-default-fg-color);
}

.md-header {
  border-bottom: 0.05rem solid var(--md-default-fg-color--lightest);
}

.md-search__input {
  background-color: var(--md-default-fg-color--lightest);
}

.md-search__input::placeholder,
.md-search__icon {
  color: var(--md-default-fg-color--light);
}

@media screen and (min-width: 76.25em) {
  .md-sidebar {
    top: 2.0rem;
    width: 9.5rem;
  }
}

.md-header__title {
  height: 2.0rem;
  line-height: 2.0rem;
}

.md-header__button {
  margin-top: 0.1rem;
  margin-bottom: 0.1rem;
  padding: 0.3rem;
}

.md-search__input {
  height: 1.8rem;
}

.md-footer {
  position: sticky;
  bottom: 0;
  z-index: 3;
}

.md-footer__inner {
  padding: 0.1rem 0.2rem;
}

.md-footer__link {
  margin-top: 0.1rem;
  margin-bottom: 0.1rem;
  flex-grow: 1;
}

.md-footer__title {
  font-size: 0.7rem;
  margin-bottom: 0;
  padding: 0 0.5rem;
  line-height: 1.3;
  max-width: calc(100% - 1.4rem);
}

.md-footer__direction {
  display: none;
}

.md-footer__button {
  margin: 0;
  padding: 0.1rem;
}

.md-footer__button svg {
  height: 0.9rem;
  width: 0.9rem;
}

.md-footer-meta__inner {
  padding: 0.1rem 0.2rem;
}

@media screen and (min-width: 60em) and (max-width: 76.234375em) {
  .md-header__button[for="__drawer"] {
    display: none;
  }

  .md-main__inner {
    display: flex;
  }

  .md-sidebar--primary {
    display: block;
    flex: 0 0 9.5rem;
    height: calc(100vh - 2.0rem);
    opacity: 1;
    order: 0;
    position: sticky;
    top: 2.0rem;
    transform: none;
    visibility: visible;
  }

  .md-content {
    min-width: 0;
  }
}
