/* AME CSS theme based on
GNOME CSS theme for Sphinx + Furo

https://developer.gnome.org
https://www.sphinx-doc.org
https://pypi.org/project/furo/
*/

/* FONTS */
@import url(fontface/manrope.css);
@import url(fontface/overpass-mono.css);

:root {
  --rounded-corner: 12px;
  --gnomeblue: #1c71d8;
  --blue1: rgb(153,193,241);
  --blue2: rgb(98,160,234);
  --blue3: rgb(53,132,228);
  --blue4: rgb(28,113,216);
  --blue5: rgb(26,95,180);
  --green1: rgb(143,240,164);
  --green2: rgb(87,227,137);
  --green3: rgb(51,209,122);
  --green4: rgb(46,194,126);
  --green5: rgb(38,162,105);
  --yellow1: rgb(249,240,107);
  --yellow2: rgb(248,228,92);
  --yellow3: rgb(246,211,45);
  --yellow4: rgb(245,194,17);
  --yellow5: rgb(229,165,10);
  --orange1: rgb(255,190,111);
  --orange2: rgb(255,163,72);
  --orange3: rgb(255,120,0);
  --orange4: rgb(230,97,0);
  --orange5: rgb(198,70,0);
  --red1: rgb(246,97,81);
  --red2: rgb(237,51,59);
  --red3: rgb(224,27,36);
  --red4: rgb(192,28,40);
  --red5: rgb(165,29,45);
  --purple1: rgb(220,138,221);
  --purple2: rgb(192,97,203);
  --purple3: rgb(145,65,172);
  --purple4: rgb(129,61,156);
  --purple5: rgb(97,53,131);
  --brown1: rgb(205,171,143);
  --brown2: rgb(181,131,90);
  --brown3: rgb(152,106,68);
  --brown4: rgb(134,94,60);
  --brown5: rgb(99,69,44);
  --light1: rgb(255,255,255);
  --light2: rgb(246,245,244);
  --light3: rgb(222,221,218);
  --light4: rgb(192,191,188);
  --light5: rgb(154,153,150);
  --dark1: rgb(119,118,123);
  --dark2: rgb(94,92,100);
  --dark3: rgb(61,56,70);
  --dark4: rgb(36,31,49);
  --dark5: rgb(0,0,0);
  --text: #f6f5f4;
  --tocbg: var(--light2);
  --tocfg: var(--dark3);
  --borders: var(--light3);
}

body {
  --font-stack: 'Manrope', sans-serif;
  --font-stack--monospace: 'Overpass Mono', monospace;
}

/* Adds missing focus to Copy to Clipboard button */
.highlight button.copybtn:focus-visible {
  outline: auto;
  outline-offset: 2px;
}

/* TOC styling */
.toc-title {
  --toc-title-font-size: 62.5%;
  font-weight: 500;
}
.toc-tree {
  --toc-font-size: 72%;
  line-height: 1.5;
  font-weight: 500;
}
  .toc-tree li.scroll-current > .reference {
    font-weight: 800;
  }

.sidebar-search {
  font-size: 95%;
}
.sidebar-tree .caption {
  font-weight: 800;
}

::selection {
	background-color:  rgba(153,193,241,0.5);
}

@media (prefers-color-scheme: dark) {
  :root {
    --tocbg: var(--dark5);
    --tocfg: var(--light5);
    --borders: var(--dark3);
  }
	::selection {
		background-color:  rgba(26,95,180,0.4);
	}
}

* {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-size: 16px;
  font-family: 'Manrope', sans-serif;
  font-weight: 400;
  line-height: 1.6;
}
  section {
    font-size: 15px;
    line-height: 1.7;
  }
@media (min-width: 700px) {
  html, body {
    font-size: 18px;
  }
    section {
      font-size: 17px;
    }
}

p strong {
  font-weight: 800;
  opacity: 0.9;
}

h1 {
   font-weight: 300;
   font-size: 24pt;
}
h2 {
   font-weight: 800;
   font-size: 17pt;
}
h3 {
   font-weight: 800;
   font-size: 15pt;
}
h4 {
   font-weight: 700;
   font-size: 14pt;
}
h5 {
   font-weight: 700;
   font-size: 12pt;
}
h6 {
   font-weight: 700;
   font-size: 10pt;
}
h2,h3,h4,h5,h6 { opacity: 0.7; }

