/* tikz.dev style sheet, shared by all manuals.
 * Package-specific rules are scoped by the class on <html>:
 * .pkg-pgf, .pkg-pgfplots, .pkg-tcolorbox, .pkg-tikz-cd. */

/*
  CSS stylesheet for tikz.dev
  Copyright 2021-2022 Dominik Peters

  adapted from:
  CSS stylesheet for the LaTeX Lwarp package
  Copyright 2016-2021 Brian Dunn - BD Tech Concepts LLC
*/

@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&display=swap');

* {
  --main-font: -system-ui, -apple-system, BlinkMacSystemFont, Roboto, 'Segoe UI', "Source Sans Pro", sans-serif;
  --monospace-font: 'SF Mono', SFMono-Regular, ui-monospace, 'DejaVu Sans Mono', Menlo, Consolas, "Source Code Pro", monospace;
}

header,
section,
footer,
nav,
main,
figure {
  display: block;
}

A:link {
  color: #000080;
  text-decoration: none;
}
A:visited {
  color: #800000;
}
A:hover {
  color: #4545df;
  text-decoration: underline;
}
A:active {
  color: #800000;
}
a.tocpart {
  display: inline-block;
  margin-left: 0em;
  font-weight: bold;
}
a.tocsection {
  display: inline-block;
  margin-left: 1em;
  text-indent: -0.5em;
  font-weight: bold;
}
a.tocsubsection {
  display: inline-block;
  margin-left: 2em;
  text-indent: -0.5em;
}
a.tocsubsubsection {
  display: inline-block;
  margin-left: 3em;
  text-indent: -0.5em;
}

body {
  font-family: var(--main-font);
  background: #faf7f4;
  color: black;
  margin: 0em;
  padding: 0em;
  font-size: 100%;
}

p {
  margin: 1.5ex 0em 1.5ex 0em;
}
table p {
  margin: 0.5ex 0em 0.5ex 0em;
}

span.sectionnumber {
  margin-right: 0.3em;
}

div.hidden,
span.hidden {
  display: none;
}

kbd,
span.verb,
span.texttt,
p span.texttt,
.quicklinks a {
  font-family: var(--monospace-font);
  font-size: 88%;
  line-height: 0.8;
  word-break: break-word;
}

p span.texttt,
p span.verb,
.quicklinks a {
  padding: 0.07em 0.14em;
  margin: 0;
  font-size: 85%;
  background-color: hsl(240, 100%, 97%);
  border: 1px solid hsl(240, 100%, 94%);
}
/* remove the above styling in some places */
.entryheadline p span.texttt,
.entryheadline p span.verb,
p span.verb.nobackground,
p span.texttt.nobackground
{
  background-color: transparent;
  border: none;
  padding: 0;
  font-size: 88%;
}

pre {
  padding: 3pt;
}

span.textmd {
  font-weight: normal;
}

span.textsc {
  font-variant: small-caps;
  font-variant-numeric: oldstyle-nums;
}

blockquote {
  display: block;
  margin-left: 2em;
  margin-right: 2em;
}

body div {
  margin: 0ex;
}

h1,
h2,
h4,
h5,
h6,
span.paragraph {
  font-family: var(--main-font);
  font-style: normal;
  font-weight: bold;
  text-align: left;
}

h1 {
  /* title of the entire website, used on each page */
  text-align: center;
  font-size: 2.5em;
  padding: 0.4ex 0em 0ex 0em;
}

h2 {
  font-size: 2em;
}
h4 {
  font-size: 1.75em;
}
h5 {
  font-size: 1.5em;
}
h6 {
  font-size: 1.25em;
}
span.paragraph {
  font-size: 1em;
  font-variant: normal;
  margin-right: 1em;
}

h1 {
  margin: 0ex 0em 0ex 0em;
  line-height: 1.3;
  text-align: center;
}

h2 {
  margin: 1ex 0em 1ex 0em;
  line-height: 1.3;
  text-align: center;
}

h4 {
  margin: 3ex 0em 1ex 0em;
  line-height: 1.3;
}

h5 {
  margin: 3ex 0em 1ex 0em;
  line-height: 1.3;
}

h6 {
  margin: 2ex 0em 1ex 0em;
  line-height: 1.3;
}

.footnotes {
  text-align: left;
  font-size: 0.85em;
  margin: 3ex 2em 0ex 2em;
  border-top: 1px solid silver;
}

section.textbody div.footnotes {
  margin: 3ex 2em 0.5ex 2em;
  border-bottom: 2px solid silver;
}

ul {
  margin: 1ex 1em 1ex 0em;
  line-height: 1.2;
}

li {
  margin: 0ex 0em 1ex 0em;
}

html {
  margin: 0;
  padding: 0;
}

.programlisting {
  font-family: var(--main-font);
  margin: 1ex 0ex 1ex 0ex;
  padding: 0.5ex 0pt 0.5ex 0pt;
  overflow-x: auto;
  white-space: pre-wrap;
  font-size: 80%;
}

section.textbody > pre.programlisting {
  border-top: 1px solid silver;
  border-bottom: 1px solid silver;
}

.verbatim {
  overflow-x: auto;
}

/* Minipage environments, vertically aligned to top, center, bottom: */
.minipage {
  /* display: inline-block ; */
  /* Mini pages which follow each other will be tiled. */
  text-align: left;
  margin: 0.25em 0.25em 0.25em 0.25em;
  padding: 0.25em 0.25em 0.25em 0.25em;
  display: inline-flex;
  flex-direction: column;
  overflow: auto;
}

/* Paragraphs in the flexbox did not collapse their margins. */
/* Have not yet researched this. */
.minipage p {
  margin: 0.75ex 0em 0.75ex 0em;
}

dl {
  margin: 1ex 2em 1ex 0em;
  line-height: 1.3;
}

dl dt {
  display: block;
  float: left;
  font-weight: bold;
  padding-right: 1em;
}

dl dd {
  display: block;
}

dl dd:after {
  content: "";
  display: block;
  clear: both;
}

dl dd p {
  margin-top: 0em;
}

dd ul {
  clear: both;
}

nav {
  font-family: var(--main-font);
  margin-bottom: 4ex;
}

nav p {
  line-height: 1.2;
  margin-top: 0.5ex;
  margin-bottom: 0.5ex;
  font-size: 0.9em;
}

img {
  max-width: 600px;
  border: 1px solid silver;
  box-shadow: 3px 3px 3px #808080;
  padding: 0.5%;
  margin: 0.5%;
  background: none;
}

