


:root {
  --mk-drawer-head-h: 64px;
}

@media screen and (min-width: 60em) and (max-width: 76.234375em) {
  
  .mk-header-section__lead {
    display: none;
  }

  .md-sidebar--primary {
    padding: 0;
    background: var(--mk-card);
    border-right: 1px solid var(--mk-line);
    box-shadow: 12px 0 32px rgba(20, 22, 34, 0.18);
  }

  .md-sidebar--primary .md-sidebar__scrollwrap {
    margin: 0;
    scrollbar-width: thin;
    scrollbar-color: var(--mk-line) transparent;
  }

  .md-sidebar--primary .md-nav--primary > .md-nav__title {
    position: sticky;
    top: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    height: 64px;
    min-height: 64px;
    padding: 10px;
    gap: 6px;
    color: transparent;
    font-size: 0;
    line-height: 1;
    background: var(--mk-header);
    border-bottom: 1px solid var(--mk-line);
    box-shadow: inset 0 -2px 0 var(--mk-purple);
  }

  .md-sidebar--primary .md-nav--primary > .md-nav__title > .md-logo {
    position: static;
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    min-width: 0;
    width: auto;
    height: 32px;
    margin: 0;
    padding: 0;
  }

  .md-sidebar--primary .md-nav--primary > .md-nav__title > .md-logo img {
    width: 100%;
    max-width: 172px;
    height: 32px;
    content: url("logo.svg");
    object-fit: contain;
    object-position: left center;
  }

  [data-md-color-scheme="slate"]
    .md-sidebar--primary
    .md-nav--primary
    > .md-nav__title
    > .md-logo
    img {
    content: url("logo_dark.svg");
  }

  .mk-drawer-close {
    display: grid;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    margin: 0 0 0 auto;
    padding: 0;
    color: var(--mk-muted);
    font: 400 1.2rem/1 "Segoe UI", sans-serif;
    background: var(--mk-bg);
    border: 1px solid var(--mk-line);
    border-radius: var(--mk-radius-sm);
    cursor: pointer;
    place-items: center;
  }

  .mk-drawer-close:hover {
    color: var(--mk-purple);
    background: var(--mk-purple-soft);
  }

  .mk-drawer-close:focus-visible {
    outline: none;
    box-shadow: var(--mk-focus);
  }

  .md-sidebar--primary .md-nav--primary > .md-nav__list {
    padding: 0.25rem 0.2rem 0.8rem;
    background: var(--mk-card);
  }

  .md-sidebar--primary .md-nav__link {
    color: var(--mk-ink);
    font-size: 0.78rem;
    line-height: 1.3;
    border-radius: 0;
  }

  .md-sidebar--primary .md-nav__link:hover,
  .md-sidebar--primary .md-nav__link:focus,
  .md-sidebar--primary .md-nav__container:hover {
    color: var(--mk-purple);
    background: transparent;
  }

  .md-sidebar--primary .md-nav__link--active {
    color: var(--mk-purple);
    font-weight: 650;
    background: transparent;
  }

  
  .md-sidebar--primary .md-nav:not(.md-nav--primary) {
    top: var(--mk-drawer-head-h);
    height: calc(100% - var(--mk-drawer-head-h));
  }

  .md-sidebar--primary .md-nav:not(.md-nav--primary) > .md-nav__title {
    min-height: 56px;
    
    height: auto;
    
    padding: 0.7rem 0.75rem 0.7rem 2.1rem;
    color: var(--mk-ink);
    font-size: 0.78rem;
    line-height: 1.3;
    background: var(--mk-header);
    border-bottom: 1px solid var(--mk-line);
    box-shadow: none;
  }

  .md-sidebar--primary .md-nav:not(.md-nav--primary) > .md-nav__list {
    padding: 0.35rem 0.4rem 0.8rem;
  }
}

