[data-md-color-scheme="matlab"] {
--md-primary-fg-color:        #22619f;
--md-primary-fg-color--dark:  #002f5b;
}

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

/* Custom admonition: preview */
:root {
    --md-admonition-icon--preview: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15.5 12a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0Z"/><path d="M12 3.5c3.432 0 6.124 1.534 8.054 3.241 1.926 1.703 3.132 3.61 3.616 4.46a1.6 1.6 0 0 1 0 1.598c-.484.85-1.69 2.757-3.616 4.461-1.929 1.706-4.622 3.24-8.054 3.24-3.432 0-6.124-1.534-8.054-3.24C2.02 15.558.814 13.65.33 12.8a1.6 1.6 0 0 1 0-1.598c.484-.85 1.69-2.757 3.616-4.462C5.875 5.034 8.568 3.5 12 3.5ZM1.633 11.945a.115.115 0 0 0-.017.055c.001.02.006.039.017.056.441.774 1.551 2.527 3.307 4.08C6.691 17.685 9.045 19 12 19c2.955 0 5.31-1.315 7.06-2.864 1.756-1.553 2.866-3.306 3.307-4.08a.111.111 0 0 0 .017-.056.111.111 0 0 0-.017-.056c-.441-.773-1.551-2.527-3.307-4.08C17.309 6.315 14.955 5 12 5 9.045 5 6.69 6.314 4.94 7.865c-1.756 1.552-2.866 3.306-3.307 4.08Z"/></svg>');
    --md-admonition-icon--code: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z"/></svg>');
}
  
.md-typeset .admonition.preview,
.md-typeset details.preview {
    border-color: rgb(220, 139, 240);
}
  
.md-typeset .preview>.admonition-title,
.md-typeset .preview>summary {
    background-color: rgba(142, 43, 155, 0.1);
}
  
.md-typeset .preview>.admonition-title::before,
.md-typeset .preview>summary::before {
    background-color: rgb(220, 139, 240);
    -webkit-mask-image: var(--md-admonition-icon--preview);
    mask-image: var(--md-admonition-icon--preview);
}

.md-typeset .admonition.code,
.md-typeset details.code {
    border-color: rgb(131, 128, 243);
}
  
.md-typeset .code>.admonition-title,
.md-typeset .code>summary {
    background-color: rgb(50, 49, 91, 0.1);;
}
  
.md-typeset .code>.admonition-title::before,
.md-typeset .code>summary::before {
    background-color: rgb(131, 128, 243);;
    -webkit-mask-image: var(--md-admonition-icon--code);
    mask-image: var(--md-admonition-icon--code);
}