section p.rubric {
	opacity: 0.7;
	margin-top: 3rem;
}

section aside.footnote-list,
section aside.footnote-reference {
	margin-top: 3rem;
	margin-bottom: 3rem;
}

section p.rubric + aside.footnote-list,
section p.rubric + aside.footnote-reference {
	margin-top: 0;
}

section aside.footnote-list:last-child,
section aside.footnote-reference:last-child {
	margin-bottom: 0;
}

section section {
	margin-top: 3rem;
}

section h1 + section,
section h2 + section,
section h3 + section,
section h4 + section,
section h5 + section,
section h6 + section {
	margin-top: 0;
}


/* Making visible table of contents more palatable */

div.toctree-wrapper.compound {
	margin-top: 3rem;
}

div.toctree-wrapper.compound > ul {
	margin: 1rem 1rem 3rem;
}

div.toctree-wrapper ul li {
	list-style-image: url(bullet.svg);
	margin-inline-end: 1ch;
	margin-bottom: 1rem;
}
div.toctree-wrapper ul li a {
	text-decoration: none;
}


/* Making nested content more palatable */

.sidebar-tree .toctree-l1,
.sidebar-tree .toctree-l2 {
	margin: 1px 12px;
	border-radius: 6px;
}

.sidebar-tree .toctree-l2 {
	margin: 1px 0;
}

.sidebar-tree li > ul {
	margin-left: 0;
}
.sidebar-tree li > ul .reference {
	padding-left: calc(1.5*var(--sidebar-item-spacing-horizontal));
}

.sidebar-tree li.toctree-l3 a {
	margin: 1px 0;
	padding: var(--sidebar-item-spacing-vertical) var(--sidebar-item-spacing-horizontal)
			 var(--sidebar-item-spacing-vertical) calc(2*var(--sidebar-item-spacing-horizontal)) ; /* extra indentation */
}

.sidebar-tree .reference {
	background: rgba(0,0,0,0);
	transition: background 0.2s linear;
	border-radius: 6px;
	padding: var(--sidebar-item-spacing-vertical) calc(0.75*var(--sidebar-item-spacing-horizontal));
}
.sidebar-tree .reference:hover,
.sidebar-tree .current > .reference:hover {
	/* background: var(--color-background-hover); */
	background: rgba(0,0,0,0.03);
}

.sidebar-tree .reference.current {
	background: rgba(0,0,0,0.06);
}
.sidebar-tree .reference.current:hover {
	background: rgba(0,0,0,0.09);
}

.sidebar-tree .current-page > .reference {
	font-weight: 800;
}

.sidebar-tree .toctree-l4 {
	font-size: 95%;
	margin-left: .45rem;
}
.sidebar-tree .toctree-l4 a,
.sidebar-tree .toctree-l4 li a {
	line-height: calc(0.8*var(--sidebar-item-line-height));
	padding-top: calc(0.5*var(--sidebar-item-spacing-vertical));
	padding-bottom: calc(0.5*var(--sidebar-item-spacing-vertical));
}
.sidebar-tree .toctree-l4 label, .sidebar-tree .toctree-l4 li label {
	height: calc(0.8*var(--sidebar-item-height));
}

.sidebar-tree .toctree-l5 {
	font-size: 85%;
	margin-left: .1rem;
}
.sidebar-tree .toctree-l5 li {
	margin-left: .1rem;
}
.sidebar-tree li.toctree-l5 a,
.sidebar-tree li.toctree-l5 li a {
	padding-top: calc(0.3*var(--sidebar-item-spacing-vertical));
	padding-bottom: calc(0.3*var(--sidebar-item-spacing-vertical));
}

section ul:not(.tiled-toc), section ol:not(.tiled-toc) {
	margin: 1rem 1rem 3rem;
}
section ul:not(.tiled-toc) li, section ol:not(.tiled-toc) li {
	margin-inline-end: 1ch;
	margin-bottom: 1rem;
}
section ul:not(.tiled-toc) li {
	list-style-image: url(bullet.svg);
}

