/* Inject BugBug logo into the TypeDoc header next to the title link.
   SVG is inlined as a data URI so it survives TypeDoc's single-file customCss copy.
   Uses currentColor via mask so it adopts the active theme color. */
.tsd-page-toolbar .tsd-toolbar-contents a.title {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: transparent;
  position: relative;
}

.tsd-page-toolbar .tsd-toolbar-contents a.title,
.tsd-page-toolbar .tsd-toolbar-contents a.title * {
  font-size: 0 !important;
  color: transparent !important;
}

.tsd-page-toolbar .tsd-toolbar-contents a.title::after {
  content: 'SDK';
  font-size: 1rem !important;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-text, #fff) !important;
}

.tsd-page-toolbar .tsd-toolbar-contents a.title::before {
  content: '';
  display: inline-block;
  width: 96px;
  height: 30px;
  background-color: #521ec9;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 290.3 90.68'><g fill='black'><polygon points='36.28 54.42 36.28 18.14 18.14 18.14 18.14 0 0 0 0 54.42 36.28 54.42'/><polygon points='90.69 54.42 90.69 18.14 72.55 18.14 72.55 0 54.41 0 54.41 54.42 90.69 54.42'/><path d='M113.45,68h9v9h-9Zm0-13.53h-4.57v27.1H127V63.38H113.41Z'/><path d='M178.76,68h9v9h-9Zm13.57-4.57H174.19V81.52h13.57v4.59H174.19v4.57h18.14Z'/><polygon points='155.21 76.95 146.21 76.95 146.21 63.38 141.64 63.38 141.64 81.52 159.78 81.52 159.78 63.38 155.21 63.38 155.21 76.95'/><path d='M211.39,68h9v9h-9Zm0-13.53h-4.57l0,27.1H225V63.38H211.35Z'/><path d='M276.73,68h9v9h-9Zm13.57-4.57H272.16V81.52h13.57v4.59H272.16v4.57H290.3Z'/><polygon points='252.97 76.95 243.97 76.95 243.97 63.38 239.4 63.38 239.4 81.52 257.54 81.52 257.54 63.38 252.97 63.38 252.97 76.95'/><polygon points='72.56 63.5 72.56 72.56 18.14 72.56 18.14 63.49 0 63.49 0 81.63 18.14 81.63 18.14 90.68 72.57 90.68 72.57 81.62 90.69 81.62 90.69 63.5 72.56 63.5'/></g></svg>")
    no-repeat center / contain;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 290.3 90.68'><g fill='black'><polygon points='36.28 54.42 36.28 18.14 18.14 18.14 18.14 0 0 0 0 54.42 36.28 54.42'/><polygon points='90.69 54.42 90.69 18.14 72.55 18.14 72.55 0 54.41 0 54.41 54.42 90.69 54.42'/><path d='M113.45,68h9v9h-9Zm0-13.53h-4.57v27.1H127V63.38H113.41Z'/><path d='M178.76,68h9v9h-9Zm13.57-4.57H174.19V81.52h13.57v4.59H174.19v4.57h18.14Z'/><polygon points='155.21 76.95 146.21 76.95 146.21 63.38 141.64 63.38 141.64 81.52 159.78 81.52 159.78 63.38 155.21 63.38 155.21 76.95'/><path d='M211.39,68h9v9h-9Zm0-13.53h-4.57l0,27.1H225V63.38H211.35Z'/><path d='M276.73,68h9v9h-9Zm13.57-4.57H272.16V81.52h13.57v4.59H272.16v4.57H290.3Z'/><polygon points='252.97 76.95 243.97 76.95 243.97 63.38 239.4 63.38 239.4 81.52 257.54 81.52 257.54 63.38 252.97 63.38 252.97 76.95'/><polygon points='72.56 63.5 72.56 72.56 18.14 72.56 18.14 63.49 0 63.49 0 81.63 18.14 81.63 18.14 90.68 72.57 90.68 72.57 81.62 90.69 81.62 90.69 63.5 72.56 63.5'/></g></svg>")
    no-repeat center / contain;
  flex: 0 0 auto;
}

/* White logo in dark mode. TypeDoc's material theme toggles `data-theme` on <html>;
   we also cover the OS-level preference fallback. */
html[data-theme='dark'] .tsd-page-toolbar .tsd-toolbar-contents a.title::before,
:root[data-theme='dark'] .tsd-page-toolbar .tsd-toolbar-contents a.title::before {
  background-color: #ffffff;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme='light']) .tsd-page-toolbar .tsd-toolbar-contents a.title::before {
    background-color: #ffffff;
  }
}
