@import 'compass';
@import 'compass/reset';
@import 'compass/typography/text/ellipsis';
@import 'mixins/hidpi';
@import 'fonts';
@import 'colors';
@import 'examples';
@import 'about';
@import 'guides';
@import 'blog';
@import 'builds';
@import 'shared';

/* Calculated page dimensions. */
$page-width: 940px;
$col-width: 40px;
$col-spacing: 20px;
$sidebar-width: $col-width * 4 + $col-spacing * 3;
$content-width: $page-width - $sidebar-width - $col-spacing * 2;


@mixin width-for-columns($cols) {
  width: $cols * $col-width + ($cols - 1) * $col-spacing;
}

* {
  @include box-sizing(border-box);
}

body {
  background-color: #faf4f1;
  margin: 60px 0 0 0;
  padding: 0;
  font-family: 'Helvetica Neue', Helvetica, Arial, Sans-Serif;
  font-size: 14px;
  line-height: 1.4em;
  color: #444444;
  font-weight: normal;
  -webkit-font-smoothing: antialiased;
}

/* Typography */

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

a:hover {
  border-bottom: 1px dotted #f23818;
}

em {
  font-style: italic;
}

strong {
  font-weight: bold;
}

h1, h2, h3, h4, h5, h6 {
  text-transform: uppercase;
  font-family: 'Maven Pro';
  font-weight: bold;

  code {
    text-transform: none;
  }
}

h2 {
  font-size: 22px;
}

h2, h3{
  font-family: 'Maven Pro';
  font-weight: bold;
  color: $black-color;
}

h3 {
  font-size: 18px;
}

h4 {
  font-size: 16px;
  line-height: 1.618em;
  color: $orange-color;
  letter-spacing: 1px;
  margin: 24px 0 12px 0;
}


ul {
  list-style-type: disc;
}

#slider {
  list-style-type: none;
}

ol {
  list-style-type: decimal;
}
p {
  margin: 1em 0;
}

/* Structure */

.section {
  margin: 0 auto;
  width: 960px;
}

/* Components */

/**
  Sidebar
**/

#sidebar {
  font-family: 'Maven Pro';
  font-weight: normal;
  margin-top: 38px;
  float: left;
  width: $sidebar-width;
  min-height: 475px;
  margin-bottom: 28px;
  padding-bottom: 120px;
  background: #f4ece9;
  border-left: 1px solid #d4ccc8;
  border-right: 1px solid #d4ccc8;
  position: relative;

  #back-to-top {
    padding-left: 13px;
    text-align: center;
    display: none;
    @include transition(opacity 0.05s linear);

    @media screen and (max-width: 1200px) {
      padding-left: 0px;
      height: 20px;
      width: 30px;
      overflow: hidden;
    }

    @media screen and (max-width: 1020px) {
      display: none !important;
    }
  }

  a {
    display: inline-block;
    text-decoration: none;
    line-height: 1.5em;
    border-bottom: none;
    color: #d84a32;
    font-family: 'Maven Pro';
    font-weight: bold;
    cursor: pointer;

    &:hover {
      color: $black-color;
    }

    &.active {
      color: $black-color;
    }
  }

  ol#toc-list {
    background: #f9e7e4;
    li {
      font-size: 12px;
      list-style: none;
      margin: 0px;
      padding: 0px;

      p {
        padding-left: 7px;
      }

      a {
        padding: 0 0 0 1em;
        line-height: 1.2em;
      }

      > ol {
        display: none;
        margin: 10px 0;

        &.selected {
          display: block;
        }

        li.sub-selected {
          background-color: #f2d1cb;
          > a {
            font-family: 'Maven Pro';
            font-weight: bolder;
            color: #282828;
          }
        }

      }

      &.level-1 {
        text-transform: uppercase;

        > a {
          display: block;
          color: #443331;
          border-top: 1px solid #d5ccc8;
          border-bottom: 1px solid #d5ccc8;
          padding: 12px 12px 10px 12px;
          background-color: rgb(244, 236, 233);
        }

        & + .level-1 > a {
          margin-top: -1px;
        }

        &.selected > a {
          background-color: #f16f58;
          @include background-image(linear-gradient(-90deg, #f67862, #e7624b));
          margin-left: -1px;
          margin-right: -1px;
          color: white;
          border-top: 1px solid rgba(255, 255, 255, 0.4);
        }

        &:last-of-type ol {
          border-bottom: 1px solid #d5ccc8;
          padding-bottom: 0.5em;
        }
      }

      &.level-2, &.level-3 {

        a {
          padding: 6px 1em 6px 1em;
          display: block;
          text-transform: none;
          color: #d84a32;
          font-weight: normal;
          font-size: 13px;
          &:hover {
            background-color: #f2d1cb;
            color: black;
          }
          &:active {
            color: rgb(94, 94, 94);
          }
        }
        &.sub-selected {
          // fancy me up.
        }
      }
    }
  }

  &:after {
    @include background-image(linear-gradient(rgba(250, 244, 241, 0), rgba(251, 245, 241, 1)));
    position: absolute;
    bottom: 0px;
    left: -1px;
    width: 220px;
    height: 120px;
    content: '';
  }
}