section ul:not(.tiled-toc) ul:not(.tiled-toc), section ol:not(.tiled-toc) ol:not(.tiled-toc),
section ul:not(.tiled-toc) ol:not(.tiled-toc), section ol:not(.tiled-toc) ul:not(.tiled-toc) {
	margin-bottom: 1rem;
}

section ul > li blockquote,
section ul > li figure,
section ul > li .table-wrapper,
section ul > li .admonition,
section ul > li div[class*=" highlight-"],
section ul > li div[class^="highlight-"] {
	margin-bottom: 1rem;
}
section ol > li blockquote,
section ol > li figure,
section ol > li .table-wrapper,
section ol > li .admonition,
section ol > li div[class*=" highlight-"],
section ol > li div[class^="highlight-"] {
	margin-bottom: 1rem;
}

section ul > li blockquote:last-child,
section ul > li figure:last-child,
section ul > li .table-wrapper:last-child,
section ul > li .admonition:last-child,
section ul > li div[class*=" highlight-"]:last-child,
section ul > li div[class^="highlight-"]:last-child {
	margin-bottom: .5rem;
}
section ol > li blockquote:last-child,
section ol > li figure:last-child,
section ol > li .table-wrapper:last-child,
section ol > li .admonition:last-child,
section ol > li div[class*=" highlight-"]:last-child,
section ol > li div[class^="highlight-"]:last-child {
	margin-bottom: .5rem;
}


article .figure :last-child, article figure :last-child {
	margin-bottom: revert;
}

section .admonition, section figure,
section div[class*=" highlight-"], section div[class^="highlight-"],
section .table-wrapper, section blockquote {
	margin-top: 1rem;
	margin-bottom: 3rem;
}

section blockquote > div > blockquote,
section blockquote > div > figure,
section blockquote > div > .table-wrapper,
section blockquote > div > .admonition,
section blockquote > div > div[class*=" highlight-"],
section blockquote > div > div[class^="highlight-"] {
	margin-bottom: 1rem;
}
section blockquote > div > blockquote:last-child,
section blockquote > div > figure:last-child,
section blockquote > div > .table-wrapper:last-child,
section blockquote > div > .admonition:last-child,
section blockquote > div > div[class*=" highlight-"]:last-child,
section blockquote > div > div[class^="highlight-"]:last-child {
	margin-bottom: .5rem;
}
section blockquote > div > blockquote > div > p:first-child,
section blockquote > div > figure > figcaption > p:first-child,
section blockquote > div > .admonition > p:first-child {
	margin-top: 0;
}
section blockquote > div > blockquote > div > p:last-child,
section blockquote > div > figure > figcaption > p:last-child,
section blockquote > div > .admonition > p:last-child {
	margin-bottom: .25rem;
}


section .admonition > blockquote,
section .admonition > figure,
section .admonition > .table-wrapper,
section .admonition > .admonition,
section .admonition > div[class*=" highlight-"],
section .admonition > div[class^="highlight-"] {
	margin-bottom: 1rem;
}
section .admonition > blockquote:last-child,
section .admonition > figure:last-child,
section .admonition > .table-wrapper:last-child,
section .admonition > .admonition:last-child,
section .admonition > div[class*=" highlight-"]:last-child,
section .admonition > div[class^="highlight-"]:last-child {
	margin-bottom: .5rem;
}
section .admonition > blockquote > div > p:first-child,
section .admonition > figure > figcaption > p:first-child,
section .admonition > .admonition > p:first-child {
	margin-top: 0;
}
section .admonition > blockquote > div > p:last-child,
section .admonition > figure > figcaption > p:last-child,
section .admonition > .admonition > p:last-child {
	margin-bottom: .25rem;
}


