:root {
  --md-primary-fg-color:        #5b56aa;
  --md-primary-fg-color--light: #FDCD56;
  --md-primary-fg-color--dark:  #a35096;
  --md-primary-bg-color:        #ffffff;
  --md-primary-bg-color--light: rgb(253, 253, 253);
  --md-primary-bg-color--dark:  #ffffff;
  --md-accent-fg-color: #DE1C80;
  --md-typeset-a-color: #5b56aa;
  --md-admonition-icon--pied-piper: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><path d="M244 246c-3.2-2-6.3-2.9-10.1-2.9-6.6 0-12.6 3.2-19.3 3.7l1.7 4.9zm135.9 197.9c-19 0-64.1 9.5-79.9 19.8l6.9 45.1c35.7 6.1 70.1 3.6 106-9.8-4.8-10-23.5-55.1-33-55.1zM340.8 177c6.6 2.8 11.5 9.2 22.7 22.1 2-1.4 7.5-5.2 7.5-8.6 0-4.9-11.8-13.2-13.2-23 11.2-5.7 25.2-6 37.6-8.9 68.1-16.4 116.3-52.9 146.8-116.7C548.3 29.3 554 16.1 554.6 2l-2 2.6c-28.4 50-33 63.2-81.3 100-31.9 24.4-69.2 40.2-106.6 54.6l-6.3-.3v-21.8c-19.6 1.6-19.7-14.6-31.6-23-18.7 20.6-31.6 40.8-58.9 51.1-12.7 4.8-19.6 10-25.9 21.8 34.9-16.4 91.2-13.5 98.8-10zM555.5 0l-.6 1.1-.3.9.6-.6zm-59.2 382.1c-33.9-56.9-75.3-118.4-150-115.5l-.3-6c-1.1-13.5 32.8 3.2 35.1-31l-14.4 7.2c-19.8-45.7-8.6-54.3-65.5-54.3-14.7 0-26.7 1.7-41.4 4.6 2.9 18.6 2.2 36.7-10.9 50.3l19.5 5.5c-1.7 3.2-2.9 6.3-2.9 9.8 0 21 42.8 2.9 42.8 33.6 0 18.4-36.8 60.1-54.9 60.1-8 0-53.7-50-53.4-60.1l.3-4.6 52.3-11.5c13-2.6 12.3-22.7-2.9-22.7-3.7 0-43.1 9.2-49.4 10.6-2-5.2-7.5-14.1-13.8-14.1-3.2 0-6.3 3.2-9.5 4-9.2 2.6-31 2.9-21.5 20.1L15.9 298.5c-5.5 1.1-8.9 6.3-8.9 11.8 0 6 5.5 10.9 11.5 10.9 8 0 131.3-28.4 147.4-32.2 2.6 3.2 4.6 6.3 7.8 8.6 20.1 14.4 59.8 85.9 76.4 85.9 24.1 0 58-22.4 71.3-41.9 3.2-4.3 6.9-7.5 12.4-6.9.6 13.8-31.6 34.2-33 43.7-1.4 10.2-1 35.2-.3 41.1 26.7 8.1 52-3.6 77.9-2.9 4.3-21 10.6-41.9 9.8-63.5l-.3-9.5c-1.4-34.2-10.9-38.5-34.8-58.6-1.1-1.1-2.6-2.6-3.7-4 2.2-1.4 1.1-1 4.6-1.7 88.5 0 56.3 183.6 111.5 229.9 33.1-15 72.5-27.9 103.5-47.2-29-25.6-52.6-45.7-72.7-79.9zm-196.2 46.1v27.2l11.8-3.4-2.9-23.8zm-68.7-150.4l24.1 61.2 21-13.8-31.3-50.9zm84.4 154.9l2 12.4c9-1.5 58.4-6.6 58.4-14.1 0-1.4-.6-3.2-.9-4.6-26.8 0-36.9 3.8-59.5 6.3z"/></svg>')
}

.md-typeset details.note {
  font-size: 90%;
}

.md-typeset details.danger {
  font-size: 90%;
}