#guide_search {
  background-color: #fbf8f7;
  border: 1px solid #cccccc;
  position: relative;
  color: #423432;
  display: block;
  width: 100%;
  height: 40px;

  label {
    padding: 0px 0px 5px 15px;
    padding-right: 10px;
    margin-left: 10px;
    background: no-repeat url('/images/search-icon.png');
  }

  border: 0;
  input:-webkit-input-placeholder { font-style: italic; }
  input:         -moz-placeholder { font-style: italic; }
  input:         -moz-placeholder { font-style: italic; }

  input {
    background: none;
    font-size: 12px;
    border: 0px;
    padding: 5px 0px 5px 5px;
    height: 100%;
    width: 165px;
    outline: none;
    font-style: normal;
  }

  button {
    background: no-repeat url('/images/search-erase.png');
    width: 14px;
    border: 0px;
    height: 14px;
    position: absolute;
    cursor: pointer;
    right: 10px;
    top: 15px;
  }
}

/* Pages */

/**
  Header
**/

#header {
  position: absolute;
  width: 100%;
  min-width: $page-width;
  top: 0;
  height: 60px;
  background: $orange-color top center;
  @include hidpi('navigation_background', png);
  border-bottom: 1px solid #aa412f;
  z-index: 10; /* The header is on top to have proper drop-shadow. */
  @include box-shadow(rgba(0, 0, 0, 0.3) 0 0 3px);

  #wrapper {
    width: $page-width;
    margin: 0 auto;
    position: relative;
  }

  #search form { display: inline-block }

  #logo {
    position: absolute;
    left: 7px;
    top: 6px;
    width: 103px;
    height: 40px;
    @include hidpi('ember_logo', 'png');
    @include transform(scale(1));
    @include transition(0.2s);

    &:hover, &:focus {
      @include transform(scale(1.06));
      border: 0;
    }
  }

  #nav {
    width: 700px;
    height: 65px;
    margin: 0 auto;

    text-align: center;

    li {
      line-height: 26px;
      margin: 18px 0 0;
      display: inline-block;

      a {
        font-family: 'Maven Pro';
        font-weight: bold;
        font-size: 13px;
        text-transform: uppercase;
        color: #faf2ee;

        @include text-shadow(rgba(0, 0, 0, 0.3) 0px 1px 0px);
        display: block;
        padding: 0px 1em;
        height: 26px;
        line-height: 26px;
        text-decoration: none;
        border: 1px solid transparent;

        &:hover { color: #ffffff }
      }

      &.active a {
        color: #331915;
        @include text-shadow(rgba(255, 255, 255, 0.2) 0 1px 0px);
        background-color: #bf4737;
        background-color: rgba(0, 0, 0, 0.2);
        @include border-radius(3px);
        border: 1px solid #923c2e;
        @include box-shadow(
          rgba(255, 255, 255, 0.15) 0 1px 0px,
          inset rgba(0, 0, 0, 0.17) 0 1px 1px
        );

        &:hover {
          color: black;
          background-color: rgba(0, 0, 0, 0.17);
        }
      }

    }
  }

  #search{
    form input.st-search-input{
      margin-left: 12px;
      font-size: 100%;
      padding: 2px 9px 2px 27px;
      height: 26px;
      background-position: 7px 6px;
      width: 150px;
    }
  }

  #github {
    position: absolute;
    right: 7px;
    top: 17px;

    a {
      img {
        float: left;
        margin-top: 7px;
        margin-right: 6px;
        display: block;
      }

      font-family: 'Maven Pro';
      font-weight: bold;
      font-size: 12px;
      text-transform: uppercase;
      color: #faf2ee;
      @include text-shadow(rgba(0, 0, 0, 0.3) 0px 1px 0px);

      display: block;
      padding: 0px 1em 0 0.5em;
      height: 28px;
      line-height: 28px;

      background-color: #ff6e56;
      @include filter-gradient(#ff6e56, #ed4f35, vertical);
      @include background-image(linear-gradient(top, #ff6e56 0%, #ed4f35 100%));

      border: 1px solid #a93926;
      @include border-radius(4px);
      @include box-shadow(
        inset rgba(255, 255, 255, 0.17) 0 1px 1px
      );

      &:hover {
        color: #ffffff;
        background: #f86c55;
      }
    }

    .icon-fork {
      font-size: 1.4em;
      margin-left: 0;
      vertical-align: middle;
    }
  }
}

#content-wrapper {
  @include clearfix;
  width: 960px;
  padding: 0px 0px 20px 0px;
  margin: 0 auto;
  position: relative;

  &.grid {
    background-image: url('/images/grid.png');
  }
}

