section#unit-wrapper {
  > header {
    border-bottom: 2px solid $dark-blue;
    @include clearfix();
    @include box-shadow( 0 2px 0 darken($light-blue, 3%));
    padding: 6px 20px;

    section {
      float: left;

      h1 {
        font-size: 16px;
        text-transform: uppercase;
        letter-spacing: 1px;
        @include inline-block();
        color: $bright-blue;
        margin: 0;
      }

      p {
        @include inline-block();
        margin: 0;

        a {
          text-indent: -9999px;
          @include inline-block();
          width: 1px;
          height: 100%;
       }
      }
    }

    div {
      float: right;
      color: #666;

      a {
        display: block;
        @include inline-block;

       &.cancel {
         margin-right: 20px;
         font-style: italic;
         font-size: 12px;
       }

       &.save-update {
         @extend .button;
         margin: -6px -21px -6px 0;
       }
      }
    }
  }

  > section {
    padding: 20px;

    section.meta {
      background: $light-blue;
      border-bottom: 1px solid lighten($dark-blue, 40%);
      padding: 10px 20px;
      margin: -20px -20px 10px;
      opacity: .7;
      @include transition;

      &:hover {
        opacity: 1;
        padding: 20px;
        margin: -20px -20px 10px;
      }

      section {
        &.status-settings {
          float: left;
          margin-bottom: 10px;
          color: $dark-blue;
          @include clearfix;

          ul {
            border: 1px solid darken($light-blue, 15%);
            @include clearfix();
            float: left;
            list-style: none;
            margin: 0;
            padding: 0;

            li {
              border-right: 1px solid darken($light-blue, 15%);
              float: left;

              &:last-child {
                border-right: 0;
              }

              a {
                color: $dark-blue;
                padding: 6px;
                display: block;

                &.current {
                  background: darken($light-blue, 5%);
                }

                &:hover {
                  background-color: lighten($yellow, 13%);
                }
              }
            }
          }

          a.settings {
            float: left;
            margin: 0 20px;
            padding: 6px;
            border: 1px solid darken($light-blue, 15%);
            color: $dark-blue;

            &:hover {
              background-color: lighten($yellow, 13%);
            }
          }

          select {
            float: right;
          }
        }

        &.author {
          float: right;
          color: lighten($dark-blue, 6%);

          dl {
            dt {
              font-weight: bold;
            }

            dd, dt {
              @include inline-block();
            }
          }
        }

        &.tags {
          color: lighten($dark-blue, 6%);
          @include clearfix();
          clear: both;

          div {
            float: left;
            margin-right: 20px;

            h2 {
              font-size: 14px;
              @include inline-block();
              margin: 0;
            }

            p {
              @include inline-block();
              margin: 0;
            }
          }
        }
      }
    }

    //general styles for main content
    .preview {
      @include box-sizing(border-box);
      border: 1px solid  lighten($dark-blue, 40%);
      min-height: 40px;
      padding: 10px;
      width: 100%;
      margin-top: 10px;

      h1 {
        font-size: 24px;
        margin-bottom: 1em;
      }

      h2 {
        font-size: 20px;
        margin-bottom: 1em;
      }

      h3 {
        font-size: 18;
        margin-bottom: 1em;
      }

      ul {
        padding-left: 20px;
        margin-bottom: 1em;
      }

      p {
        margin-bottom: 1em;
      }
    }

    //notes
    section.notes {
      margin-top: 40px;
      padding: 40px 0 0;
      border-top: 2px solid lighten( $dark-blue, 60% );

      h2 {
        margin-bottom: 6px;
        font-size: $body-font-size;
        text-transform: uppercase;
        color: $bright-blue;
        letter-spacing: 1px;
      }

      form {
        margin-bottom: 20px;

        input[type="submit"]{
          margin-top: 10px;
        }
      }

      ul {
        list-style: none;
        margin: 0;
        padding: 0;

        li {
          margin-bottom: 20px;

          p {
            margin-bottom: 10px;

            &.author {
              font-style: italic;
              color: #999;
            }
          }
        }
      }
    }

    div.actions {
      a.save-update {
        @extend .button;
        @include inline-block();
        margin-top: 20px;
      }

      a.cancel {
        float: right;
        font-style: italic;
        margin-top: 20px;
      }
    }
  }
}
