/*
===============================
Jupyter Wrapper Styles
===============================
*/

/* Hide output prompt in Jupyter */
.jupyter-wrapper .jp-OutputPrompt,
.jupyter-wrapper .jp-CodeCell .jp-Cell-inputWrapper .jp-InputPrompt,
.jupyter-wrapper .jp-Notebook .jp-Cell:not(.jp-mod-active) .jp-InputPrompt {
  display: none;
}

/* Size of code cells in Jupyter Notebooks */
.jupyter-wrapper .jp-CodeCell .jp-InputArea-editor .CodeMirror {
  font-size: 0.95em; /* Adjust the size as needed */
}

/* Size of output cells in Jupyter Notebooks */
.jupyter-wrapper .jp-RenderedText.jp-OutputArea-output pre {
  font-size: 1.2em; /* Adjust the size as needed */
}

/* Display inline tables for dataframes in Jupyter */
.jupyter-wrapper table.dataframe {
  display: inline;
}

/*
===============================
Markdown Content Styles
===============================
*/

.md-typeset h1 {
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--md-default-fg-color);
}

.md-typeset h2 {
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--md-default-fg-color);
}

.md-typeset h3 {
  font-size: 1.25em;
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1.5;
  margin: 1.6em 0 .8em;
  color: var(--md-default-fg-color);
}


/* Justify text */
.md-typeset p {
  text-align: justify;
}

/* Increase font size of code blocks in Markdown cells */
.md-typeset pre {
  font-size: 0.95em; /* Adjust the size as needed */
}

.md-typeset pre>code {
  border-bottom-left-radius: 0;
  border-top-left-radius: 0;
  font-size: 1.1em;
  white-space: pre-wrap; 
  word-break: break-word;
}

.md-typeset code:not(.focus-visible) {
  font-size: 1.1em;
}

.md-typeset table:not([class]) td>:last-child, .md-typeset table:not([class]) th>:last-child {
  font-size: 1.1em;
}

/*
===============================
Color Scheme Styles
===============================
*/
/* Light color scheme styles */
[data-md-color-scheme="light"] {
  --md-primary-fg-color:        #001633;
  --md-primary-fg-color--light: #001633;
  --md-primary-fg-color--dark:  #001633;
  --md-accent-fg-color:         #f79939;
  --md-accent-fg-color--light:  #f79939;
  --md-accent-fg-color--dark:   #f79939;
  --md-primary-bg-color:        #f79939;
  --md-typeset-a-color:         #f79939;
  --md-default-fg-color:        #2c2c2c;
}

/* Slate color scheme styles */
[data-md-color-scheme="slate"] {
  --md-primary-fg-color:        #001633;
  --md-primary-fg-color--light: #001633;
  --md-primary-fg-color--dark:  #001633;
  --md-accent-fg-color:         #f79939;
  --md-accent-fg-color--light:  #f79939;
  --md-accent-fg-color--dark:   #f79939;
  --md-primary-bg-color:        #f79939;
  --md-typeset-a-color:         #f79939;
}
  
/* Hide dark images in light mode */
[data-md-color-scheme="light"] img[src$="#only-dark"],
[data-md-color-scheme="light"] img[src$="#gh-dark-mode-only"] {
  display: none; 
}

/* Hide light images in dark mode */
[data-md-color-scheme="dark"] img[src$="#only-light"],
[data-md-color-scheme="dark"] img[src$="#gh-light-mode-only"] {
  display: none; 
}

/*
===============================
Badge Styles
=============================== 
*/
.badge {
  display: inline-block;
  padding: 0.2em 0.4em;
  font-size: 0.75em; 
  font-weight: 700;
  line-height: 1;
  text-align: center;
  border-radius: 0.25rem;
}

/* Enhancement Badge */
.text-bg-enhancement {
  color: #fff;
  background-color: #17a2b8;
}

/* API Change Badge */
.text-bg-api-change {
  color: #fff;
  background-color: #ffc107;
}

/* Feature Badge */
.text-bg-feature {
  color: #fff;
  background-color: #28a745;
}

/* Fix Badge */
.text-bg-danger {
  color: #fff;
  background-color: #dc3545;
}