/*************************************************************************
 * General
 ************************************************************************/

body {
  font:16px -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif;
  line-height:1.5em;
  background: #fff;
  color: #222;
  padding: 0;
  margin: 1em 4em 3em 6em;
}
img { border:0; }

a {
  color: #3e7cc4;
}

a:hover {
  color: #3e7cc4;
}

code, pre {
  font: 14px Menlo, Consolas, Courier, monospace;
}

h1.primary {
  color: #4476a4;
}

input, select, textarea {
  font: 16px -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif;
}

/*************************************************************************
 * Header
 ************************************************************************/

#header {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  padding: 2em 0 0 0;
}

#header h1 {
  width:209px; height:30px;
  margin:0; padding:0;
  background:url(/pod/phd/res/img/ph-logo.svg) no-repeat;
}

#header h1 a {
  display: inline-block;
  width:209px; height:30px;
  color:#fff;
  text-indent:-9999px;
  border:none;
}

#header ul.user {
  position:absolute;
  top: 32px; right: 280px;
  list-style-type: none;
  margin: 0; padding: 0;
  font-size: 14px;
  color: #aaaaac;
}

#header ul.user li {
  display:inline-block;
  white-space: nowrap;
  margin-left: 1em;
}

#header div.search {
  position:absolute;
  top: 28px; right:0;
  width: 260px;
  margin:0; padding:0;
}

#header div.search button.gsc-search-button.gsc-search-button-v2 {
  border-color: #4476a4;
  background: #4476a4;
  border-radius: 3px;
}
#header div.search .gsc-input-box {
  background: #eee;
  border-color: #eee;
  border-radius: 3px;

}
#header div.search .gsc-search-box-tools .gsc-search-box .gsc-input {
  padding-right: 4px;
}
#header div.search input.gsc-input { background: #eee !important; }

#header ul.nav {
  list-style-type: none;
  margin: 1.5em 0;
  padding: 0;
}

#header ul.nav li {
  display: inline-block;
  font-size: 14pt;
  font-weight: 600;
  margin-right: 1em;
}

#header ul.nav li a {
  color: #d49011;
  text-decoration: none;
}

#header ul.nav li a:hover {
  color: #a6700c;
}

#header ul.nav li#header-active-tab a {
  border-top: 3px solid #d49011;
}

#header ul.nav li:last-child {
  margin-left: 1em;
}

/*************************************************************************
 * Content
 ************************************************************************/

#content {
  background:#fff;
  max-width:960px;
  margin:1em auto;
}

#content div.prev-next {
  font-size:8pt;
  color:#999;
}

#content div.prev-next:first-child {
  border-bottom:1px solid #e5e4dd;
  padding-bottom:12px;
}

#content div.prev-next:last-child {
  border-top:1px solid #e5e4dd;
  padding-top:12px;
}

#content div.prev-next a {
  margin:0 6px;
  font-size:10pt;
}

#content div.prev-next span:last-child {
  float:right;
}

/*************************************************************************
 * Content: Index
 ************************************************************************/

div#index-section-1 {
  margin-top: 3em;
  position: relative;
}
div#index-section-1 h1 { color: #4476a4; font-size: 32px; }
div#index-section-1 h2 { line-height: 1.2em; }
div#index-section-1 p {
  width: calc(100% - 440px);
  font-size: 18px;
  line-height: 1.4em;
  margin-top: 2em;
}
div#index-section-1 iframe {
  position: absolute;
  top: 115px;
  right: 0;
  max-width: 100%;
}

div#index-section-2 {
  border-top: 1px solid #ddd;
  padding-top: 1em;
  margin-top: 5em;
}
div#index-section-2 > div {
  width: calc(50% - 10px);
  display: inline-block;
  vertical-align: top;
}

div#index-section-3 {
  border-top: 1px solid #ddd;
  padding-top: 1em;
  margin-top: 1em;
}

div#index-section-5 { margin-bottom: 4em; }

/*************************************************************************
 * Docs: TOC
 ************************************************************************/

#index-toc {
  padding-bottom: 1em;
}

#index-toc ol {
  margin: 1em 0;
  padding: 0;
  counter-reset: item;
}

#index-toc ol h2 {
  margin-top: 1.5em;
}

#index-toc  ol li {
  margin: 0.5em 0 1.5em 2.5em;
}

#index-toc  ol li p {
  margin: 0.25em 1em;
}

#index-table {
  border-collapse: collapse;
  width: 100%;
}

#index-table tr:nth-child(odd) {
  background: #f8f8f8;
}

