/* Custom styles to override MkDocs defaults and enhance theme */
@import url("https://fonts.bunny.net/css?family=atkinson-hyperlegible:400,400i,700,700i|darumadrop-one:400|freeman:400|roboto-mono:400,400i,700");
/* Unordered list <ul> symbols:
* - level 2 is hollow circle
* - level 3 is filled square
* - ul default is filled disc (bullet)
*/

:root {
  font-variant-ligatures: none;
  --md-text-font: 'Atkinson Hyperlegible';
  --md-code-font: 'Roboto Mono';
}

.md-typeset h1 {
  font-family: Freeman;
  color: var(--md-primary-fg-color);
}

.md-typeset h2 {
  font-family: Darumadrop One;
  color: #c62d1f;
}

.md-header__topic {
  font-family: Freeman;
}

article ul ul {
  list-style-type:  circle !important;
}

article ul ul ul {
  list-style-type:  square !important;
}

.md-typeset ol ol {
  list-style-type: lower-alpha;
}
.md-typeset ol ol li {
  list-style: none;
  counter-increment: list;
}

.md-typeset ol ol > li::marker {
  content: counter(list-item, lower-alpha) ") ";
}

/* Tablas centradas */
.md-typeset__scrollwrap:has(.md-typeset__table) {
  text-align: center;
}

.admonition.lista-letras > ol {
  counter-reset: list;
}

.admonition.lista-letras > ol > li {
  list-style-type: none;
}

.admonition.lista-letras > ol > li::before {
  content: counter(list, lower-alpha) ") ";
  counter-increment: list;
}

.admonition.lista-letras-1 > ol > li > ol {
  counter-reset: list;
}

.admonition.lista-letras-1 > ol > li > ol > li {
  list-style-type: none;
}

.admonition.lista-letras-1 > ol > li > ol > li::before {
  content: counter(list, lower-alpha) ") ";
  counter-increment: list;
}

div.mermaid {
  text-align: center;
}

.centered {
  display: block;
  margin: 0 auto;
}

.fit-table {
  table-layout: auto !important;
}

[data-md-color-scheme="epm"] {
  --md-primary-fg-color:        #133e96;
  --md-primary-fg-color--light: #133e96;
  --md-primary-fg-color--dark:  #c62d1f;
}

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