/* Line-break tables instead of making them horizontally scrollable */
.tight-table td {
    white-space: normal !important;
}

/* add vertical scrollbar to left side navigation when a lot of items
   are expanded */
.wy-side-scroll {
    width: auto;
    overflow-y: auto;
}

.wy-side-nav-search {
    background-color: #007CC1;
}

/* Wider content area (default is 800) */
.wy-nav-content {
    max-width: 1000px;
}

.fine-print {
    font-size: 12px;
}

.tight {
    margin-bottom: 0px;
}

/* Reduce the margin below the content in "doc-todo" admonitions,
we don't want them wastefully big. */
.doc-todo > p:not(.admonition-title) {
    margin: 0px;
}

/* Use same title background for doc-todo admonitions as for error
   admonitions */
.doc-todo > p.admonition-title {
    background-color: #F29F97;
}

/* Use same body background for doc-todo admonitions as for error
   admonitions */
.doc-todo {
    background-color: #FDF3F2 !important;
}

code.literal.nova-file {
    color: #000000;
}

/* Remove some styling from non-reference literals.

   With the normal ReadTheDocs-css, literals like ``hello`` get:

   - red-text, which gives the idea that it's some kind of error (like a
     broken reference).

   - a border and small font-size to accomodate the border, which
     makes it harder to read in normal text paragraphs

   TODO: Sparing xref was not enough, there's also arguments in the
   lua-api docs for example which should have borders.
*/
code.literal:not(.nova-api):not(.xref) {
    color: #000000 !important;
    background-color: transparent !important;

    border: 0 !important;

    /* Make text stand out a bit more TODO: Maybe not so nice everywhere */
    font-weight: 500 !important;

    /* The padding and lowered-font size in the standard css is probably
       meant to make literals look good with border, but we have removed
       the border */
    padding: 0px !important;
    font-size: 100% !important;
}

strong.nova-inline-doc-todo {

    color: #ffffff !important;
    background-color: #F29F97 !important;

    padding-left: 2px;
    padding-right: 2px;

    border-top: 1px solid #000000 !important;
    border-bottom: 1px solid #000000 !important;
    border-left: 1px solid #000000 !important;
}

span.nova-inline-doc-todo {
    background-color: #FDF3F2 !important;

    border-left: 0px !important;
    border-top: 1px solid !important;
    border-bottom: 1px solid !important;
    border-left: 1px solid !important;
    border-right: 1px solid !important;
}

.nova-faded {
    opacity: 0.7 !important;
}

.nova-sig-internal {
    font-size: 80%;
    border: 1px solid #1f5a81;
    background: #709cbd;
    font-weight: 700;
    font-style: normal !important;
    border-radius: 4px;
    padding: 2.4px 6px;
    margin: auto 2px;
    color: #ffffff;
    /* Normal signature font doesn't look nice in non-italic 80% */
    font-family: consolas;
}


.nova-tag {
    font-size: 80%;
    border: 1px solid #1f5a81;
    background: #709cbd;
    font-weight: 700;
    font-style: normal !important;
    border-radius: 4px;
    padding: 2.4px 6px;
    margin: auto 2px;
    color: #ffffff;
    /* Normal signature font doesn't look nice in non-italic 80% */
    font-family: consolas;
}

.with-border {
    border: 1px solid #e1e4e5 !important;
}

figcaption p {
    margin-bottom: 0px !important;
}

/* Hack: Don't put h3 beside floats */
h3 {
    clear: both;
}

.nova-module-info-box {
    /* We lazily use a table for the info boxes for Lua modules. Remove
       the extra margin at the end of the table to make it look nice
       and snug. */
    margin-bottom: 0px !important;
}

.wy-breadcrumbs-aside {
    width: 60px !important;
    height: 20px !important;
    background-image: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgdmVyc2lvbj0iMS4xIgogICBpZD0iRWJlbmVfMSIKICAgeD0iMHB4IgogICB5PSIwcHgiCiAgIHZpZXdCb3g9IjAgMCA1OS45OTk5OTkgMjAiCiAgIHhtbDpzcGFjZT0icHJlc2VydmUiCiAgIHNvZGlwb2RpOmRvY25hbWU9InNpY2stbG9nby1zbnVnLnN2ZyIKICAgd2lkdGg9IjYwIgogICBoZWlnaHQ9IjIwIgogICBpbmtzY2FwZTp2ZXJzaW9uPSIxLjMgKDBlMTUwZWQ2YzQsIDIwMjMtMDctMjEpIgogICB4bWxuczppbmtzY2FwZT0iaHR0cDovL3d3dy5pbmtzY2FwZS5vcmcvbmFtZXNwYWNlcy9pbmtzY2FwZSIKICAgeG1sbnM6c29kaXBvZGk9Imh0dHA6Ly9zb2RpcG9kaS5zb3VyY2Vmb3JnZS5uZXQvRFREL3NvZGlwb2RpLTA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KICAgaWQ9InBhdGgyIiAvPiYjMTA7CQk8cG9seWdvbgogICBjbGFzcz0ic3QwIgogICBwb2ludHM9IjI5OS4zLDUxLjggMjk5LjMsMTU1LjQgMzI0LDE1NS40IDMyNCwxMTUuMiAzMzIuNywxMTUuMiAzNTguOCwxNTUuNCAzODkuMiwxNTUuNCAzNTQuNywxMDQuMiAzODkuNyw1MS44IDM1OS4zLDUxLjggMzMzLjYsOTMuMyAzMjQsOTMuMyAzMjQsNTEuOCAiCiAgIGlkPSJwb2x5Z29uMiIgLz4mIzEwOwk8L2c+JiMxMDs8L2c+JiMxMDs8L3N2Zz4K") !important;
    background-size: contain;
}

