:root {
  --color-admonition-title--seealso: #7eb2b3;
  --color-admonition-title-background--seealso: #7acfd12b;
}

.piccolo-sidebar {
  background-color: var(--primary);
}

.piccolo-sidebar a {
  color: white;
}

.piccolo-sidebar a:hover {
  background-color: var(--secondary);
}

.piccolo-header {
  background-color: var(--primary);
}

.piccolo-banner {
  background-color: var(--secondary);
  color: white;
}

.piccolo-content a {
  color: var(--secondary);
}

.piccolo-content a:hover {
  color: var(--primary);
}

.image-container {
  text-align: center;
  margin-bottom: 1em;
  background-color: var(--color-sidebar-background);
  padding: 1.5rem;
  border-radius: 1rem;
}

[data-theme='dark'] .image-container {
  background-color: var(--color-background-secondary);
}

/* furo theme styles */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
}

h2 {
  font-size: 1.75em;
}

.sidebar-logo-container {
  margin: 2rem 1rem 1rem 0;
}

.sidebar-tree {
  margin-right: 1rem;
}

/*Category cards*/
.toctree-wrapper.compound {
  margin-top: 2rem;
}

.toctree-wrapper.compound li {
  text-decoration: none;
  background-color: var(--color-sidebar-background);
  border-radius: 10px;
  list-style-type: none;
}

.toctree-l1 {
  margin-bottom: 20px;
}

[data-theme='dark'] .toctree-wrapper.compound li {
  background-color: var(--color-background-secondary);
}

.toctree-wrapper.compound li li {
  list-style-type: initial;
  margin-left: 20px;
}

.toctree-wrapper.compound li li:last-child a {
  padding-bottom: 1rem;
}

.toctree-wrapper.compound li li a {
  padding: 0.15rem;
}

.toctree-wrapper.compound li a {
  color: var(--color-brand-primary);
  padding: 0.7rem;
  display: block;
  width: 100%;
}

.article-container .toctree-l1 > a:first-of-type {
  font-weight: 650;
}

.article-container img {
  margin-top: 5px;
  border-radius: 10px;
}

a:visited {
  color: #be438a;
}

.indented-content {
  padding: 2rem 4rem;
  border-left: 4px solid var(--color-sidebar-background-border);
  background-color: var(--color-sidebar-background);
  border-radius: 10px;
  margin-left: 1.5rem;
}

[data-theme='dark'] .indented-content {
  background-color: var(--color-background-secondary);
  border-color: var(--color-foreground-border);
}

.admonition.seealso,
.admonition.note {
  border-left-color: #7eb2b3;
}

.admonition.seealso > .admonition-title,
.admonition.note > .admonition-title {
  background-color: #7acfd12b;
}

.admonition.seealso > .admonition-title:before,
.admonition.note > .admonition-title:before {
  background-color: #7eb2b3;
}

/* Formatted numbered list */
.indented-content {
  list-style: none !important;
  counter-reset: my-counter;
  padding-left: 0;
}

.indented-content li {
  counter-increment: my-counter;
  position: relative;
  padding-left: 3em;
  margin-bottom: 1em;
}

.indented-content li::before {
  content: counter(my-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.75em;
  height: 1.75em;
  border-radius: 50%;
  background: var(--color-sidebar-link-text--top-level);
  color: white;
  text-align: center;
  line-height: 1.75em;
  font-weight: bold;
  margin-left: 15px;
  font-size: 15px;
}

/* Split content  */
.split-content {
  display: flex;
  gap: 20px;
  align-items: center;
  margin: 1rem 0;
}
.split-content img {
  flex-shrink: 0;
}

.image-container .split-content {
  justify-content: center;
}

.split-content a.image-reference,
.image-container a.image-reference {
  display: inline-block;
  flex-shrink: 0;
  width: auto;
}

blockquote {
  border-radius: 1rem;
}

blockquote.epigraph {
  border-left: 4px solid var(--color-background-border);
}

@media only screen and (max-width: 768px) {
  .split-content {
    flex-direction: column;
    align-items: flex-start;
  }
  .split-content img {
    width: 100%;
    max-width: 100%;
  }
  .split-content a.image-reference,
  .image-container a.image-reference {
    width: 100%;
    text-align: center;
  }
}