#content {
  &.has-sidebar {
    margin: 38px 0 90px 2.1em;
    width: $content-width;
    float: left;
  }

  ol + h2, ul + h2, p + h2,
  ol + h3, ul + h3, p + h3,
  div + h3 {
    margin-top: 1.5em;
  }

  .tabs > ul{
  }

  figure {
    width: 100%;
    background-color: #ffffff;
    margin: 1.5em 0;
    text-align: center;
    border: 1px solid #cccccc;
    overflow-x: auto;
  }

  aside {
    background-color: #ffffff;
    padding: 1em;
    color: #666666;
    code {
      color: #777777;
    }
  }
}

/**
  About Page
**/

.about-header-text {
  display: block;
  margin: 60px auto 0 auto;
  width: image-width('about/header-text.png');
  height: image-height('about/header-text.png');
  overflow: hidden;
  white-space: nowrap;
  text-indent: 100%;
  @include hidpi('about/header-text', png);
}

#download {
  width: 465px;
  margin: 0 auto;
  position: relative;

  #download-ember, #download-starter-kit {
    text-align: center;
    margin: 4em auto 0 auto;
  }

  #download-ember {
    left: 0;

    .button {
      margin: 3px auto 6px;
      font-size: 13px; /* Due to long version name */
    }
  }

  #download-starter-kit {
    left: 240px;
  }

  .info {
    margin-top: 4px;
    color: #888888;
  }

  .social {
    margin-top: 25px;
    margin-bottom: 0;
    text-align: center;
    list-style: none;
    padding: 0;
    height: 20px;


    > li {
      display: inline-block;
      vertical-align: top;
      margin: 0 10px;
      font-size: 11px;
    }

    a:hover {
      border: none;
    }

    img {
      vertical-align: middle;
    }
    .gplus a img {
      border: 0;
    }
  }
}

.section {
  overflow: hidden;

  h2 {
    width: 100%;
    text-align: center;
    margin: 40px 0;
  }

  table.columns {
    margin: 0 auto;

    td {
      vertical-align: top;
      padding-right: 50px;
    }
  }
}