img.inlineimage {
  padding: 0px;
  box-shadow: none;
  border: none;
  background: none;
  margin: 0px;
  display: inline-block;
  border-radius: 0px;
}

figure {
  margin: 5ex auto 5ex auto;
  padding: 1ex 1em 1ex 1em;
  overflow-x: auto;
}

figure div.minipage p {
  font-size: 85%;
}

div.minipage figure {
  border: none;
  box-shadow: none;
}

table {
  margin: 1ex auto 1ex auto;
  border-collapse: separate;
  border-spacing: 0px;
  line-height: 1.3;
}

table > tbody > tr.hline > td {
  border-top: 1px solid #808080;
  margin-top: 0ex;
  margin-bottom: 0ex;
} /* for \hline */ /* for \toprule, \bottomrule */

td {
  padding: 0.5ex 0.5em 0.5ex 0.5em;
}

table td.tdl {
  text-align: left;
  vertical-align: middle;
}
table td.tdc {
  text-align: center;
  vertical-align: middle;
}
table td.tdr {
  text-align: right;
  vertical-align: middle;
}
table td.tdp {
  text-align: left;
  vertical-align: bottom;
}

/* Margins of paragraphs inside table cells: */
td.tdp p {
  padding-top: 1ex;
  padding-bottom: 1ex;
  margin: 0ex;
}

td.tdp {
  padding: 0ex 0.5em 0ex 0.5em;
}

div.center {
  text-align: center;
}

header {
  line-height: 1.2;
  font-size: 1em;
  border-bottom: 1px solid silver;
  margin: 0px;
  padding: 2ex 1em 2ex 1em;
  text-align: left;
}

footer {
  font-size: 0.85em;
  line-height: 1.2;
  margin-top: 1ex;
  border-top: 1px solid silver;
  padding: 2ex 1em 2ex 1em;
  clear: both;
  text-align: left;
}

img.lateximage {
  padding: 0pt;
  margin: 0pt;
  box-shadow: none;
  border: none;
  background: none;
  max-width: 100%;
  height: auto;
  border-radius: 0ex;
  border: none;
}

div.sidetoccontainer {
  font-family: var(--main-font);
  float: left;
  width: 19%; /* room for border-right next to 80% main */
  margin: 0pt 0em 3ex 0pt;
  border-right: 1px solid silver;
  border-bottom: 1px solid silver;
  background: #faf7f4;
  font-size: 0.9em;
  border-radius: 0px 0px 20px 0px;
}

div.sidetoccontents {
  overflow-y: auto;
  width: 100%;
  text-align: left;
}

nav.sidetoc p {
  line-height: 1.2;
  margin: 1ex 0.5em 1ex 0.5em;
  text-indent: 0;
}

nav.sidetoc p a {
  color: black;
  font-size: 0.7em;
}

div.sidetoctitle {
  font-size: 1.2em;
  font-weight: bold;
  text-align: center;
  border-bottom: 1px solid silver;
}

nav.sidetoc a:hover {
  text-decoration: underline;
}

section.textbody {
  margin: 0ex 1em 0ex 1em;
}

/*
For CSS LaTeX and related logos:
Based on spacing demonstrated by the metafont package.

The subscripts are shrunk instead of lowered below the baseline,
to avoid browser rendering errors with the line height in lists, etc.
*/

.latexlogofont {
  font-family: "Linux Libertine O", "Nimbus Roman No 9 L", "FreeSerif",
    "Hoefler Text", Times, "Times New Roman", serif;
  font-variant: normal;
}

.latexlogo {
  font-family: "Linux Libertine O", "Nimbus Roman No 9 L", "FreeSerif",
    "Hoefler Text", Times, "Times New Roman", serif;
}

.latexlogosup {
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.7em;
  vertical-align: 0.25em;
  margin-left: -0.4em;
  margin-right: -0.15em;
}

.latexlogosub {
  text-transform: uppercase;
  /*  vertical-align: -0.27ex; */
  margin-left: -0.08em;
  margin-right: -0.07em;
  /*  font-size: 1em; */
  font-size: 0.7em;
}

.latexlogotwoe {
  text-transform: none;
  font-variant-numeric: oldstyle-nums;
}

.latexlogotwoesub {
  font-style: italic;
  /*  vertical-align: -0.27ex; */
  margin-left: -0.11em;
  margin-right: -0.1em;
  /*  font-size: 1em; */
  font-size: 0.7em;
}

/* Only display the sidetoc's webpage title if a small screen */
span.sidetocthetitle {
  display: none;
}

@media screen and (max-width: 50em) {
  div.sidetoccontainer {
    float: none;
    width: 100%;
    padding: 0;
    border-radius: 0;
    border-bottom: 1px solid black;
    border-top: 1px solid black;
    box-shadow: none;
  }
  span.sidetocthetitle {
    display: inline;
  }
  main.bodycontainer {
    width: 100%;
  }
}

@media print {
  body {
    font-family: "Linux Libertine O", "DejaVu Serif", "Bitstream Vera Serif",
      "Liberation Serif", "Nimbus Roman No 9 L", "FreeSerif", "Hoefler Text",
      Times, "Times New Roman", serif;
  }
  div.sidetoccontainer {
    display: none;
  }
  main.bodycontainer {
    width: 100%;
  }
}

@media handheld {
  div.sidetoccontainer {
    display: none;
  }
  main.bodycontainer {
    width: 100%;
  }
}

@media projection {
  div.sidetoccontainer {
    display: none;
  }
  main.bodycontainer {
    width: 100%;
  }
}

:root {
  --header-height: 40px;
}

@media screen and (min-width: 640px) {
  :root {
    --header-height: 60px;
  }
}

:target {
  scroll-margin-top: calc(60px + var(--header-height));
}

.grid-container {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "header"
    "left"
    "content"
    "footer";
}

@media screen and (min-width: 640px) {
  .grid-container {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "header header"
      "left content"
      "footer footer";
  }
}

@media screen and (min-width: 1024px) {
  .grid-container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "header header header"
      "left content right"
      "footer footer footer";
  }
}

.bodyandsidetoc > header {
  grid-area: header;
  display: flex;
  align-items: center;
  background-color: #1a458f;
  color: #fff;
  height: var(--header-height);
  /* width: 100vw; */
  padding: 0;
  margin: 0;
  position: sticky;
  top: 0;
  z-index: 5;
}