@media screen and (max-width: 59.984375em) {
  :root {
    --mk-header-h: 60px;
  }

  
  :root:has(.mk-header-section) {
    --mk-header-h: 108px;
  }

  .md-header__inner {
    flex-wrap: wrap;
    align-content: center;
  }

  .mk-header-section {
    --mk-ico-size: 28px;
    --mk-ico-glyph: 15px;

    order: 4;
    flex: 1 0 100%;
    margin: 0;
    padding: 0.3rem 0.1rem 0.25rem;
    gap: 0.42rem;
    border-top: 1px solid var(--mk-line);
    border-left: 0;
  }

  .mk-header-section__label {
    font-size: 0.74rem;
  }

  
  .mk-header-section__lead {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.65rem;
    line-height: 1.25;
    white-space: normal;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    
    min-height: calc(0.65rem * 1.25);
  }

  .md-header {
    background: color-mix(in srgb, var(--mk-header) 94%, transparent);
    box-shadow: 0 1px 0 var(--mk-line), 0 6px 20px rgba(28, 32, 56, 0.04);
    backdrop-filter: blur(14px);
  }

  .md-header__inner {
    padding: 0 0.4rem;
    gap: 0.15rem;
  }

  .md-header__button[for="__drawer"] {
    order: 0;
    display: inline-grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    margin: 0;
    padding: 0.48rem;
    color: var(--mk-muted);
    border-radius: var(--mk-radius-sm);
    place-items: center;
  }

  .md-header__button.md-logo {
    order: 1;
    margin: 0 0.2rem 0 0.05rem;
  }

  .md-header__button.md-logo img,
  .md-header__button.md-logo svg {
    height: 34px;
    max-width: min(235px, 35vw);
  }

  .md-search {
    order: 2;
  }

  .md-header__option {
    order: 3;
    margin: 0;
  }

  .md-header__option .md-header__button {
    width: 42px;
    height: 42px;
    margin: 0;
    padding: 0.48rem;
    border-radius: var(--mk-radius-sm);
  }

  .md-overlay {
    background: rgba(20, 22, 34, 0.52);
    backdrop-filter: blur(2px);
  }

  .md-sidebar--primary {
    padding: 0;
    background: var(--mk-card);
    border-right: 1px solid var(--mk-line);
    box-shadow: 12px 0 32px rgba(20, 22, 34, 0.18);
  }

  .md-sidebar--primary .md-sidebar__scrollwrap {
    margin: 0;
    scrollbar-width: thin;
    scrollbar-color: var(--mk-line) transparent;
  }

  .md-sidebar--primary .md-nav--primary > .md-nav__title {
    position: sticky;
    top: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    height: 64px;
    min-height: 64px;
    padding: 10px;
    gap: 6px;
    color: transparent;
    font-size: 0;
    line-height: 1;
    background: var(--mk-header);
    border-bottom: 1px solid var(--mk-line);
    box-shadow: inset 0 -2px 0 var(--mk-purple);
  }

  .md-sidebar--primary .md-nav--primary > .md-nav__title > .md-logo {
    position: static;
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    min-width: 0;
    width: auto;
    height: 32px;
    margin: 0;
    padding: 0;
  }

  .md-sidebar--primary .md-nav--primary > .md-nav__title > .md-logo img {
    width: 100%;
    max-width: 172px;
    height: 32px;
    content: url("logo.svg");
    object-fit: contain;
    object-position: left center;
  }

  [data-md-color-scheme="slate"]
    .md-sidebar--primary
    .md-nav--primary
    > .md-nav__title
    > .md-logo
    img {
    content: url("logo_dark.svg");
  }

  .mk-drawer-close {
    display: grid;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    margin: 0 0 0 auto;
    padding: 0;
    color: var(--mk-muted);
    font: 400 1.2rem/1 "Segoe UI", sans-serif;
    background: var(--mk-bg);
    border: 1px solid var(--mk-line);
    border-radius: var(--mk-radius-sm);
    cursor: pointer;
    place-items: center;
  }

  .mk-drawer-close:hover {
    color: var(--mk-purple);
    background: var(--mk-purple-soft);
  }

  .mk-drawer-close:focus-visible {
    outline: none;
    box-shadow: var(--mk-focus);
  }

  .md-sidebar--primary .md-nav--primary > .md-nav__list {
    padding: 0.2rem 0.15rem 0.8rem;
    background: var(--mk-card);
  }

  .md-sidebar--primary .md-nav__item {
    border: 0;
  }

  .md-sidebar--primary
    .md-nav--primary
    > .md-nav__list
    > .md-nav__item {
    margin: 0;
  }

  .md-sidebar--primary .md-nav__link {
    color: var(--mk-ink);
    font-size: 0.78rem;
    line-height: 1.3;
    border-radius: 0;
  }

  .md-sidebar--primary
    .md-nav--primary
    > .md-nav__list
    > .md-nav__item
    > .md-nav__link:not(.md-nav__container) {
    min-height: 0;
    margin: 0;
    padding: 0.38rem 0.7rem;
  }

  .md-sidebar--primary
    .md-nav--primary
    > .md-nav__list
    > .md-nav__item
    > .md-nav__container {
    min-height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 0;
  }

  .md-sidebar--primary
    .md-nav--primary
    > .md-nav__list
    > .md-nav__item
    > .md-nav__container
    > a.md-nav__link {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding: 0.38rem 0.7rem;
  }

  .md-sidebar--primary
    .md-nav--primary
    > .md-nav__list
    > .md-nav__item
    > .md-nav__container
    > label.md-nav__link {
    display: grid;
    flex: 0 0 40px;
    align-self: stretch;
    width: 40px;
    height: auto;
    margin: 0;
    padding: 0;
    place-items: center;
  }

  .md-sidebar--primary .md-nav__link:hover,
  .md-sidebar--primary .md-nav__link:focus,
  .md-sidebar--primary .md-nav__container:hover {
    color: var(--mk-purple);
    background: transparent;
  }

  .md-sidebar--primary .md-nav__link--active {
    color: var(--mk-purple);
    font-weight: 650;
    background: transparent;
  }

  
  .md-sidebar--primary .md-nav:not(.md-nav--primary) {
    top: var(--mk-drawer-head-h);
    height: calc(100% - var(--mk-drawer-head-h));
  }

  .md-sidebar--primary
    .md-nav:not(.md-nav--primary)
    > .md-nav__title {
    min-height: 56px;
    
    height: auto;
    
    padding: 0.7rem 0.75rem 0.7rem 2.1rem;
    color: var(--mk-ink);
    font-size: 0.78rem;
    line-height: 1.3;
    background: var(--mk-header);
    border-bottom: 1px solid var(--mk-line);
    box-shadow: none;
  }

  .md-sidebar--primary
    .md-nav:not(.md-nav--primary)
    > .md-nav__list {
    padding: 0.35rem 0.4rem 0.8rem;
  }

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

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

  .md-content__inner {
    margin: 0 0.6rem 1.2rem;
    padding: 1.1rem 1.2rem 1.45rem;
  }

  .md-content__inner:has(.mk-hero),
  .md-content__inner:has(.mk-topics),
  .md-content__inner:has(.mk-hub) {
    margin: 0 0.7rem 1.2rem;
    padding: 0.3rem 0 1.2rem;
  }

  .md-typeset h1 {
    margin-bottom: 1.1rem;
  }

  .md-typeset h2 {
    margin-top: 1.55rem;
  }

  .mk-hero,
  .mk-hub,
  .mk-back,
  .mk-catalog,
  .mk-topics {
    max-width: none;
  }

  .mk-hero {
    grid-template-columns: 1fr;
    margin: 0 0 0.8rem;
    gap: 0;
  }

  .mk-hero h1 {
    margin-bottom: 0.3rem;
    font-size: clamp(1.55rem, 5vw, 1.9rem);
  }

  .mk-hero p,
  .mk-hub p,
  .mk-lead {
    font-size: 0.88rem;
    line-height: 1.45;
  }

  .mk-hero-art {
    display: none;
  }

  .mk-topics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 0.8rem;
    gap: 0.55rem;
  }

  .mk-topic {
    min-height: 96px;
    padding: 0.75rem;
  }

  .mk-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mk-block {
    padding: 0.85rem 0.9rem 0.95rem;
  }

  .mk-page-nav {
    margin-top: 1.7rem;
    padding-top: 0.9rem;
    gap: 0.5rem;
  }

  .mk-page-nav__link {
    min-height: 68px;
    padding: 0.58rem 0.65rem;
  }

  .mk-page-nav__title {
    font-size: 0.71rem;
  }

  .md-footer {
    margin-top: 0.5rem;
  }

  .md-footer-meta__inner {
    min-height: 58px;
    padding: 0.6rem 0.7rem;
  }
}

