/*
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */

/*
 * Copyright (c) 2014, Joyent, Inc.
 */

/*! normalize.css v3.0.1 | MIT License | git.io/normalize */

/**
 * 1. Set default font family to sans-serif.
 * 2. Prevent iOS text size adjust after orientation change, without disabling
 *    user zoom.
 */

html {
  font-family: sans-serif; /* 1 */
  -ms-text-size-adjust: 100%; /* 2 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/**
 * Remove default margin.
 */

body {
  margin: 0;
}

/* HTML5 display definitions
   ========================================================================== */

/**
 * Correct `block` display not defined for any HTML5 element in IE 8/9.
 * Correct `block` display not defined for `details` or `summary` in IE 10/11 and Firefox.
 * Correct `block` display not defined for `main` in IE 11.
 */

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
section,
summary {
  display: block;
}

/**
 * 1. Correct `inline-block` display not defined in IE 8/9.
 * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
 */

audio,
canvas,
progress,
video {
  display: inline-block; /* 1 */
  vertical-align: baseline; /* 2 */
}

/**
 * Prevent modern browsers from displaying `audio` without controls.
 * Remove excess height in iOS 5 devices.
 */

audio:not([controls]) {
  display: none;
  height: 0;
}

/**
 * Address `[hidden]` styling not present in IE 8/9/10.
 * Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22.
 */

[hidden],
template {
  display: none;
}

/* Links
   ========================================================================== */

/**
 * Remove the gray background color from active links in IE 10.
 */

a {
  background: transparent;
}

/**
 * Improve readability when focused and also mouse hovered in all browsers.
 */

a:active,
a:hover {
  outline: 0;
}

/* Text-level semantics
   ========================================================================== */

/**
 * Address styling not present in IE 8/9/10/11, Safari, and Chrome.
 */

abbr[title] {
  border-bottom: 1px dotted;
}

/**
 * Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
 */

b,
strong {
  font-weight: bold;
}

/**
 * Address styling not present in Safari and Chrome.
 */

dfn {
  font-style: italic;
}

/**
 * Address variable `h1` font-size and margin within `section` and `article`
 * contexts in Firefox 4+, Safari, and Chrome.
 */

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/**
 * Address styling not present in IE 8/9.
 */

mark {
  background: #ff0;
  color: #000;
}

/**
 * Address inconsistent and variable font size in all browsers.
 */

small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` affecting `line-height` in all browsers.
 */

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sup {
  top: -0.5em;
}

sub {
  bottom: -0.25em;
}

/* Embedded content
   ========================================================================== */

/**
 * Remove border when inside `a` element in IE 8/9/10.
 */

img {
  border: 0;
}

/**
 * Correct overflow not hidden in IE 9/10/11.
 */

svg:not(:root) {
  overflow: hidden;
}

/* Grouping content
   ========================================================================== */

/**
 * Address margin not present in IE 8/9 and Safari.
 */

figure {
  margin: 1em 40px;
}

/**
 * Address differences between Firefox and other browsers.
 */

hr {
  -moz-box-sizing: content-box;
  box-sizing: content-box;
  height: 0;
}

/**
 * Contain overflow in all browsers.
 */

pre {
  overflow: auto;
}

/**
 * Address odd `em`-unit font size rendering in all browsers.
 */

code,
kbd,
pre,
samp {
  font-family: monospace, monospace;
  font-size: 1em;
}

/* Forms
   ========================================================================== */

/**
 * Known limitation: by default, Chrome and Safari on OS X allow very limited
 * styling of `select`, unless a `border` property is set.
 */

/**
 * 1. Correct color not being inherited.
 *    Known issue: affects color of disabled elements.
 * 2. Correct font properties not being inherited.
 * 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
 */

button,
input,
optgroup,
select,
textarea {
  color: inherit; /* 1 */
  font: inherit; /* 2 */
  margin: 0; /* 3 */
}

/**
 * Address `overflow` set to `hidden` in IE 8/9/10/11.
 */

button {
  overflow: visible;
}

/**
 * Address inconsistent `text-transform` inheritance for `button` and `select`.
 * All other form control elements do not inherit `text-transform` values.
 * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
 * Correct `select` style inheritance in Firefox.
 */

button,
select {
  text-transform: none;
}

/**
 * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
 *    and `video` controls.
 * 2. Correct inability to style clickable `input` types in iOS.
 * 3. Improve usability and consistency of cursor style between image-type
 *    `input` and others.
 */

button,
html input[type="button"], /* 1 */
input[type="reset"],
input[type="submit"] {
  -webkit-appearance: button; /* 2 */
  cursor: pointer; /* 3 */
}

/**
 * Re-set default cursor for disabled elements.
 */

button[disabled],
html input[disabled] {
  cursor: default;
}

/**
 * Remove inner padding and border in Firefox 4+.
 */

button::-moz-focus-inner,
input::-moz-focus-inner {
  border: 0;
  padding: 0;
}

/**
 * Address Firefox 4+ setting `line-height` on `input` using `!important` in
 * the UA stylesheet.
 */

input {
  line-height: normal;
}

/**
 * It's recommended that you don't attempt to style these elements.
 * Firefox's implementation doesn't respect box-sizing, padding, or width.
 *
 * 1. Address box sizing set to `content-box` in IE 8/9/10.
 * 2. Remove excess padding in IE 8/9/10.
 */

input[type="checkbox"],
input[type="radio"] {
  box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}

/**
 * Fix the cursor style for Chrome's increment/decrement buttons. For certain
 * `font-size` values of the `input`, it causes the cursor style of the
 * decrement button to change from `default` to `text`.
 */

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Address `appearance` set to `searchfield` in Safari and Chrome.
 * 2. Address `box-sizing` set to `border-box` in Safari and Chrome
 *    (include `-moz` to future-proof).
 */

input[type="search"] {
  -webkit-appearance: textfield; /* 1 */
  -moz-box-sizing: content-box;
  -webkit-box-sizing: content-box; /* 2 */
  box-sizing: content-box;
}

/**
 * Remove inner padding and search cancel button in Safari and Chrome on OS X.
 * Safari (but not Chrome) clips the cancel button when the search input has
 * padding (and `textfield` appearance).
 */

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * Define consistent border, margin, and padding.
 */

fieldset {
  border: 1px solid #c0c0c0;
  margin: 0 2px;
  padding: 0.35em 0.625em 0.75em;
}

/**
 * 1. Correct `color` not being inherited in IE 8/9/10/11.
 * 2. Remove padding so people aren't caught out if they zero out fieldsets.
 */

legend {
  border: 0; /* 1 */
  padding: 0; /* 2 */
}

/**
 * Remove default vertical scrollbar in IE 8/9/10/11.
 */

textarea {
  overflow: auto;
}

/**
 * Don't inherit the `font-weight` (applied by a rule above).
 * NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
 */

optgroup {
  font-weight: bold;
}

/* Tables
   ========================================================================== */

/**
 * Remove most spacing between table cells.
 */

table {
  border-collapse: collapse;
  border-spacing: 0;
}

td,
th {
  padding: 0;
}

/** ----- END normalize.css ****/

/* ---- general styles */

body {
  font: 14px "Lucida Grande", "Lucida Sans Unicode", arial, sans-serif;
  line-height: 1.53846; /* 20px */
  color: #4a3f2d;
}

:focus {
  outline: 0;
}

h1, h2 {
  font-weight:normal;
}

h3 {
  font-size: 100%;
  font-weight: bold;
}


ul, li {
  margin:0px;
  padding:0px;
}

ul {
  margin-left:40px;
}

ul > li {
  list-style:disc;
  margin:10px 0px;
}

hr {
  border:none;
  width:98%;
  margin-left:-10px;
  border-top:1px solid #CCCCCC;
  border-bottom:1px solid #FFFFFF;
}

code,
pre {
  border: 1px solid #CCCCCC;
  background: #EEF0F2;
  -webkit-border-radius:2px;
  -moz-border-radius:2px;
  border-radius:2px;
  white-space:pre-wrap;
}
code {
  padding: 0 0.2em;
}
pre {
  margin: 1em 0;
  padding: .75em;
  overflow: auto;
  padding:10px 1.2em;
  margin-top:0;
  margin-bottom:20px;
}
pre code  {
  border: medium none;
  padding: 0;
}
a code {
  text-decoration: underline;
}

a {
  color:#FF6600;
  text-decoration:none;
}

h4 {
  font-size: 85%;
  margin: 0;
  padding: 0;
  line-height: 1em;
  display: inline;
}

/* tables still need cellspacing="0" in the markup */
table {
  border-collapse:collapse; border-spacing:0;
  margin: 20px 0;
}

#___gcse_0 table {
  margin: 0;
}

th,
td {
  border: solid #aaa;
  border-width: 1px 0;
  line-height: 23px;
  padding: 0 12px;
  text-align: left;
  vertical-align: text-bottom;
}
th {
  border-collapse: separate;
}
#___gcse_0 th, #___gcse_0 td {
  border: none;
  border-width: 0;
  padding: 0 !important;
}
tbody tr:nth-child(odd) {
  background-color: #f2f0ee;
  background-color: #EEF0F2;
}

#___gcse_0 tbody tr:nth-child(odd) {
  background-color: transparent;
}

div.gsc-thumbnail-inside {
    padding-left: 0;
}

div.gs-title {
    line-height: 28px;
    padding-bottom: 10px;
    text-decoration: none !important;
}

div.gs-title a.gs-title {
    text-decoration: none !important;
}

div.gs-title a.gs-title b {
    text-decoration: none !important;
    color: @black !important;
}

div.gsc-url-top {
    padding-left: 0;
}

div.gs-bidi-start-align {
    font-size: 16px !important;
    line-height: 28px !important;
}

div.gsc-cursor-box {
    margin-left: 0 !important;
    padding-top: 5px;
    border-top: 1px solid lighten(@grayLighter, 5%);
}

div.gcsc-branding {
    display: none !important;
}

div.gsc-result-info {
    padding-left: 0 !important;
}

.gsc-tabHeader {
    .border-top-radius(4px);
}

.gsc-tabHeader:focus {
    outline: none;
}




/* ---- custom classes */

pre.shell,
pre.shell code {
  background:#444;
  color:#fff;
  border: none;
}
pre.shell code::before {
  content: '$ ';
  display: inline;
}


/* ---- header and sidebar */

#header {
  background:#eef0f2;
  height:66px;
  left:0px;
  top:0px;
  position:absolute;
  width:100%;
  z-index:1;
  font-size:0.7em;
}

#header h1 {
  float: left;
  margin-left: 20px;
  font-size: 24px;
  font-weight: light;
  color: black;
  font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
}

#header a.dev-center {
  color: #F26721;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;;
  float: right;
  text-align: left;
  font-weight: normal;
  font-size: 16px;
  line-height: 20px;
  padding-right: 30px;
  margin-right: 30px;
  margin-top: 10px;
  background: url(../img/arrow.svg) no-repeat right 4px;
  background-size: auto 40px;
}

#header a.dev-center:hover {
  color: #d44f0c;
}

#header a.dev-center span {
  font-size: 12px;
}

#sidebar {
  background:#f4f7f9;
  padding:20px 0px 0px 10px;
  position:absolute;
  bottom:0;
  top:96px;
  left:20px;
  width:285px;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  z-index:1;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 4px;

  overflow-y: auto;
  overflow-x: hidden;
}

#content {
  top:64px;
  bottom:0px;
  right:0px;
  left:290px;
  padding: 40px 30px 400px 70px;
  position:absolute;
  overflow:auto;
  z-index:0;
}

.logo {
  float: left;
  margin-left: 20px;
  background-color: #ff6600;
  -webkit-border-bottom-right-radius: 4px;
  -webkit-border-bottom-left-radius: 4px;
  -moz-border-radius-bottomright: 4px;
  -moz-border-radius-bottomleft: 4px;
  border-bottom-right-radius: 4px;
  border-bottom-left-radius: 4px;
  height: 75px;
  width: 200px;
  margin-bottom: -30px;
  text-align: center;
}

.logo img {
  margin-top: 20px;
}

#sidebar .vertical_divider {
  background-color:#FFFFFF;
  bottom:0px;
  position:absolute;
  top:0px;
  right:0px;
  width:1px;
}

#sidebar h1 {
  font-size:1.2em;
  padding:0px;
  margin-top:15px;
  margin-bottom:3px;
}


#sidebar ul {
  margin:3px 0 10px 0;
}


#sidebar li a {
  color:#375775;
  display: inline-block;
  padding: 3px 10px 3px 10px;
}

#sidebar li a:hover {
  text-decoration: underline;
}

#sidebar li {
  margin:0;
  font-size:12px;
  list-style:none;
/*  margin-bottom: 3px; */
}

#sidebar ul ul li div {
  line-height: 1.2;
  padding-left: 18px;
  text-indent: -10px;
}


#sidebar li span.verb {
  color: #999;
  width:4em;
  display:inline-block;
  font-size:9px;
  font-family:verdana;
  margin-right:5px;
}

#sidebar > ul > li > div > a {
    font-weight: bold;
}

#sidebar ul li ul {
  margin-left: 10px;
  margin-top: 0;
}

#sidebar span.name {
  font-size: 12px;
}

#sidebar span.both .endpoint {
  display: none;
}
#content span.both .endpoint {
  color: #999;
  font-size: 80%;
}

#sidebar li div.current {
  background: #375775;
  -webkit-border-radius: 20px;
  -moz-border-radius: 20px;
  border-radius: 20px;
  color: white;
}
#sidebar li div.current a {
  color: white;
}


/* ---- intro */

.intro {
  color:#29231A;
  padding: 22px 25px;
  background: #EDEBEA;
  background: #EEF0F2;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  -o-border-radius: 5px;
  border-radius: 5px;
  margin-bottom:40px;
}
.intro pre.base {
  background:#444;
  color:#29231A;
  color:#fff;
  border-color:#fff;
  font-size:1.5em;
}
.intro h1 {
  color: #1C313C;
}
.intro ul {
  list-style-type:disc;
  padding-left:20px;
  margin-left:0;
}
.intro ul li {
  margin: 0;
}


#content h1 {
  margin-top: 60px;
  border-bottom: 2px solid #979592;
}
#content h1:first-child {
  margin-top: 0;
  border-bottom: none;
}

#content h2 {
  overflow: auto;
  margin-top: 40px;
  border-bottom: 1px dotted #979592;
  z-index: 3;
}
h1 + h2 {
  margin-top: 0px;
}

h3 {
  margin-top: 20px;
}
h3:first-child {
  margin-top: 0;
}


/*---- special for docbrand */

#topics {
    margin-left: 12px;
}

#topics ul li {
    font-size: 12px;
    font-weight: bold;
    display: inline;
}


#topnav {
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  background: #d9e3ea;
  padding: 10px 0;
  margin-left: -15px;
  margin-top: -20px;
  width: 285px;
  height: 90px;
  -webkit-border-top-left-radius: 3px;
  -webkit-border-top-right-radius: 3px;
  -moz-border-radius-topleft: 3px;
  -moz-border-radius-topright: 3px;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
}

#index li, #index li a {
  color:black;
  margin-bottom: 0;
  font-size: 14px;
  line-height: 24px;
  padding: 0;
}

#index li a {
  padding-left: 25px;
}

#index li a.active {
  font-weight: bold;
  position: relative;
}

#index li a.active:after {
  left: 0;
  border: solid transparent;
  content: " ";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none;
}

#index li a.active:after {
  border-color: rgba(255, 255, 255, 0);
  border-left-color: #ffffff;
  border-width: 15px;
  top: 50%;
  margin-top: -15px;
}

#searchform { margin-left: 15px;}

#searchform input[type="text"] {
  margin-right: 0;
  padding: 5px 0 5px 10px;
  float: left;
  font-size: 14px;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  height: 32px;
  border: 1px solid #c0d3df;
  border-right: none;
  width: 212px;
  -webkit-border-top-left-radius: 4px;
  -webkit-border-bottom-left-radius: 4px;
  -moz-border-radius-topleft: 4px;
  -moz-border-radius-bottomleft: 4px;
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}

#searchform input[type="Submit"] {
  float: left;
  margin-left: -5px;
  background: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAxNy4wLjAsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+DQo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB3aWR0aD0iMzVweCIgaGVpZ2h0PSIzMnB4IiB2aWV3Qm94PSIwIDAgMzUgMzIiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDM1IDMyIiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxnPg0KCTxwYXRoIGZpbGw9IiMzNjU3NzciIGQ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yLjMyMiw1LjE2OCw1LjE2OSw1LjE2OHM1LjE2OC0yLjMyMSw1LjE2OC01LjE2OFMxNy40MTIsNy45NTksMTQuNTY2LDcuOTU5eiIvPg0KPC9nPg0KPC9zdmc+DQo=') 0 0 no-repeat;
  border: 0;
  width: 35px;
  height: 32px;
  margin-left: 0;
}


::-webkit-input-placeholder {
   text-transform: uppercase;
}

:-moz-placeholder { /* Firefox 18- */
   text-transform: uppercase;
}

::-moz-placeholder {  /* Firefox 19+ */
   text-transform: uppercase;
}

:-ms-input-placeholder {
   text-transform: uppercase;
}

/*---- print media */

@media print {
  body { background:white; color:black; margin:0; }
  #sidebar, #header {
    display: none;
  }
  #content {
    position: relative;
    padding: 5px;
    left: 0px;
    top: 0px;
  }
  h1, h2, h4 {
    page-break-after: avoid;
  }
  pre {
    page-break-inside: avoid;
    border: 1px solid #CCCCCC !important;
  }
  pre, code {
    background: white !important;
    color: black !important;
  }
}