div.sidetoccontainer {
  float: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin: 0;
}

.sidetoctitle:first-child {
  display: none;
}

#chapter-toc-container {
  grid-area: left;
  background-color: rgb(242, 242, 242);
  border-right: 1px solid #ccc;
}

@media screen and (max-width: 639px) {
  #chapter-toc-container {
    width: 100%;
    transform: translateX(-100%);
    transition: transform 0.15s;
    position: fixed;
    z-index: 1000;
    top: var(--header-height);
    left: 0;
    bottom: 0;
    overflow-y: scroll;
  }

  #chapter-toc-container.show-menu {
    transform: translateX(0);
  }
}

@media screen and (min-width: 640px) {
  #chapter-toc-container {
    width: 11em;
  }
}

#local-toc-container {
  display: none;
}

@media screen and (min-width: 1024px) {
  #local-toc-container {
    grid-area: right;
    display: block;
    width: 13em;
  }

  #chapter-toc-container {
    width: 17em;
  }
}

@media screen and (min-width: 1280px) {
  #chapter-toc-container {
    width: 19em;
  }

  #local-toc-container {
    width: 19em;
  }
}

main.bodycontainer {
  grid-area: content;
  float: none;
  width: 100%;
  max-width: 100vw;
  padding-bottom: 40px;
}

nav {
  position: sticky;
  top: var(--header-height);
  padding: 0;
  margin: 0;
  max-height: calc(100vh - var(--header-height));
  overflow-y: auto;
  scroll-padding: 100px;
}

#chapter-toc-container nav.sidetoc {
  max-height: none;
}

footer {
  grid-area: footer;
  display: flex;
  justify-content: space-between;
  margin: 0;
  font-size: 1em;
}

header strong,
header .other-header-links {
  display: block;
  font-size: 1.1em;
  font-family: var(--main-font);
  margin: 0;
  margin-left: 0.4em;
}

header a,
header a:visited,
header a:hover {
  color: #fff !important;
  text-decoration: none;
}

/* package menus in the header (markup from navbar.py) */
.pkg-menu {
  position: relative;
  display: inline-block;
}

.pkg-menu-button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.pkg-menu-caret {
  width: 0.6em;
  height: 0.36em;
  margin-left: 0.35em;
  vertical-align: 0.18em;
  transition: transform 0.15s;
}

header ul.pkg-menu-list {
  display: none;
  position: absolute;
  /* the menu is centred vertically in the header: open below the header */
  top: calc(50% + var(--header-height) / 2);
  left: -0.6rem;
  margin: 0;
  padding: 0.35rem 0;
  list-style: none;
  font-size: 1rem;
  line-height: 1.3;
  font-weight: normal;
  white-space: nowrap;
  min-width: 10rem;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  z-index: 20;
}

/* invisible bridge, so that the mouse can move from the title to the list */
.pkg-menu-list::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: calc(var(--header-height) / 2);
}

header .pkg-menu-list li {
  margin: 0;
  padding: 0;
}

header .pkg-menu.open .pkg-menu-list,
header .pkg-menu:focus-within .pkg-menu-list {
  display: block;
}

.pkg-menu.open .pkg-menu-caret {
  transform: rotate(180deg);
}

@media (hover: hover) {
  header .pkg-menu:hover .pkg-menu-list,
  header .pkg-menu.hover .pkg-menu-list {
    display: block;
  }
}

header .pkg-menu-list a,
header .pkg-menu-list a:visited {
  display: block;
  padding: 0.4rem 1rem;
  color: #222 !important;
}

header .pkg-menu-list a:hover,
header .pkg-menu-list a:focus {
  background: #eceef6;
}

header .pkg-menu-list a[aria-current] {
  font-weight: bold;
}

header .pkg-menu-list .pkg-menu-divider {
  height: 1px;
  margin: 0.35rem 0;
  background: #ddd;
}

.pkg-menu-external {
  width: 0.75em;
  height: 0.75em;
  margin-left: 0.4em;
  vertical-align: -0.02em;
  color: #888;
}

header .pkg-menu-list .pkg-menu-phone {
  display: none;
}

/* phones: the PGF header keeps its title and a caret (like the other
   manuals); the caret's tap area extends beyond it */
@media screen and (max-width: 639px) {
  header .header-separator,
  header .header-editor-link {
    display: none;
  }

  header .pkg-menu-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  header .other-header-links {
    margin-left: 0;
  }

  header .pkg-menu-list .pkg-menu-phone {
    display: list-item;
  }

  .pkg-menu-button {
    padding: 0.7rem 1.4rem 0.7rem 0.3rem;
    margin: -0.7rem -1.4rem -0.7rem 0;
  }

  .pkg-menu-caret {
    width: 0.75em;
    height: 0.45em;
    margin-left: 0.2em;
  }
}

#hamburger-button {
  font-family: "Linux Libertine O", "Hoefler Text", "Garamond", "Bembo",
    "Janson", "TeX Gyre Pagella", "Palatino", "Liberation Serif",
    "Nimbus Roman No 9 L", "FreeSerif", Times, "Times New Roman", serif;
  padding-left: 0.5em;
  padding-right: 0.2em;
  cursor: pointer;
  font-size: 1.3em;
}

.mobile-toc {
  margin-top: -1em;
}

.mobile-toc ul {
  padding-inline-start: 20px;
}

@media screen and (min-width: 640px) {
  #hamburger-button {
    display: none;
  }

  .mobile-toc {
    display: none;
  }
}

#search {
  margin-left: auto;
  margin-right: 1em;
}

@media screen and (max-width: 639px) {
  header .site-home-link {
    display: none;
  }
}

@media screen and (min-width: 750px) {
  #search > button {
    width: 13em;
  }
}

@media screen and (min-width: 1280px) {
  #search > button {
    width: 19em;
  }
}

