/* Mantener visibles los submenús del item activo */
.wy-menu-vertical li.current > ul { display: block; }
/* Resaltar mejor el activo */
.wy-menu-vertical li.current > a { font-weight: 600; }
/* (Opcional) Mantener posición de scroll agradable */
.wy-side-scroll { scroll-behavior: auto; }
/* ancho máximo cómodo del contenido */
.wy-nav-content { max-width: 1200px; }

/* caja del TOC generado por [TOC] */
.toc, .toc ul { list-style: none; margin: 0; padding: 0; }
.toc {
  float: right;
  width: 260px;
  margin: 0 0 1rem 2rem;
  position: sticky;
  top: 1rem;
  max-height: calc(100vh - 2rem);
  overflow: auto;
  border-left: 1px solid #e5e5e5;
  padding-left: 1rem;
  font-size: 0.95em;
}
.rst-content .toc a { text-decoration: none; }
.rst-content .toc li { margin: .25rem 0; }

/* En pantallas pequeñas, volverlo bloque normal */
@media (max-width: 1100px) {
  .toc { float: none; width: auto; position: static; max-height: none; border: 0; padding-left: 0; }
}

/* Code as in an editor (VS Code / Monaco): dark theme (hljs vs2015, mkdocs.yml) and a monospace font */
.rst-content pre,
.rst-content pre code,
.rst-content code {
  font-family: Menlo, Monaco, Consolas, "Cascadia Code", "Fira Code", "Courier New", monospace;
}
.rst-content pre {
  background: #1e1e1e;
  border: 1px solid #2d2d2d;
  border-radius: 6px;
  padding: 0;
  margin: 0 0 1.5em;
  overflow-x: auto;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
}
.rst-content pre code,
.rst-content pre code.hljs,
.rst-content pre .hljs {
  display: block;
  background: #1e1e1e;
  color: #d4d4d4;
  border: none;
  padding: 14px 18px;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre;
  tab-size: 2;
}
/* the 3xpr script inside a template string (extra.js): its code coloured, not as one string */
.rst-content pre code .embedded-script { color: #d4d4d4; }
/* VS Code Dark+ colours that vs2015 leaves plain */
.rst-content pre code .hljs-title.function_,
.rst-content pre code .hljs-title.function_.invoke__ { color: #dcdcaa; }
.rst-content pre code .hljs-property,
.rst-content pre code .hljs-variable,
.rst-content pre code .hljs-params { color: #9cdcfe; }
.rst-content pre code .hljs-title.class_ { color: #4ec9b0; }
.rst-content pre code .hljs-keyword.control { color: #c586c0; }

/* the language selector, under the search box */
.lang-switch { margin-top: .6em; font-size: .85em; }
.lang-switch a { color: #fcfcfc; opacity: .75; margin: 0 .35em; }
.lang-switch a.current { opacity: 1; font-weight: 700; text-decoration: underline; }

/* the downloads of the IDE page (docs/ide/index.md, assets/downloads-v1.js) */
.ide-downloads { margin: 1rem 0 1.5rem; }
.ide-dl-version { font-weight: 600; margin-bottom: .5rem; }
.ide-dl-primary { display: flex; flex-wrap: wrap; gap: .5rem; }
.rst-content a.ide-dl-button, a.ide-dl-button { display: inline-block; padding: .55rem 1rem; border-radius: 4px; background: #2980b9; color: #fff; font-weight: 600; text-decoration: none; }
.rst-content a.ide-dl-button:hover, a.ide-dl-button:hover { background: #2472a4; color: #fff; }
.ide-dl-platforms { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin: 1rem 0; }
.ide-dl-platform { border: 1px solid #e1e4e5; border-radius: 4px; padding: .5rem .9rem; }
.ide-dl-platform h4 { margin: .25rem 0 .5rem; }
.rst-content .ide-dl-platform ul { margin: 0 0 .25rem; list-style: none; }
.rst-content .ide-dl-platform ul li { list-style: none; margin-left: 0; }
.ide-dl-size, .ide-dl-muted { color: #6a6a6a; font-size: .9em; }
.ide-dl-problem { color: #b94a48; }
.ide-dl-table { overflow-x: auto; max-width: 100%; }
.ide-dl-table table { border-collapse: collapse; width: 100%; }
.ide-dl-table th, .ide-dl-table td { border-bottom: 1px solid #e1e4e5; padding: .35rem .6rem; text-align: left; vertical-align: top; }
.ide-dl-table td a.ide-dl-file { margin-right: .5rem; white-space: nowrap; }
.ide-dl-notes { font-size: .95em; padding: .25rem 0 .5rem; }
.ide-dl-tests, .ide-dl-latest-notes { margin: 1rem 0; }
@media (max-width: 700px) {
  .ide-dl-table th:nth-child(2), .ide-dl-table td:nth-child(2) { display: none; }
}
