.tabs {
  .content {
    display: none;
    padding: 0.75rem 0 0;
  }

  input {
    display: none;

    &:checked+label {
      color: $primary;
      border-bottom: solid 3px $secondary;
    }

    @for $num from 1 through 5 {
      &[id="tab#{$num}"]:checked~div[id="content#{$num}"] {
        display: block;
      }
    }
  }

  label {
    display: inline-block;
    margin: 0 0 -1px;
    padding: 0.75rem 0.75rem;
    font-weight: 600;
    text-align: center;
    color: $primary-light;

    &:hover {
      color: $muted;
      cursor: pointer;
    }
  }
}
