:root {
  --imda-blue: #244fa8;
  --imda-blue-dark: #163c86;
  --imda-border: #d8e1ec;
  --imda-panel: #f5f7fb;
  --imda-caption: #624b18;
  --imda-caption-bg: #fff8e8;
}

.md-grid {
  max-width: 1920px;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.md-main__inner {
  margin-top: 1.3rem;
}

.md-header {
  background: #009485;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.16);
  color: #fff;
}

.md-header__inner {
  min-height: 3rem;
}

.md-header__button.md-logo {
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 4px;
  margin: 0.25rem 0.65rem 0.25rem 0;
  padding: 0.22rem 0.5rem;
}

.md-header__button.md-logo img {
  height: auto;
  width: 6.5rem;
}

.md-header__title,
.md-header__button {
  color: #fff;
}

.md-header .md-search__form,
.md-header .md-search__input {
  background-color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.82);
}

.md-header .md-search__icon,
.md-header .md-search__input,
.md-header .md-search__input::placeholder {
  color: #243447;
}

.md-content__inner {
  max-width: none;
}

.md-sidebar--primary .md-sidebar__scrollwrap {
  background: #fff;
  border-right: 1px solid #dfe5ea;
  box-shadow: inset -1px 0 0 rgba(15, 23, 42, 0.02);
  padding: 0.75rem 0.6rem;
}

.md-sidebar--primary .md-nav__title {
  background: transparent;
  border-bottom: 1px solid #e5eaee;
  color: #334155;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0.35rem 0.45rem;
  padding: 0 0 0.65rem;
}

.md-sidebar--primary .md-nav__link {
  border-left: 3px solid transparent;
  border-radius: 0 4px 4px 0;
  color: #344054;
  font-size: 0.74rem;
  line-height: 1.4;
  margin: 0.08rem 0.2rem;
  min-height: 2rem;
  padding: 0.42rem 0.65rem;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.md-sidebar--primary .md-nav__link:hover,
.md-sidebar--primary .md-nav__link:focus {
  background: #f0f4f6;
  color: #174e48;
}

.md-sidebar--primary .md-nav__link--active {
  background: #e7f3f0;
  border-left-color: #0f766e;
  color: #0f4e49;
  font-weight: 700;
}

[data-md-color-scheme="slate"] .md-sidebar--primary .md-sidebar__scrollwrap {
  background: #1d252e;
  border-right-color: #36414c;
  box-shadow: none;
}

[data-md-color-scheme="slate"] .md-sidebar--primary .md-nav__title {
  border-bottom-color: #36414c;
  color: #d7dee7;
}

[data-md-color-scheme="slate"] .md-sidebar--primary .md-nav__link {
  color: #c9d2dc;
}

[data-md-color-scheme="slate"] .md-sidebar--primary .md-nav__link:hover,
[data-md-color-scheme="slate"] .md-sidebar--primary .md-nav__link:focus {
  background: #29343e;
  color: #fff;
}

[data-md-color-scheme="slate"] .md-sidebar--primary .md-nav__link--active {
  background: #193c3a;
  border-left-color: #45b5a7;
  color: #e8fffb;
}

.md-typeset h1 {
  color: var(--imda-blue-dark);
  font-weight: 600;
}

[data-md-color-scheme="slate"] .md-typeset h1 {
  color: #78a9ff;
}

.md-typeset p:has(> img) {
  background: var(--imda-panel);
  border: 1px solid var(--imda-border);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  margin: 1.25rem 0 1.6rem;
  padding: 0.55rem;
}

.md-typeset p > img:only-child {
  border: 1px solid var(--imda-border);
  border-radius: 7px;
  cursor: zoom-in;
  display: block;
  height: auto;
  margin: 0;
  max-width: none;
  width: 100%;
}

.imda-flowchart {
  background: var(--imda-panel);
  border: 1px solid var(--imda-border);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  margin: 1.25rem auto 1.6rem;
  max-width: 560px;
  padding: 0.55rem;
}

.imda-flowchart img {
  border: 1px solid var(--imda-border);
  border-radius: 7px;
  cursor: zoom-in;
  display: block;
  height: auto;
  width: 100%;
}

.imda-scroll-image {
  background: var(--imda-panel);
  border: 1px solid var(--imda-border);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  margin: 1.25rem 0 1.6rem;
  max-height: 720px;
  overflow-y: auto;
  padding: 0.55rem;
}

.md-typeset .imda-scroll-image p:has(> img) {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  padding: 0;
}

.imda-scroll-image img {
  display: block;
  width: 100%;
}

.imda-image-caption {
  background: var(--imda-caption-bg);
  border-left: 4px solid #e4a11b;
  color: var(--imda-caption);
  font-size: 0.72rem;
  line-height: 1.45;
  margin-top: 0.45rem;
  padding: 0.45rem 0.6rem;
}

.imda-image-modal {
  align-items: center;
  background: rgba(15, 23, 42, 0.92);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 2rem;
  position: fixed;
  z-index: 9999;
}

.imda-image-modal.open {
  display: flex;
}

.imda-image-modal__scroll {
  max-height: 92vh;
  max-width: 96vw;
  overflow: auto;
}

.imda-image-modal img {
  background: #fff;
  border-radius: 8px;
  cursor: zoom-out;
  display: block;
  max-width: none;
  min-width: min(1400px, 96vw);
  width: auto;
}

.imda-image-modal__close {
  background: #fff;
  border: 0;
  border-radius: 50%;
  color: #111827;
  cursor: pointer;
  font-size: 1.4rem;
  height: 2.4rem;
  line-height: 1;
  position: fixed;
  right: 1.2rem;
  top: 1.2rem;
  width: 2.4rem;
}

.imda-next-step {
  display: flex;
  justify-content: flex-end;
  margin: 2rem 0 0.5rem;
}

.imda-next-step a {
  align-items: center;
  background: var(--imda-blue);
  border-radius: 4px;
  color: #fff;
  display: inline-flex;
  font-weight: 600;
  gap: 0.45rem;
  padding: 0.65rem 1rem;
  text-decoration: none;
}

.imda-next-step a span {
  font-size: 1.15em;
  line-height: 1;
}

.imda-next-step a:hover,
.imda-next-step a:focus {
  background: var(--imda-blue-dark);
  color: #fff;
}

.md-footer-meta__inner {
  justify-content: flex-end;
}

.md-copyright {
  margin-left: auto;
  text-align: right;
}

@media screen and (max-width: 76.1875em) {
  .md-grid {
    padding-left: 0.8rem;
    padding-right: 0.8rem;
  }

  .md-header__button.md-logo {
    display: block;
  }

  .md-header__button.md-logo img {
    width: 4rem;
  }

  .md-header__title {
    font-size: 0.72rem;
  }

  .md-content__inner {
    max-width: none;
  }

  .imda-image-modal {
    padding: 0.8rem;
  }
}