.DocSearch {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

.DocSearch header {
  border-bottom: 0px;
}

body .DocSearch-Container {
  z-index: 2000; /* above the mobile contents menu */
}

/* "Search in: This manual | All manuals" below the search field, styled
   like DocSearch's result cards (selected: like the selected result) */
.DocSearch-Modal .search-scope {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px var(--docsearch-spacing) 2px;
  font-size: 0.85em;
}
.DocSearch-Modal .search-scope-label {
  color: var(--docsearch-muted-color);
  margin-right: 2px;
}
.DocSearch-Modal .search-scope button {
  font: inherit;
  line-height: 1.5;
  color: var(--docsearch-hit-color);
  background: var(--docsearch-hit-background);
  border: 0;
  border-radius: 4px;
  box-shadow: var(--docsearch-hit-shadow);
  padding: 3px 10px;
  cursor: pointer;
}
.DocSearch-Modal .search-scope button:hover {
  color: var(--docsearch-highlight-color);
}
.DocSearch-Modal .search-scope button:focus-visible {
  outline: 2px solid var(--docsearch-highlight-color);
  outline-offset: 1px;
}
.DocSearch-Modal .search-scope button[aria-pressed="true"] {
  background: var(--docsearch-highlight-color);
  color: var(--docsearch-hit-active-color);
  box-shadow: none;
  cursor: default;
}

.search-input {
  margin-right: 0.3em;
  width: 10em;
  font-size: 0.9em;
  padding: 1px 3px;
}

@media screen and (min-width: 640px) {
  header strong {
    font-size: 1.5em;
    margin-left: 0.5em;
  }

  .search-input {
    margin-right: 1em;
    width: 14em;
    font-size: 105%;
    padding: 3px 5px;
  }

  #chapter-toc-container nav.sidetoc {
    max-height: calc(100vh - var(--header-height));
  }
}

.textbody h1 {
  display: none;
}

.textbody a:link,
.textbody a:visited {
  text-decoration: underline;
}

.textbody code a:link,
.textbody code a:visited,
.textbody .home-toc-section a:link,
.textbody .home-toc-section a:visited {
  text-decoration: none;
}

h2.inserted {
  display: none;
}

h4 {
  margin: 0;
  margin-bottom: -0.3em;
}

h5 {
  margin-top: 1.5ex;
}

/* anchor links for headings */
h4,
h5,
h6 {
  display: flex;
}

h4 > .anchor-link,
h5 > .anchor-link,
h6 > .anchor-link {
  margin-left: auto;
}

h4 > .anchor-link,
h4 > .anchor-pdf-link,
h4 > .anchor-html-link,
h5 > .anchor-link,
h5 > .anchor-pdf-link,
h5 > .anchor-html-link,
h6 > .anchor-link,
h6 > .anchor-pdf-link,
h6 > .anchor-html-link {
  font-family: "DejaVu Serif", "Bitstream Vera Serif", "Lucida Bright", Georgia,
    serif;
  font-size: 85%;
  color: #000080;
  opacity: 0.35;
  padding-left: 3px;
  font-weight: normal;
}

h5 > .anchor-link {
  font-size: 70%;
}

h4 > .anchor-link:hover,
h4 > .anchor-pdf-link:hover,
h4 > .anchor-html-link:hover,
h5 > .anchor-link:hover,
h5 > .anchor-pdf-link:hover,
h5 > .anchor-html-link:hover,
h6 > .anchor-link:hover,
h6 > .anchor-pdf-link:hover,
h6 > .anchor-html-link:hover {
  opacity: 1;
  /* background-color: rgb(201, 204, 243); */
  text-decoration: none;
  transform: scale(1.15);
}

h4:hover > .anchor-link,
h5:hover > .anchor-link,
h6:hover > .anchor-link {
  opacity: 1;
}

h4 > .anchor-pdf-link > svg,
h4 > .anchor-html-link > svg {
  width: 24px;
  height: 24px;
  margin-top: 6px;
  margin-bottom: -6px;
}

h5 > .anchor-pdf-link > svg,
h5 > .anchor-html-link > svg {
  width: 20px;
  height: 20px;
  margin-top: 6px;
  margin-bottom: -6px;
}

h6 > .anchor-pdf-link > svg,
h6 > .anchor-html-link > svg {
  width: 17px;
  height: 17px;
  margin-top: 4px;
  margin-bottom: -4px;
}

.example {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  margin: 1em;
  padding: 0;
}

.example-image {
  background-color: rgb(245, 245, 204);
}

.example-image p {
  margin: 0;
  padding: 0.5em;
}

.example-code {
  padding: 0.75em;
  background: #e5e5ff;
  font-family: var(--monospace-font);
  /* font-size: 98%; */
  line-height: 0.92;
  position: relative;
  overflow-wrap: break-word;
  word-break: break-word;
}

.example-code code {
  font-family: var(--monospace-font);
  font-size: 81.25%;
}
.example-code .programlisting {
  display: block;
  white-space: pre-wrap;
  line-height: 1.35;
  margin: 0;
  padding: 0;
}

.clipboardButton {
  position: absolute;
  top: 0;
  right: 0;
  padding: 0.4em;
  border: 0;
  font-size: 78%;
  text-align: center;
  min-width: 3.5em;
  color: #444;
  cursor: pointer;
  visibility: hidden;
  background-color: #bbbbfc8a;
}

.clipboardButton:hover {
  background-color: #c0c0ff;
}

.example-code:hover .clipboardButton {
  visibility: visible;
}

.example-code a {
  color: inherit;
  background-color: rgba(255, 255, 255, 0.2);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.6);
}

.example-code:hover a {
  background-color: rgba(255, 255, 255, 0.4);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.8);
}

.example-code a:hover {
  background-color: rgba(255, 255, 255, 0.8);
  text-decoration-color: blue;
}

.example-code > code > br:first-child {
  display: none;
  /* hide the first <br> which is spurious */
}

.example-code-comment {
  color: #4f4f4f;
}

.example-code .spaces {
  white-space: pre-wrap;
}

.codepreamble {
  color: #4f4f4f;
}

.angle {
  display: inline;
  font-size: 140%;
  line-height: 0.5;
  vertical-align: -2px;
}

/* Taken out 2022-05-28 after list behavior changed */
/* .manualentry {
  margin-left: 40px;
} */

.manualentry > ul {
  margin: 0;
}

ul {
  padding-left: 20px;
}

.entryheadline {
  margin-left: -20px;
}

@media screen and (min-width: 640px) {
  ul {
    padding-left: 40px;
  }

  .entryheadline {
    margin-left: -40px;
  }
}

.entryheadline p > a {
  position: absolute;
  /* ignore in flex layout */
}

table {
  margin: 1ex;
}

nav.sidetoc .sidetoccontents p {
  margin: 0;
  font-size: 110%;
}

nav.sidetoc .sidetoccontents > p.current-part {
  background-color: rgb(219, 221, 243);
}

nav.sidetoc .sidetoccontents > p.current {
  background-color: rgb(195, 199, 241);
}

