/* ===============================
   Python autodoc signatures — dark mode
   =============================== */

/* 1. "class" / "def" keyword */
html[data-theme="dark"] em.property {
    color: #f4b942; /* yellow-orange */
    font-style: normal; /* optional: remove italics if desired */
}

/* 2. Module / dotted path prefix */
html[data-theme="dark"] .sig-prename.descclassname,
html[data-theme="dark"] .sig-prename.descclassname .pre,
html[data-theme="dark"] .descclassname,
html[data-theme="dark"] .descclassname .pre {
    color: #ffffff; /* white */
}

/* 3. Main class / function name */
html[data-theme="dark"] .sig-name.descname,
html[data-theme="dark"] .sig-name.descname .pre,
html[data-theme="dark"] .descname,
html[data-theme="dark"] .descname .pre {
    color: #ff4fa3; /* hot pink */
}

/* 4. Parameter names */
html[data-theme="dark"] .sig-param .n,
html[data-theme="dark"] .sig-param .n .pre {
    color: #e6e6e6;
}

/* 5. Type annotations (int, str, Tensor, etc.) */
html[data-theme="dark"] .sig-param .n a,
html[data-theme="dark"] .sig-param .n a .pre {
    color: #7dd3fc; /* soft cyan */
}

/* 6. Operators (:, =, |) */
html[data-theme="dark"] .sig-param .p,
html[data-theme="dark"] .sig-param .o {
    color: #cfcfcf;
}

/* 7. Default parameter values */
html[data-theme="dark"] .sig-param .default_value,
html[data-theme="dark"] .sig-param .default_value .pre {
    color: #f45347; /* salmon red */
    font-weight: 500;
}

/* 8. Optional: overall signature background contrast */
html[data-theme="dark"] .sig {
    background-color: #2b2b2b;
}
/* =========================================
   Code Block Overrides for Dark Mode
   ========================================= */
    /* Dark-mode code blocks: background + base text */
html[data-theme="dark"] div.highlight,
html[data-theme="dark"] pre.highlight,
html[data-theme="dark"] .highlight pre {
  background: #0f111a !important;  /* Abyss-like */
  color: #cdd6f4 !important;
  border: none;
  border-radius: 4px;
}
/* Token tuning for dark mode */
html[data-theme="dark"] .highlight .k  { color: #82aaff !important; } /* keywords */
html[data-theme="dark"] .highlight .s  { color: #c3e88d !important; } /* strings */
html[data-theme="dark"] .highlight .m  { color: #f78c6c !important; } /* numbers */
html[data-theme="dark"] .highlight .c  { color: #637777 !important; font-style: italic; } /* comments */
html[data-theme="dark"] .highlight .nf,
html[data-theme="dark"] .highlight .nc { color: #ffd580 !important; } /* functions/classes */


/* =========================================
   Override RTD <dt> background for Python signatures (dark mode)
   ========================================= */

/* Override RTD nested <dt> background for Python domain signatures (dark mode) */
html[data-theme="dark"].writer-html5 .rst-content
dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple)
dl:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple)
> dt.sig.sig-object.py {
  background: #000000 !important;  
  color: #ffffff !important;
  border-left-color: rgb(0, 0, 0) !important;
}

/* Prevent inner spans from reintroducing light backgrounds */
html[data-theme="dark"].writer-html5 .rst-content
dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple)
dl:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple)
> dt.sig.sig-object.py * {
  background: transparent !important;
}

