/* idfkit identity identity-2026.5. Generated by build.py from identity.tokens.json; do not edit. The lockup of https://docs.idfkit.com, in the surrounding text colour. */

.idfkit-lockup {
  display: inline-block;
  flex: none;
  height: calc(var(--idfkit-lockup-mark, 1.25rem) * 1.3818);
  margin-block-end: calc(var(--idfkit-lockup-mark, 1.25rem) * -0.3818);
  aspect-ratio: 1273.18 / 110.55;
  max-width: 100%;
  color: var(--idfkit-color-ink, currentColor);
  background-color: currentColor;
  -webkit-mask: url("lockup.svg") left top / contain no-repeat;
  mask: url("lockup.svg") left top / contain no-repeat;
  print-color-adjust: exact;
}

/* The themes render theme.logo through an <img>, where currentColor is black. The image is
   painted the same way, and the lockup replaces the site title beside it. */
.md-header__button.md-logo img, .md-nav__button.md-logo img {
  height: calc(1.2rem * 1.3818);
  margin-block-end: calc(1.2rem * -0.3818);
  width: auto;
  object-position: 200vw 0;
  background-color: currentColor;
  -webkit-mask: url("lockup.svg") left top / contain no-repeat;
  mask: url("lockup.svg") left top / contain no-repeat;
}

.md-header__title .md-header__topic:first-child .md-ellipsis {
  visibility: hidden;
}

/* Below this width the themes hide the header's logo and put it in a 1.6rem square in the drawer.
   The drawer gives the lockup its own row, and the header's first topic draws it instead. Both
   keep the mark's size until the space runs out, then fit it. */
@media screen and (max-width: 76.234375em) {
  .md-nav .md-nav__title[for="__drawer"] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    height: auto;
    padding: 0.8rem;
    font-size: 0;
    line-height: 1.5;
  }

  .md-nav .md-nav__title[for="__drawer"] .md-logo {
    position: static;
    flex: 0 1 100%;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
  }

  .md-nav .md-nav__title[for="__drawer"] .md-logo img {
    width: min(100%, calc(1.2rem * 15.9147));
    height: auto;
    aspect-ratio: 1273.18 / 110.55;
    margin-block-end: 0;
  }

  .md-header__title .md-header__topic:first-child {
    width: 100%;
    height: 100%;
    align-items: center;
  }

  .md-header__title .md-header__topic:first-child::before {
    content: "";
    flex: 0 1 auto;
    width: min(100%, calc(1.2rem * 15.9147));
    aspect-ratio: 1273.18 / 110.55;
    margin-block-end: calc(min(100%, calc(1.2rem * 15.9147)) * -0.023992);
    background-color: currentColor;
    -webkit-mask: url("lockup.svg") left top / contain no-repeat;
    mask: url("lockup.svg") left top / contain no-repeat;
  }

  .md-header__title .md-header__topic:first-child .md-ellipsis {
    display: none;
  }
}

@media (forced-colors: active) {
  .idfkit-lockup, .md-header__button.md-logo img, .md-nav__button.md-logo img, .md-header__title .md-header__topic:first-child::before {
    forced-color-adjust: none;
    background-color: CanvasText;
  }
}
