.dark img[alt="icon"] {
  filter: invert(1);
}

pre {
  overflow-x: auto;
  max-width: 100%;
}

/* Tables wrap instead of scrolling sideways. Code wraps only at spaces. */
article table thead tr th,
article table tbody tr td {
  white-space: normal;
  vertical-align: top;
}

/* Example recordings sit where the screenshots do. */
video {
  max-width: 100%;
  height: auto;
}

/* The theme hard-codes a GitHub logo on the repo_url button; nib lives on Codeberg. */
a[href="https://codeberg.org/edo/nib"] > svg {
  display: none;
}

a[href="https://codeberg.org/edo/nib"]::before {
  content: "";
  display: inline-block;
  width: 1.1rem;
  height: 1.1rem;
  background-color: currentColor;
  -webkit-mask: url(../img/codeberg.svg) center / contain no-repeat;
  mask: url(../img/codeberg.svg) center / contain no-repeat;
}
