/* Links from code blocks to the web playground (playground-links.js). */

/* One query: a link under the block. */
.playground-link {
  margin: -0.6em 0 1.2em;
  text-align: right;
  font-size: 0.85em;
}
.playground-link a {
  text-decoration: none;
}
.playground-link a:hover {
  text-decoration: underline;
}

/* Several queries: a run button in the left margin of each query's first line. */
pre.playground-runs {
  position: relative;
}
pre.playground-runs > code {
  padding-left: 2.2em;
}
.playground-run {
  position: absolute;
  left: 0.35em;
  width: 1.4em;
  text-align: center;
  font-size: 0.8em;
  text-decoration: none;
  color: var(--links);
  opacity: 0.55;
}
.playground-run:hover,
.playground-run:focus {
  opacity: 1;
  text-decoration: none;
}

@media print {
  .playground-link,
  .playground-run {
    display: none;
  }
  pre.playground-runs > code {
    padding-left: 0.5em;
  }
}