.md-typeset details.warning {
  font-size: 90%;
}

[data-md-color-scheme="default"] h1,
[data-md-color-scheme="default"] h2,
[data-md-color-scheme="default"] h3,
[data-md-color-scheme="default"] h4 {
    font-weight: bold;
    color: black;
}

/* .md-typeset h1,
.md-typeset h2,
.md-typeset h3,
.md-typeset h4 {
font-weight: bold;
color: #000000
} */


.md-nav__title {
display: block;
font-size: 18px;
}

/* .md-nav__title:before {
visibility: hidden;
content: 'Contents:';
display: block;
font-size: 18px;
}

.md-nav__title:after {
visibility: visible;
content: 'Sections:';
display: block;
font-size: 14px;
} */



/* Maximum space for text block */
/* .md-grid {
max-width: 90%; /* or 100%, if you want to stretch to full-width */
/*} */

.md-typeset .md-button--primary {
background-color: #E34852;
border-color: #E34852;
}

.md-typeset .md-button:hover {
background-color: #F2753E;
border-color: #F2753E;
}

.md-button-keycombination {
background: #5b56aa;
/* text-transform: uppercase; */
min-width: 180px;
font-size: 14px;
}

.md-button-keycombination:not( [disabled]):hover {
background-color: #ffffff;
color: #474747;
}

.md-button--primary-width {
min-width: 340px;
}

.md-typeset .admonition.note,
.md-typeset details.note {
border-color: #5b56aa;
}

/* .md-typeset .note > .admonition-title,
.md-typeset .note > summary {
background-color: #F2F0F8;
} */

.md-typeset .note > .admonition-title::before,
.md-typeset .note > summary::before {
background-color: #B294FB;
-webkit-mask-image: var(--md-admonition-icon--note);
        mask-image: var(--md-admonition-icon--note);
}

.md-typeset .admonition.info,
.md-typeset details.info {
border-color: #5b56aa;
}

/* .md-typeset .info > .admonition-title,
.md-typeset .info > summary {
background-color: #F2F0F8;
} */

.md-typeset .info > .admonition-title::before,
.md-typeset .info > summary::before {
background-color: #5b56aa;
-webkit-mask-image: var(--md-admonition-icon--info);
        mask-image: var(--md-admonition-icon--info);
}

.md-typeset .admonition.abstract,
.md-typeset details.abstract {
border-color: #DE1C80;
}

/* .md-typeset .abstract > .admonition-title,
.md-typeset .abstract > summary {
background-color: #FBF1F7;
} */

.md-typeset .abstract > .admonition-title::before,
.md-typeset .abstract > summary::before {
background-color: #DE1C80;
-webkit-mask-image: var(--md-admonition-icon--abstract);
        mask-image: var(--md-admonition-icon--abstract);
}

/* .md-typeset .admonition.tip,
.md-typeset details.tip {
border-color: #FDCD56;
}

.md-typeset .tip > .admonition-title,
.md-typeset .tip > summary {
background-color: #fcf0d1;
}

.md-typeset .tip > .admonition-title::before,
.md-typeset .tip > summary::before {
background-color: #FDCD56;
-webkit-mask-image: var(--md-admonition-icon--tip);
        mask-image: var(--md-admonition-icon--tip);
} */

.md-typeset .admonition.warning,
.md-typeset details.warning {
border-color: #FDCD56;
}


.md-typeset .warning > .admonition-title::before,
.md-typeset .warning > summary::before {
background-color: #FDCD56;
-webkit-mask-image: var(--md-admonition-icon--warning);
        mask-image: var(--md-admonition-icon--warning);
}

.image-radius {
border-radius: 12px;  
border: 3px solid #5b56aa;
}

.image-simple-border {
border: 1px solid #191635
}

.md-typeset p > code {
        color: red;
      }

.md-typeset td > code {
        color: green;
      }

.md-footer {
        background-color: #4F4D55;
}

/* Slightly wider grid while keeping it centered */
.md-grid {
  max-width: 80rem; /* default is ~1024px */
  margin: 5 auto;
}



