.md-header__app {
  display: inline-flex;
  align-items: center;
  margin-inline: 0.4rem 0.15rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 0.2rem;
  color: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.md-header__app:hover,
.md-header__app:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  color: inherit;
}

.md-header__app-short {
  display: none;
}

@media screen and (max-width: 59.984375em) {
  .md-header__app-long {
    display: none;
  }

.md-header__app-short {
  display: inline;
}
}

/* Secciones del manual: cada bloque se separa del texto corrido. */
.md-typeset h2 {
  margin: 2.2em 0 0.8em;
  padding: 0.45em 0.75em;
  border-left: 4px solid var(--md-primary-fg-color);
  border-radius: 0 0.35rem 0.35rem 0;
  background: color-mix(in srgb, var(--md-primary-fg-color) 10%, white);
  color: var(--md-default-fg-color);
  font-size: 1.15em;
  line-height: 1.35;
}

.md-typeset h3 {
  margin: 1.35em 0 0.4em;
  padding-bottom: 0.2em;
  border-bottom: 2px solid color-mix(in srgb, var(--md-primary-fg-color) 35%, white);
  color: var(--md-primary-fg-color);
  font-size: 1.02em;
}

/* Pasos numerados: cada uno es una ficha, no una línea más de la lista. */
.md-typeset ol {
  list-style: none;
  margin-left: 0;
  padding-left: 0;
  counter-reset: obratrace-step;
}

.md-typeset ol > li {
  position: relative;
  margin: 0 0 0.7em;
  padding: 0.75em 0.9em 0.75em 3.1em;
  border: 1px solid color-mix(in srgb, var(--md-primary-fg-color) 18%, white);
  border-radius: 0.45rem;
  background: color-mix(in srgb, var(--md-primary-fg-color) 5%, white);
  counter-increment: obratrace-step;
}

.md-typeset ol > li::before {
  content: counter(obratrace-step);
  position: absolute;
  left: 0.7em;
  top: 0.72em;
  width: 1.55em;
  height: 1.55em;
  border-radius: 50%;
  background: var(--md-primary-fg-color);
  color: var(--md-primary-bg-color, #fff);
  font-size: 0.8em;
  font-weight: 700;
  line-height: 1.55em;
  text-align: center;
}

.md-typeset ol ol,
.md-typeset ol ul {
  margin: 0.45em 0 0;
}

.md-typeset ol ol {
  list-style: decimal;
  padding-left: 1.2em;
  counter-reset: none;
}

.md-typeset ol ol > li,
.md-typeset ol ul > li {
  margin: 0.15em 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  counter-increment: none;
}

.md-typeset ol ol > li::before,
.md-typeset ol ul > li::before {
  content: none;
}

/* Menú: el título del grupo es una etiqueta; los pasos cuelgan sangrados. */
.md-nav--primary .md-nav__item--section > .md-nav__link[for] {
  margin: 0.95rem 0.15rem 0.3rem;
  padding: 0.38rem 0.55rem;
  border-radius: 0.3rem;
  background: color-mix(in srgb, var(--md-primary-fg-color) 12%, white);
  color: var(--md-primary-fg-color);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.3;
}

[dir="ltr"] .md-nav--primary .md-nav__item--section > .md-nav {
  margin-left: 0.7rem;
  padding-left: 0.55rem;
  border-left: 2px solid color-mix(in srgb, var(--md-primary-fg-color) 45%, white);
}

[dir="rtl"] .md-nav--primary .md-nav__item--section > .md-nav {
  margin-right: 0.7rem;
  padding-right: 0.55rem;
  border-right: 2px solid color-mix(in srgb, var(--md-primary-fg-color) 45%, white);
}