nav.sidetoc .sidetoccontents a {
  display: block;
  padding: 0.5em 0.3em;
  text-indent: -0.5em;
  font-weight: bold;
  font-size: 0.85em;
}

.sidetoccontents p:hover,
nav.sidetoc .sidetoccontents > p.current-part:hover {
  background-color: rgb(174, 178, 240);
}

nav.sidetoc .sidetoccontents a.tocpart,
nav.sidetoc .sidetoccontents a.linkintro,
nav.sidetoc .sidetoccontents a.tocsubsection {
  margin-left: 1em;
}

nav.sidetoc .sidetoccontents a.tocsection,
nav.sidetoc .sidetoccontents a.tocsubsubsection {
  font-weight: normal;
  margin-left: 1.3em;
  padding-left: 1.3em;
  border-left: 1px solid rgb(75, 78, 114);
}

.hl-def {
  margin-right: 2em;
  /* space to default */
}

.hl-default {
  margin-left: auto;
  /* push to the right */
  color: rgb(49, 50, 58);
}

.entryheadline p {
  display: flex;
  justify-content: space-between;
  position: relative;
}

.entryheadline p > a.anchor-link,
.entryheadline p > a.anchor-html-link
{
  opacity: 0.4;
  padding-left: 3px;
  position: static;
  /* do not ignore in flex layout */
  margin-left: 0.5em !important;
}

.entryheadline p > a.anchor-html-link > svg {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  margin-bottom: -2px;
}

.entryheadline p:hover > a.anchor-link,
.entryheadline p:hover > a.anchor-html-link {
  opacity: 1;
}

.entryheadline p > a.anchor-html-link:hover {
  opacity: 1;
  transform: scale(1.15);
}

.entryheadline p > a.anchor-link:hover {
  background-color: rgb(201, 204, 243);
  text-decoration: none;
}

/* Home page */

.manual-title-block {
  text-align: center;
  border: 1px solid black;
  margin: 0 auto;
  margin-bottom: 1em;
  padding: 0.2em;
  padding-top: 1em;
}

.manual-title {
  font-size: 2.5em;
}

.manual-version {
  font-size: 1.5em;
}

.manual-html-title {
  font-size: 1.2em;
  font-style: italic;
  margin: 1em 0 0.3em 0;
}

.manual-authorship-explanation,
.manual-html-explanation {
  margin: 0 auto;
  margin-bottom: 0.2em;
  max-width: 60em;
  font-size: 1em;
  text-align: center;
}

.manual-html-explanation {
  margin-bottom: 0.7em;
}

.index-page #local-toc-container {
  display: none;
}

/* Start pages made with shared/home.py: the title box (as on the PGF and
   PGFplots start pages), an abstract and the contents as cards with an
   accent in the manual's color */