@media screen and (max-width: 37.5em) {
  .md-header__inner {
    padding: 0 0.4rem;
  }

  .md-header__button.md-logo {
    flex: 0 0 36px;
    width: 36px;
    margin: 0 0.15rem 0 0;
  }

  .md-header__button.md-logo img,
  .md-header__button.md-logo svg {
    width: 36px;
    max-width: 36px;
    height: 36px;
  }

  .md-main__inner {
    margin-top: 0;
  }

  .md-content__inner {
    margin: 0 0 1rem;
    padding: 1rem 0.9rem 1.25rem;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .md-content__inner:has(.mk-hero),
  .md-content__inner:has(.mk-topics),
  .md-content__inner:has(.mk-hub) {
    margin: 0;
    padding: 0.8rem 0.7rem 1rem;
  }

  .md-typeset > p,
  .md-typeset > ul,
  .md-typeset > ol,
  .md-typeset > .admonition,
  .md-typeset > details {
    max-width: none;
  }

  .md-typeset h1 {
    margin-bottom: 1rem;
    font-size: 1.65rem;
    line-height: 1.2;
  }

  .md-typeset h2 {
    margin: 1.45rem 0 0.65rem;
    font-size: 1.25rem;
    line-height: 1.3;
  }

  .md-typeset h3 {
    font-size: 1.05rem;
  }

  .md-typeset img[src*="/assets/img/"] {
    border-radius: var(--mk-radius-sm);
  }

  .mk-hero h1 {
    font-size: 1.55rem;
  }

  
  .mk-topic {
    --mk-ico-size: 32px;
    --mk-ico-glyph: 18px;

    min-height: 92px;
    padding: 0.65rem;
    column-gap: 0.55rem;
  }

  .mk-topic strong {
    font-size: 0.82rem;
  }

  .mk-topic em {
    font-size: 0.7rem;
  }

  .mk-hub h1 {
    font-size: 1.55rem;
  }

  .mk-back {
    margin-bottom: 0.55rem;
  }

  .mk-links {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  
  .mk-links a {
    padding: 0.6rem 0.65rem;
    column-gap: 0.6rem;
    font-size: 0.82rem;
  }

  .mk-link-title {
    font-size: 0.82rem;
  }

  .mk-link-description {
    font-size: 0.69rem;
  }

  .mk-block {
    padding: 0.75rem;
  }

  .mk-block h2 {
    margin-bottom: 0.55rem;
    font-size: 0.96rem;
  }


  .mk-page-nav {
    grid-template-columns: 1fr;
  }

  .mk-page-nav__link--next:first-child {
    grid-column: 1;
  }

  .mk-page-nav__title {
    display: -webkit-box;
    overflow: hidden;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .mk-footer-brand img {
    width: 30px;
    height: 30px;
  }
}

@media screen and (max-width: 23.75em) {
  .mk-topics {
    grid-template-columns: 1fr;
  }

  
  .md-header .md-search {
    
    
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  .md-header .md-search__form {
    width: 100%;
    max-width: none;
  }

  
  .md-header__option .md-header__button {
    width: 36px;
    height: 36px;
  }
}


.md-sidebar--primary .mk-nav--section > .md-nav__title {
  color: transparent;
  font-size: 0;
}



@media screen and (max-width: 44.9em) {
  
  .md-typeset:has(h3[data-method]) th:nth-child(1),
  .md-typeset:has(h3[data-method]) td:nth-child(1),
  .md-typeset:has(h3[data-method]) th:nth-child(2),
  .md-typeset:has(h3[data-method]) td:nth-child(2) {
    width: auto;
    white-space: normal;
  }

  
  .md-typeset h3[data-method] {
    gap: 0.3rem 0.45rem;
    margin-top: 1.5rem;
    padding-top: 0.9rem;
  }

  .md-typeset h3[data-method] > code:nth-of-type(2) {
    overflow-wrap: anywhere;
  }

  
  .mk-nav-panels {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}


@media screen and (min-width: 60em) {
  .md-sidebar--primary .mk-nav-panels {
    display: none;
  }

  
  .md-main__inner:has(.mk-hero, .mk-topics, .mk-hub) .md-sidebar--primary .mk-nav-panels {
    display: grid;
  }
}

@media screen and (max-width: 59.984375em) {
  .md-sidebar--secondary .mk-nav-panels {
    display: none;
  }
}


.mk-nav-panels--toc {
  margin: 1rem 0 0.4rem;
  padding: 0.8rem 0 0;
}



@media screen and (max-width: 29em) {
  .mk-topics {
    grid-template-columns: 1fr;
  }
}


@media screen and (max-width: 59.984375em) {
  .md-typeset a.glightbox {
    position: relative;
    display: inline-block;
    line-height: 0;
  }

  .md-typeset a.glightbox::after {
    position: absolute;
    right: 0.4rem;
    bottom: 0.4rem;
    width: 28px;
    height: 28px;
    content: "";
    background-color: var(--mk-purple);
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.28);
    -webkit-mask-image: none;
    mask-image: none;
  }

  .md-typeset a.glightbox::before {
    position: absolute;
    right: 0.4rem;
    bottom: 0.4rem;
    z-index: 1;
    width: 28px;
    height: 28px;
    content: "";
    background-color: #fff;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http://www.w3.org/2000/svg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%3E%3Ccircle%20cx%3D%2210.5%22%20cy%3D%2210.5%22%20r%3D%225.5%22/%3E%3Cpath%20d%3D%22M15%2015l5%205%22/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http://www.w3.org/2000/svg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%3E%3Ccircle%20cx%3D%2210.5%22%20cy%3D%2210.5%22%20r%3D%225.5%22/%3E%3Cpath%20d%3D%22M15%2015l5%205%22/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: 15px 15px;
    mask-size: 15px 15px;
  }
}


@media screen and (max-width: 59.984375em) {
  .md-typeset table:not([class]):has(thead th:nth-child(2):last-child),
  .md-typeset table:not([class]):has(thead th:nth-child(2):last-child) tbody {
    display: block;
    border: 0;
  }

  .md-typeset table:not([class]):has(thead th:nth-child(2):last-child) thead {
    display: none;
  }

  .md-typeset table:not([class]):has(thead th:nth-child(2):last-child) tr {
    display: block;
    padding: 0.5rem 0;
    border-top: 1px solid var(--mk-line);
  }

  .md-typeset table:not([class]):has(thead th:nth-child(2):last-child) tr:first-child {
    padding-top: 0;
    border-top: 0;
  }

  .md-typeset table:not([class]):has(thead th:nth-child(2):last-child) td {
    display: block;
    padding: 0;
    border: 0;
  }

  
  .md-typeset table:not([class]):has(thead th:nth-child(2):last-child) td:first-child {
    margin-bottom: 0.15rem;
    color: var(--mk-ink);
  }
}
