/* Liberty United wiki - a MediaWiki "Vector" look-alike (static pages) */
html, body { margin: 0; padding: 0; }
body { background: #f6f6f6; font: 14px/1.5 sans-serif; color: #202122; }
a { color: #0645ad; text-decoration: none; }
a:hover { text-decoration: underline; }
a:visited { color: #0b0080; }
a.missing { color: #ba0000; }

#wrap { position: relative; min-height: 100vh; padding-top: 5em; box-sizing: border-box; }

/* ---------------- left column: logo + navigation */
#panel { position: absolute; top: 0; left: 0; width: 10em; padding-bottom: 2em; }
#logo { display: block; width: 10em; height: 160px; background: #f6f6f6 center center / 135px no-repeat; }
#panel .portal { margin: 0 0.6em 0 0.7em; padding: 0.25em 0; direction: ltr; background: none; }
#panel .portal h3 { font-size: 0.75em; color: #444; font-weight: normal; margin: 0.5em 0 0 0.66em; padding: 0.25em 0; cursor: default; border: 0; }
#panel .portal .body { margin-left: 0.5em; padding-top: 0; border-left: 0; }
#panel .portal.first h3 { display: none; }
#panel .portal.first .body { margin-left: 0.5em; }
#panel .portal ul { list-style: none; margin: 0; padding: 0.3em 0 0 0; }
#panel .portal li { line-height: 1.125em; margin: 0; padding: 0.25em 0; font-size: 0.75em; word-wrap: break-word; }
#panel .portal li a { color: #0645ad; }
#panel .portal li.sub { padding-left: 0.9em; font-size: 0.72em; }
#panel .portal li.active a { color: #202122; font-weight: bold; }
#panel .portal .body ul { border-top: 0; }
#panel .portal h3 { background: linear-gradient(to right, rgba(200,204,209,0) 0, #c8ccd1 33%, #c8ccd1 66%, rgba(200,204,209,0) 100%) no-repeat bottom / 100% 1px; padding-bottom: 0.3em; }

/* ---------------- page area */
#head { position: absolute; top: 0; right: 0; left: 10em; height: 5em; }
#personal { position: absolute; top: 0.3em; right: 0.75em; font-size: 0.75em; }
#personal a { margin-left: 1em; }
#tabs { position: absolute; left: 0; bottom: 0; height: 2.5em; padding-left: 1em; background: none; }
#tabs span.tab { display: inline-block; height: 2.5em; line-height: 2.5em; padding: 0 0.9em 0 0.9em; font-size: 0.8em; margin-right: 0; background: linear-gradient(to top, #77c1f6 0, #e8f2f8 1px, #fff 100%); border-right: 1px solid #a7d7f9; }
#tabs span.tab.sel { background: #fff; color: #202122; }
#tabs span.tab a { color: #0645ad; }
#tabs span.tab.sel a { color: #202122; }
#searchwrap { position: absolute; right: 0.5em; top: 2.2em; width: 20em; }
#searchInput { width: 100%; box-sizing: border-box; font-size: 13px; padding: 5px 8px; border: 1px solid #a2a9b1; background: #fff; color: #202122; border-radius: 2px; }
#searchInput::placeholder { color: #72777d; }
#results { position: absolute; z-index: 50; top: 2.3em; right: 0; width: 28em; max-width: 90vw; background: #fff; border: 1px solid #a2a9b1; box-shadow: 0 2px 8px rgba(0,0,0,.2); display: none; max-height: 70vh; overflow: auto; }
#results a { display: block; padding: 5px 10px; border-bottom: 1px solid #eaecf0; color: #202122; }
#results a:hover { background: #eaf3ff; text-decoration: none; }
#results b { color: #0645ad; }
#results small { color: #54595d; display: block; font-size: 11.5px; }

#content { margin-left: 11em; padding: 1.25em 1.5em 1.5em 1.5em; background: #fff; border: 1px solid #a7d7f9; border-right: 0; margin-top: 0; color: #202122; min-height: 40em; }
#content h1.title { font-family: 'Linux Libertine', 'Georgia', 'Times', serif; font-weight: normal; font-size: 1.8em; line-height: 1.3; margin: 0 0 0.25em 0; padding: 0; border-bottom: 1px solid #a2a9b1; overflow: visible; }
#crumb { font-size: 0.8em; color: #54595d; margin: 0.2em 0 1em; }
#content h2, #content h3, #content h4 { font-family: 'Linux Libertine', 'Georgia', 'Times', serif; font-weight: normal; color: #000; background: none; margin: 1em 0 0.25em; padding-top: 0.5em; overflow: hidden; }
#content h2 { font-size: 1.5em; border-bottom: 1px solid #a2a9b1; margin-bottom: 0.6em; }
#content h3 { font-size: 1.2em; font-weight: bold; }
#content h4 { font-size: 1em; font-weight: bold; }
#content p { margin: 0.5em 0; }
#content ul, #content ol { margin: 0.3em 0 0 1.6em; padding: 0; }
#content li { margin-bottom: 0.1em; }
#content code { font-family: 'Courier New', monospace; background: #f8f9fa; border: 1px solid #eaecf0; border-radius: 2px; padding: 1px 4px; font-size: 0.92em; color: #000; }
#content pre { font-family: 'Courier New', monospace; background: #f8f9fa; border: 1px solid #eaecf0; padding: 1em; margin: 0.6em 0; overflow-x: auto; line-height: 1.3; font-size: 13px; white-space: pre; color: #000; }
#content pre code { border: 0; background: none; padding: 0; font-size: 1em; }
#content pre.syntax { border-left: 3px solid #cd963c; }
.k { color: #0000cc; font-weight: bold; }       /* keywords */
.s { color: #008000; }                          /* strings */
.c { color: #707070; font-style: italic; }      /* comments */
.n { color: #b45a00; }                          /* numbers */
.f { color: #7a1fa2; }                          /* functions */
.b { color: #00708f; }                          /* constants */

/* table of contents box */
#toc { display: table; background: #f8f9fa; border: 1px solid #a2a9b1; padding: 7px; font-size: 95%; margin: 0.6em 0 1em; }
#toc .toctitle { text-align: center; font-weight: bold; margin-bottom: 0.2em; }
#toc ul { list-style: none; margin: 0; padding: 0; }
#toc ul ul { margin-left: 2em; }
#toc li { margin: 0.1em 0; }
#toc .tocnumber { color: #202122; margin-right: 0.4em; }

/* tables */
table.wikitable { background: #f8f9fa; color: #202122; margin: 1em 0; border: 1px solid #a2a9b1; border-collapse: collapse; font-size: 13px; }
table.wikitable > tr > th, table.wikitable > * > tr > th { background: #eaecf0; text-align: center; }
table.wikitable > tr > th, table.wikitable > tr > td, table.wikitable > * > tr > th, table.wikitable > * > tr > td { border: 1px solid #a2a9b1; padding: 0.3em 0.6em; vertical-align: top; }
table.wikitable td code { white-space: nowrap; }
table.wikitable.client th { background: #f3e3cc; }

/* notes */
.box { margin: 0.8em 0; padding: 0.5em 0.9em; border: 1px solid #a2a9b1; border-left-width: 6px; background: #fdfdfd; }
.box.note { border-left-color: #e0a100; background: #fff9e6; }
.box.warn { border-left-color: #c0392b; background: #fdf0ee; }
.box.tip { border-left-color: #2e8b57; background: #eef8f1; }
.box b.label { margin-right: 0.4em; }

/* argument lists */
ul.args li i { color: #444; }
.sigdesc { color: #54595d; }

/* main page */
.mp-box { border: 1px solid #5a4a2a; background: #fdfaf4; margin-bottom: 0.8em; }
#content .mp-box > h2 { margin: 0; padding: 0.45em 0.6em; text-align: center; font-family: sans-serif; font-size: 1.15em; font-weight: bold; color: #fff; border: 0; background: linear-gradient(to bottom, #c78a2c, #94601a); overflow: visible; padding-top: 0.45em; }
.mp-box .inner { padding: 0.7em 1em; }
.mp-3 { display: flex; gap: 0.6em; }
.mp-3 > div { flex: 1; }
.mp-3 .mp-box { height: calc(100% - 0.8em); }
.mp-box ul { margin-top: 0.2em; }
.mp-latest { text-align: center; margin: 0.3em 0 0.7em; }
.mp-dl { text-align: center; }
.mp-dl a.btn { display: inline-block; margin: 0.25em; padding: 0.4em 0.9em; border: 1px solid #5a4a2a; background: #f2e3c4; color: #3b2a10; border-radius: 3px; font-size: 0.9em; }
.mp-dl a.btn:hover { background: #ecd29b; text-decoration: none; }
#cats { margin-top: 1.4em; border: 1px solid #a2a9b1; background: #f8f9fa; padding: 5px 10px; font-size: 0.85em; clear: both; }
#cats a { margin: 0 0.3em; }
#footer { margin-left: 11em; padding: 1em 1.5em 2em; font-size: 0.7em; color: #54595d; }
#footer a { color: #0645ad; }

.sig { font-family: 'Courier New', monospace; }
dl.sigs { margin: 0.3em 0; }

@media (max-width: 800px) {
  #panel { position: static; width: auto; }
  #logo { height: 90px; background-size: 70px; background-position: 12px center; }
  #head { position: static; height: auto; }
  #tabs { display: none; }
  #searchwrap { position: static; width: auto; margin: 0 1em; }
  #content, #footer { margin-left: 0; margin-top: 1em; }
  .mp-3 { display: block; }
}
@media print { #panel, #head, #footer { display: none; } #content { margin: 0; border: 0; } }
