/*********************************************************
 * Admonitions
 */

/* Icons */
:root {
  --md-admonition-icon--console: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 19V7H4v12zm0-16a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2zm-7 14v-2h5v2zm-3.42-4L5.57 9H8.4l3.3 3.3c.39.39.39 1.03 0 1.42L8.42 17H5.59z"/></svg>');
  --md-admonition-icon--trace: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M17 9H8V7h9zM7 7H5v2h2zm0-3H5v2h2zm3 0H8v2h2zm3 13v2h1c.55 0 1 .45 1 1h7v2h-7c0 .55-.45 1-1 1h-4c-.55 0-1-.45-1-1H2v-2h7c0-.55.45-1 1-1h1v-2H4c-1.11 0-2-.89-2-2V3a2 2 0 0 1 2-2h16c1.11 0 2 .89 2 2v12c0 1.11-.89 2-2 2zm7-2V3H4v12zm-9-9h8V4h-8zm-6 6h6v-2H5zm8 2h6v-2h-6z"/></svg>');
  --md-admonition-icon--moocnote: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 576" fill="%237c19bf"><!--! Font Awesome Free 7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2025 Fonticons, Inc.--><path d="m48 195.8 209.2 86.1c9.8 4 20.2 6.1 30.8 6.1s21-2.1 30.8-6.1l242.4-99.8c9-3.7 14.8-12.4 14.8-22.1s-5.8-18.4-14.8-22.1L318.8 38.1c-9.8-4-20.2-6.1-30.8-6.1s-21 2.1-30.8 6.1L14.8 137.9C5.8 141.6 0 150.3 0 160v296c0 13.3 10.7 24 24 24s24-10.7 24-24zm48 71.7V384c0 53 86 96 192 96s192-43 192-96V267.4l-142.9 58.9c-15.6 6.4-32.2 9.7-49.1 9.7s-33.5-3.3-49.1-9.7L96 267.4z"/></svg>')
}


/* Admonition console */
.md-typeset .admonition.console,
.md-typeset details.console {
  border-color: black;
  background-color: black;
  font-family: monospace;
  color: white;
}

.md-typeset .console > .admonition-title,
.md-typeset .console > summary {
  background-color: #dcdcdc;
  color:black;
}

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


/* Admonition trace */
.md-typeset .admonition.trace,
.md-typeset details.trace {
  border-color: rgb(43, 155, 70);
  font-family: monospace;
}

.md-typeset .trace > .admonition-title,
.md-typeset .trace > summary {
  background-color: rgba(43, 155, 70, 0.1);;
}

.md-typeset .trace > .admonition-title::before,
.md-typeset .trace > summary::before {
  background-color: rgb(43, 155, 70);
  -webkit-mask-image: var(--md-admonition-icon--trace);
          mask-image: var(--md-admonition-icon--trace);
}

/* Admonition mooc-note */
.md-typeset .admonition.mooc-note,
.md-typeset details.mooc-note {
  border-color: rgb(124, 25, 191);
}

.md-typeset .mooc-note > .admonition-title,
.md-typeset .mooc-note > summary {
  background-color: rgba(124, 25, 191, 0.1);;
}

.md-typeset .mooc-note > .admonition-title::before,
.md-typeset .mooc-note > summary::before {
  background-color: rgb(124, 25, 191);
  -webkit-mask-image: var(--md-admonition-icon--moocnote);
          mask-image: var(--md-admonition-icon--moocnote);
}

/* Admonition mooc-warn */
.md-typeset .admonition.mooc-warn,
.md-typeset details.mooc-warn {
  border-color: rgb(255, 145, 0);
}

.md-typeset .mooc-warn > .admonition-title,
.md-typeset .mooc-warn > summary {
  background-color: rgba(255, 145, 0, 0.1);;
}

.md-typeset .mooc-warn > .admonition-title::before,
.md-typeset .mooc-warn > summary::before {
  background-color: rgb(255, 145, 0);
  -webkit-mask-image: var(--md-admonition-icon--warning);
          mask-image: var(--md-admonition-icon--warning);  
}

/*********************************************************
 * GitHub tables style
 * CSS hack from Alex Kretzschmar
 * https://blog.ktz.me/making-mkdocs-tables-look-like-github-markdown-tables/
 */

th, td {
    border: 1px solid var(--md-typeset-table-color);
    border-spacing: 0;
    border-bottom: none;
    border-left: none;
    border-top: none;
}

.md-typeset__table {
    line-height: 1;
}

.md-typeset__table table:not([class]) {
    font-size: .74rem;
    border: none;
    border-collapse: collapse;
}

.md-typeset__table table:not([class]) > tbody, thead {
  border-collapse: collapse;
  border: 1px solid var(--md-typeset-table-color);
  border-spacing: 0;
  border-right: none;
}

.md-typeset__table table:not([class]) td,
.md-typeset__table table:not([class]) th {
    padding: 9px;
}

/* light mode alternating table bg colors */
.md-typeset__table tr:nth-child(2n) {
    background-color: #f8f8f8;
}

/* dark mode alternating table bg colors */
[data-md-color-scheme="slate"] .md-typeset__table tr:nth-child(2n) {
    background-color: hsla(var(--md-hue),25%,25%,1)
}

th {
  background-color: #d7d7d7;
}

th[colspan] {
  font-weight: normal;
  background-color: #e7e7e7;
}

table > caption {
  caption-side: bottom;
  padding: 10px;
  font-weight: normal;
  font-style: italic;
  font-size: .8rem;
}



/*********************************************************
 * Footer
 */

.custom_copyright {
  display: flex;
  align-items: start; /* alignement vertical */
}

.custom_copyright img {
  height: 2rem;
}

.custom_copyright .content_version {
  margin-left: auto;
  text-align: right;
}
