/** Fixups */

/* Avoid elements wider than screen on mobile */
img
{
    display: inline-block;
    max-width: 100%;
}

pre, code, sample
{
    white-space: pre-wrap;
    hyphens: none;
}

table
{
    max-width: 100%;
}


body
{
    margin: 0;
    line-height: 1.4;
}

/** Structural blocks */

#page-wrapper
{
    max-width: 1000px;

    padding-top: 2%;
    padding-bottom: 4%;
    
    margin-left:  auto; 
    margin-right: auto;
}

/* Visual styles */
header 
{
    text-align: center;
}

nav
{
    font-size: 110%;

    border-bottom: 2px solid #c90309;

    padding-top: 5px;
    padding-bottom: 5px;

    text-align: center;
}

footer
{
    text-align: center;
    padding-top: 10px;
    margin-top: 10px;
    border-top: 2px solid #c90309;
}

a { color: #d65906; }

a.nav-active { color: #c90309; font-weight: bold; }

nav a { text-decoration: none; }

a.here { text-decoration: none; }

hr
{
    border: 0 none;
    color: #d65906;
    background-color: #d65906;
    height: 2px;
}

hr.footnotes { width: 40%; }

a.footnote
{
    text-decoration: none;
}

ul.toc { list-style: none; }

h5 { font-size: 100%; }

/** Typography */

@supports (hyphens: auto) or (-ms-hyphens: auto)
{
    main
    {
        text-align: justify;
        hyphens: auto;
    }
}

body
{
    font-family: sans-serif;
}

table, th, td
{
    border: 1px solid #c90309;
    border-collapse: collapse;
}

th, td
{
    padding: 0.5em;
    hyphens: none;
    text-align: left;
} 

.centered { text-align: center; }


/* Style definition file generated by highlight 3.52, http://www.andre-simon.de/ */
/* highlight theme: Kwrite Editor */
body.hl	{ background-color:#e0eaee; }
pre.hl	{ color:#000000; background-color:#e0eaee; font-size:10pt; font-family:'Courier New',monospace;}
.hl.num { color:#b07e00; }
.hl.esc { color:#ff00ff; }
.hl.str { color:#bf0303; }
.hl.pps { color:#818100; }
.hl.slc { color:#4c4b4b; font-style:italic; }
.hl.com { color:#4c4b4b; font-style:italic; }
.hl.ppc { color:#008200; }
.hl.opt { color:#000000; }
.hl.ipl { color:#0057ae; }
.hl.lin { color:#555555; }
.hl.kwa { color:#000000; font-weight:bold; }
.hl.kwb { color:#0057ae; }
.hl.kwc { color:#000000; font-weight:bold; }
.hl.kwd { color:#010181; }

pre
{
    background-color: #efefef;
    padding: 10px;
    border: 1px solid #aaaaaa;
}

code { background-color: #efefef; }


/* Custom ToC style for the reference manual */
div#refman-sidebar ul { list-style-type: none; }

div#refman-sidebar ul.refman-toc-2 { font-weight: normal; }
div#refman-sidebar ul.refman-toc-1 { font-weight: bold; color: black; }
div#refman-sidebar a { text-decoration: none; }

/* Reference manual ToC on the left for widescreen, desktop computers */
@media only screen and (min-width: 1000px) and (pointer: fine)
{
  div#refman { display: flex;  }
  div#refman-sidebar { align-self: flex-start; margin-right: 20px; min-width: 20em;}
  div#refman-main {  }
}


