@media print {
  /* Adjusts positioning of admonition icon */
  .md-typeset :is(.admonition-title,summary):before {
    top: 0.6rem;
    left: 0.6rem;
  }
  /* Modify rendering of numbered lists in PDF */
  .power-number+ol>li::before,
  .power-number+ol ol>li::before {
    background-color: var(--md-default-bg-color);
    color: var(--md-typeset-color);
    border-radius: 0;
    width: 1.5em;
    margin-left: -1.7em;
    opacity: 1;
  }
  /* Do not render html tags with this class in PDF */
  .no-pdf {
    display: none !important;
  }
  .tabbed-content {
    display: contents;
  }
} 
.md-sidebar__inner {
    font-size: 0.65rem;   /* Font size */
    line-height: 1.6;
}

.edit-page-link {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 1.2rem;
  font-weight: normal;
  color: var(--md-typeset-a-color);
  text-decoration: underline;
}

.edit-page-icon svg {
  width: 1.40em;
  height: 1.40em;
  fill: currentColor;
  vertical-align: middle;
}

/* External link icon styling */
a[href^="http"]:not([href*="docs.percona.com"]):not([href*="percona.com"]):not([href*="github.com/percona/pmm"])::after {
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%231976d2' d='M3.75 2h3.5a.75.75 0 0 1 0 1.5h-3.5a.25.25 0 0 0-.25.25v8.5c0 .138.112.25.25.25h8.5a.25.25 0 0 0 .25-.25v-3.5a.75.75 0 0 1 1.5 0v3.5A1.75 1.75 0 0 1 12.25 14h-8.5A1.75 1.75 0 0 1 2 12.25v-8.5C2 2.784 2.784 2 3.75 2Zm6.854-1h4.146a.25.25 0 0 1 .25.25v4.146a.25.25 0 0 1-.427.177L13.03 4.03 9.28 7.78a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042l3.75-3.75-1.543-1.543A.25.25 0 0 1 10.604 1Z'/%3E%3C/svg%3E");
  display: inline-block;
  width: 0.8em;
  height: 0.8em;
  margin-left: 0.3em;
  opacity: 0.7;
  vertical-align: middle;
  background-size: contain;
  background-repeat: no-repeat;
}

/* Hide external link icon in print mode */
@media print {
  a[href^="http"]:not([href*="docs.percona.com"]):not([href*="percona.com"]):not([href*="github.com/percona/pmm"])::after {
    display: none;
  }
}

