/* h6 not used elsewhere so ensure common heading styling applied to it */
h6 {
  font-family: 'Raleway';
  line-height: 40px;
}

/* Styling of heading links (without .reference the link icons are green) */
.reference h2 a,
.reference h3 a,
.reference h6 a {
  color: inherit;
  text-decoration: none;
  position: relative;
}

/* Styling / positioning of link icons & showing them on hover */
.permalink a {
  opacity: 0;
}

.permalink:hover a {
  opacity: 1;
}
/* Different margins are to allow for different sized icons */
h2 .permalink {
  color: #2d3741;
  margin-left: -21px;
}
h3 .permalink {
  color: #2d3741;
  margin-left: -17px;
}
h6 .permalink {
  font-weight: normal;
  margin-left: -18px;
}

.apirow .permalink {
  text-align: right;
  white-space: nowrap;
}

.name .permalink .title {
  text-wrap: wrap;
  overflow-wrap: break-word;
}

h2 .permalink a,
h3 .permalink a,
h6 .permalink a {
  float: left;
}

h2 .permalink a,
h3 .permalink a {
  font-size: 0.5em;
  padding-right: 5px;
}

h6 .permalink a {
  font-size: 0.8em;
}

.apirow .permalink a {
  color: #737373;
}

.apirow .permalink span {
  padding-left: 5px;
}

/* Section headings */
.section__head {
  margin-top: 20px;
  margin-bottom: 10px;
  padding: 0px;
  padding-bottom: 6px;
}

.section__head .col {
  display: inline-block;
}

.section__head .col h2,
.section__head .col h3 {
  margin: 0px;
  line-height: inherit;
  padding-top: 4px;
}

.section__head h2 {
  font-size: 31.5px;
}

.section__head h3 {
  font-size: 22px;
}
/* Callback / promises switch */
.section__head .col.right {
  float: right;
  text-align: right;
}

.apirow.header {
  padding-bottom: 2px;
  border-bottom: solid 1px #cacdcf;
}

.apirow.header .col h6 {
  white-space: nowrap;
  color: #737373;
  font-size: 18px;
  padding: 0px;
  margin: 0px;
  text-align: left;
}

/* Sections */
.section {
  margin-bottom: 30px;
  max-width: 1200px;
}

.apirow {
  padding-bottom: 10px;
}

.apirow .col {
  box-sizing: border-box;
}

.apirow .col.left {
  text-align: right;
  width: 20%;

  padding-right: 10px;
  float: left;
}

.apirow .col.right {
  padding-left: 10px;
  width: 80%;
  float: right;
}

.col.right.desc,
.col.right .desc {
  color: #6e6e6e;
  word-wrap: break-word;
  padding-right: 30px;
}

.apirow:after {
  content: '.';
  visibility: hidden;
  display: block;
  height: 0;
  clear: both;
}

.apirow .name {
  font-weight: bold;
}

.apirow .default,
.apirow .type {
  color: #959b9f;
}

.apirow .type {
  font-style: italic;
  word-break: break-word;
}

.apirow .default .default-value {
  font-weight: bold;
}

.apirow .badges.interface-badge a {
  margin: 5px 0 5px 5px;
}

.apirow .label {
  vertical-align: middle;
}

/* fixes bug where links aren't clickable because of anchor divs */
.apirow a {
  position: relative;
}

.section.nested {
  margin-top: 6px;
  margin-bottom: 12px;
  padding: 2px 6px 6px 6px;
  border-left: solid 2px #eeeeef;
}

/* Badges */
.badges tr td {
  padding: 15px 0;
}

.badges tr td:first-of-type {
  text-align: right;
  padding-right: 8px;
  white-space: nowrap;
}

td .label.label-alpha {
  margin-right: 5px;
}

.badges.interface-badge {
  float: none;
}

.badges.interface-badge a {
  margin: 5px 5px 5px 0;
}

.badges.interface-badge .label {
  margin-right: 0px;
}

/* LHS menu and filter */
#nav-search {
  border: 1px solid #ccc;
  margin-top: 19px;
  font-size: 14px;
  display: inline-block;
  transition: border linear 0.2s, box-shadow linear 0.2s;
  -webkit-appearance: none;
}
#nav-search:focus {
  border: 1px solid #00c980;
  outline: none;
}

.accordion-group.nav {
  list-style: none;
  padding: 0px;
}

@media (min-width: 1500px) {
  /* centre the content for wide screens */
  .row.kl-sidebar {
    margin-left: calc((100vw - 1500px) / 2);
  }
}
