/* Topbar: link nativo desabilitado; logo exibida em #serverest-logo.topbar-logo (criado via JS) */
.swagger-ui .topbar-wrapper {
  display: flex;
  align-items: center;
}

.swagger-ui .topbar-wrapper .link {
  display: none;
}

/* Logo = só o SVG (id + classe), proporção exata, letras brancas, fundo transparente.
   É um link para a página inicial: flex e max-width anulam a regra do Swagger UI para .topbar a */
#serverest-logo.topbar-logo {
  position: relative;
  display: block;
  width: calc(60px * 3864 / 1530);
  height: 60px;
  max-width: none;
  padding: 0;
  flex: 0 0 auto;
  overflow: hidden;
  background: transparent;
  box-sizing: border-box;
}

#serverest-logo.topbar-logo::before {
  content: '';
  position: absolute;
  left: -2px;
  top: 0;
  right: -2px;
  bottom: 0;
  width: calc(100% + 4px);
  height: 100%;
  background-color: #ffffff;
  -webkit-mask-image: linear-gradient(white, white), url(/images/serverest_logo.svg);
  -webkit-mask-size: 100% 100%, 100% 100%;
  -webkit-mask-position: center, center;
  -webkit-mask-repeat: no-repeat, no-repeat;
  -webkit-mask-composite: destination-out;
  mask-image: linear-gradient(white, white), url(/images/serverest_logo.svg);
  mask-size: 100% 100%, 100% 100%;
  mask-position: center, center;
  mask-repeat: no-repeat, no-repeat;
  mask-composite: exclude;
  pointer-events: none;
}

.swagger-ui .topbar {
  position: relative;
  background-color: #000000;
  border-bottom: 20px solid #7900e2;
}

.swagger-ui .markdown code,
.swagger-ui .renderedMarkdown code {
  font-size: 12px;
}

/* O seletor de idioma é fixo no canto esquerdo. Abaixo desta largura ele cobriria a logo,
   que agora é o link para a página inicial, então a logo começa depois dele. */
@media (max-width: 1700px) {
  .swagger-ui .topbar-wrapper {
    padding-left: 126px;
  }
}
