/* An output block (```{code-block} text with :class: pv-output, e.g. in atlas.md): set apart from the code above it. */
div.pv-output pre {
  background: var(--color-background-secondary);
  border-left: 3px solid var(--color-background-border);
}

/* Code blocks in light mode: GitHub's own background, so a block stands out on the white page (the github-light
   Pygments style paints it white). Only the light cases -- the light theme, and furo's "auto" on a light system --
   because in dark the background comes from the github-dark style. Painted on div.highlight, where the Pygments
   styles paint it, so an output block's own pre background (above) still covers it. */
body[data-theme="light"] div.highlight {
  background: #f6f8fa;
}
@media (prefers-color-scheme: light) {
  body:not([data-theme="dark"]) div.highlight {
    background: #f6f8fa;
  }
}

/* Light mode, keyed like the rule above (the light theme, and "auto" on a light system); dark mode is left as it is.
   Comments: GitHub's #6e7781 is 4.27:1 on #f6f8fa, under WCAG AA (4.5:1); #656d76, GitHub's own darker muted grey,
   is 4.93:1. Output blocks: white with a thin border, so they do not look like the tinted code blocks. */
body[data-theme="light"] div.highlight :is(.c, .ch, .cm, .cp, .cpf, .c1, .cs) {
  color: #656d76;
}
body[data-theme="light"] div.pv-output pre {
  background: #ffffff;
  border: 1px solid #d0d7de;
  border-left-width: 3px;
}
@media (prefers-color-scheme: light) {
  body:not([data-theme="dark"]) div.highlight :is(.c, .ch, .cm, .cp, .cpf, .c1, .cs) {
    color: #656d76;
  }
  body:not([data-theme="dark"]) div.pv-output pre {
    background: #ffffff;
    border: 1px solid #d0d7de;
    border-left-width: 3px;
  }
}

/* The figure of the landing page (index.md): pocketvina_figure.svg inlined, so its words are text. Its font is
   Baskervville (SIL Open Font License, fonts/OFL.txt), weight 400, Latin characters only. The ink is furo's text
   colour. The pocket labels' and the ligand's N, O and S colours are light by default (also in the SVG) and dark
   below, keyed like furo's own dark rules: the dark theme, and "auto" on a dark system, but not in print, which furo
   keeps light. In forced colors (high contrast) the ink is the system's text colour, like the page's text. As wide
   as the text, like an image. */
@font-face {
  font-family: "Baskervville";
  font-style: normal;
  font-weight: 400;
  src: url("fonts/Baskervville-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Baskervville";
  font-style: italic;
  font-weight: 400;
  src: url("fonts/Baskervville-Italic.woff2") format("woff2");
}
svg.pv-figure {
  display: block;
  max-width: 100%;
  height: auto;
  --pv-n: #2244dd;
  --pv-o: #dd1a1a;
  --pv-s: #b39900;
}
@media not print {
  body[data-theme="dark"] svg.pv-figure {
    --pv-pk1: #7fb3ee;
    --pv-pk2: #b48ae6;
    --pv-pk3: #e58fd8;
    --pv-pk4: #e09a6a;
    --pv-n: #99b8ff;
    --pv-o: #ff8f85;
    --pv-s: #edd973;
  }
  @media (prefers-color-scheme: dark) {
    body:not([data-theme="light"]) svg.pv-figure {
      --pv-pk1: #7fb3ee;
      --pv-pk2: #b48ae6;
      --pv-pk3: #e58fd8;
      --pv-pk4: #e09a6a;
      --pv-n: #99b8ff;
      --pv-o: #ff8f85;
      --pv-s: #edd973;
    }
  }
}
@media (forced-colors: active) {
  svg.pv-figure {
    --pv-ink: CanvasText;
  }
}