section figure > figcaption > blockquote,
section figure > figcaption > figure,
section figure > figcaption > .table-wrapper,
section figure > figcaption > .admonition,
section figure > figcaption > div[class*=" highlight-"],
section figure > figcaption > div[class^="highlight-"] {
	margin-bottom: 1rem;
}
section figure > figcaption > blockquote:last-child,
section figure > figcaption > figure:last-child,
section figure > figcaption > .table-wrapper:last-child,
section figure > figcaption > .admonition:last-child,
section figure > figcaption > div[class*=" highlight-"]:last-child,
section figure > figcaption > div[class^="highlight-"]:last-child {
	margin-bottom: .5rem;
}
section figure > figcaption > blockquote > div > p:first-child,
section figure > figcaption > figure > figcaption > p:first-child,
section figure > figcaption > .admonition > p:first-child {
	margin-top: 0;
}
section figure > figcaption > blockquote > div > p:last-child,
section figure > figcaption > figure > figcaption > p:last-child,
section figure > figcaption > .admonition > p:last-child {
	margin-bottom: .25rem;
}


section .table-wrapper blockquote,
section .table-wrapper figure,
section .table-wrapper .table-wrapper,
section .table-wrapper .admonition,
section .table-wrapper div[class*=" highlight-"],
section .table-wrapper div[class^="highlight-"] {
	margin-bottom: 1rem;
}
section .table-wrapper blockquote:last-child,
section .table-wrapper figure:last-child,
section .table-wrapper .table-wrapper:last-child,
section .table-wrapper .admonition:last-child,
section .table-wrapper div[class*=" highlight-"]:last-child,
section .table-wrapper div[class^="highlight-"]:last-child {
	margin-bottom: .5rem;
}
section .table-wrapper blockquote > div > p:first-child,
section .table-wrapper figure > figcaption > p:first-child,
section .table-wrapper .admonition > p:first-child {
	margin-top: 0;
}
section .table-wrapper blockquote > div > p:last-child,
section .table-wrapper figure > figcaption > p:last-child,
section .table-wrapper .admonition > p:last-child {
	margin-bottom: .25rem;
}


img.light { display: inline-block; }
img.dark { display: none; }
@media (prefers-color-scheme: dark) {
  img.light { display: none;}
  img.dark { display: inline-block; }
}

.related-pages {
  font-size: 10pt;
  font-weight: 800;
  display: flex;
  flex-direction: row-reverse;
  align-items: stretch;
  justify-content: space-between;
}

  .related-pages a .title {
    color: var(--dark1);
  }
  .related-pages a svg {
    width: 32px; height: 32px;
    flex-shrink: 0;
  }

  .prev-page {
    border-radius: 8px;
    padding: 8px 24px 8px 8px;

  }
  .next-page {
    border-radius: 8px;
    padding: 8px 8px 8px 24px;
  }
  .related-pages a.prev-page,
  .related-pages a.next-page {
    float: none;
    max-width: inherit; /* cancel furo's 50% */
  }
  .related-pages a.prev-page:hover, .related-pages a.next-page:hover {
    background-color: var(--tocbg);
  }

  @media (min-width: 700px) {
    .related-pages {
      font-size: 14pt;
    }
    .prev-page {
      padding: 16px 48px 16px 16px;
      border-radius: 24px;

    }
    .next-page {
      padding: 16px 16px 16px 48px;
      border-radius: 24px;
    }
  }
  /* .related-pages a.prev-page:only-child,
  .related-pages a.next-page:only-child,
  .page-info {
    width: 100%;
  } */ /* align-self: flex-end; i wish; */ /* it actually works don't know what you're on about */

  .related-pages a.prev-page:only-child {
	margin-right: auto;
  }
  .page-info {
    width: 100%;
  }
  .next-page .page-info {
    align-items: flex-end;
    width: 100%;
  }

.toctree-wrapper ul {
	margin: 0; padding: 0;
}

  .toctree-wrapper li {
		list-style: none;
    margin: 0 0 1rem 0;
  }
  .toctree-wrapper li.toctree-l1 {
    font-size: 14pt;
    font-weight: 600;

  }
    .toctree-wrapper li.toctree-l1 > a { color: var(--tocfg); }

  .toctree-wrapper li.toctree-l2 {
		list-style-image: url(toc_bullet.svg);
		margin: 0;
    font-size: 12pt;
    font-weight: 400;
    padding: 0.2rem;
  }
    .toctree-wrapper > ul ul {
      margin-top: 1rem;
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
      gap: .2rem;
    }
    .toctree-wrapper > ul ul a {
      background-color: transparent;
    }
