/* General custom CSS for NG911 API documentation */


/* ========================================== */
/* ==== RULES FOR LARGE PARTS OF PROJECT ==== */
/* ========================================== */

/* Override a rule that could cause header title to overlap links */
@media (min-width: 960px) {
    header .navbar-header-items__start {
        width: revert;
    }
}

/* Slightly reduce line spacing between parameters in parameter lists */
dl.field-list > dt:first-child ~ dd {
    line-height: 1.2;
    padding-bottom: 1em;
}

/* Make type hints in field/parameter lists monospace and stand out slightly */
dl[class]:not(.option-list, .field-list, .footnote, .glossary, .simple) dl.field-list ul.simple p > strong:first-child ~ * {
    font-family: var(--pst-font-family-monospace);
    background-color: var(--pst-color-surface);
}

/* Slightly reduce letter spacing of parameters in function signatures */
.sig-param * {
    letter-spacing: -0.03em;
}

/* Change color of type hints in function signatures */
.sig-param > .n:not(:first-child) {
    font-weight: lighter;
    color: var(--pst-color-text-muted);
    color: var(--pst-color-text-muted);
}

/* ...except within a :target element */
:target .sig-param > .n:not(:first-child) {
    color: revert;
}

/* Put parameters on separate lines */
.sig-param::before {
  white-space: pre;
  content: "\A";
}

/* Ensure closing parenthesis has a line break before it too */
.sig-param:last-of-type::after {
  white-space: pre;
  content: "\A";
}

/* Slightly indent parameters */
.sig-param > :first-child {
  margin-left: 2rem;
}

/* Provide CSS for :bdg-contrast: and related roles derived from Sphinx Design */
html[data-theme="light"] .sd-sphinx-override.sd-badge.sd-bg-contrast.sd-bg-text-contrast {
    color: var(--sd-color-dark-text) !important;
    background-color: var(--sd-color-dark) !important;
}
html[data-theme="dark"] .sd-sphinx-override.sd-badge.sd-bg-contrast.sd-bg-text-contrast {
    color: var(--sd-color-light-text) !important;
    background-color: var(--sd-color-light) !important;
}
html[data-theme="light"] .sd-sphinx-override.sd-badge.sd-outline-contrast.sd-text-contrast {
    color: var(--sd-color-dark) !important;
    border: 1px solid var(--sd-color-dark) !important;
}
html[data-theme="dark"] .sd-sphinx-override.sd-badge.sd-outline-contrast.sd-text-contrast {
    color: var(--sd-color-light) !important;
    border: 1px solid var(--sd-color-light) !important;
}

/* Ensure sidebar images/figures don't flow into next section */
/*.clear-right-next ~ *, */section:has(div.tool-usage) ~ section {
  clear: right;
}

.xref.std.std-term {
    color: var(--pst-color-text-base);
}


/* ============================================= */
/* ==== RULES FOR SPECIFIC PARTS OF PROJECT ==== */
/* ============================================= */

/* Override generic admonition icon with info admonition icon (in /user-manual/introduction.rst) */
div.admonition-purpose > .admonition-title::after {
    content: var(--pst-icon-info-circle);
}