/* Keep Diplodoc's syntax classes; use readable native semantic colours. */
.dc-doc-page .yfm {
  --yfm-color-hljs-deletion: var(--yfm-color-link);
  --yfm-color-hljs-section: var(--yfm-color-link);
  --yfm-color-hljs-pseudo: var(--g-color-text-secondary);
  --yfm-color-hljs-literal: var(--yfm-color-link);
  --yfm-color-hljs-addition: var(--yfm-color-link);
  --yfm-color-code: var(--g-color-text-primary);
  --yfm-color-inline-code: var(--g-color-text-primary);
}

/* The supplied SVG uses viewBox only; reserve its native logo slot. */
.pc-logo__icon { width: 28px; height: 29px; }
.g-root {
  --yfm-font-size: 16px;
  --yfm-font-line-height: 24px;
  --g-text-body-1-font-size: 14px;
  --g-text-body-2-font-size: 16px;
  --g-text-body-2-line-height: 24px;
  --g-text-code-1-font-size: 14px;
}

/* Decorative divider between the two desktop destination links. */
.pc-desktop-navigation__buttons a[href="https://app.qubs.dev/"]::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 1em;
  margin-inline-end: 1rem;
  background: var(--g-color-line-generic-accent);
  vertical-align: -0.125em;
}

/* Keep the native mobile destination menu, while desktop has only the logo left. */
.pc-desktop-navigation__navigation-container { visibility: hidden; pointer-events: none; }
/* The shell repeats left/right destinations in its mobile main menu. */
.dc-sidebar-content__main-menu > ul:first-child { display: none; }

/* Preserve the supplied crops' intrinsic size and fit narrow article columns. */
.dc-doc-page .yfm img[src*="_assets/widgets/"] {
  width: auto;
  max-width: 100%;
  height: auto;
}