.features.section {
  @include clearfix;

  .feature {
    @include width-for-columns(4);
    float: left;
    margin-left: $col-width + $col-spacing;
    margin-right: $col-spacing;

    img {
      margin-left: auto;
      margin-right: auto;
      display: block;
    }

    p {
      text-align: center;
    }
  }
}

#content .users.section {
  .surround {
    width: 940px;
    margin: 0 auto;
    padding-top: 19px;

    @include border-radius(3px);
    @include box-shadow(inset 0 1px 2px rgba(0,0,0,0.1), 0 1px 0 #fff);
    @include clearfix;
    background: url('/images/about/carousel_bg.png');
    border: 1px solid #d1d1d1;

    a:hover {
      border: 0;
    }

    ul {
      margin: 0;
    }

    .bx-wrapper,
    .bx-window {
      width: 940px;
    }

    .bx-wrapper {

      .bx-prev,
      .bx-next {
        background: no-repeat;
        @include hidpi('about/carousel_controls', png);
        float: left;
        height: 28px;
        width: 30px;
      }

      .bx-prev,
      .bx-next,
      .pager-link {
        text-indent: -9999px;
      }

      .bx-prev {
        background-position: left;
        border-right: 1px solid #d1d1d1;
        float: right;
        position: absolute;
        bottom: 0;
        left: 0;
      }

      .bx-next {
        background-position: right;
        border-left: 1px solid #d1d1d1;
        float: right;
        position: absolute;
        bottom: 0;
        right: 1px;
      }

      .bx-window {
        border-bottom: 1px solid #d1d1d1;
        height: 124px;
      }

      .bx-pager {
        @include clearfix;
        background: bottom repeat-x #f4f4f4;
        @include hidpi('about/carousel_pager_bg', png);
        border-left: 1px solid #fafafa;
        border-right: 1px solid #fafafa;
        border-top: 1px solid #fefefe;
        font-size: 0;
        height: 28px;
        line-height: 0;
        margin: 0 29px;
        padding-top: 9px;
        text-align: center;

        .pager-link {
          background: 0 0 no-repeat;
          @include hidpi('about/carousel_dots', png);
          height: 11px;
          width: 10px;
          margin-left: 10px;
          display: inline-block;

          &.pager-active,
          &.pager-active:hover {
            background-position: -22px 0;
          }

          &:hover {
            background-position: -11px 0;
          }

          &:first-of-type {
            margin-left: 0;
          }
        }
      }
    }
  }

  .user {
    position: relative;
    float: left;
    width: 230px;

    &.empty {
      display: block;
      height: 210px;
      visibility: hidden; /*Take up space, but be invisible*/
    }

    a {
      @include border-radius(4px);
      @include box-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
      background: url('/images/about/user_bg.png') no-repeat;
      display: block;
      height: 103px;
      margin-left: 20px;
      width: 210px;
    }
  }

  p {
    text-align: center;
  }

  .listed {
    float: left;
    margin-left: $col-width * 9;
    margin-top: 20px;
    text-align: center;
  }
}

.gears.section {
  .gear {
    text-align: center;
    height: 120px;

    .gearplus {
      padding: 0px 30px 0px 30px;
      display: inline;
      line-height: 120px;
      img {
        vertical-align: top;
        padding-top: 50px;
      }
    }
  }
}

.samples.section {
  .sample {
    float: left;
    position: relative;
    margin-left: $col-spacing;
    border: 1px solid rgba(0, 0, 0, 0.1);
    overflow: hidden;
    @include box-shadow(rgba(0, 0, 0, 0.1) 0 2px 3px);
    @include border-radius(6px);
    @include width-for-columns(4);

    &:first-of-type {
      margin-left: 0;
    }

    .info {
      position: absolute;
      top: 0;
      right: 0;
      bottom: 0;
      left: 0;
      opacity: 0;
      background-color: rgba(0, 0, 0, 0.85);
      -webkit-font-smoothing: antialiased;
      @include transition(opacity 0.1s linear);
      @include border-radius(6px);

      .name {
        text-align: center;
        color: white;
        font-family: 'Maven Pro';
        font-weight: normal;
        font-size: 18px;
        margin-top: 55px;
        text-transform: uppercase;
      }

      .actions {
        text-align: center;
        margin-top: 16px;

        > div {
          display: inline-block;
          margin: 0 3px;
        }
      }
    }

    img {
      @include border-radius(6px);
    }

    &:hover .info {
      opacity: 1;
    }
  }
}

