.subpage-content-wrapper {
  background-color: darken($base-background-color, 5%);
  border-radius: $base-border-radius;
  box-shadow: 0 1px 0 lighten($base-background-color, 5%);
  margin: $base-spacing auto 0;
  max-width: 48rem;
  overflow: hidden;
  padding: $base-spacing;
}

.subpage-content-header {
  @include clearfix;
  background-color: $codetriage-blue;
  margin: (-$base-spacing) (-$base-spacing) $base-spacing;
  padding: $base-spacing;

  .high & {
    background-color: $codetriage-red;

    &:hover {
      background-color: shade($codetriage-red, 5%);
    }
  }

  .medium & {
    background-color: $codetriage-yellow;

    &:hover {
      background-color: shade($codetriage-yellow, 5%);
    }
  }

  .low & {
    background-color: $codetriage-green;

    &:hover {
      background-color: shade($codetriage-green, 5%);
    }
  }
}

.subpage-header-actions {
  margin-top: 4px;

  @include media(38rem) {
    float: right;
  }

  a {
    color: $lightest-font-color;

    &:focus,
    &:hover {
      color: rgba($lightest-font-color, 0.3);
    }
  }

  .header-primary-action {
    color: $base-font-color;
    font-size: $small-font-size;
    letter-spacing: 1px;
    margin-left: $small-spacing;
    text-transform: uppercase;
  }
}

.subpage-primary-title {
  color: $base-font-color;
  font-size: 1.5rem;
  margin-right: $small-spacing;

  @include media(38rem) {
    float: left;
  }
}

.subpage-secondary-title {
  color: $lightest-font-color;
  margin-bottom: 0;
  margin-top: 4px;

  @include media(38rem) {
    float: left;
  }
}
