:root {
  --md-primary-fg-color: #0F1B2E;
  --md-primary-fg-color--light: #13243D;
  --md-primary-fg-color--dark: #0B1625;
  --md-accent-fg-color: #5FD1C4;
  --md-default-bg-color: #F6F8FB;
  --md-default-fg-color: #0F1B2E;
  --md-typeset-a-color: #1C7F73;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.md-header {
  background: linear-gradient(180deg, #0F1B2E 0%, #13243D 100%);
  box-shadow: 0 10px 30px rgba(15, 27, 46, 0.35);
}

.md-header__title,
.md-header__button,
.md-tabs__link,
.md-nav__link--active,
.md-nav__link:focus,
.md-nav__link:hover {
  color: #E6EEF6;
}

.md-tabs {
  background: #0F1B2E;
}

.md-tabs__link--active {
  border-bottom: 2px solid #5FD1C4;
}

.md-typeset h1 {
  color: #0F1B2E;
}

.md-typeset h2,
.md-typeset h3 {
  color: #13243D;
}

.md-typeset a {
  color: #1C7F73;
}

.md-typeset a:hover {
  color: #145F56;
}

.md-footer {
  background: #0F1B2E;
}

.md-footer-meta {
  background: #0B1625;
}

.md-footer,
.md-footer-meta,
.md-footer-meta__inner {
  display: none;
}

.md-typeset code {
  background: rgba(95, 209, 196, 0.12);
  color: #0F1B2E;
}

.md-typeset pre code {
  background: #0B1625;
  color: #E6EEF6;
}

.md-nav__link {
  font-weight: 500;
}

.md-search__form {
  border-radius: 999px;
}

.md-search__input {
  border-radius: 999px;
}

.doc-figure {
  margin: 1.4rem 0 1.8rem;
  width: 100%;
  max-width: 100%;
  display: block;
}

.doc-screenshot {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: clamp(180px, 28vw, 420px);
  border-radius: 14px;
  border: 1px solid rgba(15, 27, 46, 0.16);
  outline: 1px solid rgba(15, 27, 46, 0.06);
  box-shadow: 0 12px 30px rgba(15, 27, 46, 0.12);
  background: linear-gradient(135deg, rgba(15, 27, 46, 0.08), rgba(95, 209, 196, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(15, 27, 46, 0.45);
  font-size: clamp(12px, 2.2vw, 14px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.doc-caption {
  margin-top: 8px;
  font-size: 12px;
  color: rgba(15, 27, 46, 0.55);
}

@media (max-width: 600px) {
  .doc-screenshot {
    border: 1px solid rgba(15, 27, 46, 0.35);
    outline: 1px solid rgba(15, 27, 46, 0.14);
    box-shadow: 0 10px 18px rgba(15, 27, 46, 0.15);
    background: linear-gradient(135deg, rgba(15, 27, 46, 0.12), rgba(95, 209, 196, 0.12));
  }

  .doc-caption {
    font-size: 11px;
  }
}

.md-header__inner {
  position: relative;
  min-height: 76px;
  align-items: center;
}

.md-header__button.md-logo {
  align-self: center;
}

.md-header__button.md-logo img {
  height: 66px;
  width: auto;
}

.md-header__title {
  display: flex;
  align-items: center;
  height: 100%;
  padding-left: 8px;
}

.md-header__topic {
  font-size: 0;
  line-height: 0;
  width: 300px;
  height: 52px;
  align-self: center;
  background: url("../brand/logo-mak-text-en.png") no-repeat left center / contain;
}

.md-header__inner::after {
  content: "Online Documentation";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: rgba(230, 238, 246, 0.95);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 20px rgba(8, 15, 26, 0.35);
  pointer-events: none;
  white-space: nowrap;
}

@media (max-width: 1200px) {
  .md-header__inner::after {
    display: none;
  }
}

@media (max-width: 600px) {
  .md-header__inner {
    min-height: 66px;
  }

  .md-header__button.md-logo img {
    height: 50px;
  }

  .md-header__topic {
    width: 220px;
    height: 38px;
  }
}

/* Sidebar title (desktop) */
.md-sidebar--primary .md-nav__title .md-ellipsis {
  font-size: 18px;
  line-height: 1.2;
  font-weight: 700;
  color: rgba(15, 27, 46, 0.85);
}

/* Drawer (mobile menu) branding */
@media (max-width: 900px) {
  .md-nav--primary .md-nav__title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .md-nav--primary .md-nav__title .md-ellipsis {
    font-size: 0;
    line-height: 0;
    position: relative;
    padding: 0;
  }

  .md-nav--primary .md-nav__title .md-ellipsis::before {
    content: "";
    display: inline-block;
    width: 230px;
    height: 44px;
    background: url("../brand/logo-mak-text-en.png") no-repeat left center / contain;
  }

  .md-nav--primary .md-nav__title::after {
    content: "Documentation";
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(230, 238, 246, 0.7);
  }
}