.donate {
  margin-top: 10px;
}

.anchorable-toc {
  position: relative;

  &:hover a.toc-anchor {
    display: block;
  }
}

a.toc-anchor {
  display: none;
  position: absolute;
  text-decoration: none;
  border: none;
  left: -1em;
  width: 30px;
  height: 13px;
  background: url('/images/link.png') no-repeat;
  background-size: 18px 9px;
  left: -22px;
  opacity: 0.5;
  top: 50%;
  margin-top: -5px;
}

/**
  Guides Page
**/

.guides {
  .chapter {
    $h3-indent: 32px;
    $body-indent: $h3-indent;

    h1 {
      padding-bottom: 0.5em;
    }

    ul, ol {
      margin-left: $body-indent;
      margin-bottom: 28px;

      li {
        font-size: 15px;
        margin: 10px 0 10px 0;

        p {
          padding-left: 7px;
        }
      }
    }
  }

  table {
    width: 100%;

    margin: 1em 0;
    tbody tr{
      background: rgba(255, 249, 249, 0.56);
      border-bottom: 1px solid rgba(223, 215, 212, 0.28);
    }

    thead {
      background-color: #f9e7e4;
    }

    th {
      font-weight: bold;
    }

    th, td {
      padding: 5px 10px;
    }
  }

  .note {
    background: rgba(0,0,0, 0.2);

    &::before {
      content: "Note"
    }
  }
}

.previous-guide {
  float: left;
}

.next-guide {
  float: right;
}

.guides_getting-started {
  .jsbin-embed {
    /**
      height of TodoMVC with three sample todos
      after rendering. JSBin calculates height
      before ember has a chance to render.

      This style is !important to get around
      the inline style on .jsbin-embed
    **/
    min-height: 519px !important;
  }
}

/**
  Blog
**/

.blog {

  h5.blog-post-summary-author {
    font-size: 10px;
    color: gray;
  }

  article {
    margin: 0 0 3em 0;
    padding: 0 0 3em 0;

    $h3-indent: 0;
    $body-indent: $h3-indent;
    border-bottom: solid 1px #e0e0e0;

    &:last-child {
      border-bottom: none;
    }

    .blog-post-author {
      font-size: 10px;
      color: gray;
      top: 59px;
      margin-left: 45px;
    }

    h1 {
      padding-bottom: 0;
    }

    figure {
      width: 100%;
      background-color: white;
      padding: 10px;
      border: 1px solid #cccccc;
    }

    blockquote {
      background-color: rgba(100, 100, 100, 0.1);
      font-style: italic;
      padding: 8px;

      > p {
        padding: 0;
        margin: 0;
      }
    }

    img {
      display: block;
      margin: 0 auto;
      background-color: white;
      max-width: 100%;
    }

    ul, ol {
      margin-left: 1.5em;
    }

    ul {
      list-style: disc;
    }

    ol {
      list-style: decimal;
    }

    table.figure {
      float: left;
      margin-bottom: 20px;

      & + table.figure {
        margin-left: 20px;
      }

      & + table.figure + * {
        clear: left;
      }

      th, td {
        padding: 5px 10px;
      }

      thead th {
        font-weight: bold;
        border-bottom: 2px solid $orange-color;
      }

      tbody td {
        border-bottom: 1px solid lighten($orange-color, 20%);
      }
    }

  }
}

/**
  Community Page
**/

