.wy-side-nav-search {
    z-index: 200;
    background-color: #002b36;
    text-align: center;
    padding: 0.809em;
    display: block;
    color: #fcfcfc;
    margin-bottom: 0.809em;
}

.wy-nav-side {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    padding-bottom: 2em;
    width: 300px;
    overflow-x: hidden;
    overflow-y: scroll;
    min-height: 100%;
    background: #073642;
    z-index: 200;
    resize: horizontal;
}

.wy-side-nav-search input[type=text] {
    width: 100%;
    padding: 6px 12px;
    border-color: #268bd2;
    border-radius: 0;
}

div.related {
    background-color: #f8f8f8;
    line-height: 50px;
    color: #5e5e5e;
    font-size: 100%;
}

div.related nav-item {
    color: #5e5e5e;
}

div.related a {
    color: #e73b3b;
}

pre {
    padding: 4px 6px;
    background-color: #fbfcfd;
    color: #93a1a1;
    line-height: 120%;
    border: 1px solid #c4cfe5;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

div.code-block-caption {
    background-color: #337ab7;
    background-color: #c4cfe5;
    color: #222;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

div.section h1 {
    border-bottom: 1px solid #eee;
}

div.section h2 {
    border-bottom: 1px solid #eee;
}

div.section h3 {
    border-bottom: 0;
}

div.body {
    margin-left: 5px;
    margin-right: 5px;
}

.nf {
    color: #c7254e;
}

.highlight {
    color: #c7254e;
}

th {
    background-color: #f8f8f8;
}

/*div.sphinxsidebarwrapper {
    position: fixed;
    float: left;
    margin: margin-right: 0;
    top: 50px;
    padding: 10px 5px 0 10px;
    word-wrap: break-word;
}*/

div.sphinxsidebar a {
  word-wrap: break-word;
    color: #e73b3b;
}

div.document a {
  word-wrap: break-word;
    color: #e73b3b;
}

/* ---- Layout: use the width of the window ----
   Alabaster fixes the page at 940px and the body at 800px, which leaves wide
   empty margins and is too narrow for 80-column code. */
div.document,
div.footer {
    width: auto;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 24px;
}

div.body {
    max-width: none;
    min-width: 0;
    padding: 0 0 0 30px;
}

/* Code and long API signatures scroll inside their box instead of
   running past its edge. */
div.highlight pre,
pre {
    overflow-x: auto;
}

dl.c dt.sig,
dl.cpp dt.sig {
    overflow-wrap: anywhere;
}

/* display: block lets a wide table scroll instead of overflowing the page;
   fit-content keeps its border around the columns instead of the full width */
div.body table.docutils {
    display: block;
    width: fit-content;
    max-width: 100%;
    overflow-x: auto;
    margin-left: 0;
}

@media screen and (max-width: 940px) {
    div.document,
    div.footer {
        padding: 0 12px;
    }
    div.body {
        padding: 0;
    }
}

/* ---- API reference (breathe) ----
   Give each function, macro and type a heading bar so entries are easy to
   tell apart, and space them out. Only top-level entries get the bar; the
   fields of a union or struct stay plain. */
section > dl.c:not(.var) > dt.sig {
    font-family: "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
    font-size: 0.9em;
    background-color: #f3f6fa;
    border-top: 3px solid #c4cfe5;
    border-radius: 0 0 3px 3px;
    padding: 6px 10px;
    margin-top: 2.2em;
    line-height: 1.5;
}

section > dl.c:not(.var) > dt.sig .sig-name {
    font-weight: bold;
    color: #1d3c5a;
}

dl.c > dd {
    margin-left: 1.5em;
    margin-bottom: 1em;
}

dl.c dl.c.var > dt.sig {
    font-family: "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
    font-size: 0.85em;
}

/* Summary table at the top of each API section */
div.body table.ksl-summary {
    display: table;
    width: 100%;
    margin: 1em 0 2em 0;
    border-collapse: collapse;
    font-size: 0.95em;
}

table.ksl-summary td {
    padding: 4px 10px;
    border: none;
    border-bottom: 1px solid #e3e8f0;
    vertical-align: top;
}

table.ksl-summary tr:nth-child(odd) td {
    background-color: #fafbfd;
}

table.ksl-summary td:first-child {
    white-space: nowrap;
}

table.ksl-summary td:first-child code {
    background: none;
    font-size: 0.95em;
}

table.ksl-summary,
table.ksl-summary td {
    border-left: none;
    border-right: none;
}

table.ksl-summary {
    border-top: 1px solid #e3e8f0;
}

table.ksl-summary td p {
    margin: 0;
    line-height: 1.4;
}
