/*!
 * CSS del shortcode, extraído del style.css raíz v5.
 */

/*--------------------------------------------------------------
## Table of Contents (TOC)
--------------------------------------------------------------*/

#table-of-contents {
  border: 1px solid #000000;
  border-radius: 20px;
  padding: var(--s40);
}

#table-of-contents ol {
  counter-reset: item;
  list-style: none;
  margin-top: var(--s20);
  margin-bottom: 0;
  margin-top: 0;
}

#table-of-contents li {
  counter-increment: item;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 5px;
  row-gap: var(--s20);
  margin-bottom: var(--s20);
  padding-left: 0;
}

#table-of-contents li > ol {
  flex-basis: 100%;
  padding-left: 20px;
}

#table-of-contents li:last-child {
  margin-bottom: 0;
}

#table-of-contents li::before {
  content: counters(item, ".") ". ";
  flex-shrink: 0;
  white-space: nowrap;
}

#table-of-contents a {
  text-decoration-line: none;
  min-width: 0;
  flex: 1;
}

/* Modo desplegable (componente genérico open-* — ver main.css). */
#table-of-contents .open-panel {
  margin-top: var(--s20);
}