/* Keep normal content readable */
.md-typeset {
  margin: 5 auto;
  letter-spacing: 0.03em;  /* Adds space between characters */
  line-height: 1.4; 
}



Allow wide elements to use full width
.md-typeset table,
.md-typeset pre,
.md-typeset img,
.md-typeset .highlight,
.md-typeset .mermaid,
.md-typeset .plotly,
.md-typeset .admonition {
  max-width: 100%;
}


/* Make sidebar navigation font smaller */
.md-nav__link {
    font-size: 0.7rem; /* smaller than default */
    white-space: normal; /* allow text to wrap */
    word-break: break-word; /* wrap long words */
    width: 100%;
}



/* Reduce line spacing for paragraphs */
.md-typeset p {
  line-height: 1.4;  /* default is ~1.6 */
}

/* Optional: list items */
.md-typeset li {
  line-height: 1.4;
}


/* Remove default numbering and reset counters */
.md-typeset ol {
  list-style: none;
  counter-reset: item;      /* Top-level counter */
  padding-left: 2em;
}

/* Top-level list items */
.md-typeset ol > li {
  counter-increment: item;
  position: relative;
  margin-left: 1.5em;
}

.md-typeset ol > li::before {
  content: counter(item) ". ";
  position: absolute;
  left: -2em;
  font-weight: bold;
}

/* Second-level list */
.md-typeset ol ol {
  list-style: none;
  counter-reset: subitem;
  padding-left: 2.5em;
}

.md-typeset ol ol > li {
  counter-increment: subitem;
  position: relative;
  margin-left: 2em;
}

.md-typeset ol ol > li::before {
  content: counter(item) "." counter(subitem) " ";
  position: absolute;
  left: -3em;
  font-weight: normal;
}

/* Third-level list */
.md-typeset ol ol ol {
  list-style: none;
  counter-reset: subsubitem;
  padding-left: 3em;
}

.md-typeset ol ol ol > li {
  counter-increment: subsubitem;
  position: relative;
  margin-left: 2em;
}

.md-typeset ol ol ol > li::before {
  content: counter(item) "." counter(subitem) "." counter(subsubitem) " ";
  position: absolute;
  left: -4em;
  font-weight: normal;
}

  /* Reduce font size inside content tabs */
.md-typeset .tabbed-content {
  font-size: 0.7rem;  /* smaller text */
  line-height: 1;   /* adjust spacing */
}

/* Optionally adjust code blocks inside tabs */
.md-typeset .tabbed-content pre code {
  font-size: 0.6rem;
}

/* [data-md-color-scheme="default"] .tabbed-content {
  background-color: color-mix(in srgb, var(--md-default-bg-color) 90%, black);;
}

[data-md-color-scheme="slate"] .tabbed-content {
  background-color: color-mix(in srgb, var(--md-default-bg-color) 90%, white);
} */

/* Chip style for feature tags */
.chip-feature {
  display: inline-block;
  background: var(--md-primary-fg-color);
  color: var(--md-primary-bg-color);
  padding: 0px 16px;
  border-radius: 20px;
}

[data-md-color-scheme="default"] .only-dark {
  display: none;
}

[data-md-color-scheme="slate"] .only-light {
  display: none;
}


.mermaid-large svg {
    width: 100%;     /* or 100% */
    height: auto;      /* maintain aspect ratio */
}

.md-typeset li > code {
        color: green;
      }

/* Class for a specific color */
.icon-color-red {
    color: #EE0F0F; /* Example: a vibrant red */
}

.icon-color-blue {
    color: #0f82ee; 
}

.icon-color-green {
    color: #0fee3f; 
}

.mermaid-focus:target {
  position: fixed;
  inset: 1rem;
  z-index: 999;
  background: var(--md-default-bg-color);
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: .8rem;
  padding: 1rem;
  overflow: auto;
}

.md-typeset table:not([class]) tr:nth-child(even) {
  background-color: rgba(0,0,0,0.02);
}

[data-md-color-scheme="default"] .only-dark {
  display: none;
}

[data-md-color-scheme="slate"] .only-light {
  display: none;
}