.details {
  @include container;
  position: relative;
  z-index: 1;
  pointer-events: none;
  font-size: 0.9em;

  a {
    text-decoration: none;
  }

  h1 {
    display: inline-block;
    margin: 0;
    line-height: 1.3;
    color: $charcoal;
  }

  h4 {
    margin: 1em 0 0.3em 0;
  }

  p {
    margin: 0 0 1em 0;
    padding: 0;
  }

  ul {
    margin: 0 0 1em 0;
    padding: 0;
    list-style: none;
  }

  li {
    position: relative;
    margin: 0;
    padding: 0 0 0 1em;

    &:before {
      position: absolute;
      left: 0;
      top: 0;
      content: '–';
    }
  }

  footer {
    clear: both;
    margin: 20px 0 0 0;
    padding: 20px 0 0 0;
    text-align: right;
    color: $grey;
    font-size: 14px;
    font-weight: bold;
    font-style: italic;
  }

  form {
    overflow: hidden;
  }

  .details-container {
    margin: 90px 20px;
    pointer-events: auto;
    background: $white;
    box-shadow: 3px 3px 10px rgba(black, 0.3);

    @include susy-breakpoint($tablet) {
      margin: 0 35% 0 25px;
    }
  }

  .details-header,
  .details-content {
    overflow: hidden;
    margin: 0;
    padding: 25px;
    border-bottom: 1px solid $grey;
  }

  .details-contact {
    padding: 25px;
  }

  .details-back {
    display: block;
    padding: 10px 25px;
    border-bottom: 1px solid $grey;
    background: $white;
    pointer-events: auto;
    text-decoration: none;
    text-decoration: none;

    > a:before {
      content: '← ';
    }
  }

  .details-contact-button {
    display: inline-block;
    border: 1px solid $charcoal;
    border-radius: 3px;
    padding: 0 1em;
    margin: 0 0 1em 0;
    line-height: 2em;
    text-decoration: none;
    background: transparent;
    color: $charcoal;

    &:focus,
    &:hover,
    &:active {
      text-decoration: none;
      color: $white;
      background: $charcoal;
      outline: none;
    }
  }

  .edit {
    position: absolute;
    right: 3.5em;
    top: 1.2em;
  }

  .membership-availability {
    display: inline-block;
    font-weight: bold;
    padding-right: 1em;

    &.yes {
      color: $darkGreen;
    }

    &.no {
      color: $orange;
    }

    &.waitlist {
      color: $charcoal;
    }
  }

  .profile-picture {
    max-width: 100%;
  }

  @include susy-breakpoint($tablet) {
    padding: 120px 0;

    .profile-picture {
      float: right;
      margin-left: 20px;
      margin-bottom: 20px;
    }
  }
}

.details-meta {
  p,
  a {
    display: block;
    margin: 0;
    display: inline-block;
  }

  a:before {
    content: '|';
    display: inline-block;
    padding: 0 0.3em;
    text-decoration: none;
  }
}