#index-table td {
  padding: 10px 0 10px 16px;
}

#index-table td:last-child {
  width:100%;
  padding: 10px 16px;
}

#index-table td p {
  margin: 0;
}

/*************************************************************************
 * Content: Docs
 ************************************************************************/

#doc-content {
  width: calc(100% - 260px);
  float: right;
  margin-bottom: 3em;
}

#content div.prev-next a {
  font-size: 14px;
}

#content div.prev-next:first-child {
  border: none;
}

#doc-content h1.skip {
  position: absolute;
  left: -9999px;
  counter-increment: h1;
}

#doc-content h1 {
  counter-increment: h1;
  counter-reset: h2;
  color: #4476a4;
}

#doc-content h2 {
  counter-increment: h2;
  counter-reset: h3;
}

#doc-content h3 {
  counter-increment: h3;
  counter-reset: h4;
}

#doc-content h1.tags {
  text-transform: none;
}

#doc-content h1:before {
 content: counter(h1);
 font-weight: normal;
 font-size: 28px;
 padding-right: 0.5em;
 color: #88888f;
}

#doc-content h2:before {
 content: counter(h1) "." counter(h2);
 font-weight: normal;
 font-size: 20px;
 padding-right:0.5em;
 color: #88888f;
}

#doc-content h3:before {
 content: counter(h1) "." counter(h2) "." counter(h3);
 font-weight: normal;
 font-size: 16px;
 padding-right: 0.5em;
 color: #88888f;
}

#doc-content code {
  padding: 0.2em 0.4em;
  background: #f4f4f6;
}

#doc-content pre {
  background: #f7f7f9;
  margin: 1em 0;
  padding: 1.5em;
  overflow: auto;
}

#doc-content hr {
  height: 1px;
  background: #ddd;
  border: none;
}

#doc-content img {
  max-width: 100%;
}

/*************************************************************************
 * Content: Docs-SideBar
 ************************************************************************/

#doc-sidebar {
  float: left;
  width: 240px;
  width: 240px;
  font-size: 14px;
  margin-bottom: 3em;
}

#doc-sidebar > p > a {
  font-weight: bold;
}

#doc-sidebar ol {
  margin: 0;
  padding: 0;
  counter-reset: item;
  list-style: none;
}

#doc-sidebar ol ol {
  margin-left: 1em;
}

#doc-sidebar ol ol ol {
  margin-left: 1em;
}

#doc-sidebar ol li {
}

#doc-sidebar ol li:before {
  content: counters(item, ".");
  counter-increment: item;
  padding-right: 0.5em;
  font-size: 12px;
  color: #88888a;
}

#doc-sidebar li.cur > a {
  font-weight: bold;
  color: #e85425;
}

/*************************************************************************
 * Content: Tag Details
 ************************************************************************/

#doc-content.tag-detail h1#doc-title:before { content:""; padding: 0; }
#doc-content.tag-detail h1:before { content:""; padding: 0; }
#doc-content.tag-detail h2:before { content:""; padding: 0; }

#tag-details {
  border-collapse: collapse;
}

#tag-details th {
  text-align: left;
  padding-right: 15px;
  margin: 0px;
}

/*************************************************************************
 * Example: TOC
 ************************************************************************/

.example-index-h2 {
  margin-top: 4px;
}

.example-index-h2 a {
  color: #27ae60 !important;
  text-decoration: none;
}

.example-index-h2 a:hover {
  text-decoration: underline;
}

/*************************************************************************
 * Footer
 ************************************************************************/

#footer {
  clear:both;
  max-width:960px;
  margin:2em auto;
  position:relative;
  font-size: 14px;
  color: #777;
}

#footer p {
  position:absolute;
  top:0; right:0; margin:0;
}

#footer ul {
  list-style:none;
  margin:1em 0; padding:0;
}

#footer li {
  display:inline-block;
  white-space: nowrap;
  margin-right: 1em;
}

/*************************************************************************
 * Mobile
 ************************************************************************/

@media only screen and (max-width: 480px) {
  #header ul.user { right: 0; }
  #header div.search { position: static; width: 100%; }
  #footer p { position: static; }

  div#index-section-1 p { width: 100%; }
  div#index-section-1 iframe { position: static; }
  div#index-section-2 { margin-top: 1em; }
  div#index-section-2 > div { width: 100%; }

  #doc-content { float: none; width: 100%; }
  #doc-sidebar { display: none; }

  /* TODO: could be better... */
  #sidewalk #forum div.sidebar { float: none; }
}