/* Стили сайта документации BOX5-DIT-MGSN */
.md-typeset table:not([class]) {
  font-size: 0.74rem;
}
.md-typeset h1 {
  font-weight: 700;
}

.md-typeset .image-zoom-trigger {
  cursor: zoom-in;
}

.md-typeset .image-zoom-frame {
  display: inline-block;
  line-height: 0;
  max-width: 100%;
  position: relative;
  vertical-align: top;
}

.md-typeset .image-zoom-frame > .image-zoom-trigger {
  margin: 0;
}

.md-typeset .image-zoom-hint {
  align-items: center;
  background: var(--md-accent-fg-color);
  border: 0;
  border-radius: 999rem;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.28);
  color: var(--md-accent-bg-color);
  cursor: zoom-in;
  display: flex;
  font-size: 0.85rem;
  font-weight: 700;
  height: 1.6rem;
  justify-content: center;
  line-height: 1;
  opacity: 0.92;
  position: absolute;
  right: 0.5rem;
  top: 0.5rem;
  width: 1.6rem;
  z-index: 2;
}

.md-typeset .image-zoom-frame:hover .image-zoom-hint,
.md-typeset .image-zoom-hint:focus-visible {
  opacity: 1;
}

.md-typeset .image-zoom-trigger:focus-visible {
  outline: 0.12rem solid var(--md-accent-fg-color);
  outline-offset: 0.12rem;
}

.image-zoom-open {
  overflow: hidden;
}

.image-zoom-overlay {
  align-items: center;
  background: rgba(15, 23, 42, 0.86);
  box-sizing: border-box;
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 2rem;
  position: fixed;
  z-index: 2000;
}

.image-zoom-overlay[hidden] {
  display: none;
}

.image-zoom-viewport {
  align-items: center;
  display: flex;
  height: 100%;
  justify-content: center;
  max-height: 100%;
  max-width: 100%;
  width: 100%;
}

.image-zoom-content {
  background: var(--md-default-bg-color);
  border-radius: 0.25rem;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.45);
  cursor: zoom-out;
  max-height: 92vh;
  max-width: 96vw;
  object-fit: contain;
}

.image-zoom-content-svg {
  height: 92vh;
  width: 96vw;
}

.image-zoom-content-pre {
  box-sizing: border-box;
  color: var(--md-code-fg-color);
  max-width: 96vw;
  overflow: auto;
  padding: 1rem;
  white-space: pre;
}

.image-zoom-close {
  align-items: center;
  background: var(--md-default-bg-color);
  border: 0;
  border-radius: 999rem;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.35);
  color: var(--md-default-fg-color);
  cursor: pointer;
  display: flex;
  font-size: 1.4rem;
  height: 2.4rem;
  justify-content: center;
  line-height: 1;
  position: fixed;
  right: 1rem;
  top: 1rem;
  width: 2.4rem;
}

.image-zoom-close:focus-visible {
  outline: 0.12rem solid var(--md-accent-fg-color);
  outline-offset: 0.12rem;
}

@media screen and (max-width: 44.9375em) {
  .image-zoom-overlay {
    padding: 1rem;
  }

  .image-zoom-content {
    max-height: 88vh;
    max-width: 94vw;
  }

  .image-zoom-content-svg {
    height: 88vh;
    width: 94vw;
  }

  .image-zoom-content-pre {
    max-width: 94vw;
  }
}

/* Иллюстрации и схемы — во всю ширину области содержимого */
.md-typeset .image-zoom-frame {
  display: block;
  width: 100%;
}

.md-typeset img.image-zoom-trigger {
  border: 0.05rem solid var(--md-default-fg-color--lightest);
  border-radius: 0.2rem;
  display: block;
  height: auto;
  margin: 0.6rem 0 0.2rem;
  width: 100%;
}

.md-typeset .mermaid {
  display: block;
  margin: 0.8rem 0 0.2rem;
  overflow-x: auto;
  width: 100%;
}

.md-typeset .mermaid svg {
  height: auto;
  max-width: 100%;
  width: 100%;
}

/* Подписи к схемам и иллюстрациям */
.md-typeset p > em:only-child {
  color: var(--md-default-fg-color--light);
  display: inline-block;
  font-size: 0.75rem;
  font-style: normal;
}
