/* acontis styling for sphinx-book-theme / pydata-sphinx-theme (see Common/Conf/conf.py). */

/* Corporate orange instead of the theme's teal. The html[data-theme=...] selector (not :root) is required: sphinx-book-theme re-overrides these under the same selector, which outranks :root regardless of load order. Light mode uses a darker shade because --pst-color-primary is also link text on a near-white background (WCAG AA needs 4.5:1). */
html[data-theme="light"] {
    --pst-color-primary: #B35400;
    --pst-color-primary-highlight: #8C4200;
    --pst-color-primary-bg: #FCE8D7;
}

html[data-theme="dark"] {
    --pst-color-primary: #EF6C00;
    --pst-color-primary-highlight: #C25900;
    --pst-color-primary-bg: #3A2210;
}

/* ".. seealso::" defaults to --pst-color-success (green); re-point it at the same blue as ".. note::", as in the previous theme. */
.admonition.seealso,
div.admonition.seealso {
    border-color: var(--pst-color-info);
}
.admonition.seealso > .admonition-title,
div.admonition.seealso > .admonition-title {
    background-color: var(--pst-color-info-bg);
}
.admonition.seealso > .admonition-title:after,
div.admonition.seealso > .admonition-title:after {
    color: var(--pst-color-info);
}

/* Stretch the content to the browser window: drop the 88rem page cap and the 60em reading-width article cap. */
.bd-page-width {
    max-width: none !important;
}
.bd-article-container {
    max-width: none !important;
}

.simple
{
    margin-top: 0px;
    margin-bottom: 40px;
}

/* function name bold */
.function .sig-name {
    font-weight:bold;
}

/* Type-name links in signatures: an ancestor <a>'s underline is painted through the ::before content injected below, and only removing it from the link itself works (display:inline-block would too, but that stops the embedded "\a" from breaking the outer line). */
dt.sig .reference {
    text-decoration: none;
}

/* line break after function name + ( */
.sig-paren + .n::before {
    content: "\a\20\20\20\20\20\20\20\20\20\20\20\20\20\20\20\20";
    white-space: pre;
}
.sig-paren + .reference::before {
    content: "\a\20\20\20\20\20\20\20\20\20\20\20\20\20\20\20\20";
    white-space: pre;
}

/* line breaks for following parameters */
.sig-param + .n::before {
    content: "\a\20\20\20\20\20\20\20\20\20\20\20\20\20\20\20\20";
    white-space: pre;
}
.sig-param + .k::before {
    content: "\a\20\20\20\20\20\20\20\20\20\20\20\20\20\20\20\20";
    white-space: pre;
}
.sig-param + .reference::before {
    content: "\a\20\20\20\20\20\20\20\20\20\20\20\20\20\20\20\20";
    white-space: pre;
}
.sig-param + .kt::before {
    content: "\a\20\20\20\20\20\20\20\20\20\20\20\20\20\20\20\20";
    white-space: pre;
}

/* typedef type name bold */
.type .sig-name {
    font-weight:bold;
}

/* EcSupportedNics compatibility table (DataTables, see main.js) */
.datatable {
    overflow-y: scroll !important;
    font-size: smaller;
}
.datatable th p {
    margin: 100% -130%;
    transform: rotate(315deg);
    display: inline-block;
}
.dataTables_wrapper .dataTables_length {
    float: right;
}
.dataTables_wrapper .dataTables_filter {
    float: left;
    text-align: right;
}
