/* Mentions of UI elements of WEBKNOSSOS, such as sidebar tabs and toolbar tools. The icon is set per element
   in the generated wk-ui-elements.css. */
.md-typeset .wk-ui-element {
  white-space: nowrap;
  padding: 0.05em 0.35em 0.05em 0.3em;
  border-radius: 0.2rem;
  background-color: var(--md-code-bg-color);
  font-weight: 600;
  text-decoration: underline dotted;
  text-decoration-color: var(--md-default-fg-color--lighter);
  text-underline-offset: 0.25em;
  cursor: help;
}

/* Inside a link, the chip keeps the pointer of the link. */
.md-typeset a .wk-ui-element {
  cursor: inherit;
}

.md-typeset .wk-ui-element[data-wk-icon]::before {
  content: "";
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
  margin-right: 0.3em;
  vertical-align: -0.17em;
  background-color: var(--md-primary-fg-color);
  -webkit-mask: var(--wk-icon) center / contain no-repeat;
  mask: var(--wk-icon) center / contain no-repeat;
}

/* In headings, the name keeps the look of the heading. */
.md-typeset :is(h1, h2, h3, h4) .wk-ui-element {
  padding: 0;
  background-color: transparent;
  font-weight: inherit;
  text-decoration: none;
}