body.community #content {
  margin: 3em auto 0 auto;
  width: 54em;

  h1, h1:first-child {
    margin-top: 0;
    color: $orange-color;
    border-bottom: solid 1px #d0d0d0;
    padding-bottom: 20px;
  }

  .section {
    width: auto;
    div {
      @include hidpi('community/give', 'png');
      float: left;
      margin: 0 20px 15px 0;
      width: 220px;
      height: 142px;
    }

    .sos {
      @include hidpi('community/sos', 'png');
    }

    .bug {
      @include hidpi('community/bug', 'png');
    }
    &.bugs div {
      float: right;
      margin: 0 0 15px 20px;
    }
    .meetup {
      width: 221px;
      height: 185px;
      @include hidpi('community/meetup', 'png');
    }
    .campster {
      @include hidpi('community/campster', 'png');
      width: 201px;
      height: 179px;
    }
    table {
      margin: 2em auto;
    }
    .inline_list a:first-child {
      margin-left: 20px;
    }
  }
}

/**
  Security Page
**/

body.security #content {
  margin: 3em auto 0 auto;
  width: 54em;

  h1, h1:first-child {
    margin-top: 0;
    color: $orange-color;
    border-bottom: solid 1px #d0d0d0;
    padding-bottom: 20px;
  }
}

/**
  Ember Users Page
**/

.ember-users {

  .section {
    width: 100%;
  }

  h1 {
    margin-bottom: 10px;
  }

  #content {
    margin: 3em auto 0 auto;
    width: 54em;
  }

  .button {
    display: block;
    text-align: center;
    margin: 0 auto;
  }

}

.ember-users_index .users.section {
  margin-top: 0px;
}

#showcase {
  margin: 0 auto;
  width: 100%;
}

#content #showcase tr {
  background: transparent;
  border-bottom: none;
}

#showcase td {

  &:nth-child(2) a {
    margin: 0 auto;
  }

  &:nth-child(3) a {
    margin-left: auto;
  }

  padding: 10px;
  a {
    background-image: url('/images/about/user_bg.png');
    display: block;
    height: 103px;
    width: 210px;
  }
}

#showcase a:hover {
  border-bottom: none;
}


/**
  Sponsors Page
**/

.sponsors {
  .section {
    width: 100%;
    margin-top: 0px;
    padding: 2em;
  }

  h1 {
    margin-bottom: 10px;
  }

  p {
    margin-bottom: 0px;
  }

  #content {
    margin: 3em auto 0 auto;
    width: 54em;
  }

  .button {
    display: block;
    text-align: center;
    margin: 0 auto;
  }

  ul, ol {
    margin-bottom: 28px;

    list-style-type: disc;
    li {
      font-size: 15px;
      margin: 10px 0 10px 0;

      p {
        padding-left: 7px;
      }
    }
  }
}

/**
  Core Team Page
**/

.team, .meetup-assets {

  .section {
    width: 100%;
    margin-top: 0px;

    .headshots {
      width: 760px;
      margin: 0 auto;

      a:hover {
        border-bottom: none;
      }

      td {
        text-align: center;

        p {
          margin: 0px 0px 10px 0px;
          font-weight: bold;
        }

        img {
          border: 1px solid #888888;
          margin-bottom: 10px
        }
      }
    }
  }

  #content {
    margin: 3em auto 0 auto;
    width: 54em;
  }
}

/**
  Meetup Assets Page
**/

#content .meetups {
  ul {
    width: 100%;
    overflow: hidden;
    text-align: center;
    margin-left: 2.5em;
  }

  li {
    width: 220px;
    float: left;
    margin-bottom: 20px;
    img, a {
      display: block;
      margin: 0 auto;
    }
  }

  p {
    text-align: center;
  }
}

.second {
  margin-top: 50px;
}


/**
  Footer
**/