/* tiled TOC with images */

.clear-both {
	clear: both;
}

ul.tiled-toc {
  display: grid;
  gap: 1rem;
  grid-auto-flow: row;
  margin: 1rem 0 3rem; padding: 0;
  text-align: center;
  margin-top: 2rem;
}
  ul.tiled-toc li {
    display: block;
    list-style: none;
  }
  ul.tiled-toc li img {
    display: block;
    width: 100%;
  }
  /* ul.tiled-toc li img::after {
    content: "Foo";
  } */ /* Just... why? */

  ul.tiled-toc li *:last-child {
	margin-bottom: .25rem !important;
  }

  ul.tiled-toc a {
    color: black;
    text-decoration: none;
    font-weight: 600;
  }

  @media (min-width: 500px) {
    ul.tiled-toc {
      grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
  }

  @media (prefers-color-scheme: dark) {
    ul.tiled-toc a { color: white; }
  }


table.docutils {
  font-size: 90%;
  box-shadow: none;
  border-collapse: collapse;
  border-spacing: 0;
  border-radius: 0;
  text-align: left;
  border-width: 0;
  box-sizing: border-box;
}
  /* reset crazy */
  table.docutils th, table.docutils tr, table.docutils td {
    background-color: transparent;
    text-align: left;
  }

  table.docutils td, table.docutils th {
    border-width: 0;
    padding: .25rem;
  }
  table.docutils tr {
    border-width: 0;
    border-bottom: 1px solid var(--borders);
  }

  table.docutils thead tr {
    font-size: 120%;
    font-weight: 800;
    border-width: 0;
    box-sizing: inherit;
    border-bottom: 2px solid var(--borders);
  }

video {
  width: 100%;
  height: auto;
}

footer {
  margin-bottom: 3rem;
}

.sidebar-brand-text {
  font-size: 14pt;
  font-weight: 800;
}

.headerlink { visibility: hidden !important; }

.sidebar-search-container,
.sidebar-search {
	border-radius: 99999px;
	border: none;
}
.sidebar-search-container {
	margin: 0 var(--sidebar-item-spacing-horizontal);
	transition: background-color 0.2s linear;
	background-color: rgba(0,0,0,0.06);
}
.sidebar-search-container:hover {
  background-color: rgba(0,0,0,0.09);
}
.sidebar-search-container:focus-within {
  background-color: rgba(0,0,0,0.12);
}

@media (prefers-color-scheme: dark) {
  .sidebar-search-container {
    background-color: rgba(255,255,255,0.06);
  }
  .sidebar-search-container:hover {
    background-color: rgba(255,255,255,0.09);
  }
  .sidebar-search-container:focus-within {
    background-color: rgba(255,255,255,0.12);
  }
}

.this-page-menu h5 {
        text-transform: uppercase;
        color: var(--color-sidebar-caption-text);
        font-size: var(--sidebar-caption-font-size);
        margin: var(--sidebar-caption-space-above) 0 0 0;
        padding: var(--sidebar-item-spacing-vertical) var(--sidebar-item-spacing-horizontal);
}

.this-page-menu ul {
        display: flex;
        flex-direction: column;
        list-style: none;
        margin-bottom: 0;
        margin-top: 0;
        padding: 0;
}

.this-page-menu li {
        margin: 1px 12px;
        border-radius: 6px;
}

/* Dark theme preference styling */

@media (prefers-color-scheme: dark) {
  body:not([data-theme="light"]) .sphinx-tabs-panel {
    color: white;
    background-color: rgb(50, 50, 50);
  }

  body:not([data-theme="light"]) .sphinx-tabs-tab {
    color: white;
    font-size: 16px;
    font-weight: 400;
    background-color: rgba(255, 255, 255, 0.05);
  }

  body:not([data-theme="light"]) .sphinx-tabs-tab[aria-selected="true"] {
    font-weight: 700;
    border: 1px solid #a0b3bf;
    border-bottom: 1px solid rgb(50, 50, 50);
    margin: -1px;
    background-color: rgb(50, 50, 50);
  }
}

/* Explicit dark theme styling */

body[data-theme="dark"] .sphinx-tabs-panel {
  color: white;
  background-color: rgb(50, 50, 50);
}

body[data-theme="dark"] .sphinx-tabs-tab {
  color: white;
  font-size: 16px;
  font-weight: 400;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background-color: rgba(255, 255, 255, 0.05);
}

body[data-theme="dark"] .sphinx-tabs-tab[aria-selected="true"] {
  font-weight: 700;
  border: 1px solid #a0b3bf;
  border-bottom: 2px solid rgb(50, 50, 50);
  margin: -1px;
  background-color: rgb(50, 50, 50);
}

.noselect {
  -moz-user-select: none;
  -khtml-user-select: none;
  -webkit-user-select: none;
  user-select: none;
  -moz-user-drag: none;
  -khtml-user-drag: none;
  -webkit-user-drag: none;
  user-drag: none;
  -ms-user-select: none;
  pointer-events: none;
}

.playbookmargin {
  margin-right: 10px;
}

.centercontainer {
  text-align: center;
  align-self: center;
  align-items: center;
  align-content: center;
  justify-content: center;
  margin-top: -6px;
  margin-bottom: -6px;
}
.centertext {
  font-weight: bold;
  margin-top: -20px;
  margin-bottom: -20px;
  font-size: 88%;
  text-align: center;
  align-self: center;
}

.centertextnobold {
  font-weight: normal;
  margin-top: -20px;
  margin-bottom: -20px;
  font-size: 70%;
  color: #444444;
  text-align: center;
  align-self: center;
}

@media (prefers-color-scheme: dark) {
  .centertextnobold {
    font-weight: normal;
    margin-top: -20px;
    margin-bottom: -20px;
    font-size: 70%;
    color: dimgray;
    text-align: center;
    align-self: center;
  }
}

.sideimage {
  margin: 0 0rem 1rem !important;
}

.stepimage {
  margin: -2.75rem 1rem 0.5rem !important;
}

.specialbox {
  transition: all 0.2s ease 0s;
  text-decoration: none;
  color: unset;
  border-style: solid;
  border-radius: calc(0.4rem * 2);
  border-width: 1px;
  border-color: #ebedf0;
  background: #FFFFFF;
  width: 349px !important;
  height: 127px !important;
  box-shadow: 0 1.5px 3px 0 #00000026;
  display: block;
  flex-direction: column;
  overflow: hidden;
  padding: 31px !important;
}

a.specialbox:hover {
  transition: all 0.2s ease 0s;
  border-color: #4a86cf;
  color: unset;
}

.specialtext {
  min-width: 285px !important;
  font-weight: 700;
  color: #444950;
  margin: 0px 0px 22px 0px !important;
  padding: 0px !important;
  text-align: left;
  font-size: 16pt;
  opacity: 1;
}

@media (prefers-color-scheme: dark) {
  .specialbox {
    transition: all 0.2s ease 0s;
    text-decoration: none;
    color: unset;
    border-style: solid;
    border-radius: calc(0.4rem * 2);
    border-width: 1px;
    border-color: #303335;
    background: #1a1c1e;
    width: 349px !important;
    height: 127px !important;
    box-shadow: 0 1.5px 3px 0 #00000026;
    display: block;
    flex-direction: column;
    overflow: hidden;
    padding: 31px !important;
  }
  
  a.specialbox:hover {
    transition: all 0.2s ease 0s;
    border-color: #2b8cee;
    color: unset;
  }
  
  .specialtext {
    min-width: 285px !important;
    opacity: 0.85 !important;
    font-weight: 700;
    color: #ebedf0;
    margin: 0px 0px 21px 0px !important;
    padding: 0px !important;
    text-align: left;
    font-size: 16pt;
  }
}

.specialitemtext {
  font-size: 78%;
}

.itemcontainer {
  display: flex;
  flex-wrap: wrap;
  columns: 2;
  column-gap: 22px;
  row-gap: 22px;
}

@media only screen and (max-width: 827px) {
  .specialbox {
    width: unset !important;
    flex-grow: 100;
  }
}


/* Amelabs Theme Update 2025 */

/* Style the image container to match RST image behavior */
.image-container {
  text-align: center; /* Center the images */
  margin: 1em 0; /* Add vertical spacing, adjust as needed */
}

/* Default state: show light mode images, hide dark mode images */
.image-container .img-light {
  display: inline-block;
}
.image-container .img-dark {
  display: none;
}

/* Existing logo styles */
img.logo-light {
  display: inline-block;
}
img.logo-dark {
  display: none;
}

article[role="main"] label.toc-overlay-icon.toc-content-icon {
  display: none;
}

@media (prefers-color-scheme: dark) {
  .sidebar-drawer {
    background: #000000;
  }
  .sidebar-tree .current>.reference {
      background: #0a0a0a;
  }
  .sidebar-tree .reference:hover,
  .sidebar-tree .current > .reference:hover {
    /* background: var(--color-background-hover); */
    background: #0080ff69;
  }

  .sidebar-tree .reference.current {
    background: #1a1c1e;
  }
  .sidebar-tree .reference.current:hover {
    background: #1a1c1e;
  }
  body:not([data-theme=light]) {
    --color-background-primary: #000000;
  }
  .specialbox {
    background: #0a0a0a;
  }

  /* Switch article images to dark mode */
  .image-container .img-light {
    display: none;
  }
  .image-container .img-dark {
    display: inline-block;
  }

  /* Switch logo to dark mode */
  img.logo-light {
    display: none;
  }
  img.logo-dark {
    display: inline-block;
  }

  .related-pages a.prev-page:hover, .related-pages a.next-page:hover {
    background: #0a0a0a;
  }

  .admonition, .topic {
    background:#0b0b0b;
  }
}

/* Expander to... expand items in specialbox style */
.expander {
  border: 1px solid #ebedf0;
  border-radius: 0.8rem;
  background: #FFFFFF;
  margin-bottom: 10px;
  transition: all 0.2s ease 0s;
}

.expander:hover {
  border-color: #4a86cf;
}

.expander-summary {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  cursor: pointer;
}

.expander-summary::-webkit-details-marker {
  display: none;
}

.expander-icon {
  margin-right: 10px;
  font-size: 20px;
}

.expander-title {
  font-weight: 700;
  color: #444950;
  font-size: 16pt;
}

.expander-arrow {
  margin-left: auto;
}

.expander-arrow::before {
  content: "►";
  font-size: 16px;
  color: #444950;
}

.expander[open] .expander-arrow::before {
  content: "▼";
}

.expander-content {
  padding: 10px 20px;
  color: #444950;
}

@media (prefers-color-scheme: dark) {
  .expander {
    border-color: #303335;
    background: #1a1c1e;
  }
  .expander:hover {
    border-color: #2b8cee;
  }
  .expander-title {
    color: #FFFFFF;
  }
  .expander-arrow::before {
    color: #FFFFFF;
  }
  .expander-content {
    color: #FFFFFF;
  }
}

/* Code Block Styling for Expanders */
.expander-content .highlight pre {
  background: #f9f9f9;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 1em;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  color: #333;
  white-space: pre-wrap;
  overflow-x: auto;
  position: relative;
  margin: 0;
}

/* Syntax Highlighting for Light Mode */
.expander-content .highlight .k { /* Keywords */
  color: #a626a4;
}

.expander-content .highlight .s { /* Strings */
  color: #50a14f;
}

/* Copy Button with SVG Icon */
.expander-content .highlight .copybtn {
  position: absolute;
  top: 5px;
  right: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  transition: fill 0.2s, stroke 0.2s;
}

.expander-content .highlight .copybtn svg {
  width: 100%;
  height: 100%;
  stroke: #a0a0a0;
  fill: none;
}

.expander-content .highlight .copybtn:hover svg {
  stroke: #0078d4;
}

/* Dark Mode Styles */
@media (prefers-color-scheme: dark) {
  .expander-content .highlight pre {
    background: #1e1e1e;
    border: 1px solid #444;
    color: #d4d4d4;
  }

  .expander-content .highlight .k {
    color: #ff79c6;
  }

  .expander-content .highlight .s {
    color: #f1fa8c;
  }

  .expander-content .highlight .copybtn svg {
    stroke: #a0a0a0;
  }

  .expander-content .highlight .copybtn:hover svg {
    stroke: #0078d4;
  }
}