/* NNLOJET website styles. Colours follow the Catppuccin Latte palette. */

/* Base */
body {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    background: #eff1f5;
    color: #4c4f69;
}
a { color: #7287fd; text-decoration: none; }
a:hover { color: #8839ef; }
a.result-link { color: green; }
a.result-link:hover { color: mediumblue; }

p, li { max-width: 50em; }
li { padding: 0.2em 0; }
td { padding: 5px; }

code, kbd, tt { font-family: monospace, courier, fixed; font-size: smaller; }
kbd.display {
    display: block;
    white-space: nowrap;
    padding: 0.2em;
    margin: 1em;
    background: #e6e9ef;
    border: 1px dashed #9ca0b0;
}

@media print {
    .noprint { display: none; }
}

/* Layout: a centred column with the sidebar on the left (after Sphinx's Alabaster theme) */
.document {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}
.body {
    grid-column: 2;
    grid-row: 1;
    padding: 0 30px;
}
.body img { max-width: 100%; }

/* Sidebar */
.sidebar {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    position: sticky;
    top: 0;
    max-height: 100vh;
    box-sizing: border-box;
    overflow-y: auto;
    padding: 18px 10px;
    font-size: 14px;
    line-height: 1.5;
}
.sidebar .logo { margin: 10px 0 2em; }
.sidebar .logo img { display: block; width: 80px; }
.sidebar ul, .sidebar ol { list-style: none; margin: 10px 0; padding: 0; }
.sidebar li { padding: 0; }
.sidebar ul > li > a { font-size: 120%; }
.sidebar ol { margin: 0 0 0 1em; }
.sidebar ol a { font-size: 100%; }
.sidebar a { border-bottom: 1px dotted #9ca0b0; }
.sidebar a:hover { border-bottom-style: solid; }
.sidebar .logo a { border: none; }
.sidebar hr {
    width: 50%;
    height: 1px;
    margin-left: 0;
    border: none;
    background: #9ca0b0;
}

/* Narrow screens: full-width content, sidebar below it. */
@media screen and (max-width: 875px) {
    body { padding: 20px 30px; }
    .document { display: block; width: auto; margin: 0; }
    .body { padding: 0; }
    .sidebar {
        position: static;
        max-height: none;
        margin: 50px -30px -20px;
        padding: 10px 30px;
        background: #e6e9ef;
    }
    .sidebar .logo { display: none; }
}

/* Manual (HTML generated by lwarp) */
.inlineprogramlisting {
    font-family: "DejaVu Mono", "Bitstream Vera Mono", "Lucida Console",
        "Nimbus Mono L", "Liberation Mono", "FreeMono", "Andale Mono",
        "Courier New", monospace;
    overflow-x: auto;
}
.programlisting {
    overflow-x: auto;
    padding: 0.2em;
    margin: 1em;
    background: #e6e9ef;
    border: 1px dashed #9ca0b0;
}
.textbody { text-align: justify; }
.itemize > li { padding: 0; }
.listmarker { margin-right: 0.5em; }
.figure { margin: 0; }
.figurecaption { max-width: 40em; display: inline-block; }

div.center { text-align: center; }
div.center table { margin-left: auto; margin-right: auto; }
div.flushleft { text-align: left; }
div.flushleft table { margin-left: 0; margin-right: auto; }
div.flushright { text-align: right; }
div.flushright table { margin-left: auto; margin-right: 0; }

.bodycontainer td { padding: 0.5ex 0.5em; }
table > tbody > tr.hline > td { border-top: 1px solid #808080; } /* \hline */
tr.tbrule td { border-top: 1px solid black; } /* \toprule, \bottomrule */
table td.tdl, table td.tdleft { text-align: left; vertical-align: middle; }
table td.tdc, table td.tdcenter, table td.tdbang { text-align: center; vertical-align: middle; }
table td.tdat { text-align: center; vertical-align: middle; padding: 0; margin: 0; }
table td.tdr, table td.tdright { text-align: right; vertical-align: middle; }
table td.tdp { text-align: left; vertical-align: bottom; }
table td.tdm { text-align: left; vertical-align: middle; }
table td.tdb { text-align: left; vertical-align: top; }
table td.tvertbarl { border-left: 1px solid black; }
table td.tvertbarldouble { border-left: 4px double black; }
table td.tvertbarr { border-right: 1px solid black; }
table td.tvertbarrdouble { border-right: 4px double black; }
table td.tvertbarldash { border-left: 1px dashed black; }
table td.tvertbarldoubledash { border-left: 2px dashed black; }
table td.tvertbarrdash { border-right: 1px dashed black; }
table td.tvertbarrdoubledash { border-right: 2px dashed black; }
table td.tdrule { border-top: 1px solid #a0a0a0; } /* \cmidrule */
table td.tdrulel { border-top: 1px solid #a0a0a0; border-top-left-radius: 0.5em; }
table td.tdruler { border-top: 1px solid #a0a0a0; border-top-right-radius: 0.5em; }
table td.tdrulelr { border-top: 1px solid #a0a0a0; border-top-left-radius: 0.5em; border-top-right-radius: 0.5em; }
td.tdp, td.tdprule, td.tdP, td.tdPrule,
td.tdm, td.tdmrule, td.tdM, td.tdMrule,
td.tdb, td.tdbrule, td.tdB, td.tdBrule { padding: 0 0.5em; }
td.tdp p, td.tdprule p, td.tdP p, td.tdPrule p,
td.tdm p, td.tmbrule p, td.tdM p, td.tdMrule p,
td.tdb p, td.tdbrule p, td.tdB p, td.tdBrule p { padding: 1ex 0; margin: 0; }

/* Move link targets down a little from the top edge of the window. */
[id]::before {
    content: '';
    display: block;
    visibility: hidden;
    height: 40px;
    margin-top: -40px;
    width: 0px;
}
