/* Define Strix document style over sphinx_rtd_theme, adapting app.css and related styles. */

@import url('theme.css'); /* from RTD theme. */
@import url('googlefonts.css');
@import url('app.css');
@import url('app-style.css');
@import url('style-custom.css');

/* wy-grid-for-nav occupies the entire main block. */

.wy-grid-for-nav {
    display: flex;
    position: static;
}

/* wy-nav-side is for the side-bar (global toc.) */

.wy-nav-side {
    position: sticky;
    flex: none;
    top: 84px;
    height: max-content;
    padding-bottom: 2em;
    overflow-x: hidden;
    overflow-y: hidden;
    color: #9b9b9b;
    background: transparent;
    z-index: 200;
    background: #ffffff;
    border-right: 1px solid #dcdcdc;
}

.wy-side-nav-search {
    color: #404040;
    background: transparent;
}

.wy-side-nav-search>div.version {
    color: #404040;
    background: transparent;
}

.wy-side-nav-search>a {
    color: #404040;
    background: transparent;
}

.wy-side-scroll {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.wy-side-scroll::-webkit-scrollbar {
    display: none;
}

.wy-menu-vertical a {
    color: #404040;
}

/* To _undo_ rtd's specifications for global toc elements... :( */
.wy-menu-vertical a:hover,
.wy-menu-vertical li.current,
.wy-menu-vertical li.current a,
.wy-menu-vertical li.current>a,
.wy-menu-vertical li.current a:hover,
.wy-menu-vertical li.current>a:hover,
.wy-menu-vertical li.on,
.wy-menu-vertical li.on a,
.wy-menu-vertical li.on>a,
.wy-menu-vertical li.on a:hover,
.wy-menu-vertical li.on>a:hover,
.wy-menu-vertical li.toctree-l1.current>a, .wy-menu-vertical li.toctree-l1.current li.toctree-l2>a,
.wy-menu-vertical li.toctree-l2.current>a, .wy-menu-vertical li.toctree-l2.current li.toctree-l3>a,
.wy-menu-vertical li.toctree-l3.current>a, .wy-menu-vertical li.toctree-l3.current li.toctree-l4>a,
.wy-menu-vertical li.toctree-l4.current>a, .wy-menu-vertical li.toctree-l4.current li.toctree-l5>a,
.wy-menu-vertical li.toctree-l5.current>a, .wy-menu-vertical li.toctree-l5.current li.toctree-l6>a,
.wy-menu-vertical li.toctree-l6.current>a, .wy-menu-vertical li.toctree-l6.current li.toctree-l7>a,
.wy-menu-vertical li.toctree-l7.current>a, .wy-menu-vertical li.toctree-l7.current li.toctree-l8>a,
.wy-menu-vertical li.toctree-l8.current>a, .wy-menu-vertical li.toctree-l8.current li.toctree-l9>a,
.wy-menu-vertical li.toctree-l9.current>a, .wy-menu-vertical li.toctree-l9.current li.toctree-l10>a,
.wy-menu-vertical li.toctree-l10.current>a {
        border: none;
        background-color: transparent;
}

/* wy-nav-content defines the main text area
   (including margins, breadcrumbs on the top, and navigation buttons on the bottom.) */

.wy-nav-content {
    padding: 1.618em;
    max-width: 1000px; /* XXX */
    margin: 0px 200px 25px 50px; /* 200px to the right to avoid overlapping with Strix navigation. */
    height: auto;
    background: #FFFFFF;
}

.wy-nav-content a {
    /* app.css has "a { display: block }", so we need to cancel it. */
    display: inline;
}

.wy-nav-content-wrap {
    margin-left: -1px;
    border-left: 1px solid #dcdcdc;
    background: #FFFFFF;
    min-width: 730px;
    flex: auto;
}

@media (max-width: 768px) {
    .wy-nav-content-wrap {
        min-width: 0;
    }
}

.wy-nav-content a {
    display: inline;
}

.wy-nav-content a:link {
    color: #409ad5;
}

.wy-nav-content a:visited {
    color: #9b59b6;
}

/* the border between the breadcrumbs and the first heading looks too wide. */

div.rst-content>div>hr {
    display: none;
}

/* Hide the <HR> element at the bottom as well as "contentinfo" below it,
   while keeping footer buttons. */

div.rst-content>footer>hr,
div.rst-content>footer>div {
    display: none;
}

div.rst-content>footer>div.rst-footer-buttons {
    display: block;
}

/* images */

div.rst-content img {
    width: max-content;
    height: auto!important;
    margin: 24px auto;
}

div.rst-content div.mermaid {
    visibility: hidden;
}

div.rst-content div.mermaid[data-processed=true] {
    visibility: visible
}

div.rst-content div.mermaid>svg {
    margin: 24px auto;
}

/* adjustment for alternating table row coloring. */

.rst-content table.docutils:not(.field-list) tr:nth-child(2n) td[rowspan] {
    background-color: #f3f6f6
}

/* other adjustments */

body, html, :root {
    overflow: initial !important;
}

body.wy-body-for-nav {
    background-color: #FFFFFF;
}

.document {
    position: static;
    padding-bottom: 50px;
    background: transparent;
}

main {
    padding-top: 106px;
}

/* always disable RTD's _mobile_ navigation bar. */

@media (max-width: 768px) {
    .wy-nav-top {
        display: none;
    }
}

/* fold our own chromes on a narrower screen. */

@media (max-width: 1366px) {
    .wy-nav-content {
        margin-right: 10px;
        max-width: 800px;
    }
    .footer-backTop {
        width: 57px;
        top: -30px;
        right: 26px;
    }
}

@media (max-width: 1178px) {
    .wy-nav-side {
        display: none;
    }
    .wy-nav-content {
        margin-right: auto;
        margin-left: auto;
    }
}

@media (max-width: 959px) {
}

/* Revert specifications for Strix navigation bar that were affected by theme.css. */

.l-header {
    background-color: white;
}

.l-header .header-menu__text,
.l-header .header-sub-menu__text {
    color: #1c1c1c;
    font-size: 14px;
}

.l-header .header-sub-menu--product .header-sub-menu__text {
    font-family: Heebo, sans-serif;
    font-weight: 400;
    font-size: 16px;
    letter-spacing: .06em;
}

.l-header .header-register__link,
.l-header .header-language__link {
    color: #fff;
}

/* Revert specifications for the common Strix footer block affected by theme.css. */

.l-footer .footer-nav__heading {
    font-size: 17px;
}

.l-footer .footer-nav__list li {
    font-size: 14px;
}

@media (max-width: 959px) {
    .l-footer .footer-nav__list li {
        font-size: 12px;
    }
}

.l-footer .footer-nav__item {
    line-height: 2.3; /* was 2.6; modified to reflect assumed font metric differences. */
    letter-spacing: .04em;
    -webkit-transform: opacity .5s;
    transform:opacity .5s
}

.l-footer .footer-nav.footer-nav--product,
.l-footer .footer-nav.footer-nav--case,
.l-footer .footer-nav.footer-nav--tutorial {
    margin-bottom: 0;
}

.l-footer,
.l-footer a,
.l-footer a:visited {
    color: #fff;
}

/* table styling */

.wy-table-responsive {
    padding: 1px;
}

.rst-content .section .wy-table-responsive table.docutils thead th,
.rst-content .section .wy-table-responsive table.docutils tbody td {
    white-space: normal;
}

.rst-content .section table.docutils {
    overflow-x: auto;
}

.rst-content .section table.docutils th,
.rst-content .section table.docutils td {
    min-width: 8em;
    padding: 8px;
    vertical-align: top;
}

.rst-content .section table.docutils p,
.rst-content .section table.docutils ul,
.rst-content .section table.docutils ol,
.rst-content .section table.docutils div.line-block,
.rst-content .section table.docutils ul>li>ul,
.rst-content .section table.docutils ul>li>ol,
.rst-content .section table.docutils ul>li>div.line-block,
.rst-content .section table.docutils ol>li>ul,
.rst-content .section table.docutils ol>li>ol,
.rst-content .section table.docutils ol>li>div.line-block {
    margin-top: 8px;
    margin-bottom: 0;
}

.rst-content .section table.docutils p:first-child,
.rst-content .section table.docutils ul:first-child,
.rst-content .section table.docutils ol:first-child,
.rst-content .section table.docutils div.line-block:first-child {
    margin-top: 0;
}

.rst-content .section table.docutils th>p,
.rst-content .section table.docutils td>p,
.rst-content .section table.docutils td>ul>li>p,
.rst-content .section table.docutils td>ol>li>p,
.rst-content .section table.docutils td * {
    line-height: 1rem;
    font-size: .9rem;
}

/* To suppress bullets on ul list items.
   Originally intended for indented paragraphs in a table, but you can use it for other purposes. */

.rst-content .section ul.bulletless-list li,
.rst-content .section .bulletless-list ul li {
    list-style-type: none;
}
