/* Overrides on top of lion.css; keep lion.css itself untouched. */

body {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 120px);
  max-width: 60rem;
  margin: 0 auto;
}

a {
  color: inherit;
}

/* toolbar links styled like Lion scope buttons */
.toolbar a {
  color: black;
  font-weight: bold;
  text-decoration: none;
  padding: 0 8px;
  border-radius: 10em;
}
.toolbar a:hover {
  color: white;
  text-shadow: 0px 1px 0px rgba(0,0,0,.5);
  background: linear-gradient(to bottom, #bbbbbb, #a7a7a7);
}
.toolbar a[aria-current] {
  color: white;
  text-shadow: 0px 1px 0px rgba(0,0,0,.5);
  background: #9b9b9b;
  box-shadow:
    inset 0px 1px 1px 0px rgba(0,0,0,.34),
    inset 0px 0px 0px 1px rgba(0,0,0,.12),
    0px 1px 0px 0px rgba(255,255,255,.45);
}

/* sidebar */
.splitview {
  flex: 1;
}
.sourcelist {
  flex: none;
  box-sizing: border-box;
  width: 185px;
  min-width: 0;
}
.sourcelist .item {
  color: black;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sourcelist .section-title .badge {
  position: static;
  margin: 0 0 0 4px;
  box-shadow: none;
  vertical-align: 1px;
}
.sourcelist .section-title:hover:after {
  content: none;
}
.sourcelist .section .section {
  padding-bottom: 4px;
}
.sourcelist a.item[aria-current] {
  color: white;
  font-weight: bold;
  text-shadow: 0px 1px rgba(0,0,0,.3);
  background-clip: padding-box;
  border-color: hsla(211, 64%, 64%, 1) transparent hsla(214, 45%, 51%, 1) transparent;
  background: linear-gradient(to bottom, hsla(209, 66%, 68%, 1), hsla(220, 55%, 58%, 1));
  box-shadow: inset 0px 1px 0px hsla(209, 66%, 88%, .2);
}

/* content pane */
.content {
  flex: 1;
  min-width: 0;
  padding: 8px 12px 24px;
  user-select: text;
  -webkit-user-select: text;
}
.content > * {
  max-width: 640px;
}
.content h1 {
  font-size: 22px;
  margin: 4px 0 12px;
}
.content h2 {
  font-size: 16px;
  margin: 20px 0 8px;
}
.content h3,
.content h4 {
  font-size: 13px;
  margin: 16px 0 6px;
}
.content p,
.content ul,
.content ol {
  margin: 0 0 10px;
}
.content a {
  color: #2a5db0;
}
.content img {
  max-width: 100%;
  height: auto;
}
.content pre {
  overflow-x: auto;
  padding: 8px;
  background: rgba(0, 0, 0, .06);
  border-radius: 3px;
}
.content code {
  font-family: Menlo, Monaco, monospace;
  font-size: 12px;
}

@media (max-width: 700px) {
  html {
    padding: 12px;
  }
  body {
    min-height: calc(100vh - 24px);
  }

  .splitview {
    flex-direction: column;
  }
  .sourcelist {
    width: auto;
    border-width: 0 0 1px;
  }
  .sourcelist:first-child {
    border-radius: 0;
  }
  .sourcelist .item {
    white-space: normal;
  }
  .content {
    flex: 1;
  }
}