#footer {
  margin-top: 60px;
  padding: 25px 0;
  border-top: 1px solid #e5dbd6;
  background-color: #f2ece9;
  overflow: hidden;
  font-family: 'Maven Pro';
  font-weight: bold;

  #footer-wrapper {
    width: 940px;
    margin: 0 auto;
    position: relative;
    @include clearfix;
  }

  .info {
    width: 200px;
    color: #717171;
    text-transform: uppercase;
    font-size: 10px;
    float: left;

    a {
      color: $orange-color;
      text-decoration: none;
    }
  }

  .statement {
    font-size: 14px;
    color: #bbbbbb;
    text-transform: uppercase;
    position: absolute;
    text-align: center;
    left: 200px;
    right: 200px;
    top: 10px;
  }

  .links {
    width: 200px;
    text-align: right;
    float: right;

    a {
      margin: 3px 10px 0;
      border-bottom: none;
      opacity: 0.7;
      @include transition(0.4s);

      &:hover {
        opacity: 1;
      }

      i {
        margin: 0;
      }

      /*
        This is for hiding text from users with normal vision
        but keeping the text for screen readers
      */
      span {
        display: inline-block;
        width: 1px;
        text-indent: 200%;
        white-space: nowrap;
        overflow: hidden;
      }
    }
  }

  .twitter, .github, .googleplus {
    font-size: 33px;
    line-height: 35px;
    color: #464646;
    height: 35px;
    width: 35px;
    display: inline-block;
  }

  .googleplus {
    font-size: 29px;
  }

}

.screenshot {
  margin-left: -60px;
}

/**
  Buttons
*/