.pkg-pgfplots { --pkg-color: #623cc9; }
.pkg-tcolorbox { --pkg-color: #8c2323; }
.pkg-tikz-cd { --pkg-color: #236b53; }
.pkg-pgf-pie { --pkg-color: #855017; }
.pkg-tikz-feynman { --pkg-color: #3c5770; }
.pkg-wheelchart { --pkg-color: #596a35; }
.pkg-pgfgantt { --pkg-color: #635185; }
.pkg-tkz-euclide { --pkg-color: #006d77; }
.pkg-chemfig { --pkg-color: #202838; }
.pkg-forest { --pkg-color: #2f5d34; }
.pkg-nicematrix { --pkg-color: #24539c; }

.manual-title-block.home-box {
  margin-top: 0.75rem;
  padding: 1em 1em 0.6em;
}
.textbody .home-box .manual-title {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 2.5em;
  font-weight: normal;
  line-height: 1.15;
  text-align: center;
}
.home-box .manual-version {
  margin-top: 0.15em;
}
@media (max-width: 640px) {
  .textbody .home-box .manual-title {
    font-size: 1.9em;
  }
  .home-box .manual-version {
    font-size: 1.2em;
  }
}
.home-box .manual-logo img {
  max-width: 100%;
  height: auto;
  margin-bottom: 0.3em;
}

.index-page .abstract,
.index-page .home-abstract {
  max-width: 48em;
  margin: 1.5em auto;
  padding: 0.8em 1.2em;
  background-color: hsl(30, 37%, 90%);
}
.index-page .abstracttitle,
.index-page .home-abstract .abstract-title {
  font-weight: bold;
  text-align: center;
  margin: 0 0 0.3em;
}
.index-page .abstract p:last-child,
.index-page .home-abstract p:last-child {
  margin-bottom: 0;
}

/* example pictures on the start page, on the background of example pictures */
.home-showcase {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1em;
  margin: 1.5em 0 0.5em;
}
.home-showcase-item {
  flex: 1 1 14em;
  max-width: 24em;
  height: 13em;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8em;
  background-color: rgb(245, 245, 204);
  border-radius: 3px;
  box-sizing: border-box;
}
.home-showcase-item:hover {
  outline: 2px solid var(--pkg-color, #333);
}
.textbody .home-showcase-item img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  box-shadow: none;
  border: 0;
}

.textbody h2.home-contents-title {
  font-size: 1.5em;
  font-weight: 600;
  margin: 1.4em 0 0.6em;
  padding: 0;
  border: 0;
  text-align: left;
}
.home-contents {
  column-width: 17em;
  column-gap: 1em;
  margin-bottom: 2em;
}
.home-contents-single {
  columns: auto;
  max-width: 34em;
}
.home-contents-single ol {
  columns: 2 13em;
  column-gap: 1.5em;
}
.home-contents-single li {
  break-inside: avoid;
}
.home-card {
  break-inside: avoid;
  margin-bottom: 1em;
  background: #fff;
  border: 1px solid #d9d6cf;
  border-top: 3px solid var(--pkg-color, #333);
  border-radius: 3px;
  padding: 0.7em 0.9em 0.8em;
}
.textbody .home-card h3 {
  display: flex;
  gap: 0.4em;
  font-size: 1.05em;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 0.45em;
  padding: 0;
}
.home-card h3 a,
.home-card h3 a:visited {
  color: inherit;
}
.home-card ol {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.92em;
  line-height: 1.35;
}
.home-card li {
  display: flex;
  gap: 0.5em;
  margin: 0.25em 0;
}
.textbody .home-card a:link,
.textbody .home-card a:visited {
  text-decoration: none;
}
.home-card-number {
  flex: none;
  min-width: 2.3em;
  color: #8a8a8a;
  font-variant-numeric: tabular-nums;
}
.home-card h3 .home-card-number {
  min-width: 0;
}
.textbody .home-card a:hover {
  text-decoration: underline;
}

.quicklinks {
  margin-bottom: 0.5em;
  line-height: 1.8;
}
.quicklinks strong {
  font-size: 140%;
  line-height: 1;
  display: block;
  margin-bottom: 0.3em;
}
.quicklinks a {
  font-size: 100%;
  margin-right: 0.2em;
}
.quicklinks a:hover {
  background-color: hsl(240, 100%, 94%);
}

.home-toc-section {
  margin-bottom: 1em;
}
.home-toc-section strong {
  font-size: 140%;
}
.home-toc-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  margin-top: 0.5em;
}
.home-toc-card a {
  display: block;
  width: 275px;
  border: 1px solid #1a458f;
  background-color: rgb(242, 242, 242);
  text-align: center;
  padding-bottom: 0.2em;
}
.home-toc-card a:hover {
  text-decoration: none;
  background-color: rgb(201, 204, 243);
}
.home-toc-card img {
  background-color: white;
  width: 100%;
  height: auto;
  box-shadow: none;
  border: 0;
  padding: 0;
  margin: 0;
}
.home-toc-card a:hover img {
  background-color: rgb(242, 242, 242);
}

@media (max-width: 750px) {
  .home-toc-card a {
    width: 100%;
  }
}

.titlepagepic {
  margin: 0 auto;
  margin-top: 1em;
  max-width: 842px;
  object-fit: scale-down;
}

.titlepagepic img {
  height: auto;
}

.dedication {
  margin: 0 auto;
  padding: 1em 0;
  max-width: 840px;
}

.dedicationsignature {
  text-align: right;
}

/* *************************** */
/* "Remember picture" examples */
/* *************************** */

div.section-absolute-positioning {
  position: relative;
  padding-bottom: 5em;
}

div.example-absolute-positioning-bottom-left img {
  position: absolute;
  z-index: 100;
  bottom: 1em;
  left: 0.1em;
}

div.example-absolute-positioning-center img {
  position: absolute;
  z-index: 100;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

div.warning-see-pdf {
  background-color: rgb(254, 229, 184);
  border: 1px solid rgb(255, 204, 0);
  border-radius: 5px;
  padding: 0.5em;
  padding-left: 3.5em;
  background-image: url('standalone/exclamation-square.svg');
  background-repeat: no-repeat;
  background-position: 0.5em 0.5em;
  background-size: 2.3em;
}

div.warning-see-pdf img {
  display: block;
  margin-top: 0.5em;
  border: 1px solid rgb(219, 176, 1);
  max-width: 95%;
  width: 50em;
  box-shadow: 2px 2px 4px rgba(219, 176, 1, 0.3);
}

/* Temporary ad for pgfplots pages */

#pgfplots-link, #pgfplots-desktop-version, #pgfplots-smaller-version {
  display: none;
}

.pgfplots-link-text {
  font-weight: 600; 
  font-size: 1.11em;
}

@media screen and (min-width: 380px) {
  #pgfplots-link {
    display: block;
    background-color: #623cc9;
    color: #fff;
    border-radius: 5px;
    margin-left: 1em;
    padding: 0;
    box-shadow: inset 0 0 5px #341e72;
    border: 1px solid #623cc9;
    outline: 1px solid rgba(255, 255, 255, 0.2);
  }
  #pgfplots-link:hover {
    background-color: #7751e0;
    box-shadow: inset 0 0 5px #b4a0ea,
                0 0 5px rgba(255, 255, 255, 0.2);
  }
  #pgfplots-link a {
    color:#fff; 
    font-size: 0.75em;
    display: block; 
    padding: 0.2em;
  }
  #pgfplots-smaller-version {
    display: block;
  }
}

@media screen and (min-width: 1024px) {
  #pgfplots-link {
    margin-left: 1.5em;
  }
  #pgfplots-link a {
    color:#fff; 
    font-size: 0.85em;
    display: block; 
    padding: 0.35em;
  }
  #pgfplots-smaller-version {
    display: none;
  }
  #pgfplots-desktop-version {
    display: block;
  }
}

/* end temporary ad */

/* ************************************************************************ */
/* pgfplots: differences to the pgf style (selected via <html class=...>)  */
/* ************************************************************************ */

.pkg-pgfplots .bodyandsidetoc > header {
  background-color: #623cc9;
}

.pkg-pgfplots A:hover {
  color: #000080;
}

.pkg-pgfplots span.sectionnumber {
  margin-right: 0.5em;
}

.pkg-pgfplots kbd {
  padding: 0.07em 0.14em;
  margin: 0;
  font-size: 85%;
  background-color: hsl(240, 100%, 97%);
  border: 1px solid hsl(240, 100%, 94%);
}

.pkg-pgfplots .entryheadline kbd {
  background-color: transparent;
  border: none;
  padding: 0;
  font-size: 88%;
}

.pkg-pgfplots .textbody a:link,
.pkg-pgfplots .textbody a:visited {
  text-decoration: none;
}

/* links in code examples stay underlined (pgf's .textbody rules remove that) */
.pkg-pgfplots .example-code a:link,
.pkg-pgfplots .example-code a:visited {
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.6);
}

.pkg-pgfplots .example-code:hover a:link,
.pkg-pgfplots .example-code:hover a:visited {
  text-decoration-color: rgba(255, 255, 255, 0.8);
}

.pkg-pgfplots .example-code a:link:hover,
.pkg-pgfplots .example-code a:visited:hover {
  text-decoration-color: blue;
}

/* \verb is plain text in pgfplots */
.pkg-pgfplots p span.verb {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  word-break: inherit;
  padding: 0;
  background-color: transparent;
  border: none;
}

.pkg-pgfplots h4 {
  display: block;
}

.pkg-pgfplots h5 > .anchor-link,
.pkg-pgfplots h6 > .anchor-link {
  opacity: 0.4;
}

.pkg-pgfplots h5 > .anchor-link:hover,
.pkg-pgfplots h6 > .anchor-link:hover {
  background-color: rgb(201, 204, 243);
  transform: none;
}

.pkg-pgfplots .example-code {
  line-height: inherit;
}

.pkg-pgfplots .example-code code,
.pkg-pgfplots .example-code p {
  display: block;
  font-family: var(--monospace-font);
  font-size: 81.25%;
  margin: 0;
}

.pkg-pgfplots ul {
  padding-left: 40px;
}

.pkg-pgfplots .mobile-toc ul {
  padding-left: 20px;
}

.pkg-pgfplots .entryheadline {
  margin-left: -40px;
}

.pkg-pgfplots .hl-default {
  margin-left: 0.5em;
}

.pkg-pgfplots .entryheadline p {
  justify-content: flex-start;
}

.pkg-pgfplots .entryheadline p > a.anchor-link {
  opacity: 0.4;
  margin-left: auto !important;
}

.pkg-pgfplots .entryheadline p > a.anchor-link:hover {
  transform: none;
}

.pkg-pgfplots .abstract-block {
  margin: 0 auto;
  padding: 1em;
  background-color: hsl(30, 37%, 90%);
}

.pkg-pgfplots .abstract-heading {
  font-weight: bold;
  text-align: center;
}

/* ************************************************************************ */
/* tcolorbox                                                                */
/* ************************************************************************ */


.pkg-tcolorbox .bodyandsidetoc > header {
  background-color: #8c2323;
}

/* images of compiled LaTeX */
.pkg-tcolorbox img.lateximage {
  max-width: 100%;
  height: auto;
}

.pkg-tcolorbox img.inlineimage {
  vertical-align: middle;
}

.pkg-tcolorbox div.figure {
  margin: 1em 0;
}

.pkg-tcolorbox .example-image p {
  display: flex;
  align-items: center;
  min-height: 100%;
  box-sizing: border-box;
}

.pkg-tcolorbox .missing-image {
  display: inline-block;
  border: 1px dashed #999;
  color: #777;
  font-size: 80%;
  padding: 0.2em 0.5em;
}

.pkg-tcolorbox .example-code-title {
  font-family: var(--main-font);
  font-style: italic;
  font-size: 85%;
  color: #4f4f4f;
  margin-bottom: 0.4em;
}

/* \mylib{...}: library name badge (as in the PDF: green box with a "LIB" strip) */
.pkg-tcolorbox .mylib {
  display: inline-block;
  position: relative;
  line-height: 1.15;
  color: #004000;
  background: linear-gradient(to right, #80df9f 0.95em, #e6ffe6 0.95em);
  border: 1px solid #008000;
  border-radius: 2px;
  padding: 0 0.25em 0 1.2em;
}

.pkg-tcolorbox .mylib::before {
  content: "LIB";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2.1em;
  font-size: 45%;
  font-weight: bold;
  font-family: var(--main-font);
  color: white;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-align: center;
  line-height: 2.1em;
}

.pkg-tcolorbox h4 .mylib,
.pkg-tcolorbox .tocsection .mylib,
.pkg-tcolorbox .home-card .mylib,
.pkg-tcolorbox .part-toc .mylib {
  font-size: 90%;
  vertical-align: 0.05em;
}

/* boxes of the PDF manual: dark blue frame, angular corners, drop shadow */
.pkg-tcolorbox .example,
.pkg-tcolorbox .marker {
  --tcb-shadow: 3px 3px 4px rgba(0, 0, 0, 0.35);
}

.pkg-tcolorbox figure.example {
  border: 2px solid #17365d;
  border-radius: 4px;
  corner-shape: bevel;
  overflow: hidden;
  box-shadow: var(--tcb-shadow);
  background: white;
  margin: 1em 1em 1.2em 1em;
}

.pkg-tcolorbox .example-image {
  background-color: white;
}

.pkg-tcolorbox .example-code {
  background: #dbe5f1;
  flex: 1 1 auto;
}

.pkg-tcolorbox .example-image + .example-code {
  border-left: 1px solid #b9c6d6;
}

.pkg-tcolorbox .clipboardButton {
  background-color: #b3c4dc;
}

.pkg-tcolorbox .clipboardButton:hover {
  background-color: #9bb1d0;
}

/* marker environment: yellow note with "!" strip and dog-eared corner */
.pkg-tcolorbox .marker {
  margin: 1em 0 1.2em 0;
  filter: drop-shadow(var(--tcb-shadow));
}

.pkg-tcolorbox .marker-box {
  position: relative;
  padding: 0.15em 0.8em 0.15em calc(18px + 0.7em);
  border: 1px solid #333300;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='13'%3E%3Cpath d='M17 1L1 5L5 13' fill='%23ccc766' stroke='%23333300' stroke-linejoin='round'/%3E%3Cpath d='M17 1L5 13' stroke='%23333300' stroke-width='2'/%3E%3C/svg%3E") right -1px bottom -1px / 17px 13px no-repeat,
    linear-gradient(to right, #8f8b48 18px, #fff980 18px);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}

.pkg-tcolorbox .marker-box::before {
  content: "!";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 2em;
  font-family: Georgia, serif;
}

.pkg-tcolorbox .marker-box > p {
  margin: 0.45em 0;
}

.pkg-tcolorbox .deprecated {
  opacity: 0.75;
  border-left: 3px solid #bbb;
  padding-left: 0.8em;
}

/* documentation entries */
.pkg-tcolorbox .colopt {
  color: #5d5d5d;
}

.pkg-tcolorbox .choicesep {
  margin: 0 0.25em;
  color: #777;
}

.pkg-tcolorbox .docvalue {
  color: #008080;
}

.pkg-tcolorbox .texttt.docdef {
  color: #bf0000;
}

.pkg-tcolorbox .docnotes {
  display: inline-flex;
  gap: 0.3em;
  margin-left: 0.6em;
  align-self: center;
}

.pkg-tcolorbox .docnew,
.pkg-tcolorbox .docupdated,
.pkg-tcolorbox .marginnote {
  font-size: 70%;
  font-weight: 600;
  white-space: nowrap;
  padding: 0.05em 0.45em;
  border-radius: 1em;
}

.pkg-tcolorbox .docnew {
  color: #1d6b1d;
  background: #e3f4e3;
}

.pkg-tcolorbox .docupdated {
  color: #1d3f8f;
  background: #e3eaf7;
}

.pkg-tcolorbox .marginnote {
  float: right;
}

/* footnote marks */
.pkg-tcolorbox sup.footnotemark a {
  text-decoration: none;
}

/* references */
.pkg-tcolorbox .bibitem {
  padding-left: 2.5em;
  text-indent: -2.5em;
}

.pkg-tcolorbox .biblabel {
  display: inline-block;
  min-width: 2.2em;
  text-indent: 0;
}

/* Let long signatures shrink alongside their defaults and change notes. */
.pkg-tcolorbox .entryheadline .hl-def,
.pkg-tcolorbox .entryheadline .hl-default {
  min-width: 0;
  overflow-wrap: anywhere;
}

.pkg-tcolorbox .textbody a,
.pkg-tkz-euclide .textbody a,
.pkg-chemfig .textbody a {
  overflow-wrap: anywhere;
}

/* home page */
.pkg-tcolorbox .titlepagepic {
  text-align: center;
  margin: 1em 0;
}

.pkg-tcolorbox .titlepagepic img {
  max-width: 100%;
}

.pkg-tcolorbox .part-toc ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.pkg-tcolorbox .part-toc li {
  margin: 0.25em 0;
}

/* Contributed manuals use the PGF documentation markup and shared navigation. */
.pkg-tikz-cd .bodyandsidetoc > header {
  background-color: #236b53;
}
.pkg-pgf-contrib span.sectionnumber {
  margin-right: 0.5em;
}
.pkg-pgf-contrib .textbody .heading-title {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.pkg-pgf-contrib .manual-title {
  display: block;
  text-align: center;
  font-size: 1.9em;
  margin: 1em 0;
}
.pkg-pgf-contrib .titlepage {
  text-align: center;
}
.pkg-pgf-contrib #hamburger-button,
.pkg-tcolorbox #hamburger-button,
.pkg-tkz-euclide #hamburger-button,
.pkg-chemfig #hamburger-button {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
}
.pkg-pgf-contrib .textbody img {
  max-width: 100%;
  height: auto;
}
.pkg-pgf-contrib .example {
  margin-left: 0;
  margin-right: 0;
}
.pkg-pgf-contrib .example-code {
  min-width: 0;
  flex: 1 1 24em;
  overflow-x: auto;
  text-align: left;
}
.pkg-pgf-contrib .example-image {
  min-width: 0;
  max-width: 100%;
}
.pkg-pgf-contrib .multicols {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1em 2em;
}
.pkg-pgf-contrib .multicols h6 {
  flex-basis: 100%;
}
.pkg-pgf-contrib .bodycontainer {
  min-width: 0;
}
.pkg-pgf-contrib .table-scroll,
.pkg-tkz-euclide .table-scroll,
.pkg-chemfig .table-scroll {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
}
.pkg-pgf-contrib .textbody a {
  overflow-wrap: anywhere;
}

.pkg-pgf-pie .bodyandsidetoc > header {
  background-color: #855017;
}
.pkg-tikz-feynman .bodyandsidetoc > header {
  background-color: #3c5770;
}
.pkg-wheelchart .bodyandsidetoc > header {
  background-color: #596a35;
}
.pkg-wheelchart mjx-container,
.pkg-tkz-euclide mjx-container {
  display: inline-block;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}
/* ************************************************************************ */
/* forest                                                                   */
/* ************************************************************************ */

.pkg-forest .bodyandsidetoc > header {
  background-color: #2f5d34;
}

/* the package name, as printed by the manual's \FoRest; */
.forest-name {
  font-variant: small-caps;
}

/* example numbers, referred to as (7) in the text */
.pkg-forest .example-number {
  flex-basis: 100%;
  font-size: 0.85em;
  color: #666;
  margin-bottom: -0.5em;
}

.pkg-forest ul.advise {
  list-style: "☞  ";
}

.pkg-forest .processor-signature {
  font-weight: normal;
  font-size: 0.9em;
}

/* ************************************************************************ */
/* chemfig                                                                  */
/* ************************************************************************ */

.pkg-chemfig .bodyandsidetoc > header {
  background-color: #202838;
}

/* the package name, as printed by the manual's \CF */
.chemfig-name {
  font-family: var(--main-font), sans-serif;
}

.pkg-chemfig table.chemfig-table {
  border-collapse: collapse;
  margin: 0.6em 0 1em;
}

.pkg-chemfig table.chemfig-table th,
.pkg-chemfig table.chemfig-table td {
  text-align: left;
  vertical-align: middle;
  padding: 0.15em 1.2em 0.15em 0;
}

.pkg-chemfig table.chemfig-table th {
  border-bottom: 1px solid #999;
}

/* ************************************************************************ */
/* nicematrix                                                               */
/* ************************************************************************ */

.pkg-nicematrix .bodyandsidetoc > header {
  background-color: #24539c;
}

/* package names, as printed by the manual's \pkg */
.pkg-nicematrix .sffamily {
  font-family: var(--main-font), sans-serif;
}

/* \Definition{key}: where a key or command is explained */
.pkg-nicematrix .nm-def {
  font-family: var(--monospace-font);
  font-size: 0.92em;
  background-color: #e6e6e6;
  padding: 0 0.2em;
  scroll-margin-top: 4em;
}
.pkg-nicematrix .nm-def:target {
  background-color: #fff3a8;
}

/* parts of a listing highlighted by \emph */
.pkg-nicematrix .nm-emph {
  background-color: rgba(122, 61, 181, 0.13);
  color: #6a2aa8;
  border-radius: 2px;
}

/* "New 7.9" and similar */
.pkg-nicematrix .nm-badge {
  font-weight: bold;
  padding: 0.05em 0.3em;
}

.pkg-nicematrix .nm-intro {
  margin: 1.5em 0;
}

/* ************************************************************************ */
/* tkz-euclide                                                              */
/* ************************************************************************ */

.pkg-tkz-euclide .bodyandsidetoc > header {
  background-color: #006d77;
}

/* argument and option tables of the command entries */
.pkg-tkz-euclide table.tkz-table {
  border-collapse: collapse;
  margin: 0.6em 0 1em;
}

.pkg-tkz-euclide table.tkz-table th,
.pkg-tkz-euclide table.tkz-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.15em 1.2em 0.15em 0;
}

.pkg-tkz-euclide table.tkz-table th {
  border-bottom: 1px solid #999;
}

.pkg-tkz-euclide .example-code,
.pkg-chemfig .example-code {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
}

.pkg-pgfgantt .bodyandsidetoc > header {
  background-color: #635185;
}
.pkg-pgfgantt .minipage {
  max-width: 100%;
  box-sizing: border-box;
}
.pkg-pgfgantt p > .hl-def {
  margin-right: 0;
}
.pkg-pgfgantt .entryheadline .hl-def {
  margin-right: 2em;
}