.gitlab-file::before {
    /* Gitlab icon from font awesome */
    content: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1MTIgNTEyIj48cGF0aCBkPSJNNTAzLjUgMjA0LjZMNTAyLjggMjAyLjhMNDMzLjEgMjFDNDMxLjcgMTcuNSA0MjkuMiAxNC40IDQyNS45IDEyLjRDNDIzLjUgMTAuOCA0MjAuOCA5LjkgNDE3LjkgOS42QzQxNSA5LjMgNDEyLjIgOS43IDQwOS41IDEwLjdDNDA2LjggMTEuNyA0MDQuNCAxMy4zIDQwMi40IDE1LjVDNDAwLjUgMTcuNiAzOTkuMSAyMC4xIDM5OC4zIDIyLjlMMzUxLjMgMTY2LjlIMTYwLjhMMTEzLjcgMjIuOUMxMTIuOSAyMC4xIDExMS41IDE3LjYgMTA5LjYgMTUuNUMxMDcuNiAxMy40IDEwNS4yIDExLjcgMTAyLjUgMTAuN0M5OS45IDkuNyA5NyA5LjMgOTQuMSA5LjZDOTEuMyA5LjkgODguNSAxMC44IDg2LjEgMTIuNEM4Mi44IDE0LjQgODAuMyAxNy41IDc4LjkgMjFMOS4zIDIwMi44TDguNSAyMDQuNkMtMS41IDIzMC44LTIuNyAyNTkuNiA1IDI4Ni42QzEyLjggMzEzLjUgMjkuMSAzMzcuMyA1MS41IDM1NC4yTDUxLjcgMzU0LjRMNTIuMyAzNTQuOEwxNTguMyA0MzQuM0wyMTAuOSA0NzRMMjQyLjkgNDk4LjJDMjQ2LjYgNTAwLjEgMjUxLjIgNTAyLjUgMjU1LjkgNTAyLjVDMjYwLjYgNTAyLjUgMjY1LjIgNTAwLjEgMjY4LjkgNDk4LjJMMzAwLjkgNDc0TDM1My41IDQzNC4zTDQ2MC4yIDM1NC40TDQ2MC41IDM1NC4xQzQ4Mi45IDMzNy4yIDQ5OS4yIDMxMy41IDUwNi4xIDI4Ni42QzUxNC43IDI1OS42IDUxMy41IDIzMC44IDUwMy41IDIwNC42eiIvPjwvc3ZnPg==');
    width: 13px;
    display: inline-block;
    margin-right: 3px;
    filter: contrast(0.2); /* Reduce contrast to make icon less prominent */
}

.nova-bare-table {
    border: none !important;
    background: none !important;
}

.nova-bare-table td, .nova-bare-table th {
    background: none !important;
    border: none !important;
    text-align: center;
}

.nova-confidential-ribbon {
    position: sticky;
    display: block;
    float: right;
    overflow: hidden;
    top: 0;
    right: 0;
    width: 140px;
    height: 140px;
    margin-top: -24px; /* Negate <hr> margin above content area */
    margin-right: -3.236em; /* Negate the padding around the content area */

    span {
        display: inline-block;
        position: absolute;
        transform: rotate(45deg);
        top: 45px;
        right: -70px;
        padding: 4px 40px;
        margin: 0px 30px;
        text-align: center;
        text-transform: uppercase;
        color: white;
        background-color: red;
        box-shadow: 0 5px 10px rgba(0,0,0,.1);
        user-select: none;
    }
}

/* Styling for the sphinx-example directive. This is largely copied
  from the ReadTheDocs-theme admonitions styles */

div.sphinx-example {
    background: #FFF9BD;
    padding: 12px;
    line-height: 24px;
    margin-bottom: 24px;
}

p.sphinx-example-title {
    background: #EBC93A;
    font-weight: 700;
    display: block;
    color: #fff;
    padding: 6px 12px;
    margin: -12px -12px 12px;
}

div.sphinx-example-result {
    background: #f8f8f8;
    border: 1px solid #e1e4e5;
    overflow-x: auto;
    margin: 1px 0 24px;
    padding: 12px;
}