.button {
  display: block;
  width: 220px;
  height: 40px;
  font-family: 'Maven Pro';
  font-weight: bold;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 40px;
  font-size: 14px;
  color: #f6ece8;
  text-align: center;
  @include text-shadow(rgba(0, 0, 0, 0.3) 0 1px 0);

  &.orange {
    border: 1px solid #cb6352;
    border-top-color: #ea7a68;
    border-bottom-color: #a04332;

    @include filter-gradient(#fe845a, #d14e37, vertical);
    @include background-image( linear-gradient(top, #fe845a, #d14e37) );
    @include border-radius(5px);
    @include box-shadow(inset 0 1px 0 rgba(255, 255, 255, 0.35));

    &:hover, &:focus {
      border-color: #e27260;
      border-top-color: #ea7a68;
      border-bottom-color: #c1513d;
      @include filter-gradient(#fc906b, #e2654e, vertical);
      @include background-image( linear-gradient(top, #fc906b, #e2654e) );
    }

    &:active {
      border-color: #c9533d;
      border-top-color: #92473a;
      border-bottom-color: #e1583f;
      @include filter-gradient(#b2412e, #ed7249, vertical);
      @include background-image( linear-gradient(top, #b2412e, #ed7249) );
      @include box-shadow(none);
      @include text-shadow(rgba(0, 0, 0, 0.2) 0 -1px 0);
    }
  }

  &.black {
    background-image: url('/images/black_buttons.png');

    &:hover {
      background-position: 0 -46px;
      border-bottom: none;
    }

    &:active {
      background-position: 0 -92px;
      @include text-shadow(rgba(0, 0, 0, 0.3) 0 -1px 0);
    }
  }
}

.small-button {
  width: 74px;
  height: 22px;

  font-family: 'Maven Pro';
  font-weight: normal;
  color: #ffffff;
  line-height: 24px;
  text-transform: uppercase;
  @include text-shadow(rgba(0, 0, 0, 0.3) 0 1px 0);

  &.orange {
    background-image: url('/images/small-orange-button.png');
  }

  &.black {
    background-image: url('/images/small-black-button.png');
  }
}

a.edit-page {
  font-size: 18px;
  color: #444;
  margin: 0;
  width: 24px;
  height: 16px;
  display: inline-block;
  float: right;
  overflow: hidden;
  opacity: 0.4;

  &:hover {
    opacity: 1;
    border-bottom: 0;
  }
}

/**
  API
**/

.api {
  h3 {
    &.name {
      text-transform: none;
      float: left;
      margin-right: 5px;
    }
    &.anchorable-toc {
      position: relative;

      &:hover a.toc-anchor {
        display: block;
      }

      .toc-anchor {
        display: none;
        position: absolute;
        text-decoration: none;
        border: none;
        left: -1em;
        width: 30px;
        height: 13px;
        background: url('/images/link.png') no-repeat;
        background-size: 18px 9px;
        left: -19px;
        opacity: 0.5;
        top: 50%;
        margin-top: -5px;
      };
    }
  }

  .meta {
    line-height: 16px;
    font-size: 11px;
    clear: left;
  }

  .args {
    font-style: italic;
    color: #444444;
  }

  .method h3{
    text-transform: none;
  }
  dl {
    margin: 1em 0 1em 1em;
    dt {
    }

    dd {
      margin: 0em 0 0.5em 0;
    }
  }

  .type {
    border-bottom: 1px dotted #afafaf;
    font-size: 13px;
    color: gray;
  }

  #api-options {
    padding-bottom: 1em;
    border-bottom: solid 1px #e0e0e0;
    margin-bottom: 1.5em;
  }

  .class-info {
    margin-bottom: 2em;
    p {
      color: #443331;
      font-weight: bold;
      margin: 0;
      text-transform: uppercase;
      a {
        text-transform: none;
        font-weight: normal;
      }
    }
  }

  .description {
    p {
      font-family: 'Helvetica Neue', Helvetica, Arial, Sans-Serif;
      font-weight: 200;
      margin: 1.5em 0;
    }
  }

  ul.index-list {
    margin-left: 1.5em;
    overflow: hidden; /* Clearfix */

    li {
      float: left;
      width: 300px;
      padding-right: 1em;
      display: block;
      overflow: hidden;
      @include ellipsis;
    }
  }

  ol#toc-list {
    li a {
      display: block;
      overflow: hidden;
      @include ellipsis;
    }
  }

  div.method, div.property, div.event {
    padding-bottom: 1em;
    border-bottom: solid 1px #e0e0e0;
    margin-bottom: 2em;
    &:last-child {
      border-bottom: none;
    }
  }

  h3.name code {
    background-color: transparent;
    color: black;
    padding: 0;
    font-weight: bold;
  }

  span.flag {
    background-color: gray;
    color: white;
    padding: 2px 7px;
    @include border-radius(3px);
  }

  #sidebar ol#toc-list li > ol {
    display: block;
  }
}

/**
  404 Page
**/

body.not-found #content {
  margin: 3em auto 0 auto;
  width: 54em;
}

.under_construction_warning {
  background-color: #FFFFCC;
  width: 100%;
  @include border-radius(8px);
}

.under_construction_warning h3 {
  min-height: 64px;
  font-size: 14px !important;
  border: 1px solid #dfd7d4;
  @include border-radius(8px);
  color: #e1563f;
  padding: 0px 0px 1em 2em;
  margin-bottom: 1.5em;
  background: no-repeat url("/images/ember-construction-57.png") 0.5em 0.5em; }

.under_construction_warning h3 .msg {
  text-transform: none;
  margin-top: 12px;
  margin-left: 40px;
}

.more_caution {
  color: black;
}


/* Swiftype Search CSS overrides - https://swiftype.com/documentation/tutorials/custom_styles
   =========================================================================================== */

/* Change color of search dropdown text */
.swiftype-widget .autocomplete ul li {
  p.title {
    color: $orange-color;
  }

  &.active {
    background: none;
    background-color: $orange-color;
    border-top: 1px solid darken($orange-color, 20%);
    border-bottom: 1px solid darken($orange-color, 20%);
    @include box-shadow(0 1px 0 #C0242D inset);

    .sections {
      color: white;

      em {
        color: $black-color;
        text-shadow: lighten($orange-color, 10%) 0px -1px 0px;
      }
    }
  }
}

/* Changing the search result link colors */
.st-result-listing a {
  color: $orange-color;

  &:visited {
    color: darken($orange-color, 20%);
  }

  &:hover {
    color: lighten($orange-color, 20%);
  }
}

@import 'highlight';
